*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f5f2ee;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

button {
  background: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
}

.cms-body {
  display: flex;
  flex-direction: column;
}

.cms-width {
  width: min(calc(100% - 2.5rem), 1800px);
  margin-inline: auto;
}

.cms-nav {
  min-height: 74px;
  background: #171719;
  color: #fff;
}

.cms-nav__inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 1.6rem;
}

.cms-nav__brand {
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  text-decoration: none;
}

.cms-nav__brand span {
  margin-left: .4rem;
  color: #d875b0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.cms-nav__links,
.cms-account {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cms-account {
  margin-left: auto;
}

.cms-account__name {
  color: #d7d3d7;
  font-size: .78rem;
}

.cms-account__form {
  margin: 0;
}

.cms-nav__link {
  padding: .4rem 0;
  border: 0;
  color: #fff;
  font-size: .82rem;
  line-height: 1.2;
  text-decoration: none;
}

.cms-nav__link:hover,
.cms-nav__link:focus-visible {
  color: #e08cbd;
}

.cms-nav__button {
  cursor: pointer;
}

.cms-container {
  flex: 1 0 auto;
  padding-top: clamp(2.25rem, 4vw, 1.5rem);
  padding-bottom: 4rem;
}

.page-heading {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.eyebrow {
  margin-bottom: .8rem;
  color: #ad397f;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.page-heading h1 {
  margin-bottom: .65rem;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -.055em;
}

.page-heading .lead {
  font-size: 1.05rem;
  color: #656166;
}

.page-heading--compact {
  align-items: center;
  margin-bottom: 1.4rem;
}

.page-heading--compact .eyebrow {
  margin-bottom: .45rem;
}

.page-heading--compact h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.page-heading--compact h1.compact-page-title {
  margin: 0;
  color: #ad397f;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  align-items: start;
}

.seo-service-option[hidden] { display: none; }

.dashboard-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  border: 1px solid #ded8d2;
  border-radius: 18px;
  background: #fff;
}

.dashboard-card--link {
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dashboard-card--link:hover {
  transform: translateY(-2px);
  border-color: #c77aa8;
  color: inherit;
  box-shadow: 0 14px 32px rgba(31, 23, 28, .08);
}

.dashboard-card__number,
.dashboard-card__status {
  color: #ad397f;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-card__heading {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: .75rem;
}

.dashboard-card h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 500;
}

.dashboard-card p {
  max-width: 42ch;
  color: #656166;
}

.dashboard-card__status {
  display: inline-block;
  align-self: flex-start;
  margin-top: .8rem;
  padding-top: .55rem;
  border-top: 1px solid #e8afd0;
  color: #555156;
  letter-spacing: .03em;
  text-decoration: none;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .4rem;
}

.dashboard-metrics > div,
.dashboard-metrics > a {
  min-width: 0;
  padding-right: .75rem;
  border-right: 1px solid #e5dfda;
  color: inherit;
  text-decoration: none;
}

.dashboard-metrics > :last-child {
  padding-right: 0;
  border-right: 0;
}

.dashboard-metrics strong,
.dashboard-metrics span {
  display: block;
}

.dashboard-metrics strong {
  margin-bottom: .25rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
}

.dashboard-metrics span {
  color: #716d72;
  font-size: .74rem;
  line-height: 1.35;
}

.dashboard-metrics--links a:hover strong {
  color: #ad397f;
}

.dashboard-metric--warning strong {
  color: #9a3d36;
}

.dashboard-heading {
  margin-bottom: .9rem;
}

.dashboard-list {
  display: grid;
  margin-bottom: .2rem;
  border: 1px solid #e5dfda;
  border-radius: 9px;
  overflow: hidden;
}

.dashboard-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .15rem .75rem;
  padding: .48rem .7rem;
  color: #202124;
  text-decoration: none;
}

.dashboard-list__item + .dashboard-list__item { border-top: 1px solid #e5dfda; }
.dashboard-list__item:hover { background: #faf7f9; }

.dashboard-list__item strong { font-size: .84rem; }
.dashboard-list__item span { color: #716d72; font-size: .75rem; }
.dashboard-list__item a { color: #8d2767; }
.dashboard-list__item--due { background: #fff; }
.dashboard-list__item .dashboard-list__warning { color: #9a3d36; font-weight: 700; }

.dashboard-list--seo { margin-top: .1rem; }
.dashboard-seo__header,
.dashboard-list--seo .dashboard-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(5.5rem, .7fr) auto;
  align-items: center;
  column-gap: .7rem;
}
.dashboard-seo__header {
  padding: .45rem .7rem;
  background: #f8f6f5;
  color: #716d72;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dashboard-list--seo .dashboard-list__item { min-height: 2.45rem; padding: .4rem .7rem; }
.dashboard-list--seo .dashboard-list__item + .dashboard-list__item { border-top-color: #eee8e3; }
.dashboard-list--seo .dashboard-list__item a { text-decoration: none; }
.dashboard-list--seo .dashboard-list__item a:hover { text-decoration: underline; }
.dashboard-list--seo .dashboard-seo__customer { min-width: 0; color: #202124; }
.dashboard-list--seo .dashboard-seo__customer strong { font-weight: 600; }
.dashboard-list--seo .dashboard-seo__date { color: #716d72; }
.dashboard-list--seo .dashboard-list__warning { color: #9a3d36; }
.dashboard-list--seo .dashboard-seo__done { color: #347155; font-weight: 700; }
.dashboard-list--seo .dashboard-seo__action { justify-self: end; font-size: .78rem; font-weight: 700; white-space: nowrap; }

.seo-due { margin: 0 0 1.3rem; border: 1px solid #e5dfda; border-radius: 10px; background: #fff; overflow: hidden; }
.seo-due__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .65rem .85rem; background: #faf7f9; }
.seo-due__heading h2 { margin: 0; font-size: 1rem; }
.seo-due__heading span { color: #9a3d36; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.seo-due p { margin: 0; padding: .65rem .85rem; color: #716d72; font-size: .85rem; }
.seo-due__list { list-style: none; margin: 0; padding: 0; }
.seo-due__list li { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding: .5rem .85rem; font-size: .84rem; }
.seo-due__list li + li { border-top: 1px solid #eee8e3; }
.seo-due__list a { color: #8d2767; font-weight: 700; white-space: nowrap; }

.footer {
  padding: 1.5rem 0;
  border-top: 1px solid #ded8d2;
  color: #716d72;
  font-size: .82rem;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  width: min(400px, calc(100vw - 2rem));
  gap: .65rem;
  pointer-events: none;
}

.cms-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid #d8d3ce;
  border-left-width: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 20, 22, .18);
  animation: cms-toast-in .2s ease-out;
  pointer-events: auto;
}

.cms-toast--success {
  border-left-color: #3f8a58;
}

.cms-toast--error {
  border-left-color: #b64a42;
}

.cms-toast__icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e5f2e9;
  color: #24613a;
  font-size: .78rem;
  font-weight: 800;
}

.cms-toast--error .cms-toast__icon {
  background: #f8e8e6;
  color: #8c2e28;
}

.cms-toast p {
  margin: 0;
  color: #353136;
  font-size: .82rem;
  line-height: 1.45;
}

.cms-toast__close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #716d72;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cms-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

@keyframes cms-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cms-toast {
    animation: none;
  }
}

.auth-page {
  min-height: 100vh;
  background: #f5f2ee;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(340px, .85fr) minmax(480px, 1.15fr);
  min-height: 100vh;
}

.auth-brand {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  background: #171719;
  color: #fff;
}

.auth-brand__logo {
  font-size: 1.25rem;
  letter-spacing: -.04em;
}

.auth-brand__logo span {
  margin-left: .45rem;
  color: #d875b0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.auth-brand__copy {
  max-width: 560px;
  padding: 5rem 0;
}

.auth-brand__eyebrow {
  margin-bottom: 1.1rem;
  color: #d875b0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.auth-brand__copy h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.6rem, 4.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.065em;
}

.auth-brand__copy > p:last-child {
  max-width: 42ch;
  margin: 0;
  color: #c9c5c9;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.auth-brand__security {
  margin: 0;
  color: #aaa5aa;
  font-size: .75rem;
}

.auth-brand__security span {
  margin-right: .45rem;
  color: #d875b0;
  font-size: .6rem;
}

.auth-content {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(2rem, 7vw, 7rem);
}

.login-shell {
  width: 100%;
  max-width: 500px;
}

.login-card {
  width: 100%;
}

.login-card h1 {
  margin: 0 0 .65rem;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
}

.login-intro {
  max-width: 42ch;
  margin-bottom: 2.5rem;
  color: #656166;
  line-height: 1.55;
}

.login-validation:empty {
  display: none;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .82rem;
  font-weight: 700;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid #cfc7c0;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #202124;
  line-height: 1.35;
}

.form-control:focus,
.form-select:focus {
  border-color: #5d595c;
  box-shadow: 0 0 0 2px rgba(23, 23, 25, .1);
}

.login-remember {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.3rem 0 1.6rem;
  padding: 0;
}

.login-remember .form-check-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #ad397f;
}

.login-remember .form-check-label {
  color: #555156;
  font-size: .82rem;
}

.login-button {
  width: 100%;
  min-height: 54px;
  border-radius: 10px;
}

.login-button:hover,
.login-button:focus-visible {
  background: #ad397f;
  color: #fff;
}

.page-heading--actions,
.detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: #171719;
  color: #fff;
}

.button--primary:hover,
.button--primary:focus {
  background: #ad397f;
  color: #fff;
}

.button--yellow {
  border-color: #d7c22f;
  background: #ead84d;
  color: #202124;
}

.button--yellow:hover,
.button--yellow:focus {
  border-color: #d7c22f;
  background: #f1df53;
  color: #202124;
}

.button--secondary {
  border-color: #cfc7c0;
  background: #fff;
  color: #202124;
}

.button--secondary:hover,
.button--secondary:focus {
  border-color: #ad397f;
  color: #8d2767;
}

.button--text {
  color: #555156;
}

.customer-filters {
  padding: 1rem 1.1rem 0;
  border: 1px solid #ded8d2;
  border-radius: 14px;
  background: #fff;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(175px, .55fr) minmax(165px, .5fr) auto;
  gap: .85rem;
  align-items: end;
}

.customer-filters label {
  display: block;
  margin-bottom: .38rem;
  color: #555156;
  font-size: .74rem;
  font-weight: 700;
}

.form-field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .79rem;
  font-weight: 700;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
}

.filter-actions .button {
  min-height: 48px;
  white-space: nowrap;
}

.filter-reset {
  color: #8d2767;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

.filter-more {
  margin-top: 1rem;
  border-top: 1px solid #eee9e5;
}

.filter-more summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: .7rem;
  color: #4f4b4f;
  font-size: .78rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.filter-more summary::-webkit-details-marker {
  display: none;
}

.filter-more summary::after {
  margin-left: auto;
  color: #8d2767;
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
}

.filter-more[open] summary::after {
  content: "−";
}

.filter-more__state {
  padding: .2rem .45rem;
  border-radius: 999px;
  background: #f2edef;
  color: #716d72;
  font-size: .65rem;
  font-weight: 600;
}

.filter-more__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) minmax(220px, .65fr);
  gap: 1rem;
  align-items: end;
  padding: .25rem 0 1.1rem;
}

.filter-group {
  min-width: 0;
  margin: 0;
  padding: .85rem;
  border: 1px solid #e5dfda;
  border-radius: 10px;
}

.filter-group legend {
  width: auto;
  margin: 0 0 .55rem;
  padding: 0 .3rem;
  color: #202124;
  font-size: .76rem;
  font-weight: 700;
}

.filter-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.filter-check {
  display: flex !important;
  align-items: center;
  gap: .7rem;
  margin: 0 !important;
}

.filter-check--advanced {
  min-height: 86px;
  padding: .85rem;
  border: 1px solid #e5dfda;
  border-radius: 10px;
  background: #faf8f6;
}

.filter-check input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: #ad397f;
}

.filter-check span {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.filter-check small {
  color: #716d72;
  font-size: .68rem;
  font-weight: 400;
}

.list-summary {
  margin: 1.4rem 0 .65rem;
  color: #716d72;
  font-size: .82rem;
}

.list-summary strong {
  color: #202124;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid #ded8d2;
  border-radius: 14px;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 1400px;
  border-collapse: collapse;
}

.data-table th {
  padding: .9rem 1rem;
  border-bottom: 1px solid #ded8d2;
  color: #716d72;
  font-size: .7rem;
  letter-spacing: .07em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: .72rem 1rem;
  border-bottom: 1px solid #eee9e5;
  vertical-align: middle;
  font-size: .82rem;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbf8fa;
}

.data-table tr.is-archived {
  opacity: .62;
}

.data-table__number {
  text-align: right !important;
}

.data-table__date {
  color: #5f5b60;
  font-variant-numeric: tabular-nums;
}

.data-table__action {
  position: relative;
  text-align: right;
  white-space: nowrap;
}

.data-table__company {
  width: 30%;
  min-width: 290px;
  max-width: none;
}

.data-table__city {
  width: 105px;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table__email {
  max-width: 260px;
}

.data-table__action a,
.table-primary-link {
  color: #202124;
  font-weight: 700;
  text-decoration: none;
}

.data-table__action a:hover,
.table-primary-link:hover,
.table-tertiary:hover {
  color: #ad397f;
}

.table-sort {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: inherit;
  text-decoration: none;
}

.table-sort span {
  color: #ad397f;
  font-size: .75rem;
}

.table-sort:hover {
  color: #8d2767;
}

.table-secondary,
.table-tertiary,
.table-email {
  color: #716d72;
  font-size: .78rem;
}

.table-email {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.table-website-link {
  display: inline-flex;
  margin-left: .4rem;
  color: #8d2767;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.table-website-link:hover {
  color: #ad397f;
}

.table-tertiary {
  color: #8d2767;
  text-decoration: none;
}

.row-action-menu {
  position: relative;
  display: inline-block;
  text-align: left;
}

.row-action-menu summary {
  display: inline-grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border: 1px solid #ded8d2;
  border-radius: 8px;
  background: #fff;
  color: #555156;
  font-size: .82rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.row-action-menu summary::-webkit-details-marker {
  display: none;
}

.row-action-menu summary:hover,
.row-action-menu summary:focus-visible,
.row-action-menu[open] summary {
  border-color: #ad397f;
  color: #8d2767;
}

.row-action-menu__panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + .35rem);
  right: 0;
  display: grid;
  min-width: 155px;
  padding: .35rem;
  border: 1px solid #ded8d2;
  border-radius: 10px;
  background-color: #fff !important;
  background-image: none !important;
  color: #202124;
  opacity: 1;
  isolation: isolate;
  color-scheme: light;
  box-shadow: 0 12px 32px rgba(31, 23, 28, .14);
}

.row-action-menu.row-action-menu--floating .row-action-menu__panel {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  background-color: #fff !important;
}

.row-action-menu__panel a,
.row-action-menu__panel button {
  display: block;
  width: 100%;
  padding: .6rem .7rem;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #202124;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.row-action-menu__panel a:hover,
.row-action-menu__panel a:focus-visible,
.row-action-menu__panel button:hover,
.row-action-menu__panel button:focus-visible {
  background: #f7f1f4;
  color: #8d2767;
}

.row-action-menu__panel form {
  margin: 0;
}

.row-action-menu__panel .row-action-menu__danger {
  color: #9d2929;
}

.row-action-menu__panel .row-action-menu__danger:hover,
.row-action-menu__panel .row-action-menu__danger:focus-visible {
  background: #fff0f0;
  color: #7d1717;
}

.customer-table--desktop tbody tr:nth-last-child(-n + 3) .row-action-menu__panel {
  top: auto;
  bottom: calc(100% + .35rem);
}

.row-action-menu--mobile {
  position: absolute;
  z-index: 5;
  top: .8rem;
  right: .8rem;
}

.status-badge,
.warning-label,
.archived-label {
  display: inline-flex;
  padding: .35rem .55rem;
  border-radius: 999px;
  background: #eee9e5;
  color: #4d494d;
  font-size: .68rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-interested,
.status-customer {
  background: #e5f2e9;
  color: #24613a;
}

.status-followup,
.status-contacted {
  background: #f7e8f1;
  color: #8d2767;
}

.status-notinterested {
  background: #f1eeee;
  color: #686164;
}

.warning-label {
  margin-top: .4rem;
  background: #fff0d8;
  color: #7a4b00;
}

.warning-label--compact {
  margin: 0 0 0 .35rem;
  padding: .2rem .4rem;
  font-size: .62rem;
}

.archived-label {
  margin-left: .3rem;
}

.customer-list--mobile {
  display: none;
}

.empty-state {
  padding: clamp(2rem, 8vw, 5rem);
  border: 1px dashed #cfc7c0;
  border-radius: 14px;
  text-align: center;
}

.empty-state h2 {
  font-size: 1.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
  color: #716d72;
}

.notice {
  margin-bottom: 1.5rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 700;
}

.notice--success {
  border: 1px solid #b9d8c2;
  background: #eaf5ed;
  color: #245e37;
}

.editor-form {
  max-width: 1000px;
}

.form-page-heading {
  max-width: 1000px;
}

.customer-editor,
.customer-form-page-heading {
  max-width: 1500px;
}

.customer-form-page-heading {
  margin-bottom: 1.4rem;
}

.customer-form-page-heading h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.customer-form-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.customer-form-title-row h1 {
  margin-bottom: 0;
}

.customer-client-badge {
  padding: .45rem .7rem;
  font-size: .66rem;
  letter-spacing: .08em;
}

.customer-client-badge.is-hidden {
  display: none;
}

.customer-client-relation.is-client .form-select {
  border-color: #74a884;
  background-color: #eef7f1;
  box-shadow: 0 0 0 2px rgba(36, 97, 58, .08);
}

.customer-editor .form-section {
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.form-section {
  display: grid;
  grid-template-columns: minmax(210px, .42fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid #ded8d2;
  border-radius: 16px;
  background: #fff;
}

.form-section__heading {
  display: flex;
  gap: .9rem;
}

.form-section__heading > span,
.detail-card__eyebrow {
  color: #ad397f;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.form-section__heading h2 {
  margin: -.25rem 0 .45rem;
  font-size: 1.35rem;
  font-weight: 500;
}

.form-section__heading p {
  color: #716d72;
  font-size: .82rem;
}

.form-section--full-width {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.form-section__heading--compact {
  align-items: baseline;
  gap: .55rem;
}

.form-section__heading--compact h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.form-field {
  margin: 0;
}

.form-field--wide {
  grid-column: 1 / -1;
}

@media (min-width: 1200px) {
  .customer-editor .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-editor .customer-field--span-two {
    grid-column: span 2;
  }
}

textarea.form-control {
  height: auto;
  line-height: 1.5;
  resize: vertical;
}

.text-danger,
.validation-summary {
  display: block;
  margin-top: .35rem;
  color: #a32020 !important;
  font-size: .76rem;
}

.validation-summary:empty,
.validation-summary.validation-summary-valid {
  display: none;
}

.validation-summary ul {
  margin: 0 0 1rem;
  padding: .8rem 1rem .8rem 2rem;
  border: 1px solid #e2b8b8;
  border-radius: 10px;
  background: #fff4f4;
}

.checkbox-panel {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid #ded8d2;
  border-radius: 10px;
  background: #faf8f6;
}

.checkbox-panel--warning {
  border-color: #e8c58d;
  background: #fff8ec;
}

.checkbox-panel input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  accent-color: #ad397f;
}

.checkbox-panel label {
  margin: 0 0 .25rem;
}

.checkbox-panel p {
  margin: 0;
  color: #716d72;
  font-size: .78rem;
}

.customer-contact-editors,
.customer-add-contact {
  grid-column: 2;
}

.customer-contact-editors {
  display: grid;
  gap: .85rem;
}

.customer-add-contact {
  justify-self: start;
}

.customer-contact-editor {
  padding: 1rem;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #faf9f7;
}

.customer-contact-editor.is-email-blocked {
  border-color: #e8c58d;
  background: #fffdf8;
}

.customer-contact-editor__heading,
.customer-contact-editor__actions,
.customer-contact-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}

.customer-contact-editor__heading {
  margin-bottom: .9rem;
}

.customer-contact-editor__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.customer-contact-number {
  color: #ad397f;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.customer-contact-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
}

.customer-contact-primary input {
  width: 17px;
  height: 17px;
  accent-color: #ad397f;
}

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

.customer-contact-list {
  display: grid;
  gap: 1rem;
}

.customer-contact-card + .customer-contact-card {
  padding-top: 1rem;
  border-top: 1px solid #e3ddd7;
}

.customer-contact-card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.customer-contact-card .detail-muted {
  margin: .2rem 0 0;
}

.customer-contact-card .detail-list {
  margin-top: .65rem;
}

.form-actions {
  display: flex;
  gap: .7rem;
  padding: 1rem 0 2rem;
}

.detail-heading {
  margin-bottom: 2rem;
}

.detail-heading h1 {
  margin: .65rem 0 .35rem;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -.055em;
}

.detail-heading p {
  margin: 0;
  color: #716d72;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #716d72;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.detail-heading__status {
  display: flex;
  gap: .35rem;
}

.detail-actions {
  display: flex;
  gap: .55rem;
}

.detail-actions form {
  margin: 0;
}

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

.detail-card {
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid #ded8d2;
  border-radius: 15px;
  background: #fff;
}

.detail-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 1200px) {
  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-card--history {
    grid-column: 1;
  }

  .detail-card--wide {
    grid-column: 2 / -1;
  }
}

.detail-card h2 {
  margin: 1.4rem 0 .2rem;
  font-size: 1.45rem;
  font-weight: 500;
}

.detail-list {
  margin: 1.35rem 0 0;
}

.detail-list > div {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-top: 1px solid #eee9e5;
}

.detail-list dt {
  color: #716d72;
  font-size: .75rem;
  font-weight: 400;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .84rem;
  font-weight: 600;
}

.detail-list a {
  color: #8d2767;
}

.detail-muted {
  color: #716d72;
}

.warning-box {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: 1rem;
  padding: .8rem;
  border: 1px solid #e8c58d;
  border-radius: 9px;
  background: #fff8ec;
  color: #714600;
  font-size: .77rem;
}

.comment-text {
  margin: 1.25rem 0 0;
  white-space: pre-wrap;
}

.button--danger {
  border-color: #9f2525;
  background: #9f2525;
  color: #fff;
}

.button--danger:hover,
.button--danger:focus-visible {
  border-color: #7f1717;
  background: #7f1717;
  color: #fff;
}

.button--danger-outline {
  border-color: #c98d8d;
  background: transparent;
  color: #8e2020;
}

.button--danger-outline:hover,
.button--danger-outline:focus-visible {
  border-color: #b86f6f;
  background: #fff1f1;
  color: #761717;
}

.campaign-list--mobile {
  display: none;
}

.campaign-editor {
  max-width: 1600px;
}

.campaign-form-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.campaign-form-actions--top {
  padding-top: 0;
  padding-bottom: 1rem;
}

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

.campaign-message {
  min-height: 560px;
  padding: 1rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: .8rem;
  line-height: 1.55;
  resize: vertical;
}

.campaign-html-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.campaign-basics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, .45fr);
  gap: 1rem;
}

.campaign-live-preview__label {
  display: block;
  margin: 0;
  font-size: .76rem;
  font-weight: 700;
}

.campaign-preview-toolbar {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .45rem;
}

.campaign-preview-toolbar .detail-card__eyebrow {
  margin: 0;
}

.campaign-preview-toolbar--editor {
  margin: 0 0 .8rem;
  padding: .65rem .75rem;
  border: 1px solid #d5cec8;
  border-radius: 10px;
  background: #f7f4ef;
}

.campaign-preview-display-options {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #59565b;
  font-size: .76rem;
  font-weight: 700;
}

.campaign-preview-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #c9c1ba;
  border-radius: 8px;
  background: #fff;
}

.campaign-preview-size-button {
  min-height: 32px;
  padding: .4rem .8rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b484d;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}

.campaign-preview-size-button:hover,
.campaign-preview-size-button:focus-visible {
  background: #f1ede8;
  color: #222326;
}

.campaign-preview-size-button.is-active {
  background: #222326;
  color: #fff;
}

.campaign-preview-frame-shell {
  overflow-x: auto;
  padding: .6rem;
  border-radius: 12px;
  background: #e9e5df;
}

.campaign-live-preview iframe,
.campaign-detail-preview-frame {
  display: block;
  width: 100%;
  height: 600px;
  border: 1px solid #d5cec8;
  border-radius: 10px;
  background: #f5f2ee;
  transition: width 180ms ease;
}

.campaign-detail-preview-frame {
  margin: 0;
}

.campaign-preview-frame-shell.is-mobile iframe {
  width: 390px;
  max-width: 100%;
  margin-inline: auto;
}

.field-help {
  display: block;
  margin-top: .45rem;
  color: #716d72;
  font-size: .75rem;
}

.recipient-toolbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .7rem;
}

.recipient-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #fff;
}

.recipient-company-search {
  grid-column: 1 / -1;
}

.recipient-date-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.recipient-date-filter legend {
  grid-column: 1 / -1;
  margin-bottom: .25rem;
  padding: 0;
  font-size: .76rem;
  font-weight: 700;
}

.recipient-date-filter label span {
  display: block;
  margin-bottom: .3rem;
  color: #716d72;
  font-size: .7rem;
}

.recipient-filter-reset {
  justify-self: start;
  min-height: 38px;
  align-self: end;
}

.recipient-toolbar strong {
  margin-right: auto;
  font-size: .8rem;
}

.recipient-toolbar .button {
  min-height: 34px;
  padding: .4rem .55rem;
  border: 0;
  font-size: .72rem;
}

.recipient-list {
  max-height: 460px;
  overflow: auto;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #fff;
}

.recipient-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(80px, .3fr);
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid #eee9e5;
  cursor: pointer;
}

.recipient-option[hidden],
.recipient-option.is-filtered-out {
  display: none !important;
}

.recipient-option:last-child {
  border-bottom: 0;
}

.recipient-option:hover {
  background: #fbf8f5;
}

.recipient-option input {
  width: 18px;
  height: 18px;
  accent-color: #ad397f;
}

.recipient-option span,
.recipient-option small {
  display: block;
  min-width: 0;
}

.recipient-option strong {
  font-size: .84rem;
}

.recipient-option small,
.recipient-option em {
  color: #716d72;
  font-size: .74rem;
  font-style: normal;
}

.campaign-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}

.campaign-summary-grid > div {
  padding: 1rem 1.1rem;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #fff;
}

.campaign-summary-grid span,
.campaign-summary-grid strong {
  display: block;
}

.campaign-summary-grid span {
  color: #716d72;
  font-size: .72rem;
}

.campaign-summary-grid strong {
  margin-top: .2rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.campaign-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .7fr);
  gap: 1rem;
  align-items: start;
}

.campaign-controls {
  display: grid;
  gap: 1rem;
}

.email-preview {
  max-width: 680px;
  margin: 1.25rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid #e6e0d8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(32, 33, 36, .07);
}

.email-preview__brand {
  margin-bottom: 1.8rem;
  font-size: 1.25rem;
  letter-spacing: -.03em;
}

.email-preview__body {
  min-height: 150px;
  white-space: pre-wrap;
  line-height: 1.65;
}

.email-preview__footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e6e0d8;
  color: #716d72;
  font-size: .72rem;
}

.stack-form {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.stack-form .button {
  width: 100%;
}

.confirm-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: start;
  font-size: .78rem;
  cursor: pointer;
}

.confirm-check input {
  width: 18px;
  height: 18px;
  accent-color: #ad397f;
}

.campaign-scheduled-heading {
  margin-top: .65rem !important;
  color: #8d2767 !important;
  font-size: .78rem !important;
  font-weight: 700;
}

.campaign-schedule-divider {
  display: flex;
  gap: .7rem;
  align-items: center;
  color: #8a8589;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.campaign-schedule-divider::before,
.campaign-schedule-divider::after {
  height: 1px;
  flex: 1;
  background: #e3ddd7;
  content: "";
}

.campaign-schedule-time {
  display: grid;
  gap: .15rem;
  margin: .45rem 0 0;
}

.campaign-schedule-time strong {
  font-size: 1.2rem;
  font-weight: 500;
}

.campaign-schedule-time span,
.campaign-send-card .form-field small {
  color: #716d72;
  font-size: .72rem;
}

.campaign-cancel-schedule {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e3ddd7;
}

.campaign-cancel-schedule .button {
  width: 100%;
}

.campaign-recipients {
  margin-top: 1.5rem;
}

.campaign-recipients h2 {
  font-size: 1.15rem;
  font-weight: 500;
}

.recipient-error {
  display: block;
  max-width: 240px;
  margin-top: .25rem;
  color: #8e2020;
}

.unsubscribe-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
}

.unsubscribe-card {
  width: min(100%, 620px);
  padding: clamp(2rem, 7vw, 4rem);
  border: 1px solid #ded8d2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(32, 33, 36, .1);
}

.unsubscribe-brand {
  margin-bottom: 3rem;
  font-size: 1.25rem;
  letter-spacing: -.03em;
}

.unsubscribe-card h1 {
  font-size: clamp(2rem, 7vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -.05em;
}

.unsubscribe-card form {
  margin-top: 1.5rem;
}

.notice--error {
  margin-bottom: 1.25rem;
  padding: .9rem 1rem;
  border: 1px solid #e2b8b8;
  border-radius: 10px;
  background: #fff4f4;
  color: #8c2020;
}

.client-label {
  background: #e5f2e9;
  color: #24613a;
}

.client-label--compact {
  margin-left: .4rem;
  padding: .2rem .42rem;
  font-size: .61rem;
  vertical-align: middle;
}

.worklog-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}

.worklog-summary-grid--combined {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.worklog-summary-grid--combined > div {
  padding: .75rem .9rem;
}

.worklog-summary-grid--combined span {
  font-size: .68rem;
}

.worklog-summary-grid--combined strong {
  font-size: 1.2rem;
}

.worklog-summary-grid--combined .worklog-hours-target {
  display: inline;
  color: #716d72;
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
}

.worklog-summary-grid--combined small {
  display: block;
  margin-top: .3rem;
  color: #716d72;
  font-size: .66rem;
}

.worklog-summary-grid--combined small a {
  color: #8d2767;
  font-weight: 700;
}

@media (min-width: 1200px) {
  .worklog-summary-grid--combined {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.worklog-settings-grid {
  align-items: stretch;
}

.worklog-settings-grid .form-field small {
  display: block;
  margin-top: .45rem;
  color: #716d72;
  font-size: .72rem;
  line-height: 1.45;
}

.worklog-target-preview {
  display: flex;
  min-height: 122px;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem;
  border: 1px solid #e3c6d7;
  border-radius: 10px;
  background: #faf3f7;
}

.worklog-target-preview span,
.worklog-target-preview small {
  color: #716d72;
  font-size: .72rem;
}

.worklog-target-preview strong {
  margin: .25rem 0;
  font-size: 1.5rem;
  font-weight: 500;
}

.worklog-target-preview--wide {
  grid-column: 1 / -1;
}

.worklog-target-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin: .8rem 0;
}

.worklog-target-breakdown div {
  padding-right: .75rem;
  border-right: 1px solid #e3c6d7;
}

.worklog-target-breakdown div:last-child {
  padding-right: 0;
  border-right: 0;
}

.worklog-target-breakdown dt {
  color: #716d72;
  font-size: .68rem;
}

.worklog-target-breakdown dd {
  margin: .2rem 0 0;
  font-size: .86rem;
  font-weight: 700;
}

@media (max-width: 767px) {
  .worklog-target-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worklog-target-breakdown div:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }
}

@media (min-width: 1100px) {
  .worklog-settings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.worklog-list-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-left: auto;
}

.worklog-list-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 .75rem;
}

.worklog-hours-total {
  text-align: left;
}

.worklog-hours-total span,
.worklog-hours-total strong {
  display: block;
}

.worklog-hours-total span {
  color: #716d72;
  font-size: .72rem;
}

.worklog-hours-total strong {
  margin-top: .1rem;
  font-size: 1rem;
  font-weight: 700;
}

.worklog-display-switch {
  display: inline-flex;
  padding: .25rem;
  border: 1px solid #ded8d2;
  border-radius: 10px;
  background: #fff;
}

.worklog-display-switch a {
  min-width: 88px;
  padding: .55rem .9rem;
  border-radius: 7px;
  color: #555156;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.worklog-display-switch a:hover,
.worklog-display-switch a:focus-visible {
  color: #8d2767;
}

.worklog-display-switch a.is-active {
  background: #171719;
  color: #fff;
}

.worklog-calendar-section {
  margin-top: 1.5rem;
}

.worklog-calendar-heading {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: .75rem;
}

.worklog-calendar-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  text-transform: capitalize;
}

.worklog-calendar-heading a {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid #cfc7c0;
  border-radius: 9px;
  background: #fff;
  color: #202124;
  font-size: 1.15rem;
  text-decoration: none;
  place-items: center;
}

.worklog-calendar-heading a:last-child {
  justify-self: end;
}

.worklog-calendar-heading a:hover,
.worklog-calendar-heading a:focus-visible {
  border-color: #ad397f;
  color: #8d2767;
}

.worklog-calendar-wrap {
  overflow-x: auto;
  border: 1px solid #ded8d2;
  border-radius: 14px;
  background: #fff;
}

.worklog-calendar {
  display: grid;
  min-width: 980px;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
}

.worklog-calendar__weekday {
  padding: .7rem .8rem;
  border-right: 1px solid #3b393c;
  background: #252326;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.worklog-calendar__weekday:nth-child(7) {
  border-right: 0;
}

.worklog-calendar__day {
  min-height: 150px;
  padding: .7rem;
  border-top: 1px solid #e4dfda;
  border-right: 1px solid #e4dfda;
  background: #fff;
}

.worklog-calendar__day:nth-child(7n) {
  border-right: 0;
}

.worklog-calendar__day.is-outside {
  background: #f8f6f3;
}

.worklog-calendar__day.is-today {
  box-shadow: inset 0 0 0 2px #ad397f;
}

.worklog-calendar__date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
}

.worklog-calendar__date time {
  font-size: .8rem;
  font-weight: 700;
}

.worklog-calendar__date strong {
  color: #8d2767;
  font-size: .7rem;
}

.worklog-calendar__entries {
  display: grid;
  gap: .4rem;
}

.worklog-calendar__entries a {
  display: grid;
  padding: .5rem .55rem;
  border: 1px solid #ded8d2;
  border-left: 3px solid #716d72;
  border-radius: 5px;
  background: #f5f2ee;
  color: #202124;
  font-size: .7rem;
  line-height: 1.25;
  text-decoration: none;
}

.worklog-calendar__entries a:hover,
.worklog-calendar__entries a:focus-visible {
  border-color: #b8afa7;
  background: #ece7e1;
}

.worklog-calendar__entries a > strong {
  color: #202124;
}

.worklog-calendar__entries a > span,
.worklog-calendar__entries a > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worklog-calendar__entries a > small {
  color: #716d72;
}

.worklog-summary-grid > div {
  padding: 1rem 1.1rem;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #fff;
}

.worklog-summary-grid > div.has-attention {
  border-color: #e6c779;
  background: #fffaf0;
}

.worklog-summary-grid span,
.worklog-summary-grid strong {
  display: block;
}

.worklog-summary-grid span {
  color: #716d72;
  font-size: .72rem;
}

.worklog-summary-grid strong {
  margin-top: .25rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.worklog-summary-grid.worklog-summary-grid--combined {
  gap: .55rem;
  margin-bottom: .75rem;
}

.worklog-summary-grid.worklog-summary-grid--combined > div {
  padding: .55rem .75rem;
  border-radius: 10px;
}

.worklog-summary-grid.worklog-summary-grid--combined strong {
  margin-top: .12rem;
  font-size: 1.05rem;
}

.worklog-filters {
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(220px, 1fr) repeat(2, minmax(155px, .55fr)) auto;
  gap: .85rem;
  align-items: end;
  padding: 1rem 1.1rem;
  border: 1px solid #ded8d2;
  border-radius: 14px;
  background: #fff;
}

.worklog-filters label {
  display: block;
  margin-bottom: .38rem;
  color: #555156;
  font-size: .74rem;
  font-weight: 700;
}

.worklog-filters .filter-actions {
  flex-wrap: nowrap;
}

.worklog-quick-filter {
  display: flex;
  gap: .5rem;
  margin: .75rem 0 1rem;
  color: #716d72;
  font-size: .76rem;
}

.worklog-quick-filter a {
  color: #8d2767;
  font-weight: 700;
}

.worklog-table {
  min-width: 850px;
}

.worklog-table--combined {
  min-width: 900px;
}

.worklog-table--combined thead th {
  background: #252326;
  border-bottom-color: #252326;
  color: #fff;
}

.worklog-entry-type {
  display: inline-flex;
  min-width: 62px;
  color: #716d72;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.worklog-entry-type--billing {
  color: #8d2767;
}

.worklog-company-summary {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: .18rem;
}

.worklog-company-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.worklog-company-menu {
  flex: 0 0 auto;
}

.worklog-company-menu .worklog-row-menu__content {
  min-width: 285px;
  white-space: normal;
}

.worklog-company-summary > span {
  color: #716b6f;
  font-size: .72rem;
  font-weight: 500;
}

.worklog-company-summary > span strong {
  color: #262327;
  font-size: .8rem;
  font-weight: 800;
}

.worklog-list-section {
  margin-top: 1.5rem;
}

.billing-amount-control {
  position: relative;
}

.billing-amount-control .form-control {
  padding-right: 3rem;
}

.billing-amount-control > span {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: #716d72;
  font-size: .82rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.worklog-table__description {
  width: 100%;
  min-width: 320px;
  white-space: normal !important;
}

.worklog-row-menu {
  position: relative;
  display: inline-block;
}

.worklog-row-menu summary {
  display: grid;
  width: 34px;
  height: 32px;
  border: 1px solid #d8d1cb;
  border-radius: 7px;
  background: #fff;
  color: #555156;
  font-size: 1.15rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  place-items: center;
}

.worklog-row-menu summary::-webkit-details-marker {
  display: none;
}

.worklog-row-menu summary:hover,
.worklog-row-menu summary:focus-visible,
.worklog-row-menu[open] summary {
  border-color: #ad397f;
  color: #8d2767;
}

.worklog-row-menu__content {
  position: absolute;
  z-index: 20;
  top: calc(100% + .35rem);
  right: 0;
  display: grid;
  min-width: 205px;
  overflow: hidden;
  border: 1px solid #d8d1cb;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 23, 28, .14);
}

.worklog-row-menu__content a,
.worklog-row-menu__content button {
  display: block;
  width: 100%;
  padding: .7rem .85rem;
  border: 0;
  background: #fff;
  color: #202124;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.worklog-row-menu__content form {
  margin: 0;
  border-top: 1px solid #ebe6e1;
}

.worklog-row-menu__content form.is-danger button {
  color: #a12b2b;
}

.worklog-row-menu__content form.is-danger button:hover,
.worklog-row-menu__content form.is-danger button:focus-visible {
  background: #fff1f1;
  color: #8c2020;
}

.worklog-row-menu__content a:hover,
.worklog-row-menu__content a:focus-visible,
.worklog-row-menu__content button:hover,
.worklog-row-menu__content button:focus-visible {
  background: #f5f2ee;
  color: #8d2767;
  outline: none;
}

.worklog-group-row th {
  padding: .8rem 1rem;
  border-top: 10px solid #f5f2ee;
  border-bottom: 0;
  box-shadow: inset 4px 0 #ad397f;
  background: #f0ece7;
  color: #202124;
  font-size: .86rem;
  letter-spacing: 0;
  text-transform: none;
}

.worklog-company-group:first-of-type .worklog-group-row th {
  border-top: 0;
}

.worklog-group-row a {
  color: #202124;
  font-weight: 700;
  text-decoration: none;
}

.worklog-group-row a:hover {
  color: #ad397f;
}

.worklog-status--open {
  background: #fff0d8;
  color: #7a4b00;
}

.worklog-status--invoiced {
  background: #e5f2e9;
  color: #24613a;
}

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

.worklog-editor-heading {
  max-width: none;
}

.worklog-editor-heading h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.worklog-editor-heading .back-link {
  margin-bottom: 1rem;
}

.worklog-editor-form {
  width: 100%;
  max-width: none;
}

.worklog-editor-form .form-actions,
.worklog-secondary-actions {
  justify-content: flex-end;
}

.worklog-editor-form .worklog-form-actions {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.worklog-form-actions__primary {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-left: auto;
}

.worklog-form-grid {
  grid-template-columns: minmax(180px, .55fr) minmax(180px, .45fr);
}

@media (min-width: 1100px) {
  .worklog-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .worklog-form-grid .worklog-field--span-two {
    grid-column: span 2;
  }
}

.worklog-invoiced-notice {
  border: 1px solid #b9d8c2;
  background: #f2f8f4;
  color: #245e37;
}

.worklog-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  width: 100%;
  max-width: none;
  padding-top: 1rem;
  border-top: 1px solid #ded8d2;
}

.worklog-secondary-actions form {
  margin: 0;
}

.security-heading {
  max-width: 900px;
}

.security-heading h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.security-heading .back-link {
  margin-bottom: 1rem;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 1rem;
  max-width: 1050px;
}

.security-card,
.security-info-card {
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid #ded8d2;
  border-radius: 15px;
  background: #fff;
}

.security-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.security-card h2,
.security-info-card h2,
.twofactor-step h2 {
  margin: .3rem 0 .5rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.security-card > p,
.security-info-card p,
.twofactor-step p {
  color: #716d72;
}

.security-status--enabled {
  background: #e5f2e9;
  color: #24613a;
}

.security-status--disabled {
  background: #fff0d8;
  color: #7a4b00;
}

.security-detail-list {
  margin-bottom: 1.25rem;
}

.twofactor-setup-layout {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(320px, 1.15fr);
  gap: 1rem;
  max-width: 1050px;
}

.twofactor-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: .85rem;
  align-items: start;
}

.twofactor-step > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #f4e2ed;
  color: #8d2767;
  font-size: .78rem;
  font-weight: 700;
}

.twofactor-step p {
  margin: 0;
  font-size: .82rem;
}

.twofactor-qr {
  display: grid;
  margin: 1.5rem 0;
  place-items: center;
}

.twofactor-qr img {
  display: block;
  width: min(248px, 100%);
  height: auto;
  padding: 10px;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #fff;
}

.twofactor-manual-key {
  padding-top: 1rem;
  border-top: 1px solid #eee9e5;
}

.twofactor-manual-key summary {
  color: #8d2767;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.twofactor-manual-key p {
  margin: .8rem 0 .4rem;
  color: #716d72;
  font-size: .76rem;
}

.twofactor-manual-key code {
  display: block;
  overflow-wrap: anywhere;
  padding: .7rem;
  border-radius: 8px;
  background: #f5f2ee;
  font-size: .85rem;
  letter-spacing: .08em;
}

.twofactor-verify-card form {
  margin-top: 2rem;
}

.twofactor-code-fields {
  display: flex;
  gap: .55rem;
  max-width: 360px;
}

.twofactor-digit {
  width: min(14vw, 52px);
  min-width: 0;
  padding: .7rem 0;
  text-align: center;
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.login-recovery-link {
  margin: 1.25rem 0 0;
  text-align: center;
}

.login-recovery-link a {
  color: #8d2767;
  font-size: .78rem;
  font-weight: 700;
}

.recovery-login-input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .06em;
}

.recovery-card {
  max-width: 780px;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 1.5rem 0;
}

.recovery-code-grid code {
  padding: .8rem 1rem;
  border: 1px solid #ded8d2;
  border-radius: 8px;
  background: #f7f4ef;
  font-size: .95rem;
  text-align: center;
}

.recovery-actions {
  padding-bottom: 0;
}

.eyebrow--danger {
  color: #9f2525;
}

.delete-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  gap: 1rem;
  max-width: 1000px;
}

.delete-summary,
.delete-confirmation {
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid #ded8d2;
  border-radius: 15px;
  background: #fff;
}

.delete-summary {
  border-color: #e2b8b8;
}

.delete-summary h2,
.delete-confirmation h2 {
  margin: .75rem 0 1rem;
  font-size: 1.45rem;
  font-weight: 500;
}

.delete-summary p,
.delete-confirmation p {
  color: #5f5b60;
}

.delete-explanation {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid #e2b8b8;
  border-radius: 10px;
  background: #fff4f4;
  color: #7e2020;
}

.delete-check {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ded8d2;
  border-radius: 10px;
  background: #faf8f6;
}

.delete-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  accent-color: #9f2525;
}

