@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --header-bg: #17352f;
  --header-fg: #fff7e8;
  --accent: #2f6f55;
  --accent-strong: #1f5a44;
  --accent-warm: #d89a2b;
  --danger: #a84736;
  --site-bg-color: #f5f2ea;
  --panel-bg: #fffdf8;
  --content-panel-bg: #fffdf8;
  --menu-panel-bg: #fffdf8;
  --page-meta-color: #5f635e;
  --menu-meta-color: #626960;
  --text-main: #1c261f;
  --muted: #667066;
  --border: rgba(36, 51, 42, 0.16);
  --surface: #f8f4ea;
  --surface-strong: #ece4d2;
  --focus: #2f6f55;
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset, 0 18px 36px rgba(31, 45, 36, 0.14), 0 3px 0 rgba(31, 45, 36, 0.08);
  --shadow-raised: 0 1px 0 rgba(255, 255, 255, 0.82) inset, 0 22px 42px rgba(31, 45, 36, 0.18), 0 4px 0 rgba(31, 45, 36, 0.1);
  --button-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 3px 0 rgba(18, 69, 50, 0.95), 0 12px 20px rgba(31, 90, 68, 0.2);
  --button-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 4px 0 rgba(18, 69, 50, 0.95), 0 16px 28px rgba(31, 90, 68, 0.26);
  --button-shadow-pressed: inset 0 2px 4px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 0 rgba(18, 69, 50, 0.95), 0 6px 12px rgba(31, 90, 68, 0.18);
  --mobile-menu-sticky-height: 0px;
  --fixed-link-bar-top: 0px;
  --fixed-link-bar-height: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(47, 111, 85, 0.07) 0, rgba(47, 111, 85, 0) 260px),
    linear-gradient(90deg, rgba(216, 154, 43, 0.1) 0 6px, transparent 6px 100%),
    var(--site-bg-color);
  color: var(--text-main);
  position: relative;
}

body::before,
body::after {
  display: none;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background:
    linear-gradient(135deg, rgba(23, 53, 47, 0.98) 0%, rgba(35, 79, 61, 0.98) 100%),
    var(--header-bg);
  color: var(--header-fg);
  padding: 1.05rem 1.4rem 1rem;
  border-bottom: 4px solid var(--accent-warm);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(20, 37, 30, 0.28), 0 4px 0 rgba(13, 32, 27, 0.42);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.header-copy {
  min-width: 0;
}

.header-image-link {
  display: inline-flex;
  border-radius: 8px;
  border: 1px solid rgba(255, 247, 232, 0.26);
  background: rgba(255, 247, 232, 0.08);
  padding: 0.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(9, 24, 20, 0.28);
}

.header-image {
  height: 92px;
  width: auto;
  border-radius: 6px;
  display: block;
}

.site-header h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.42rem, 2.4vw, 2rem);
  letter-spacing: 0;
  text-wrap: balance;
}

.site-header p {
  margin: 0.46rem 0 0;
  color: rgba(231, 238, 246, 0.86);
  max-width: 68ch;
}

.site-header .campaign-kicker {
  margin: 0 0 0.24rem;
  color: #1d1b17;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.campaign-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.72rem;
}

