@font-face {
  font-family: Manrope;
  src: url("/assets/site/fonts/Manrope.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --ink: #252a2e;
  --muted: #626b71;
  --line: #e0e4e6;
  --surface: #fff;
  --accent: #695239;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f6f7f8;
  color: #252a2e;
  font-family: Manrope, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid #ccd1d5;
  background: #fff;
  color: #30383c;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.16s,
    border-color 0.16s;
}
button:hover,
.button:hover {
  background: #f3f5f5;
  border-color: #879298;
}
.primary {
  background: #695239;
  border-color: #695239;
  color: white;
}
.primary:hover {
  background: #513d29;
  border-color: #513d29;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
a {
  color: #695239;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid #b28d60;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 0;
  font-weight: 650;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  line-height: 1.35;
}
h3 {
  font-size: 17px;
  margin-bottom: 12px;
}
p {
  color: #626b71;
}
small,
.muted {
  color: #737c83;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid #e0e4e6;
  padding: 30px 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #3b342b;
  text-decoration: none;
  display: block;
  padding: 0 14px;
}
.wordmark span {
  display: block;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  color: #737c83;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #606b70;
  min-height: 40px;
}
.sidebar nav a:hover {
  background: #f5f6f7;
}
.sidebar nav a[aria-current] {
  background: #f3f0eb;
  color: #634c32;
  font-weight: 700;
}
.sidebar nav b {
  background: #695239;
  color: #fff;
  font-size: 11px;
  border-radius: 5px;
  padding: 1px 6px;
}
.sidebar form {
  margin-top: auto;
}
.logout {
  width: 100%;
  background: transparent;
  border: 0;
  color: #697279;
  justify-content: flex-start;
}
.workspace {
  margin-left: 238px;
}
.topbar {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-4);
  border-bottom: 1px solid #e0e4e6;
  background: #fff;
  color: #7a8389;
}
.topbar div {
  display: flex;
  gap: 24px;
  align-items: center;
}
.topbar a {
  font-size: 13px;
  text-decoration: none;
}
main {
  padding: var(--space-4);
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  gap: 18px;
}
.eyebrow {
  font-size: 12px;
  color: #788187;
  margin-bottom: 8px;
}
.owner-badge {
  border: 1px solid #e0e4e6;
  background: #fff;
  color: #737c83;
  padding: 5px 11px;
  border-radius: 30px;
  font-size: 12px;
}
.welcome {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 42px;
  background: white;
  border: 1px solid #e0e4e6;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.welcome > div:first-child {
  padding: 16px 0;
}
.welcome h2 {
  font-size: 30px;
  max-width: 330px;
}
.welcome p {
  max-width: 450px;
}
.publish-card {
  border-left: 1px solid #e0e4e6;
  padding-left: 32px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.metrics a {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e4e6;
  border-radius: 9px;
  padding: 24px;
  text-decoration: none;
  color: #626b71;
}
.metrics strong {
  font-size: 42px;
  line-height: 1.2;
  color: #42382c;
  font-weight: 500;
  margin: 12px 0;
}
.metrics small {
  font-size: 12px;
}
.panel {
  background: white;
  border: 1px solid #e0e4e6;
  border-radius: 9px;
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  min-width: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-3);
}
.section-title h2 {
  margin: 0;
}
.section-title > span {
  color: #737c83;
  font-size: 12px;
}
.shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.shortcuts a {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  text-decoration: none;
  gap: 7px;
  border-top: 1px solid #e0e4e6;
}
.shortcuts a:nth-child(odd) {
  border-right: 1px solid #e0e4e6;
}
.shortcuts a:hover {
  background: #f8faf8;
}
.shortcuts strong {
  font-size: 17px;
  font-weight: 600;
}
.shortcuts span {
  color: #737c83;
  font-size: 13px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  color: #414c52;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}
.field small {
  font-weight: 400;
}
.field input:not([type="checkbox"]):not([type="range"]),
.field textarea,
.field select,
input[type="search"],
.filters input:not([type="checkbox"]),
.filters select {
  width: 100%;
  padding: 11px 12px;
  min-height: 44px;
  background: #fff;
  border: 1px solid #cbd2d6;
  border-radius: 6px;
  color: #30383d;
  font-weight: 400;
  line-height: 1.5;
}
.field textarea {
  resize: vertical;
}
.field input[type="checkbox"],
.inline-check input {
  width: 20px;
  height: 20px;
  accent-color: #695239;
}
.field input[type="range"] {
  width: 100%;
  accent-color: #695239;
}
.field output {
  font-size: 12px;
  color: #758077;
}
.field input[type="color"] {
  min-height: 48px;
  padding: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-3);
}
.field-preview {
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  max-height: 190px;
  background: #eef1ee;
  border-radius: 5px;
}
.field-preview[hidden] {
  display: none;
}
.savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid #d9dfdc;
  background: #fffffff5;
  backdrop-filter: blur(10px);
  border-radius: 9px;
  padding: 16px 20px;
  margin-top: 24px;
}
.savebar span {
  color: #737c83;
  font-size: 12px;
}
.savebar.is-dirty {
  border-color: #b28d60;
}
.intro-note {
  max-width: 800px;
  margin-bottom: 25px;
}
.record > summary,
.copy-group > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  min-height: 36px;
}
.record summary > span:last-child,
.copy-group summary > span {
  font-size: 12px;
  color: #758087;
  font-weight: 400;
  white-space: nowrap;
}
summary::-webkit-details-marker {
  display: none;
}
.record[open] > summary,
.copy-group[open] > summary {
  border-bottom: 1px solid #e0e4e6;
  padding-bottom: 20px;
  margin-bottom: var(--space-3);
}
.record-actions {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-3);
}
.record-actions button,
.slide-actions button {
  font-size: 12px;
  padding: 8px 12px;
}
.danger-link {
  margin-left: auto;
  color: #a14136;
}
.gallery-editor {
  border-top: 1px solid #e0e4e6;
  padding-top: 22px;
}
.slide-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  padding: 20px;
  background: #f7f8f8;
  border: 1px solid #e0e4e6;
  border-radius: 7px;
  margin-bottom: 14px;
}
.slide-actions {
  display: flex;
  gap: 10px;
  grid-column: 1/-1;
}
.search {
  display: block;
  margin-bottom: var(--space-3);
}
.search span {
  display: block;
  margin-bottom: 8px;
}
.alert {
  padding: 16px 20px;
  border-radius: 7px;
  border: 1px solid;
  margin-bottom: 24px;
}
.success {
  background: #edf5ef;
  color: #2e6442;
  border-color: #c3ddca;
}
.error {
  background: #fff1ef;
  color: #9c3d31;
  border-color: #e6c2bb;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.media-card {
  padding: 18px;
}
.media-preview {
  aspect-ratio: 4/3;
  background: #edf0ed;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}
.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-meta {
  font-size: 11px;
  margin: 12px 0 20px;
  color: #7d858a;
}
.filters {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.filters label {
  font-size: 12px;
  color: #687279;
  flex: 1;
  min-width: 140px;
}
.filters input,
.filters select {
  margin-top: 6px;
}
.filters .inline-check {
  display: flex;
  gap: 7px;
  align-items: center;
  flex: 0 0 auto;
  min-width: auto;
  min-height: 44px;
  white-space: nowrap;
}
.filters a {
  padding: 10px;
}
.table-panel {
  padding: 0;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 12px;
  color: #737c83;
  background: #fafbfb;
  font-weight: 500;
}
td,
th {
  padding: 18px 20px;
  border-bottom: 1px solid #e5e8ea;
}
td {
  font-size: 13px;
}
td small {
  display: block;
  margin-top: 5px;
}
.lead-name {
  font-weight: 600;
  color: #654e35;
  text-decoration: none;
  white-space: nowrap;
}
.status {
  display: inline-block;
  padding: 4px 9px;
  background: #f0f2f3;
  color: #607078;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.status-new {
  background: #fff1d8;
  color: #886019;
}
.status-won {
  background: #e7f4ec;
  color: #286843;
}
.status-qualified,
.status-proposal {
  background: #edf0fa;
  color: #505f8e;
}
.status-lost {
  background: #f9e9e7;
  color: #924b40;
}
.empty {
  text-align: center;
  padding: 50px 25px;
}
.empty p {
  max-width: 500px;
  margin: auto;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 24px 0;
}
.pagination span {
  font-size: 13px;
  color: #737c83;
}
.lead-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0;
}
.lead-header h2 {
  font-size: 30px;
  margin-bottom: 6px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.lead-details {
  margin: 0;
}
.lead-details > div {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  border-bottom: 1px solid #e5e8ea;
  padding: 12px 0;
  gap: 16px;
}
.lead-details dt {
  color: #778187;
  font-size: 12px;
}
.lead-details dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.timeline-item {
  border-left: 2px solid #c2cfbf;
  padding: 0 0 15px 16px;
  margin-top: 18px;
}
.timeline-item p {
  color: #39494a;
  margin: 8px 0 0;
  white-space: pre-wrap;
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e4e6;
}
.history-row small {
  display: block;
  margin-top: 7px;
}
.health {
  list-style: none;
  padding: 0;
}
.health li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e0e4e6;
  padding: 10px 0;
  font-size: 12px;
}
.ok {
  color: #38704b;
}
.bad {
  color: #a34034;
}
.danger {
  border-color: #e5c9c1;
}
.auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f3f0eb;
}
.auth-box {
  background: #fff;
  border: 1px solid #d9e0dc;
  box-shadow: 0 12px 44px #263c2910;
  border-radius: 12px;
  padding: 42px;
  width: 100%;
  max-width: 450px;
}
.auth-box .wordmark {
  padding: 0;
  margin-bottom: 35px;
}
.auth-box h1 {
  font-size: 27px;
  margin-bottom: 15px;
}
.auth-box .primary {
  width: 100%;
}
.auth-box .muted {
  font-size: 12px;
  margin-top: 24px;
}
.admin-footer {
  padding: 8px 42px 30px;
  font-size: 11px;
  color: #8a9296;
}
.privacy main {
  max-width: 800px;
  margin: 50px auto;
}
.privacy h1 {
  margin: 24px 0;
}
.privacy p {
  font-size: 16px;
  line-height: 1.8;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
  }
  .workspace {
    margin-left: 210px;
  }
  main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .publish-card {
    border: 0;
    border-top: 1px solid #e0e4e6;
    padding: 24px 0 0;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics {
    gap: 12px;
  }
  .metrics a {
    padding: 18px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: relative;
    width: auto;
    padding: 18px;
    gap: 16px;
  }
  .sidebar .wordmark {
    padding: 0;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .sidebar nav a {
    white-space: nowrap;
    border: 1px solid #e0e4e6;
  }
  .sidebar form {
    position: absolute;
    right: 12px;
    top: 18px;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .topbar > span {
    display: none;
  }
  .topbar div {
    width: 100%;
    justify-content: space-between;
  }
  main {
    padding: 26px 18px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 28px;
  }
  .lead-header {
    display: block;
  }
  .welcome {
    padding: 24px;
  }
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .metrics a {
    padding: 14px;
  }
  .metrics strong {
    font-size: 32px;
  }
  .metrics small {
    display: none;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid {
    gap: 0 20px;
  }
  .shortcuts {
    grid-template-columns: 1fr;
  }
  .shortcuts a:nth-child(odd) {
    border-right: 0;
  }
  .savebar {
    padding: 12px;
    gap: 12px;
  }
  .savebar span {
    font-size: 11px;
  }
  .savebar button {
    padding: 10px;
  }
  .section-title {
    align-items: start;
    flex-direction: column;
  }
  .history-row {
    align-items: start;
  }
  .panel {
    padding: 20px;
  }
  .table-panel {
    padding: 0;
  }
  .admin-footer {
    padding: 14px 18px;
  }
}
@media (max-width: 520px) {
  .form-grid,
  .media-grid,
  .slide-editor {
    grid-template-columns: 1fr;
  }
  .metrics a {
    padding: 11px;
  }
  .metrics span {
    font-size: 11px;
  }
  .owner-badge {
    display: none;
  }
  .auth-box {
    padding: 28px;
  }
  .record > summary {
    font-size: 15px;
  }
  .record summary > span:last-child {
    display: none;
  }
  .record-actions {
    flex-wrap: wrap;
  }
  .danger-link {
    margin: 0;
  }
  .history-row {
    flex-direction: column;
  }
  .lead-details > div {
    grid-template-columns: 1fr;
  }
  .savebar span {
    display: none;
  }
  .savebar button {
    width: 100%;
  }
  .actions .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.restore-box {
  margin: 24px 0;
  border-top: 1px solid #e0e4e6;
  padding-top: 20px;
}
.restore-box summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Shared management controls: one spacing scale for lists, actions and forms. */
[hidden] {
  display: none !important;
}
.nav-group {
  display: block;
  padding: 16px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
  color: #8a6237;
  text-transform: uppercase;
}
.nav-group:first-child {
  padding-top: 0;
}
.panel > :last-child {
  margin-bottom: 0;
}
.panel > h2 {
  margin-bottom: 12px;
}
.panel > p {
  max-width: 80ch;
  margin-bottom: 24px;
}
.two-columns > *,
.workspace,
.bulk-controls > * {
  min-width: 0;
}
.actions {
  flex-wrap: wrap;
  gap: 12px;
}
.danger-button {
  color: #a02d25;
  border-color: #d5aaa5;
  background: #fff;
}
.danger-button:hover {
  background: #fff1ef;
  border-color: #a02d25;
}
.bulk-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.bulk-heading h3 {
  margin: 0;
}
.bulk-heading span {
  color: var(--muted);
  font-size: 13px;
}
.bulk-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}
.bulk-controls .field {
  flex: 1 1 200px;
  margin: 0;
}
.bulk-controls button {
  flex: 0 0 auto;
}
.help-text {
  font-size: 12px;
  margin: 16px 0 0;
  color: var(--muted);
}
.selection-cell {
  width: 56px;
  padding: 4px;
}
.select-hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.select-hit input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
tr:has([data-lead-select]:checked) {
  background: #faf6f0;
}
.confirmation-panel {
  max-width: 760px;
}
.confirmation-count {
  padding: 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f6f7f8;
  border-radius: 8px;
}
.confirmation-count strong {
  font-size: 36px;
  font-weight: 600;
}
.confirmation-samples {
  padding-left: 24px;
  margin-bottom: 24px;
}
.confirmation-samples li {
  padding: 4px 0;
}
.confirmation-form {
  margin-top: 24px;
  max-width: 440px;
}
.cancel-form {
  margin-top: 16px;
}
.maintenance-form {
  max-width: 480px;
}
.maintenance-details {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.maintenance-details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.maintenance-details p {
  font-size: 13px;
}
.media-card .field {
  margin-bottom: 16px;
}
.empty-note {
  padding: 16px 0;
}
@media (max-width: 760px) {
  .bulk-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .bulk-controls .field {
    flex: auto;
    width: 100%;
  }
  .panel {
    padding: 20px;
  }
  .table-panel {
    padding: 0;
  }
  .nav-group {
    padding-top: 4px;
  }
  .confirmation-count {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .sidebar .nav-group { display: none; }
}

/* Progressive disclosure for content and occasional operations. */
.copy-group>summary,.field-group>summary {cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-weight:650}
.copy-group>summary::after,.field-group>summary::after {content:'+';font-size:22px;font-weight:400;margin-left:auto}
.copy-group[open]>summary::after,.field-group[open]>summary::after{content:'−'}
.copy-group>summary>span{font-weight:400;font-size:12px;color:var(--muted)}
.copy-group>.form-grid,.field-group>.form-grid{margin-top:24px}
.copy-group:not([open]),.field-group:not([open]){padding-top:16px;padding-bottom:16px}
[data-text-item][hidden],.copy-group[hidden]{display:none!important}
.copy-group .field>span{font-size:12px;line-height:1.5;color:var(--muted)}
.copy-group textarea{min-height:88px}
.record>summary{gap:16px}.record>summary span:first-child{overflow-wrap:anywhere}
.maintenance-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.local-review-note{padding:10px 18px;background:#eee7dc;color:#51412e;text-align:center;font-size:12px}
@media(max-width:700px){.topbar{height:auto;min-height:68px;padding:16px;gap:16px;flex-wrap:wrap}.topbar div{gap:12px}main{padding:20px 16px}.panel{padding:20px}.form-grid{grid-template-columns:1fr}.savebar{gap:12px;flex-wrap:wrap}}

/* Section headings mirror the published page hierarchy. */
.editor-section-title{font-size:18px;line-height:1.4;color:#6b5236;margin:32px 0 14px;font-weight:700}
.editor-section-title:first-child{margin-top:20px}