.delete-check label {
  margin: 0;
}

.button:focus-visible,
.cms-nav__button:focus-visible,
.form-check-input:focus-visible,
a:focus-visible {
  outline: 2px solid #ad397f;
  outline-offset: 3px;
  box-shadow: none;
}

.form-control:focus-visible {
  border-color: #5d595c;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(23, 23, 25, .1);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar__search {
    grid-column: 1 / -1;
  }

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

  .filter-check--advanced {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .cms-width {
    width: min(calc(100% - 2rem), 1800px);
  }

  .cms-nav__inner {
    min-height: auto;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    padding: .9rem 0;
  }

  .cms-nav__links {
    order: 3;
    width: 100%;
    padding-top: .55rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .cms-account__name {
    display: none;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
    padding: 1.4rem 1.5rem;
  }

  .auth-brand__copy,
  .auth-brand__security {
    display: none;
  }

  .auth-content {
    min-height: calc(100vh - 69px);
    align-items: start;
    padding: clamp(3rem, 12vw, 5rem) 1.5rem 3rem;
  }

  .login-card h1 {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
  }

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

  .customer-table--desktop {
    display: none;
  }

  .campaign-table--desktop {
    display: none;
  }

  .customer-list--mobile {
    display: grid;
    gap: .7rem;
  }

  .campaign-list--mobile {
    display: grid;
    gap: .7rem;
  }

  .customer-mobile-card {
    position: relative;
    padding: 1rem 3.5rem 1rem 1rem;
    border: 1px solid #ded8d2;
    border-radius: 12px;
    background: #fff;
  }

  .customer-mobile-card.is-archived {
    opacity: .62;
  }

  .customer-mobile-card__heading {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .4rem;
  }

  .customer-mobile-card p {
    margin: 0;
    overflow-wrap: anywhere;
    color: #716d72;
    font-size: .75rem;
  }

  .customer-mobile-card__contact {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .5rem;
    margin-top: .3rem !important;
  }

  .customer-mobile-card__contact a {
    color: #8d2767;
  }

  .customer-mobile-card__open {
    position: absolute;
    top: 50%;
    right: 1rem;
    color: #8d2767;
    font-size: 1.15rem;
    text-decoration: none;
    transform: translateY(-50%);
  }

  .row-action-menu--mobile .row-action-menu__panel {
    min-width: 145px;
  }

  .dashboard-card {
    min-height: 0;
  }

  .dashboard-list__item { align-items: flex-start; }
  .dashboard-seo__header { display: none; }
  .dashboard-list--seo .dashboard-list__item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .2rem .6rem;
  }
  .dashboard-list--seo .dashboard-seo__customer { grid-column: 1; }
  .dashboard-list--seo .dashboard-seo__action { grid-column: 2; grid-row: 1; }
  .dashboard-list--seo .dashboard-seo__date { grid-column: 1; }
  .dashboard-list--seo .dashboard-list__warning,
  .dashboard-list--seo .dashboard-seo__done { grid-column: 2; text-align: right; }
  .seo-due__list li { flex-wrap: wrap; }

  .page-heading--actions,
  .detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading--actions.page-heading--compact {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
  }

  .page-heading--actions.page-heading--compact .button {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
  }

  .customer-filters {
    padding: .85rem .85rem 0;
  }

  .filter-bar,
  .filter-more__content {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: space-between;
  }

  .filter-actions .button {
    flex: 1;
  }

  .filter-check--advanced {
    min-height: auto;
  }

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

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

  .customer-contact-editors,
  .customer-add-contact {
    grid-column: auto;
  }

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

  .customer-contact-grid .customer-field--span-two {
    grid-column: auto;
  }

  .customer-contact-editor__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-contact-editor__actions {
    width: 100%;
    justify-content: space-between;
  }

  .detail-card--wide {
    grid-column: auto;
  }

  .detail-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .delete-layout {
    grid-template-columns: 1fr;
  }

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

  .campaign-workspace {
    grid-template-columns: 1fr;
  }

  .campaign-html-editor {
    grid-template-columns: 1fr;
  }

  .campaign-basics {
    grid-template-columns: 1fr;
  }

  .campaign-message {
    min-height: 360px;
  }

  .campaign-live-preview iframe,
  .campaign-detail-preview-frame {
    height: 520px;
  }

  .recipient-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .recipient-option em {
    display: none;
  }

  .recipient-filters {
    grid-template-columns: 1fr;
    padding: .8rem;
  }

  .recipient-toolbar {
    flex-wrap: wrap;
  }

  .recipient-toolbar strong {
    flex-basis: 100%;
  }

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

  .worklog-summary-grid > div {
    padding: .85rem;
  }

  .worklog-summary-grid strong {
    font-size: 1.15rem;
  }

  .worklog-filters {
    grid-template-columns: 1fr;
    padding: .85rem;
  }

  .worklog-filters .filter-actions {
    justify-content: space-between;
  }

  .worklog-filters .filter-actions .button {
    flex: 1;
  }

  .worklog-list-toolbar {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .worklog-list-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .worklog-hours-total {
    flex: 0 0 auto;
  }

  .worklog-quick-filter {
    flex-wrap: wrap;
  }

  .worklog-table {
    min-width: 760px;
  }

  .worklog-table__description {
    min-width: 260px;
  }

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

  .security-layout,
  .twofactor-setup-layout {
    grid-template-columns: 1fr;
  }

  .recovery-code-grid {
    grid-template-columns: 1fr;
  }
}

/* Website generator */
.website-generator-heading > p:last-child {
  max-width: 760px;
  color: #716d72;
}

.website-generator,
.website-generator-heading {
  max-width: 1500px;
}

.website-generator .form-section {
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

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

.generator-path-input {
  cursor: text;
  font-family: Consolas, "Courier New", monospace;
  user-select: text;
}

.generator-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.generator-page-option {
  position: relative;
  display: flex;
  gap: .8rem;
  min-height: 126px;
  padding: 1.05rem;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.generator-page-option:hover,
.generator-page-option:focus-within {
  border-color: #ad397f;
  transform: translateY(-1px);
}

.generator-page-option:has(input:checked) {
  border-color: #c582ac;
  background: #fcf7fa;
}

.generator-page-option.is-required {
  cursor: default;
}

.generator-page-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: .1rem 0 0;
  accent-color: #ad397f;
}

.generator-page-option span,
.generator-page-option strong,
.generator-page-option small,
.generator-page-option em {
  display: block;
}

.generator-page-option strong {
  margin-bottom: .35rem;
  color: #333034;
}

.generator-page-option small {
  color: #716d72;
  line-height: 1.45;
}

.generator-page-option em {
  width: fit-content;
  margin-top: .65rem;
  padding: .2rem .45rem;
  border-radius: 999px;
  background: #ead7e3;
  color: #7c285b;
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.generator-result {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #83b995;
  border-radius: 12px;
  background: #f1faf4;
}

.generator-result > span {
  padding: .25rem .5rem;
  border-radius: 999px;
  background: #287441;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.generator-result h2,
.generator-result p {
  margin: 0;
}

.generator-result h2 {
  font-size: 1rem;
}

.generator-result p {
  margin-top: .3rem;
  color: #48624f;
}

.generator-result code {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .generator-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .generator-project-grid,
  .generator-page-grid,
  .website-generator .form-section {
    grid-template-columns: 1fr;
  }

  .generator-page-option {
    min-height: auto;
  }
}

@media print {
  .cms-nav,
  .footer,
  .security-heading,
  .recovery-card .notice,
  .recovery-actions {
    display: none !important;
  }

  body,
  .recovery-card {
    background: #fff;
  }

  .cms-container {
    padding: 0;
  }

  .recovery-card {
    border: 0;
  }
}

/* Offerter */
.quote-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(190px, .35fr) auto;
  gap: .85rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #ded8d2;
  border-radius: 14px;
  background: #fff;
}

.quote-filters label {
  display: block;
  margin-bottom: .38rem;
  color: #555156;
  font-size: .74rem;
  font-weight: 700;
}

.quote-table {
  min-width: 1180px;
}

.quote-table__title {
  min-width: 260px;
  white-space: normal !important;
}

.quote-list--mobile {
  display: none;
}

.quote-status-accepted {
  background: #e5f2e9;
  color: #24613a;
}

.quote-status-rejected,
.quote-status-expired {
  background: #f1ece9;
  color: #655f62;
}

.quote-status-sent {
  background: #e9edf8;
  color: #304b7a;
}

.quote-editor-heading,
.quote-editor {
  width: 100%;
  max-width: none;
}

.quote-editor .form-control,
.quote-editor .form-select {
  font-size: .9rem;
}

.quote-editor-heading h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.quote-form-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quote-form-actions--top {
  padding-top: 0;
  padding-bottom: 1rem;
}

.quote-rich-text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  margin-bottom: .35rem;
}

.quote-rich-text-header label {
  margin-bottom: 0;
}

.quote-text-toolbar {
  display: flex;
  flex: 0 0 auto;
  gap: .3rem;
}

.quote-format-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d8d1cb;
  border-radius: 7px;
  background: #fff;
  color: #242124;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
}

.quote-format-button--bold {
  font-style: normal;
}

.quote-format-button:hover,
.quote-format-button:focus-visible {
  border-color: #b23b86;
  background: #faf5f8;
}

.customer-detail-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ded8d2;
}