.campaign-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.16rem 0.52rem;
  border: 1px solid rgba(255, 247, 232, 0.2);
  border-left: 3px solid var(--accent-warm);
  border-radius: 6px;
  background: rgba(255, 247, 232, 0.08);
  color: rgba(255, 247, 232, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-user {
  font-size: 0.85rem;
  letter-spacing: 0;
  background: rgba(255, 247, 232, 0.12);
  border: 1px solid rgba(255, 247, 232, 0.24);
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
}

.site-link-bar {
  position: fixed;
  top: var(--fixed-link-bar-top);
  left: 0;
  right: 0;
  z-index: 19;
  border-bottom: 1px solid rgba(36, 51, 42, 0.14);
  background: linear-gradient(90deg, #f8f4ea 0%, #ede6d6 100%);
  box-shadow: 0 8px 20px rgba(31, 45, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-link-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 1.4rem;
}

.site-link-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.33rem 0.74rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  color: var(--link-chip-fg, #17352f);
  background: var(--link-chip-bg, #fffdf8);
  border: 1px solid rgba(36, 51, 42, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), inset 0 -2px 0 rgba(23, 53, 47, 0.08), 0 2px 0 rgba(36, 51, 42, 0.14), 0 7px 14px rgba(31, 45, 36, 0.08);
  transform: translate3d(0, 0, 0);
  transition: transform 140ms var(--ease-out-strong), box-shadow 140ms var(--ease-out-strong), border-color 140ms ease, filter 140ms ease;
}

.site-link-chip:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(47, 111, 85, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), inset 0 -2px 0 rgba(23, 53, 47, 0.1), 0 3px 0 rgba(36, 51, 42, 0.16), 0 12px 20px rgba(31, 45, 36, 0.13);
  filter: brightness(1.02);
}

.site-link-chip:active {
  transform: translate3d(0, 1px, 0) scale(0.985);
  box-shadow: inset 0 2px 5px rgba(23, 53, 47, 0.16), 0 1px 0 rgba(36, 51, 42, 0.16), 0 5px 10px rgba(31, 45, 36, 0.1);
}

.site-link-chip:focus-visible {
  outline: none;
  border-color: rgba(47, 111, 85, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -2px 0 rgba(23, 53, 47, 0.08), 0 2px 0 rgba(36, 51, 42, 0.14), 0 7px 14px rgba(31, 45, 36, 0.08), 0 0 0 3px rgba(47, 111, 85, 0.2);
}

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  margin-top: var(--fixed-link-bar-height);
  animation: page-in 380ms ease-out;
}

.layout.layout-menu-right {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.layout.layout-menu-right .content-panel {
  order: 1;
}

.layout.layout-menu-right .menu-panel {
  order: 2;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-panel,
.content-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow);
  position: relative;
}

.content-panel {
  background: var(--content-panel-bg, var(--panel-bg));
  perspective: 1800px;
}

.menu-panel {
  background: var(--menu-panel-bg, var(--panel-bg));
  position: sticky;
  top: calc(5.75rem + var(--fixed-link-bar-height));
  align-self: start;
}

.menu-panel h2,
.content-panel h2,
.content-panel h3,
.content-panel h4 {
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.72rem;
}

.menu-header h2 {
  margin: 0;
}

.menu-filter-toggle {
  width: auto;
  margin: 0;
  padding: 0.28rem 0.42rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
  text-shadow: none;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-filter-toggle:hover:not(:disabled),
.menu-filter-toggle:focus-visible {
  transform: none;
  filter: none;
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 85, 0.16);
}

.menu-filter-toggle.active {
  color: #17352f;
}

.menu-filter-panel {
  margin: 0 0 0.86rem;
  padding: 0.72rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 7px 14px rgba(31, 45, 36, 0.08);
}

.menu-filter-panel label:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.field-note {
  margin: -0.35rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.menu-position-fieldset {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.menu-position-fieldset legend {
  font-weight: 600;
  color: var(--text-main);
  padding: 0 0.25rem;
}

.menu-position-options {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.radio-option input[type="radio"] {
  width: auto;
  margin: 0;
  padding: 0;
}

.menu-search {
  margin-bottom: 0.75rem;
}

.menu-search label {
  margin-bottom: 0.35rem;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-row input {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}

.search-row button {
  width: auto;
  margin-top: 0;
  flex-shrink: 0;
}

input,
select,
textarea,
button {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(36, 51, 42, 0.2);
  border-radius: 6px;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out-strong), filter 140ms ease;
}

input,
select,
textarea {
  background: #fffefa;
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(31, 45, 36, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 85, 0.2);
}

button {
  border: 1px solid rgba(31, 90, 68, 0.78);
  background: linear-gradient(180deg, #2f6f55 0%, #1f5a44 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: var(--button-shadow);
  transform: translate3d(0, 0, 0);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
}

button:hover:not(:disabled) {
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--button-shadow-hover);
  filter: brightness(1.03);
}

button:active:not(:disabled) {
  transform: translate3d(0, 2px, 0) scale(0.985);
  box-shadow: var(--button-shadow-pressed);
  filter: brightness(0.98);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.58;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 0 rgba(36, 51, 42, 0.12);
}

button:focus-visible {
  box-shadow: var(--button-shadow), 0 0 0 3px rgba(47, 111, 85, 0.2);
}

.danger-btn {
  border-color: rgba(168, 71, 54, 0.82);
  background: linear-gradient(180deg, #b85645 0%, var(--danger) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 3px 0 rgba(120, 45, 34, 0.95), 0 12px 20px rgba(168, 71, 54, 0.2);
}

.danger-btn:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 4px 0 rgba(120, 45, 34, 0.95), 0 16px 28px rgba(168, 71, 54, 0.26);
}

.danger-btn:active:not(:disabled) {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.24), 0 1px 0 rgba(120, 45, 34, 0.95), 0 6px 12px rgba(168, 71, 54, 0.18);
}

.danger-btn:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 3px 0 rgba(120, 45, 34, 0.95), 0 12px 20px rgba(168, 71, 54, 0.2), 0 0 0 3px rgba(168, 71, 54, 0.2);
}

.nav-btn {
  background: rgba(255, 247, 232, 0.94);
  color: #17352f;
  border: 1px solid rgba(255, 247, 232, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -2px 0 rgba(23, 53, 47, 0.1), 0 3px 0 rgba(10, 29, 25, 0.5), 0 10px 18px rgba(8, 25, 21, 0.18);
  text-shadow: none;
}

.nav-btn-active {
  background: #d89a2b;
  border-color: #f6d28d;
  color: #17352f;
  box-shadow: inset 0 1px 0 rgba(255, 242, 191, 0.72), inset 0 -2px 0 rgba(91, 57, 9, 0.16), 0 3px 0 rgba(112, 77, 17, 0.88), 0 11px 18px rgba(30, 24, 13, 0.22);
}

.nav-btn:focus-visible {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -2px 0 rgba(23, 53, 47, 0.1), 0 3px 0 rgba(10, 29, 25, 0.5), 0 10px 18px rgba(8, 25, 21, 0.18), 0 0 0 3px rgba(246, 210, 141, 0.28);
}

.login-dialog {
  border: 1px solid rgba(36, 51, 42, 0.18);
  border-radius: 8px;
  width: min(460px, 92vw);
  padding: 1rem;
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 30px 60px rgba(31, 45, 36, 0.28), 0 5px 0 rgba(31, 45, 36, 0.1);
}

.login-dialog::backdrop {
  background: rgba(23, 53, 47, 0.56);
}

.image-dialog,
.file-dialog {
  border: 1px solid rgba(36, 51, 42, 0.18);
  border-radius: 8px;
  width: min(680px, 94vw);
  padding: 1rem;
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 30px 60px rgba(31, 45, 36, 0.28), 0 5px 0 rgba(31, 45, 36, 0.1);
}

.image-dialog::backdrop,
.file-dialog::backdrop,
.file-action-dialog::backdrop {
  background: rgba(23, 53, 47, 0.56);
}

.file-action-dialog,
.pig-dialog {
  border: 1px solid rgba(36, 51, 42, 0.18);
  border-radius: 8px;
  width: min(560px, 94vw);
  padding: 0;
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 30px 60px rgba(31, 45, 36, 0.28), 0 5px 0 rgba(31, 45, 36, 0.1);
}

.pig-dialog::backdrop {
  background: rgba(23, 53, 47, 0.56);
  backdrop-filter: blur(2px);
}

.pig-dialog-card {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  padding: 1.15rem;
  text-align: center;
}

.pig-illustration {
  width: min(180px, 52vw);
}

.pig-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.pig-shadow {
  fill: rgba(31, 45, 36, 0.14);
}

.pig-head,
.pig-ear {
  fill: #f5a7b8;
  stroke: #8d4a58;
  stroke-width: 4;
  stroke-linejoin: round;
}

.pig-cheek,
.pig-snout {
  fill: #ffd0da;
}

.pig-nostril,
.pig-eye {
  fill: #4a2930;
}

.pig-mouth,
.pig-collar {
  fill: none;
  stroke: #4a2930;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pig-shirt {
  fill: #2f6f55;
  stroke: #17352f;
  stroke-width: 4;
  stroke-linejoin: round;
}

.pig-button {
  fill: none;
  stroke: #fff7e8;
  stroke-width: 6;
  stroke-linecap: round;
}

.pig-dialog-copy h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
}

.pig-dialog-copy p {
  margin: 0.3rem auto;
  max-width: 28rem;
  font-weight: 700;
  color: #17352f;
}

.pig-dialog-copy small {
  display: block;
  color: var(--muted);
}

.pig-dialog-card .small-btn {
  width: min(100%, 12rem);
}

.success-dialog {
  border: 0;
  width: min(420px, 92vw);
  padding: 0;
  background: transparent;
  color: var(--text-main);
}

.success-dialog::backdrop {
  background: rgba(23, 53, 47, 0.5);
  backdrop-filter: blur(2px);
}

.success-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(36, 51, 42, 0.16);
  border-radius: 8px;
  padding: 1.45rem 1.35rem 1.25rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 181, 120, 0.2), transparent 42%),
    linear-gradient(180deg, #fffdf8 0%, #f8f4ea 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 30px 60px rgba(31, 45, 36, 0.28), 0 5px 0 rgba(31, 45, 36, 0.1);
  transform: translateY(4px) scale(0.96);
  opacity: 0;
}

.success-dialog-showing .success-card {
  animation: success-card-pop 260ms var(--ease-out-strong) forwards;
}

.success-tick {
  width: 104px;
  height: 104px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #31a85f, #178245);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.32), inset 0 -4px 0 rgba(11, 83, 41, 0.36), 0 14px 30px rgba(23, 130, 69, 0.34), 0 4px 0 rgba(11, 83, 41, 0.62);
  transform: scale(0.9);
}

.success-dialog-showing .success-tick {
  animation: success-tick-pop 420ms var(--ease-out-strong) 90ms forwards;
}

.success-tick svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.success-tick-ring,
.success-tick-mark {
  fill: none;
  stroke: #fffdf8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-tick-ring {
  stroke-width: 4;
  opacity: 0.45;
  stroke-dasharray: 239;
  stroke-dashoffset: 239;
}

.success-tick-mark {
  stroke-width: 8;
  stroke-dasharray: 62;
  stroke-dashoffset: 62;
}

.error-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 71, 54, 0.18), transparent 42%),
    linear-gradient(180deg, #fffdf8 0%, #f8f4ea 100%);
}

.error-cross {
  background: linear-gradient(180deg, #d65d4b, #a84736);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -4px 0 rgba(113, 38, 27, 0.36), 0 14px 30px rgba(168, 71, 54, 0.3), 0 4px 0 rgba(113, 38, 27, 0.6);
}

.error-cross-line {
  fill: none;
  stroke: #fffdf8;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.success-dialog-showing .success-tick-ring {
  animation: success-line-draw 420ms var(--ease-out-strong) 130ms forwards;
}

.success-dialog-showing .success-tick-mark {
  animation: success-line-draw 360ms var(--ease-out-strong) 240ms forwards;
}

.success-dialog-showing .error-cross-line-a {
  animation: success-line-draw 260ms var(--ease-out-strong) 210ms forwards;
}

.success-dialog-showing .error-cross-line-b {
  animation: success-line-draw 260ms var(--ease-out-strong) 320ms forwards;
}

.success-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.success-card p {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.success-report {
  max-height: min(36vh, 18rem);
  margin: 0.7rem 0 1rem;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  text-align: left;
}

.success-report.hidden {
  display: none;
}

.success-report-list {
  display: grid;
}

.success-report-row {
  display: grid;
  grid-template-columns: 5.1rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(36, 51, 42, 0.11);
  font-size: 0.9rem;
}

.success-report-row:last-child {
  border-bottom: 0;
}

.success-report-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(47, 111, 85, 0.12);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.success-report-row-failed .success-report-badge {
  background: rgba(168, 71, 54, 0.12);
  color: var(--danger);
}

.success-report-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.success-close-btn {
  min-width: 7rem;
}

.error-card p {
  overflow-wrap: anywhere;
}

.error-close-btn {
  min-width: 7rem;
}

.confirm-card p {
  margin-bottom: 1.05rem;
  overflow-wrap: anywhere;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.confirm-dialog-actions .small-btn {
  min-width: 7.4rem;
}

.secondary-btn {
  border-color: rgba(36, 51, 42, 0.22);
  background: linear-gradient(180deg, #fffefa 0%, #ece4d2 100%);
  color: var(--text-main);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 3px 0 rgba(36, 51, 42, 0.16), 0 10px 18px rgba(31, 45, 36, 0.12);
}

.secondary-btn:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 4px 0 rgba(36, 51, 42, 0.16), 0 14px 22px rgba(31, 45, 36, 0.14);
}

.secondary-btn:active:not(:disabled) {
  box-shadow: inset 0 2px 4px rgba(31, 45, 36, 0.12), 0 1px 0 rgba(36, 51, 42, 0.16);
}

.page-image-popout {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 10, 18, 0.88);
  overflow: auto;
  padding: 2rem;
}

.page-image-popout-img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(203, 214, 228, 0.42);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
}

.image-form h3,
.file-form h3 {
  margin-top: 0;
}

.image-form p,
.file-form p {
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

.file-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 1.15rem;
  background:
    radial-gradient(circle at 0 0, rgba(216, 154, 43, 0.14), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f8f4ea 100%);
}

.file-action-card .file-attachment-icon {
  width: 4.4rem;
  min-width: 4.4rem;
  height: 4.4rem;
  border-radius: 8px;
}

.file-action-copy {
  min-width: 0;
}

.file-action-copy h3 {
  margin: 0 0 0.25rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.file-action-copy p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.file-action-card .dialog-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.attachment-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.7rem;
  margin-top: 0;
  text-decoration: none;
  border: 1px solid rgba(31, 90, 68, 0.78);
  border-radius: 6px;
  background: linear-gradient(180deg, #2f6f55 0%, #1f5a44 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--button-shadow);
  transform: translate3d(0, 0, 0);
  transition: transform 140ms var(--ease-out-strong), box-shadow 140ms var(--ease-out-strong), filter 140ms ease;
}

.attachment-action-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attachment-action-link:hover {
  color: #ffffff;
  filter: brightness(1.03);
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--button-shadow-hover);
}

.attachment-action-link:active {
  filter: brightness(0.98);
  transform: translate3d(0, 2px, 0) scale(0.985);
  box-shadow: var(--button-shadow-pressed);
}

.attachment-action-link:focus-visible {
  outline: none;
  box-shadow: var(--button-shadow), 0 0 0 3px rgba(47, 111, 85, 0.24);
}

.file-action-card #close-attachment-action-btn {
  margin-top: 0;
}

.image-options-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.image-preview-wrap {
  margin-top: 0.8rem;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.6rem;
}

.image-preview {
  max-width: 100%;
  max-height: 260px;
  border-radius: 8px;
  border: 1px solid rgba(13, 26, 34, 0.16);
}

.dialog-actions,
.editor-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.auth-form,
.user-form {
  max-width: 540px;
}

.users-panel,
.mailshots-panel,
.editor-panel,
.config-panel,
.contact-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fffdf8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 24px rgba(31, 45, 36, 0.1), 0 2px 0 rgba(31, 45, 36, 0.06);
}

.contact-panel p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.contact-info-panel {
  margin: 0.4rem 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 7px 14px rgba(31, 45, 36, 0.08);
}

.contact-info-panel h4 {
  margin: 0 0 0.45rem;
}