.customer-detail-footer-actions form {
  margin: 0;
}

.customer-related-section {
  margin-top: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid #ded8d2;
  border-radius: 15px;
  background: #fff;
}

.customer-related-section__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.customer-related-section__heading h2 {
  margin: .2rem 0 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.customer-related-section__empty {
  margin: 0;
  padding: 1rem;
  border-radius: 10px;
  background: #f7f4f1;
  color: #716d72;
}

.customer-quotes-table {
  min-width: 820px;
}

.customer-quotes-table__title {
  min-width: 260px;
  white-space: normal !important;
}

.customer-quotes-table__actions {
  display: flex;
  justify-content: flex-end;
  gap: .8rem;
  white-space: nowrap;
}

.customer-quotes-table__actions a {
  color: #8d2767;
  font-size: .75rem;
  font-weight: 700;
}

.quote-form-section {
  grid-template-columns: minmax(210px, .38fr) minmax(0, 1.62fr);
}

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

.quote-field--wide {
  grid-column: span 2;
}

.quote-scope-section,
.quote-detail-scope {
  margin: 1rem 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid #ded8d2;
  border-radius: 15px;
  background: #fff;
}

.quote-scope-heading,
.quote-detail-scope__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-scope-heading .eyebrow,
.quote-detail-scope__heading .eyebrow {
  margin-bottom: .25rem;
  font-size: .65rem;
}

.quote-scope-heading h2,
.quote-detail-scope__heading h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.quote-scope-help {
  margin: .35rem 0 0;
  color: #716d72;
  font-size: .75rem;
}

.quote-live-total {
  min-width: 245px;
  padding: .7rem .9rem;
  border: 1px solid #e3c6d7;
  border-radius: 10px;
  background: #faf3f7;
  text-align: right;
}

.quote-live-total span,
.quote-live-total small,
.quote-live-total strong {
  display: block;
}

.quote-live-total span,
.quote-live-total small {
  color: #716d72;
  font-size: .68rem;
}

.quote-live-total strong {
  font-size: 1.25rem;
  font-weight: 600;
}

.quote-sections {
  display: grid;
  gap: .85rem;
  margin-bottom: .85rem;
}

.quote-section-card {
  padding: 1rem;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #faf8f6;
}

.quote-section-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.quote-order-actions {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.quote-order-actions .button {
  min-height: 30px;
  padding: .3rem .45rem;
  font-size: .68rem;
}

.quote-section-number {
  color: #ad397f;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.quote-checkbox-field {
  display: flex;
  align-items: center;
  min-height: 69px;
  padding: .75rem;
  border: 1px solid #ded8d2;
  border-radius: 10px;
  background: #fff;
}

.quote-checkbox-field label,
.quote-item__actions label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  cursor: pointer;
}

.quote-checkbox-field input,
.quote-item__actions input {
  width: 17px;
  height: 17px;
  accent-color: #ad397f;
}

.quote-items {
  display: grid;
  gap: .6rem;
  margin: .8rem 0;
}

.quote-item {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(300px, 1.5fr) 105px 105px minmax(118px, auto);
  gap: .65rem;
  align-items: end;
  padding: .8rem;
  border: 1px solid #e7e1dc;
  border-radius: 10px;
  background: #fff;
}

.quote-item__actions {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
}

.quote-item__actions label {
  gap: .35rem;
  color: #4f4a4e;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.quote-item__actions input {
  width: 15px;
  height: 15px;
}

.quote-item-menu__panel {
  min-width: 175px;
}

.quote-item-menu__panel label,
.quote-item-menu__action {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: .5rem .6rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #333034;
  font-family: inherit;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.quote-item-menu__panel label:hover,
.quote-item-menu__panel label:focus-within,
.quote-item-menu__action:hover,
.quote-item-menu__action:focus-visible {
  background: #f7f1f4;
  color: #8d2767;
}

.quote-item-menu__action:disabled {
  color: #aaa4a8;
  cursor: default;
}

.quote-item-menu__action:disabled:hover {
  background: transparent;
}

.quote-item-menu__action--danger {
  color: #9a2e36;
}

.quote-inline-option {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  margin-top: .55rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

.quote-inline-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #ad397f;
}

.quote-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}

.quote-summary-grid > div {
  padding: 1rem 1.1rem;
  border: 1px solid #ded8d2;
  border-radius: 12px;
  background: #fff;
}

.quote-summary-grid > div.has-attention {
  border-color: #e6c779;
  background: #fffaf0;
}

.quote-summary-grid span,
.quote-summary-grid strong,
.quote-summary-grid small {
  display: block;
}

.quote-summary-grid span,
.quote-summary-grid small {
  color: #716d72;
  font-size: .72rem;
}

.quote-summary-grid strong {
  margin-top: .25rem;
  font-size: 1.25rem;
  font-weight: 500;
}

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

.quote-detail-section + .quote-detail-section {
  margin-top: 1.5rem;
}

.quote-detail-section h3 {
  margin-bottom: .3rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.quote-detail-section > p {
  color: #716d72;
}

.quote-detail-items {
  border-top: 1px solid #ded8d2;
}

.quote-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid #e7e1dc;
}

.quote-detail-item > div > strong {
  margin-right: .5rem;
}

.quote-detail-item p {
  margin: .25rem 0 0;
  color: #716d72;
  font-size: .8rem;
  white-space: pre-line;
}

.quote-detail-item > span {
  font-weight: 700;
  text-align: right;
}

.quote-detail-item.is-optional > span {
  color: #ad397f;
}

.quote-detail-top-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
}