.contact-directory-list {
  margin: 0.45rem 0 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.contact-directory-row {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fffefa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 2px 0 rgba(36, 51, 42, 0.06);
}

.contact-panel a {
  color: var(--accent-strong);
  font-weight: 600;
}

.contact-phone-row {
  margin: 0.25rem 0 0;
}

.contact-form {
  max-width: 700px;
  margin-top: 0.9rem;
}

.contact-form-title {
  margin: 0 0 0.5rem;
}

.config-panel h4 {
  margin: 1rem 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.config-save-sticky-wrap {
  position: sticky;
  top: calc(var(--fixed-link-bar-top) + var(--fixed-link-bar-height) + 0.55rem);
  z-index: 8;
  display: flex;
  justify-content: flex-start;
  margin: 0 0 0.65rem;
}

.config-save-sticky-btn {
  width: auto;
  min-width: 12rem;
  padding-inline: 0.95rem;
  box-shadow: var(--button-shadow-hover);
}

.page-save-sticky-wrap {
  position: sticky;
  top: calc(var(--fixed-link-bar-top) + var(--fixed-link-bar-height) + 0.55rem);
  z-index: 8;
  display: flex;
  justify-content: flex-start;
  margin: 0 0 0.65rem;
}

.page-save-sticky-btn {
  width: auto;
  min-width: 10rem;
  padding-inline: 0.95rem;
  box-shadow: var(--button-shadow-hover);
}

.config-section-separator {
  border: 0;
  height: 5px;
  margin: 1.15rem 0 0.95rem;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
}

.campaign-content {
  --page-open-origin-x: 50%;
  --page-open-origin-y: 18%;
  --page-open-duration: 0.8s;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
  margin-bottom: 1rem;
  background: #fffefa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 14px 28px rgba(31, 45, 36, 0.12), 0 3px 0 rgba(31, 45, 36, 0.07);
  transform-origin: var(--page-open-origin-x) var(--page-open-origin-y);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.campaign-content.rounded-page {
  border-radius: 8px;
}

.campaign-content::before,
.campaign-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.campaign-content.page-turn-from-left {
  transform-origin: 0 var(--page-open-origin-y);
}

.campaign-content.page-turn-from-right {
  transform-origin: 100% var(--page-open-origin-y);
}

.campaign-content.page-turn-from-left.page-opening {
  animation: page-turn-open-left var(--page-open-duration) cubic-bezier(0.14, 0.02, 0.24, 1.18);
}

.campaign-content.page-turn-from-right.page-opening {
  animation: page-turn-open-right var(--page-open-duration) cubic-bezier(0.14, 0.02, 0.24, 1.18);
}

.campaign-content.page-turn-from-left.page-opening::before,
.campaign-content.page-turn-from-right.page-opening::before {
  width: 48%;
  top: 0;
  bottom: 0;
}

.campaign-content.page-turn-from-left.page-opening::before {
  left: 0;
  right: auto;
  background: linear-gradient(
    90deg,
    rgba(6, 18, 26, 0.42) 0%,
    rgba(6, 18, 26, 0.2) 28%,
    rgba(255, 255, 255, 0.26) 52%,
    rgba(255, 255, 255, 0) 100%
  );
  clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%);
  transform-origin: left center;
  animation: page-curl-fold-left var(--page-open-duration) ease-out;
}

.campaign-content.page-turn-from-right.page-opening::before {
  left: auto;
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(6, 18, 26, 0.42) 0%,
    rgba(6, 18, 26, 0.2) 28%,
    rgba(255, 255, 255, 0.26) 52%,
    rgba(255, 255, 255, 0) 100%
  );
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 18% 100%, 0 50%);
  transform-origin: right center;
  animation: page-curl-fold-right var(--page-open-duration) ease-out;
}

.campaign-content.page-turn-from-left.page-opening::after {
  background: linear-gradient(90deg, rgba(10, 30, 40, 0.48) 0%, rgba(10, 30, 40, 0.14) 45%, rgba(255, 255, 255, 0) 100%);
  animation: page-turn-shadow-left var(--page-open-duration) ease-out;
}

.campaign-content.page-turn-from-right.page-opening::after {
  background: linear-gradient(270deg, rgba(10, 30, 40, 0.48) 0%, rgba(10, 30, 40, 0.14) 45%, rgba(255, 255, 255, 0) 100%);
  animation: page-turn-shadow-right var(--page-open-duration) ease-out;
}

@keyframes page-turn-open-left {
  0% {
    opacity: 0.24;
    transform: perspective(1800px) rotateY(-116deg) rotateX(6deg) rotateZ(1.8deg) translateX(-11.5%) scaleX(0.84) scaleY(0.97);
    filter: brightness(0.78) saturate(0.9);
  }
  58% {
    opacity: 0.82;
    transform: perspective(1800px) rotateY(-50deg) rotateX(2deg) rotateZ(0.65deg) translateX(-3.3%) scaleX(0.93) scaleY(0.99);
    filter: brightness(0.9) saturate(0.96);
  }
  82% {
    opacity: 1;
    transform: perspective(1800px) rotateY(11deg) rotateX(-1deg) rotateZ(-0.25deg) translateX(0.45%) scaleX(1.015) scaleY(1);
    filter: brightness(1) saturate(1);
  }
  100% {
    opacity: 1;
    transform: perspective(1800px) rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateX(0) scaleX(1) scaleY(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes page-turn-open-right {
  0% {
    opacity: 0.24;
    transform: perspective(1800px) rotateY(116deg) rotateX(6deg) rotateZ(-1.8deg) translateX(11.5%) scaleX(0.84) scaleY(0.97);
    filter: brightness(0.78) saturate(0.9);
  }
  58% {
    opacity: 0.82;
    transform: perspective(1800px) rotateY(50deg) rotateX(2deg) rotateZ(-0.65deg) translateX(3.3%) scaleX(0.93) scaleY(0.99);
    filter: brightness(0.9) saturate(0.96);
  }
  82% {
    opacity: 1;
    transform: perspective(1800px) rotateY(-11deg) rotateX(-1deg) rotateZ(0.25deg) translateX(-0.45%) scaleX(1.015) scaleY(1);
    filter: brightness(1) saturate(1);
  }
  100% {
    opacity: 1;
    transform: perspective(1800px) rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateX(0) scaleX(1) scaleY(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes page-curl-fold-left {
  0% {
    opacity: 0.96;
    transform: translateX(-9%) scaleX(1.38) skewY(13deg);
  }
  62% {
    opacity: 0.62;
    transform: translateX(10%) scaleX(0.94) skewY(-5deg);
  }
  100% {
    opacity: 0;
    transform: translateX(25%) scaleX(0.55) skewY(0deg);
  }
}

@keyframes page-curl-fold-right {
  0% {
    opacity: 0.96;
    transform: translateX(9%) scaleX(1.38) skewY(-13deg);
  }
  62% {
    opacity: 0.62;
    transform: translateX(-10%) scaleX(0.94) skewY(5deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-25%) scaleX(0.55) skewY(0deg);
  }
}

@keyframes page-turn-shadow-left {
  0% {
    opacity: 0.9;
    transform: translateX(-10%);
  }
  100% {
    opacity: 0;
    transform: translateX(7%);
  }
}

@keyframes page-turn-shadow-right {
  0% {
    opacity: 0.9;
    transform: translateX(10%);
  }
  100% {
    opacity: 0;
    transform: translateX(-7%);
  }
}

/* Dissolve transition — phase 1: fade out old page, phase 2: fade in new page */
.campaign-content.page-dissolve-out {
  animation: page-dissolve-fade-out calc(var(--page-open-duration) / 2) ease-in forwards;
}

@keyframes page-dissolve-fade-out {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

.campaign-content.page-dissolve.page-opening {
  animation: page-dissolve-fade-in calc(var(--page-open-duration) / 2) ease-out both;
}

@keyframes page-dissolve-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Slide transition — whole new page slides in from the binding side, covering old content */
.campaign-content.page-slide-from-left.page-opening {
  animation: page-slide-open-left var(--page-open-duration) cubic-bezier(0.25, 0.8, 0.25, 1);
}

.campaign-content.page-slide-from-right.page-opening {
  animation: page-slide-open-right var(--page-open-duration) cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes page-slide-open-left {
  0%   { clip-path: inset(0 100% 0 0 round 12px); transform: translateX(-40px); }
  100% { clip-path: inset(0 0% 0 0 round 12px);   transform: translateX(0); }
}

@keyframes page-slide-open-right {
  0%   { clip-path: inset(0 0 0 100% round 12px); transform: translateX(40px); }
  100% { clip-path: inset(0 0 0 0%   round 12px); transform: translateX(0); }
}

/* Curl transition — old page overlay rolls away diagonally revealing new page */
.campaign-content.page-curl-from-left.page-opening,
.campaign-content.page-curl-from-right.page-opening {
  animation: page-curl-open var(--page-open-duration) ease-out;
}

/* Overlay carries the look of the old page and peels away diagonally */
.campaign-content.page-curl-from-left.page-opening::before,
.campaign-content.page-curl-from-right.page-opening::before {
  background: var(--content-panel-bg, #fffdf8);
  z-index: 10;
  width: auto;
}

.campaign-content.page-curl-from-left.page-opening::before {
  animation: page-curl-peel-left var(--page-open-duration) cubic-bezier(0.3, 0, 0.6, 1) forwards;
}

.campaign-content.page-curl-from-right.page-opening::before {
  animation: page-curl-peel-right var(--page-open-duration) cubic-bezier(0.3, 0, 0.6, 1) forwards;
}

/* New content fades in beneath the peeling overlay */
@keyframes page-curl-open {
  0%   { opacity: 0.12; }
  40%  { opacity: 0.65; }
  100% { opacity: 1; }
}

/* Old-page overlay peels diagonally from top-right to bottom-left */
@keyframes page-curl-peel-left {
  0%   { opacity: 1;    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%); }
  35%  { opacity: 0.92; clip-path: polygon(0% 0%, 65% 0%, 100% 100%, 0% 100%, 0% 0%); }
  65%  { opacity: 0.68; clip-path: polygon(0% 0%, 20% 0%, 68% 100%, 0% 100%, 0% 0%); }
  100% { opacity: 0;    clip-path: polygon(0% 0%, -5% 0%, 0%  100%, 0% 100%, 0% 0%); }
}

/* Old-page overlay peels diagonally from top-left to bottom-right */
@keyframes page-curl-peel-right {
  0%   { opacity: 1;    clip-path: polygon(100% 0%, 0% 0%, 0% 100%, 100% 100%, 100% 0%); }
  35%  { opacity: 0.92; clip-path: polygon(100% 0%, 35% 0%, 0% 100%, 100% 100%, 100% 0%); }
  65%  { opacity: 0.68; clip-path: polygon(100% 0%, 80% 0%, 32% 100%, 100% 100%, 100% 0%); }
  100% { opacity: 0;    clip-path: polygon(100% 0%, 105% 0%, 100% 100%, 100% 100%, 100% 0%); }
}

@keyframes success-card-pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes success-tick-pop {
  55% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes success-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.bg-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}

.link-bar-bg-controls {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.link-bar-page-picker {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
}

.link-bar-page-picker button {
  width: auto;
  min-width: 130px;
}

@media (max-width: 560px) {
  .link-bar-page-picker {
    grid-template-columns: 1fr;
  }

  .link-bar-page-picker button {
    width: 100%;
  }
}

.editor-toolbar {
  margin-top: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 12px rgba(31, 45, 36, 0.08);
}

#editor-panel #editor-toolbar {
  position: sticky;
  top: calc(var(--fixed-link-bar-top) + var(--fixed-link-bar-height) + 3.65rem);
  z-index: 7;
  background: color-mix(in srgb, var(--surface) 94%, white);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 10px 22px rgba(31, 45, 36, 0.16), 0 2px 0 rgba(31, 45, 36, 0.08);
}

.page-editor {
  min-height: 260px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fffefa;
  box-shadow: inset 0 2px 4px rgba(31, 45, 36, 0.06);
}

.page-content {
  line-height: 1.5;
  border-radius: 8px;
  padding: 0.45rem 0.3rem;
  border: 0;
  background: transparent;
}

.ql-editor p,
.page-content p {
  margin: 0;
}

.page-content img {
  cursor: zoom-in;
}

.page-content .ql-size-small {
  font-size: 0.82em;
}

.page-content .ql-size-large {
  font-size: 1.45em;
}

.page-content .ql-size-huge {
  font-size: 2.1em;
}

.page-content .ql-align-center {
  text-align: center;
}

.page-content .ql-align-right {
  text-align: right;
}

.page-content .ql-align-justify {
  text-align: justify;
}

.file-attachment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 620px);
  min-height: 4.25rem;
  margin: 0.85rem 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(36, 51, 42, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefa 0%, #f8f4ea 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 16px rgba(31, 45, 36, 0.1), 0 2px 0 rgba(31, 45, 36, 0.06);
  color: var(--text-main);
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms var(--ease-out-strong), filter 140ms ease;
}

.file-attachment-card:hover {
  border-color: rgba(47, 111, 85, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px rgba(31, 45, 36, 0.14), 0 3px 0 rgba(31, 45, 36, 0.08);
  filter: brightness(1.01);
  transform: translate3d(0, -1px, 0);
}

.file-attachment-card:active {
  box-shadow: inset 0 2px 5px rgba(31, 45, 36, 0.12), 0 1px 0 rgba(31, 45, 36, 0.08), 0 6px 12px rgba(31, 45, 36, 0.1);
  transform: translate3d(0, 1px, 0) scale(0.99);
}

.file-attachment-card:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 16px rgba(31, 45, 36, 0.1), 0 0 0 3px rgba(47, 111, 85, 0.2);
}

.file-attachment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  min-width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(31, 90, 68, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #eaf4ef 0%, #dce9df 100%);
  color: #174936;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 rgba(31, 45, 36, 0.08);
}

.file-attachment-icon svg {
  width: 72%;
  height: 72%;
  display: block;
}

.file-icon-page {
  fill: #fffefa;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linejoin: round;
}

.file-icon-fold {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linejoin: round;
}

.file-icon-line,
.file-icon-image {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-icon-image {
  display: none;
}

.file-attachment-icon-img .file-icon-line {
  display: none;
}

.file-attachment-icon-img .file-icon-image {
  display: block;
}

.file-attachment-icon-pdf {
  color: #a84736;
  background: linear-gradient(180deg, #fff0ed 0%, #f8ded9 100%);
}

.file-attachment-icon-doc {
  color: #285f9c;
  background: linear-gradient(180deg, #edf5ff 0%, #dcecff 100%);
}

.file-attachment-icon-xls,
.file-attachment-icon-csv {
  color: #1f6b47;
  background: linear-gradient(180deg, #eaf6ef 0%, #d8ecdf 100%);
}

.file-attachment-icon-ppt {
  color: #9a4e1f;
  background: linear-gradient(180deg, #fff2e8 0%, #f4ddcd 100%);
}

.file-attachment-icon-img {
  color: #6b4aa0;
  background: linear-gradient(180deg, #f4efff 0%, #e7ddfb 100%);
}

.file-attachment-icon-zip {
  color: #6a5a20;
  background: linear-gradient(180deg, #fff9df 0%, #eee4b9 100%);
}

.file-attachment-copy {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.file-attachment-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-attachment-description {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.22;
}

.page-content ol,
.page-content ul {
  margin: 0.65rem 0;
  padding-left: 1.5rem;
}

.page-content ol {
  counter-reset: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}

.page-content ol > li,
.page-content ul > li {
  list-style-type: none;
  padding-left: 1.5em;
  position: relative;
}

.page-content ul > li::before,
.page-content ol > li::before {
  display: inline-block;
  margin-left: -1.5em;
  margin-right: 0.35em;
  min-width: 1.15em;
  text-align: right;
  white-space: nowrap;
}

.page-content ul > li::before {
  content: "\2022";
}

.page-content ol > li {
  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
  counter-increment: list-0;
}

.page-content ol > li::before {
  content: counter(list-0, decimal) ".";
}

.page-content ol > li.ql-indent-1 {
  counter-increment: list-1;
  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}

.page-content ol > li.ql-indent-1::before {
  content: counter(list-1, lower-alpha) ".";
}

.page-content ol > li.ql-indent-2 {
  counter-increment: list-2;
  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}

.page-content ol > li.ql-indent-2::before {
  content: counter(list-2, lower-roman) ".";
}

.page-content ol > li.ql-indent-3 {
  counter-increment: list-3;
  counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
}

.page-content ol > li.ql-indent-3::before {
  content: counter(list-3, decimal) ".";
}

.page-content ol > li.ql-indent-4 {
  counter-increment: list-4;
  counter-reset: list-5 list-6 list-7 list-8 list-9;
}

.page-content ol > li.ql-indent-4::before {
  content: counter(list-4, lower-alpha) ".";
}

.page-content ol > li.ql-indent-5 {
  counter-increment: list-5;
  counter-reset: list-6 list-7 list-8 list-9;
}

.page-content ol > li.ql-indent-5::before {
  content: counter(list-5, lower-roman) ".";
}

.page-content ol > li.ql-indent-6 {
  counter-increment: list-6;
  counter-reset: list-7 list-8 list-9;
}

.page-content ol > li.ql-indent-6::before {
  content: counter(list-6, decimal) ".";
}

.page-content ol > li.ql-indent-7 {
  counter-increment: list-7;
  counter-reset: list-8 list-9;
}

.page-content ol > li.ql-indent-7::before {
  content: counter(list-7, lower-alpha) ".";
}

.page-content ol > li.ql-indent-8 {
  counter-increment: list-8;
  counter-reset: list-9;
}

.page-content ol > li.ql-indent-8::before {
  content: counter(list-8, lower-roman) ".";
}

.page-content ol > li.ql-indent-9 {
  counter-increment: list-9;
}

.page-content ol > li.ql-indent-9::before {
  content: counter(list-9, decimal) ".";
}

.page-content .ql-indent-1:not(.ql-direction-rtl) {
  padding-left: 3em;
}

.page-content li.ql-indent-1:not(.ql-direction-rtl) {
  padding-left: 4.5em;
}

.page-content .ql-indent-2:not(.ql-direction-rtl) {
  padding-left: 6em;
}

.page-content li.ql-indent-2:not(.ql-direction-rtl) {
  padding-left: 7.5em;
}

.page-content .ql-indent-3:not(.ql-direction-rtl) {
  padding-left: 9em;
}

.page-content li.ql-indent-3:not(.ql-direction-rtl) {
  padding-left: 10.5em;
}

.page-content .ql-indent-4:not(.ql-direction-rtl) {
  padding-left: 12em;
}

.page-content li.ql-indent-4:not(.ql-direction-rtl) {
  padding-left: 13.5em;
}

.page-content .ql-indent-5:not(.ql-direction-rtl) {
  padding-left: 15em;
}

.page-content li.ql-indent-5:not(.ql-direction-rtl) {
  padding-left: 16.5em;
}

.page-content .ql-indent-6:not(.ql-direction-rtl) {
  padding-left: 18em;
}

.page-content li.ql-indent-6:not(.ql-direction-rtl) {
  padding-left: 19.5em;
}

.page-content .ql-indent-7:not(.ql-direction-rtl) {
  padding-left: 21em;
}

.page-content li.ql-indent-7:not(.ql-direction-rtl) {
  padding-left: 22.5em;
}

.page-content .ql-indent-8:not(.ql-direction-rtl) {
  padding-left: 24em;
}

.page-content li.ql-indent-8:not(.ql-direction-rtl) {
  padding-left: 25.5em;
}

.page-content .ql-indent-9:not(.ql-direction-rtl) {
  padding-left: 27em;
}

.page-content li.ql-indent-9:not(.ql-direction-rtl) {
  padding-left: 28.5em;
}

.color-select-box {
  display: inline-grid;
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 11.5rem);
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 7px 14px rgba(31, 45, 36, 0.07);
  transition: background-color 140ms ease, transform 140ms var(--ease-out-strong), box-shadow 140ms ease;
}

.color-select-box:focus-within {
  transform: translateY(-2px);
  background: #fffefa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 11px 18px rgba(31, 45, 36, 0.1);
}

.color-select-box input[type="color"] {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  min-height: 2.15rem;
  padding: 0.2rem;
}

.color-picker-row {
  display: grid;
  grid-template-columns: minmax(5.8rem, 1fr) 2.15rem;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.35rem;
  width: 100%;
}

.color-picker-row input[type="color"] {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.color-dropper-btn {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  color: inherit;
  background: #fffefa;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -2px 0 rgba(23, 53, 47, 0.08), 0 2px 0 rgba(36, 51, 42, 0.14), 0 7px 12px rgba(31, 45, 36, 0.08);
  text-shadow: none;
}

.color-dropper-btn:hover:not(:disabled) {
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(23, 53, 47, 0.1), 0 3px 0 rgba(36, 51, 42, 0.16), 0 10px 16px rgba(31, 45, 36, 0.12);
}

.color-dropper-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.color-dropper-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.gradient-angle-control {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.gradient-angle-control.hidden {
  display: none;
}

.gradient-angle-picker {
  --gradient-angle-deg: 90;
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--border);
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle at center, rgba(255, 253, 248, 0.9) 0 20px, rgba(255, 253, 248, 0.26) 21px 100%),
    conic-gradient(from 0deg, #2f6f55, #d89a2b, #a84736, #5f786a, #2f6f55);
  box-shadow:
    inset 0 0 0 4px rgba(255, 253, 248, 0.68),
    inset 0 2px 0 rgba(255, 255, 255, 0.56),
    0 4px 0 rgba(36, 51, 42, 0.16),
    0 14px 24px rgba(15, 23, 42, 0.14);
}

.gradient-angle-picker:active {
  cursor: grabbing;
}

.gradient-angle-picker:focus-visible {
  outline: 2px solid rgba(31, 90, 68, 0.82);
  outline-offset: 2px;
}

.gradient-angle-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 40%;
  border-radius: 6px;
  background: #17352f;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(calc(var(--gradient-angle-deg) * 1deg));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.gradient-angle-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #17352f;
  border: 1px solid rgba(255, 255, 255, 0.78);
  transform: translateX(-50%);
}

.gradient-angle-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.4);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
}

.gradient-angle-value {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.gradient-angle-value input[type="number"] {
  width: 4.8rem;
  min-height: 2rem;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(31, 45, 36, 0.08);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: #fffefa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.users-table th,
.users-table td {
  border: 1px solid var(--border);
  padding: 0.56rem;
  text-align: left;
}

.users-table th {
  background: #ece4d2;
}

.mailshot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 1rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 8px 18px rgba(31, 45, 36, 0.08);
}

.mailshot-tab {
  width: auto;
  margin: 0;
  padding: 0.5rem 0.78rem;
  border-color: rgba(36, 51, 42, 0.16);
  background: #fffefa;
  color: var(--text-main);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -2px 0 rgba(23, 53, 47, 0.07), 0 2px 0 rgba(36, 51, 42, 0.12), 0 7px 13px rgba(31, 45, 36, 0.08);
}

.mailshot-tab.active {
  background: #17352f;
  border-color: #d89a2b;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.26), 0 3px 0 rgba(9, 28, 24, 0.95), 0 12px 20px rgba(17, 43, 36, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.mailshot-tab-panel {
  display: none;
}

.mailshot-tab-panel.active {
  display: block;
}

.mailshots-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.mailshots-column,
.mailshot-compose-panel,
.mailshot-history-panel,
.mailshot-import-panel,
.mailing-list-members-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  background: #fffefa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 18px rgba(31, 45, 36, 0.08), 0 2px 0 rgba(31, 45, 36, 0.06);
}

.mailshot-compose-panel,
.mailshot-history-panel {
  margin-top: 0;
}

.mailshot-format-fieldset {
  margin: 0.3rem 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.mailshot-inline-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
}

.mailshot-inline-option input[type="radio"] {
  width: auto;
  margin: 0;
  padding: 0;
}

.mailshot-attachment-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.mailshot-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  background: var(--surface);
}

.mailshot-send-progress {
  display: grid;
  gap: 0.45rem;
  margin: 0.2rem 0 0.7rem;
  border: 1px solid rgba(47, 111, 85, 0.24);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  background: linear-gradient(180deg, rgba(47, 111, 85, 0.08), rgba(255, 253, 248, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px rgba(31, 45, 36, 0.08);
}

.mailshot-send-progress.hidden {
  display: none;
}

.mailshot-send-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.mailshot-send-progress-head strong {
  font-size: 0.98rem;
  min-width: 0;
}

.mailshot-send-progress-head span {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.mailshot-send-progress-bar {
  height: 0.6rem;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(31, 90, 68, 0.22);
  background: rgba(31, 45, 36, 0.1);
}

.mailshot-send-progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transition: width 180ms var(--ease-out-strong);
}

.mailshot-send-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mailshot-send-progress-complete {
  border-color: rgba(47, 111, 85, 0.36);
  background: linear-gradient(180deg, rgba(47, 111, 85, 0.12), rgba(255, 253, 248, 0.94));
}

.mailshot-send-progress-error {
  border-color: rgba(168, 71, 54, 0.34);
  background: linear-gradient(180deg, rgba(168, 71, 54, 0.1), rgba(255, 253, 248, 0.94));
}

.mailshot-send-progress-error .mailshot-send-progress-bar span {
  background: var(--danger);
}

.mailshot-attachment-meta {
  min-width: 0;
}

.mailshot-attachment-meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.mailshot-attachment-meta small {
  color: var(--muted);
}

.mailshot-import-panel {
  margin-top: 0;
}

.mailshot-history-row {
  cursor: pointer;
}

.mailshot-history-row:hover td,
.mailshot-history-row:focus-visible td {
  background: #f4efe2;
}

.mailshot-history-row.active td {
  background: #ece4d2;
}

.mailshot-history-detail {
  margin-top: 0.9rem;
}

.mailshot-history-preview {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  background: #fffefa;
}

.mailshot-history-preview h6 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.mailshot-history-preview-subject {
  margin: 0 0 0.45rem;
  font-weight: 700;
}

.mailshot-history-preview-attachments {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.mailshot-history-preview-attachments a {
  color: var(--accent-strong);
  font-weight: 600;
}

.mailshot-history-preview-body {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  background: #ffffff;
}

.mailshot-history-preview-body pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "DM Sans", sans-serif;
}

.mailshot-history-detail-wrap {
  max-height: 320px;
  overflow-y: auto;
}

.mailshot-recipient-status-sent {
  color: #1f6b43;
  font-weight: 700;
}

.mailshot-recipient-status-failed {
  color: #84291d;
  font-weight: 700;
}

#contact-import-file {
  margin-top: 0.3rem;
}

.contact-import-row-invalid {
  background: #fff3f2;
}

.contact-import-row-invalid td:last-child {
  color: #84291d;
  font-weight: 700;
}

.admin-table-wrap {
  max-height: 360px;
}

.admin-edit-form {
  margin-top: 0.9rem;
}

.mailing-list-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.mailing-list-card {
  width: 100%;
  text-align: left;
  background: #fffefa;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -2px 0 rgba(23, 53, 47, 0.07), 0 2px 0 rgba(36, 51, 42, 0.12), 0 8px 14px rgba(31, 45, 36, 0.08);
  text-shadow: none;
}

.mailing-list-card.active {
  background: #17352f;
  border-color: #d89a2b;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.mailing-list-card small {
  display: block;
  margin-top: 0.16rem;
  color: inherit;
  opacity: 0.78;
}

.mailing-list-members-section {
  margin-top: 0.9rem;
}

.mailing-list-members {
  display: grid;
  gap: 0.38rem;
  max-height: 340px;
  overflow: auto;
}

.mailing-list-members-section label {
  display: block;
  margin-bottom: 0.52rem;
}

.mailing-list-members-section input[type="search"] {
  margin-top: 0.28rem;
}

.mailing-list-members-section .mailing-list-select-all {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0.55rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fffefa;
  font-weight: 700;
}

.mailing-list-members-section .mailing-list-select-all input {
  width: auto;
  margin: 0;
}

.mailing-list-member-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 0 rgba(36, 51, 42, 0.06);
}

.mailing-list-member-option input {
  width: auto;
  margin-top: 0.18rem;
}

.mailing-list-member-option span {
  min-width: 0;
}

.mailing-list-member-option small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.users-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.status-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-active {
  background: #dff1e8;
  color: #174936;
}

.status-disabled {
  background: #f8ded9;
  color: #84291d;
}

.small-btn {
  width: auto;
  padding: 0.45rem 0.72rem;
}

.page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 56vh;
  overflow: auto;
}

.page-list button {
  text-align: left;
  background: #fffefa;
  color: var(--text-main);
  margin: 0.26rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), inset 0 -2px 0 rgba(23, 53, 47, 0.07), 0 2px 0 rgba(36, 51, 42, 0.12), 0 8px 14px rgba(31, 45, 36, 0.08);
  text-shadow: none;
}

.page-list button:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), inset 0 -2px 0 rgba(23, 53, 47, 0.08), 0 3px 0 rgba(36, 51, 42, 0.14), 0 12px 20px rgba(31, 45, 36, 0.13);
}

.page-list button.active {
  background: #17352f;
  border-color: #d89a2b;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 0 rgba(0, 0, 0, 0.26), 0 3px 0 rgba(9, 28, 24, 0.95), 0 12px 20px rgba(17, 43, 36, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}

.page-list-meta {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  line-height: 1.28;
  color: var(--menu-meta-color, var(--muted));
}

.page-list button.active .page-list-meta {
  color: rgba(239, 245, 251, 0.95);
}

#page-meta {
  color: var(--page-meta-color, var(--muted));
  font-size: 0.78rem;
}

.editor-actions button {
  flex: 1;
}

.site-footer {
  background: linear-gradient(135deg, #17352f 0%, #234f3d 100%);
  color: #fff7e8;
  padding: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -8px 24px rgba(31, 45, 36, 0.1);
}

.site-footer-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.site-footer a {
  color: inherit;
}

.site-footer-text {
  text-align: right;
}

.website-by-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e7eef7;
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(168, 185, 205, 0.55);
  background: rgba(255, 247, 232, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 2px 0 rgba(5, 17, 14, 0.52), 0 10px 18px rgba(5, 17, 14, 0.16);
  transform: translate3d(0, 0, 0);
  transition: background-color 150ms ease, border-color 150ms ease, transform 140ms var(--ease-out-strong), box-shadow 140ms var(--ease-out-strong);
}

.website-by-link:hover {
  background: rgba(255, 247, 232, 0.16);
  border-color: rgba(255, 247, 232, 0.44);
  transform: translate3d(0, -2px, 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 3px 0 rgba(5, 17, 14, 0.56), 0 14px 22px rgba(5, 17, 14, 0.2);
}

.website-by-link:active {
  transform: translate3d(0, 1px, 0) scale(0.985);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(5, 17, 14, 0.5), 0 6px 12px rgba(5, 17, 14, 0.16);
}

.website-by-link:focus-visible {
  outline: none;
  border-color: rgba(255, 247, 232, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 2px 0 rgba(5, 17, 14, 0.52), 0 10px 18px rgba(5, 17, 14, 0.16), 0 0 0 3px rgba(246, 210, 141, 0.28);
}

.website-by-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
}

.website-by-logo {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 4px;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
  border-color: var(--border);
}

.ql-snow .ql-stroke {
  stroke: #17352f;
}

.ql-snow .ql-fill {
  fill: #17352f;
}

.ql-snow .ql-picker {
  color: #17352f;
}

.ql-snow .ql-picker.ql-size .ql-picker-label::before {
  content: "12pt";
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value]::before {
  content: attr(data-value);
}

.ql-toolbar.ql-snow button {
  width: 28px;
  height: 24px;
  margin-top: 0;
  padding: 3px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  filter: none;
  text-shadow: none;
  transform: none;
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms var(--ease-out-strong);
}

.ql-toolbar.ql-snow button:hover:not(:disabled),
.ql-toolbar.ql-snow button:focus-visible {
  background: rgba(255, 253, 248, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 1px 0 rgba(36, 51, 42, 0.12), 0 4px 8px rgba(31, 45, 36, 0.08);
  filter: none;
  transform: none;
}

.ql-toolbar.ql-snow button:active:not(:disabled) {
  background: rgba(236, 228, 210, 0.78);
  box-shadow: inset 0 2px 4px rgba(31, 45, 36, 0.14);
  transform: translateY(1px) scale(0.96);
}

.ql-editor img.editor-image {
  border-radius: 8px;
  border: 1px solid rgba(13, 26, 34, 0.18);
  box-shadow: 0 10px 24px rgba(31, 45, 36, 0.14);
  cursor: pointer;
}

.ql-editor img.editor-image.is-selected-image {
  outline: 3px solid rgba(47, 111, 85, 0.45);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-main {
    width: 100%;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .site-link-bar-inner {
    padding: 0.5rem 0.95rem;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .menu-panel {
    position: static;
    order: 2;
  }

  .content-panel {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