.quote-detail-top-actions form,
.quote-status-form {
  display: flex;
  align-items: flex-end;
  gap: .55rem;
  margin: 0;
}

.quote-status-field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .74rem;
  font-weight: 700;
}

.quote-status-field .form-select {
  min-width: 145px;
}

@media (max-width: 1200px) {
  .quote-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-item {
    grid-template-columns: minmax(180px, .7fr) minmax(300px, 1.3fr) 95px 95px;
  }

  .quote-item__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  .quote-filters {
    grid-template-columns: 1fr;
    padding: .85rem;
  }

  .quote-table--desktop {
    display: none;
  }

  .quote-list--mobile {
    display: grid;
    gap: .7rem;
  }

  .quote-form-section,
  .quote-main-grid,
  .quote-detail-grid {
    grid-template-columns: 1fr;
  }

  .quote-field--wide {
    grid-column: auto;
  }

  .quote-scope-heading,
  .quote-detail-scope__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .quote-live-total {
    min-width: 0;
    text-align: left;
  }

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

  .quote-item__description,
  .quote-item__actions,
  .quote-item > .form-field:first-child {
    grid-column: 1 / -1;
  }

  .quote-item__actions {
    justify-content: space-between;
  }

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

  .customer-related-section__heading {
    align-items: flex-start;
  }

  .customer-related-section__heading .button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .quote-detail-top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .quote-status-form {
    width: 100%;
  }

  .quote-status-field {
    flex: 1;
  }
}
.seo-row-menu { position: relative; min-width: 7rem; }
.seo-row-menu summary { cursor: pointer; font-size: 1.4rem; list-style: none; text-align: right; }
.seo-row-menu a, .seo-row-menu button { display: block; margin: .35rem 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.seo-row-menu button:disabled { opacity: .5; cursor: default; }
.seo-create-form { max-width: 42rem; display: grid; gap: 1.25rem; }
.seo-device-options { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 0; padding: 0; border: 0; }
.seo-device-options legend { width: 100%; margin-bottom: .35rem; font-weight: 700; }
.seo-device-options label { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .65rem; border: 1px solid #ded8d2; border-radius: 8px; cursor: pointer; }
.seo-device-options label:has(input:checked) { border-color: #555156; background: #f7f6f4; }
.seo-device-options input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: #202124; }
.seo-device-options p { flex-basis: 100%; margin: 0; color: #716d72; font-size: .82rem; }
.seo-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.seo-summary .detail-card { display: grid; gap: .4rem; }
.seo-summary strong { font-size: 2rem; }
.seo-finding { border-bottom: 1px solid #ddd; padding: 1rem 0; overflow-wrap: anywhere; }
.seo-page { margin: 1rem 0; overflow-wrap: anywhere; }

.cms-container--seo-details { padding-top: .75rem; }
.seo-report-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; }
.seo-report-heading h1 { margin: .35rem 0; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.seo-report-heading__actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; }
.seo-report-heading__actions form { display: inline-flex; margin: 0; }
.seo-report-heading .detail-card__eyebrow { margin: 0; }
.seo-report-heading__meta { margin: 0; color: #64748b; overflow-wrap: anywhere; }
.seo-report-heading__meta span { margin: 0 .3rem; }
.seo-report-notice { display: flex; gap: .75rem; padding: .8rem 1rem; margin-bottom: 1rem; border-radius: 10px; background: #eff6ff; color: #1e40af; }
.seo-report-notice--progress { align-items: center; }
.seo-report-notice--progress > span:last-child { display: grid; gap: .15rem; }
.seo-loader { display: inline-block; flex: 0 0 auto; width: 1.35rem; height: 1.35rem; border: 3px solid #bfd2f4; border-top-color: #1e40af; border-radius: 50%; animation: seo-spin .8s linear infinite; }
@keyframes seo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seo-loader { animation: none; border-top-color: #1e40af; } }
.seo-report-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; overflow: hidden; margin-bottom: 1.25rem; }
.seo-report-stats > div { display: flex; align-items: baseline; gap: .65rem; padding: .9rem 1.2rem; border-right: 1px solid #e2e8f0; }
.seo-report-stats > div:last-child { border-right: 0; }
.seo-report-stats__value { font-size: 1.65rem; font-weight: 750; line-height: 1; letter-spacing: -.04em; color: #0f172a; }
.seo-report-stats__value--alert { color: #b45309; }
.seo-report-stats__label { color: #64748b; font-size: .85rem; }
.seo-action-panel { margin-bottom: 2rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; }
.seo-action-panel > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.15rem; cursor: pointer; list-style: none; }
.seo-action-panel > summary::-webkit-details-marker, .seo-page-row > summary::-webkit-details-marker { display: none; }
.seo-action-panel > summary strong, .seo-action-panel > summary small { display: block; }
.seo-action-panel > summary strong { color: #0f172a; }
.seo-action-panel > summary small { color: #64748b; margin-top: .12rem; }
.seo-action-panel__count { border-radius: 999px; background: #f1f5f9; padding: .2rem .65rem; font-weight: 700; color: #475569; }
.seo-action-panel__body { border-top: 1px solid #e2e8f0; padding: 0 1.15rem; max-height: 32rem; overflow: auto; }
.seo-action-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .8rem; padding: .75rem 0; border-bottom: 1px solid #edf1f5; font-size: .88rem; }
.seo-action-row:last-child { border-bottom: 0; }
.seo-action-row strong { color: #172033; }
.seo-action-row p { margin: .18rem 0; color: #475569; }
.seo-action-row a { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.seo-priority { align-self: start; width: fit-content; border-radius: 5px; padding: .14rem .4rem; font-size: .68rem; font-weight: 750; background: #f1f5f9; color: #475569; }
.seo-priority--hög { background: #fef2f2; color: #b91c1c; }
.seo-priority--medel { background: #fffbeb; color: #a16207; }
.seo-priority--låg { background: #eff6ff; color: #1d4ed8; }
.seo-pages__heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: .75rem; }
.seo-pages__heading .detail-card__eyebrow { margin: 0 0 .15rem; }
.seo-pages__heading h2 { margin: 0; font-size: 1.3rem; color: #0f172a; }
.seo-pages__heading > span { color: #64748b; font-size: .85rem; }
.seo-pages__list { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; }
.seo-page-row + .seo-page-row { border-top: 1px solid #edf1f5; }
.seo-page-row > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.3rem; padding: .62rem 1rem; cursor: pointer; list-style: none; }
.seo-page-row > summary:hover { background: #f8fafc; }
.seo-page-row[open] > summary { background: #f8fafc; }
.seo-page-row__main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.seo-page-row__path { color: #0f172a; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.seo-page-row__title { color: #64748b; font-size: .82rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.seo-page-row__metrics { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .45rem .75rem; min-width: 0; }
.seo-device-score { display: grid; gap: .1rem; min-width: 4.3rem; text-align: center; color: #334155; }
.seo-device-score small { font-size: .67rem; color: #64748b; white-space: nowrap; }
.seo-device-score strong { font-size: .92rem; font-weight: 750; }
.seo-device-score .seo-score { display: inline-grid; place-items: center; box-sizing: border-box; min-width: 2rem; height: 2rem; padding: 0 .1rem; margin: auto; border-radius: 50%; font-size: .7rem; font-weight: 800; background: #f1f5f9; color: #475569; }
.seo-device-score .seo-score--good { background: #dcfce7; color: #166534; }
.seo-device-score .seo-score--medium { background: #fef3c7; color: #92400e; }
.seo-device-score .seo-score--low { background: #fee2e2; color: #991b1b; }
.seo-page-row__issues { min-width: 6rem; color: #475569; font-size: .82rem; text-align: right; }
.seo-page-row__chevron { color: #94a3b8; font-size: 1.3rem; line-height: 1; transition: transform .15s; }
.seo-page-row[open] .seo-page-row__chevron { transform: rotate(180deg); }
.seo-page-row__details { border-top: 1px solid #edf1f5; padding: 1rem 1.15rem 1.1rem; background: #fbfcfe; overflow-wrap: anywhere; }
.seo-keyword-suggestions { margin: 0 0 1rem; font-size: .87rem; }
.seo-keyword-suggestions small { display: block; margin-top: .2rem; color: #64748b; }
.seo-page-row__details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.5rem; margin: 0; }
.seo-page-row__details dt { color: #64748b; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.seo-page-row__details dd { margin: .15rem 0 0; font-size: .87rem; }
.seo-page-row__findings { list-style: none; padding: .75rem 0 0; margin: .8rem 0 0; border-top: 1px solid #e2e8f0; }
.seo-page-row__findings li { display: flex; align-items: start; gap: .65rem; padding: .35rem 0; font-size: .86rem; }
.seo-page-row__findings small { display: block; color: #64748b; margin-top: .1rem; }
.seo-report-footnote { margin: .85rem 0 2rem; color: #64748b; font-size: .78rem; line-height: 1.5; }
@media (max-width: 767.98px) {
  .seo-report-heading { align-items: start; flex-direction: column; }
  .seo-report-heading__actions { flex-wrap: wrap; white-space: normal; }
  .seo-report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-report-stats > div:nth-child(2) { border-right: 0; }
  .seo-report-stats > div:nth-child(-n + 2) { border-bottom: 1px solid #e2e8f0; }
  .seo-report-stats > div { flex-direction: column; gap: .25rem; padding: .8rem; }
  .seo-page-row__issues span { display: none; }
  .seo-page-row__issues { min-width: 1.5rem; }
  .seo-page-row__metrics { gap: .5rem; }
  .seo-device-score { min-width: 2.1rem; }
  .seo-device-score small { font-size: .6rem; }
  .seo-page-row__details dl { grid-template-columns: 1fr; }
  .seo-page-row > summary { align-items: flex-start; flex-direction: column; }
  .seo-page-row__metrics { justify-content: flex-start; }
}
