/* Labsite.ai — marketing site, auth pages and dashboard */

:root {
  --brand: #4f46e5;
  --brand-ink: #3730a3;
  --brand-soft: #eef0ff;
  --brand-line: #c7cbfa;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f6;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px -14px rgba(15, 23, 42, 0.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-ink);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
}

/* ---------------------------------------------------------------- buttons & bits */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}

.btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: transparent;
}

.btn--danger {
  color: var(--danger);
  border-color: #fecdca;
  background: #fff;
}

.btn--danger:hover {
  background: var(--danger-soft);
  border-color: #fda29b;
  color: var(--danger);
}

.btn--sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn--lg {
  padding: 13px 22px;
  font-size: 16px;
  border-radius: 10px;
}

.btn--block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--ink-2);
}

.pill--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.pill--muted {
  background: #f1f5f9;
  color: var(--muted);
}

.alert {
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 14px;
  margin: 0 0 16px;
}

.alert--error {
  background: var(--danger-soft);
  color: var(--danger);
}

.alert--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.card--pad {
  padding: 28px;
}

/* ---------------------------------------------------------------- forms */

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.field__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0;
}

.field__help {
  font-size: 12.5px;
  color: var(--muted);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='url'],
input[type='search'],
input[type='date'],
input[type='number'],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #d5dce5;
  border-radius: 8px;
  padding: 9px 12px;
  transition: border-color 0.12s, box-shadow 0.12s;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #9aa6b5;
}

.addr {
  display: flex;
  align-items: stretch;
}

.addr input {
  border-radius: 0;
  min-width: 0;
}

.addr__prefix,
.addr__suffix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d5dce5;
  background: #f8fafc;
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
}

.addr__prefix {
  border-right: 0;
}

.addr__suffix {
  border-left: 0;
}

.addr > :first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.addr > :last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* template picker (new site + design) */

.templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.templates__group {
  margin: 14px 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.templates__hint {
  margin: 6px 0 2px;
  font-size: 13.5px;
  color: var(--ink);
}

.templates__hint button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.template {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.template__demo { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--brand); text-decoration: none; }
.template__demo:hover { text-decoration: underline; }
.template input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.template:has(input:checked),
.template.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.template:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.template--soon {
  cursor: default;
  opacity: 0.6;
}

.template__preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f4;
  border-bottom: 1px solid var(--line);
}

.template__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.template__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px 11px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
}

.template__text strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}

.template.is-suggested .template__text strong::after {
  content: 'Suggested';
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------- brand & top nav */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand__icon {
  flex: none;
  width: 30px;
  height: 30px;
}

.brand__name {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.brand__tld {
  color: var(--brand);
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.topnav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
}

.topnav__links > a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
}

.topnav__links form {
  margin: 0;
}

.topnav__user {
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------- landing */

.landing {
  background: #fff;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 16px;
}

.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(15, 118, 110, 0.1), transparent 70%),
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero__lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 34em;
  margin: 22px 0 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.hero__note {
  font-size: 14px;
  color: var(--muted);
}

.hero__art {
  position: relative;
  padding-bottom: 56px;
}

.mock-browser {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.mock-browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dbe2ea;
}

.mock-browser__bar em {
  margin-left: 12px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 10px;
}

.mock-site {
  background: #fbfaf7;
}

.mock-site__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #ece7dd;
  font-size: 12px;
}

.mock-site__nav b {
  font-family: var(--serif);
  font-size: 14px;
  margin-right: auto;
}

.mock-site__nav i {
  font-style: normal;
  color: #5b6573;
}

.mock-site__hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px 22px 30px;
  background-image: radial-gradient(ellipse 60% 90% at 95% 0%, rgba(31, 95, 139, 0.15), transparent 60%);
}

.mock-site__hero small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f5f8b;
}

.mock-site__hero strong {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  max-width: 11em;
}

.mock-btn {
  width: 92px;
  height: 26px;
  border-radius: 6px;
  background: #1f5f8b;
  margin-top: 8px;
}

.mock-site__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 22px;
}

.mock-site__cards span {
  height: 64px;
  border-radius: 8px;
  border: 1px solid #ece7dd;
  background: linear-gradient(135deg, #eef4f8, #dbe8f1);
}

.mock-table {
  position: absolute;
  left: -36px;
  right: 72px;
  bottom: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.3);
  font-size: 12.5px;
  overflow: hidden;
}

.mock-table__title {
  padding: 10px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.mock-table__row {
  display: grid;
  grid-template-columns: 2.4fr 1fr 0.6fr;
  border-bottom: 1px solid var(--line-2);
}

.mock-table__row span {
  padding: 8px 14px;
  border-right: 1px solid var(--line-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-table__row--head {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
}

.mock-table__row--active span:first-child {
  box-shadow: inset 0 0 0 2px var(--brand);
  background: #fff;
}

.band {
  padding: 88px 0;
}

.band--tint {
  background: #f7faf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band__title {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: -0.015em;
}

.band__lead {
  font-size: 17px;
  color: var(--muted);
  margin: 12px 0 40px;
}

.pagegrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.pagegrid__item {
  background: #fff;
  padding: 24px;
}

.pagegrid__item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.pagegrid__item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.feature__num {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--brand);
  font-size: 15px;
}

.feature h3 {
  font-size: 19px;
  margin: 8px 0 8px;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
}

.band--cta {
  background: var(--ink);
  color: #fff;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta h2 {
  font-family: var(--serif);
  font-size: 34px;
  color: #fff;
}

.sitefoot {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.sitefoot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------------------------------------------------------- auth */

.auth {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(15, 118, 110, 0.08), transparent 70%),
    var(--bg);
}

.auth__main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth__logo {
  margin-bottom: 24px;
}

.auth__card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth__site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: -8px -8px 22px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.auth__site img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.auth__site div {
  display: flex;
  flex-direction: column;
}

.auth__site span {
  font-size: 13px;
  color: var(--muted);
}

.auth__title {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 18px;
}

.auth__sub {
  color: var(--muted);
  margin: -8px 0 20px;
}

.auth__alt {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth__back {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.auth__back:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------- app pages (sites list, new site) */

.apppage__main {
  padding: 40px 24px 80px;
}

.apppage__main--narrow {
  max-width: 760px;
}

.apppage__main h1 {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 6px;
}

.apppage__main > .muted {
  margin: 0 0 24px;
}

.apppage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sitecards {
  display: grid;
  gap: 12px;
}

.sitecard {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.sitecard:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow);
}

.sitecard__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
}

.sitecard__body {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  font-size: 14px;
  color: var(--muted);
}

.sitecard__body strong {
  color: var(--ink);
  font-size: 16px;
}

.sitecard__url {
  color: var(--brand-ink);
}

.sitecard__meta {
  display: flex;
  gap: 6px;
}

/* Owners get a quiet Delete link beside each site; it opens the warning page. */
.sitecard-item {
  position: relative;
}

.sitecard-item:has(.sitecard__delete) .sitecard {
  padding-right: 92px;
}

.sitecard__delete {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.sitecard__delete:hover,
.sitecard__delete:focus-visible {
  color: #b42318;
  background: #fdecea;
}

.del-back {
  margin: 0 0 18px;
  font-size: 14px;
}

.del-back a {
  color: var(--muted);
  text-decoration: none;
}

.del-warn {
  margin: 22px 0 16px;
  padding: 18px 20px;
  border: 1px solid #f3c4bd;
  background: #fdf3f1;
  border-radius: 12px;
  color: #6b1d14;
  font-size: 14.5px;
  line-height: 1.55;
}

.del-warn ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.del-warn li + li {
  margin-top: 4px;
}

.del-card {
  padding: 20px 22px;
  margin-bottom: 14px;
}

.del-card h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.del-card .muted {
  margin: 0 0 14px;
}

.del-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  margin: 12px 0 18px;
}

.del-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.del-btn {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.del-btn:hover {
  background: #912018;
}

@media (max-width: 560px) {
  .sitecard-item:has(.sitecard__delete) .sitecard {
    padding-bottom: 40px;
    padding-right: 20px;
  }
  .sitecard__delete {
    top: auto;
    bottom: 8px;
    transform: none;
  }
}

.empty {
  padding: 48px;
  text-align: center;
}

.empty h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 8px;
}

.empty p {
  color: var(--muted);
  margin: 0 0 20px;
}


@media (max-width: 1100px) {
  .pagegrid,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__art {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .form__row,
  .pagegrid,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .topnav__user {
    display: none;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .band {
    padding: 56px 0;
  }
}

[hidden] {
  display: none !important;
}

/* ================================================================ DASHBOARD
   Compact, minimal admin: black active items, small uppercase headers,
   list rows with icon actions and an edit drawer. */

.ad {
  --ad-ink: #0b0b0c;
  --ad-ink-2: #334155;
  --ad-muted: #64748b;
  --ad-faint: #94a3b8;
  --ad-line: #eceef1;
  --ad-line-2: #f3f4f6;
  --ad-hover: #f6f7f9;
  background: #fff;
  color: var(--ad-ink);
  font-size: 13.5px;
}

.ad input[type='text'],
.ad input[type='email'],
.ad input[type='url'],
.ad input[type='search'],
.ad input[type='date'],
.ad select,
.ad textarea {
  font-size: 13.5px;
  padding: 8px 10px;
  border-color: #e2e8f0;
  border-radius: 8px;
}

.ad textarea {
  min-height: 72px;
}

.ad-loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--ad-muted);
}

/* buttons */
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--ad-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}
.ad-btn:hover { background: var(--ad-hover); border-color: #cbd5e1; color: var(--ad-ink); }
.ad-btn svg { width: 15px; height: 15px; }
.ad-btn--dark { background: var(--ad-ink); border-color: var(--ad-ink); color: #fff; }
.ad-btn--dark:hover { background: #26272b; border-color: #26272b; color: #fff; }
.ad-btn--help { height: 30px; font-size: 12.5px; color: #475569; background: #f8fafc; }
.ad-btn--danger { color: #b42318; border-color: #fecdca; }
.ad-btn--danger:hover { background: #fef3f2; border-color: #fda29b; color: #b42318; }
.ad-btn--ghost { border-color: transparent; background: transparent; color: var(--ad-muted); }
.ad-btn:disabled { opacity: 0.5; cursor: default; }
.ad-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  padding: 0;
}
.ad-icon:hover { background: var(--ad-hover); border-color: #cbd5e1; }
.ad-icon svg { width: 15px; height: 15px; }
.ad-icon--danger { color: #dc2626; }
.ad-icon--danger:hover { background: #fef2f2; border-color: #fecaca; }
.ad-icon--plain { border-color: transparent; background: transparent; }

/* top bar */
.ad-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ad-line);
}
.ad-top__menu { display: none; }
.ad-top__brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; color: var(--ad-ink); text-decoration: none; white-space: nowrap; }
.ad-top__brand span { color: var(--brand); }
.ad-top__sep { width: 1px; height: 20px; background: var(--ad-line); }
.ad-top__site { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--ad-ink); text-decoration: none; }
.ad-top__mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--site-primary, #111); color: #fff; font-size: 11px; font-weight: 800; }
.ad-top__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-top__url { color: var(--ad-faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-top__spacer { flex: 1; }
.ad-save { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ad-muted); white-space: nowrap; }
.ad-save::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.ad-save[data-state='saving']::before { background: #f59e0b; animation: ad-pulse 1s infinite; }
.ad-save[data-state='error'] { color: #b42318; }
.ad-save[data-state='error']::before { background: #dc2626; }
@media (max-width: 420px) {
  /* Narrow phones: the dot alone says whether changes are saved (errors keep their words). */
  .ad-save:not([data-state='error']) { font-size: 0; gap: 0; }
}
@keyframes ad-pulse { 50% { opacity: 0.3; } }
.ad-account { position: relative; }
.ad-account__menu {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ad-line);
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.25);
}
.ad-account__menu p { margin: 0; padding: 8px 10px; font-size: 12px; color: var(--ad-muted); border-bottom: 1px solid var(--ad-line-2); }
.ad-account__menu a,
.ad-account__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ad-ink);
  text-decoration: none;
  cursor: pointer;
}
.ad-account__menu a:hover,
.ad-account__menu button:hover { background: var(--ad-hover); }

/* layout */
.ad-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.ad-side {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  padding: 20px 14px 24px 16px;
  border-right: 1px solid var(--ad-line-2);
  background: #fff;
}
.ad-side__label { margin: 0 10px 6px; font-size: 11px; font-weight: 600; color: var(--ad-faint); }
.ad-side__group + .ad-side__group { margin-top: 18px; }
.ad-side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin-bottom: 1px;
  border-radius: 7px;
  color: var(--ad-ink-2);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
}
.ad-side__link svg { flex: none; width: 16px; height: 16px; color: var(--ad-faint); }
.ad-side__link:hover { background: var(--ad-hover); color: var(--ad-ink); }
.ad-side__link.is-active { background: #eef2f6; color: var(--ad-ink); font-weight: 650; }
.ad-side__link.is-active svg { color: var(--ad-ink); }
.ad-side__meta { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ad-faint); }
.ad-side__link.is-active .ad-side__meta { color: var(--ad-muted); }
.ad-side__hidden { margin-left: auto; font-size: 11px; font-weight: 500; color: #cbd5e1; }
.ad-side__link.is-active .ad-side__hidden { color: var(--ad-faint); }
.ad-main { min-width: 0; padding: 24px 32px 96px; }

/* section header */
.ad-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--ad-line-2); }
.ad-head__title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.ad-head__sub { margin: 3px 0 0; font-size: 13px; color: var(--ad-muted); }
.ad-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.ad-subhead h2 { margin: 0; font-size: 14px; font-weight: 650; color: var(--ad-ink); }

/* cards & forms */
.ad-card { border: 1px solid var(--ad-line); border-radius: 12px; background: #fff; }
.ad-card + .ad-card { margin-top: 14px; }
.ad-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ad-line-2); }
.ad-card__title { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ad-ink); }
.ad-card__body { padding: 16px; }
.ad-card__desc { margin: 2px 0 0; font-size: 12.5px; color: var(--ad-muted); }
.ad-settings { border: 1px solid var(--ad-line); border-radius: 12px; margin-bottom: 14px; background: #fff; }
.ad-settings > summary { display: flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; }
.ad-settings > summary::-webkit-details-marker { display: none; }
.ad-settings > summary::after { content: '▾'; margin-left: auto; color: var(--ad-faint); font-size: 12px; transition: transform 0.15s; }
.ad-settings[open] > summary::after { transform: rotate(180deg); }
.ad-settings[open] > summary { border-bottom: 1px solid var(--ad-line-2); }
.ad-settings__meta { font-weight: 500; color: var(--ad-muted); font-size: 12px; }
.ad-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 16px; }
.ad-form--single { grid-template-columns: minmax(0, 1fr); padding: 0; }
.ad .field { gap: 5px; }
.ad .field--wide { grid-column: 1 / -1; }
.ad .field__label { font-size: 12.5px; font-weight: 600; color: var(--ad-ink-2); }
.ad .field__help { font-size: 11.5px; color: var(--ad-faint); }
.ad .label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ad .md-hint { font-size: 11px; color: #b6c0cc; }
.ad .field--switch { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--ad-line); border-radius: 8px; }
.ad .field--switch .field__label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ad-ink); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; transition: background 0.15s; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.switch input:checked + .switch__track { background: var(--ad-ink); }
.switch input:checked + .switch__track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--ad-ink); outline-offset: 2px; }

.media { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.media__thumb { width: 84px; height: 60px; border-radius: 8px; object-fit: cover; border: 1px solid var(--ad-line); background: #f8fafc; }
.media__empty { display: grid; place-items: center; width: 84px; height: 60px; border-radius: 8px; border: 1px dashed #cbd5e1; color: var(--ad-faint); font-size: 11px; }
.media__file { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.swatch-custom { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ad-muted); }
.swatch-custom input[type='color'] { width: 34px; height: 30px; padding: 0; border: 1px solid var(--ad-line); border-radius: 8px; background: #fff; cursor: pointer; }

/* list */
.ad-list { border: 1px solid var(--ad-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ad-list__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-bottom: 1px solid var(--ad-line-2); background: #fcfcfd; }
.ad-list__barlabel { font-size: 12.5px; font-weight: 600; color: var(--ad-muted); }
.ad-list__spacer { flex: 1; }
.ad-list .ad-search { width: 220px; height: 30px; padding: 0 10px; font-size: 12.5px; }
.ad-count { font-size: 11.5px; color: var(--ad-faint); white-space: nowrap; }
.ad-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #f1f3f5; }
.ad-tabs button { border: 0; background: transparent; padding: 4px 11px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ad-muted); cursor: pointer; }
.ad-tabs button.is-active { background: #fff; color: var(--ad-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.ad-list__cols,
.ad-row { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 14px; padding: 0 14px; }
.ad-list__cols { height: 32px; border-bottom: 1px solid var(--ad-line-2); font-size: 11.5px; font-weight: 600; color: var(--ad-faint); }
.ad-list__cols span:last-child { text-align: right; }
.ad-row { min-height: 46px; padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--ad-line-2); cursor: pointer; transition: background 0.1s; }
.ad-row:last-child { border-bottom: 0; }
.ad-row:hover { background: #fafbfc; }
.ad-row.is-new { animation: ad-flash 1.4s ease-out; }
@keyframes ad-flash { from { background: #fef9c3; } }
.ad-row__primary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ad-thumb { flex: none; width: 32px; height: 32px; border-radius: 7px; object-fit: cover; background: #f1f5f9; border: 1px solid var(--ad-line); display: grid; place-items: center; color: var(--ad-faint); font-size: 11px; font-weight: 700; }
.ad-thumb--round { border-radius: 50%; }
.ad-row__text { min-width: 0; }
.ad-row__title { font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--ad-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-row__sub { margin-top: 2px; font-size: 11.5px; color: var(--ad-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-cell { font-size: 12.5px; color: var(--ad-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-cell--tag { justify-self: start; max-width: 100%; padding: 2px 9px; border-radius: 99px; background: #f1f4f7; font-size: 12px; font-weight: 500; color: var(--ad-ink-2); }
.ad-cell--tag.ad-cell--muted { padding: 0; background: none; }
.ad-cell--muted { color: #cbd5e1; }
.ad-row__actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.ad-row__actions .ad-icon { width: 28px; height: 28px; border-color: transparent; background: transparent; }
@media (hover: hover) {
  .ad-row__actions { opacity: 0; transition: opacity 0.12s; }
  .ad-row:hover .ad-row__actions,
  .ad-row:focus-within .ad-row__actions { opacity: 1; }
}
.ad-order { display: flex; gap: 0; }
.ad-order button { display: grid; place-items: center; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ad-muted); cursor: pointer; }
.ad-order button:hover { background: var(--ad-hover); }
.ad-order button:hover { color: var(--ad-ink); }
.ad-order button:disabled { opacity: 0.3; cursor: default; }
.ad-order svg { width: 14px; height: 14px; }
.ad-empty { padding: 40px 20px; text-align: center; color: var(--ad-muted); }
.ad-empty strong { display: block; color: var(--ad-ink); margin-bottom: 4px; }
.ad-list__foot { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--ad-line-2); font-size: 11.5px; color: var(--ad-faint); background: #fcfcfd; }
.ad-list__foot a { color: var(--ad-muted); }

/* profile card (PI) */
.ad-profile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ad-profile .ad-thumb { width: 56px; height: 70px; border-radius: 8px; }
.ad-profile__text { min-width: 0; flex: 1; }
.ad-profile__name { font-weight: 800; font-size: 14.5px; }
.ad-profile__sub { font-size: 12px; color: var(--ad-muted); }

/* notices */
.ad-welcome { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; margin-bottom: 16px; border-radius: 12px; background: #0b0b0c; color: #e5e7eb; }
.ad-welcome h2 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.ad-welcome p, .ad-welcome ol { margin: 0; font-size: 12.5px; }
.ad-welcome ol { padding-left: 18px; margin-top: 6px; }
.ad-welcome a { color: #fff; font-weight: 700; }
.ad-welcome .ad-btn { margin-left: auto; background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.ad-side__access { display: flex; gap: 8px; align-items: flex-start; margin: 22px 4px 0; padding: 10px 12px; border-radius: 9px; background: #f8fafc; border: 1px solid var(--ad-line); font-size: 12px; line-height: 1.45; color: var(--ad-ink-2); }
.ad-side__access svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--ad-faint); }
/* Team: who can edit what */
.ad-signin { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: 9px; background: #f8fafc; border: 1px solid var(--ad-line); font-size: 12px; line-height: 1.45; color: var(--ad-ink-2); overflow-wrap: anywhere; }
.ad-signin svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--ad-faint); }
.ad-signin a { color: var(--ad-ink); font-weight: 600; }
.ad-invite { display: flex; flex-direction: column; gap: 14px; }
.ad-field { display: flex; flex-direction: column; gap: 5px; max-width: 420px; }
.ad-field__label { font-size: 12.5px; font-weight: 600; color: var(--ad-ink-2); }
.ad-accesspicker { display: flex; flex-direction: column; gap: 10px; }
.ad-accesspicker .ad-seg { align-self: flex-start; }
.ad-access__help { margin: 0; font-size: 12.5px; color: var(--ad-ink-2); }
.ad-access { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fcfcfd; }
.ad-access__bar { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ad-ink); }
.ad-access__bar span { margin-right: auto; }
.ad-access__group p { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ad-muted); }
.ad-access__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; }
.ad-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ad-ink); cursor: pointer; }
.ad-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--ad-ink); }
.ad-linkbtn { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--ad-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ad-linkbtn:hover { color: var(--ad-ink); }
.ad-accesscell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ad-accesscell__list { font-size: 12px; color: var(--ad-ink-2); line-height: 1.4; }
.ad-table__actions { text-align: right; white-space: nowrap; }
.ad-table__actions .ad-btn + .ad-btn, .ad-table__actions .ad-btn + a.ad-btn, .ad-table__actions a.ad-btn + .ad-btn { margin-left: 6px; }
.ad-table--team td:first-child { min-width: 180px; }
.ad-invite__done { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ad-invite__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-note { padding: 10px 12px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--ad-line); font-size: 12.5px; color: var(--ad-ink-2); }
.ad-note--warn { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.ad-note--ok { background: #ecfdf3; border-color: #abefc6; color: #067647; }

/* drawer & modal */
dialog.ad-drawer {
  margin: 0 0 0 auto;
  width: min(520px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--ad-line);
  background: #fff;
  color: var(--ad-ink);
  box-shadow: -24px 0 60px -24px rgba(15, 23, 42, 0.35);
}
dialog.ad-drawer[open] { display: flex; flex-direction: column; animation: ad-slide 0.18s ease-out; }
@keyframes ad-slide { from { transform: translateX(24px); } }
dialog.ad-drawer::backdrop,
dialog.ad-modal::backdrop { background: rgba(15, 23, 42, 0.28); }
.ad-drawer__head,
.ad-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--ad-line-2); }
.ad-drawer__title,
.ad-modal__title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.ad-drawer__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ad-drawer__foot,
.ad-modal__foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--ad-line-2); background: #fcfcfd; }
.ad-drawer__foot .ad-btn--danger { margin-right: auto; }
dialog.ad-modal { width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 14px; color: var(--ad-ink); box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.45); }
.ad-modal__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.ad-modal__body textarea { min-height: 200px; }
.ad-field-invalid input,
.ad-field-invalid textarea { border-color: #fda29b !important; background: #fffbfa; }
.ad-toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.ad-toast { pointer-events: auto; padding: 9px 14px; border-radius: 9px; background: var(--ad-ink, #0b0b0c); color: #fff; font-size: 13px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); animation: ad-toast 0.18s ease-out; max-width: min(520px, calc(100vw - 32px)); }
.ad-toast--error { background: #b42318; }
@keyframes ad-toast { from { transform: translateY(8px); opacity: 0; } }

/* design studio */
.ad-design { display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); gap: 20px; align-items: start; }
.ad-design__controls { display: flex; flex-direction: column; gap: 14px; }
.ad-design__tabs { display: flex; }
.ad-design__tabs button { flex: 1; }
.ad-design__controls .ad-card + .ad-card { margin-top: 0; }
.ad-design__preview { position: sticky; top: 74px; border: 1px solid var(--ad-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ad-preview__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--ad-line-2); background: #fcfcfd; flex-wrap: wrap; }
.ad-preview__stage { position: relative; height: calc(100vh - 170px); min-height: 460px; overflow: hidden; background: #f1f3f5; }
.ad-preview__frame { position: absolute; top: 0; left: 0; border: 0; background: #fff; transform-origin: 0 0; }
.ad-preview__stage--mobile .ad-preview__frame { left: 50%; border-radius: 18px; box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.35); }
.ad-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ad-tpl { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ad-ink); }
.ad-tpl:hover { border-color: #cbd5e1; }
.ad-tpl.is-active { border-color: var(--ad-ink); box-shadow: 0 0 0 1px var(--ad-ink); }
.ad-tpl__art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #eef1f4; border: 1px solid rgba(0, 0, 0, 0.06); }
.ad-tpl__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ad-tpl__name { display: flex; flex-direction: column; gap: 1px; font-size: 12px; font-weight: 800; padding: 0 2px 2px; }
.ad-tpl__name small { font-size: 10.5px; font-weight: 500; line-height: 1.25; color: var(--ad-muted); }
.ad-tpls__group { margin: 4px 0 -2px; font-size: 12px; font-weight: 600; color: var(--ad-muted); }
.ad-motif { position: absolute; inset: 0; pointer-events: none; background: var(--m-color); opacity: 0.32; -webkit-mask: var(--m-image) 0 0 / var(--m-size) repeat; mask: var(--m-image) 0 0 / var(--m-size) repeat; }
.ad-motifs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ad-motifbtn { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid var(--ad-line); border-radius: 9px; background: #fff; cursor: pointer; font: inherit; text-align: left; color: var(--ad-ink); }
.ad-motifbtn:hover { border-color: #cbd5e1; }
.ad-motifbtn.is-active { border-color: var(--ad-ink); box-shadow: 0 0 0 1px var(--ad-ink); }
.ad-motifbtn__art { position: relative; display: block; height: 38px; border-radius: 5px; overflow: hidden; background: var(--t-bg); border: 1px solid rgba(0, 0, 0, 0.05); }
.ad-motifbtn__name { font-size: 10.5px; font-weight: 600; line-height: 1.2; padding: 0 2px 1px; }
.ad-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.ad-theme { display: flex; flex-direction: column; gap: 5px; padding: 5px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; text-align: left; color: var(--ad-ink); }
.ad-theme:hover { border-color: #cbd5e1; }
.ad-theme.is-active { border-color: var(--ad-ink); box-shadow: 0 0 0 1px var(--ad-ink); }
.ad-theme__colors { display: flex; height: 18px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.06); }
.ad-theme__colors span { flex: 1; }
.ad-theme__name { font-size: 11px; font-weight: 600; line-height: 1.2; }
.ad-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ad-font { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ad-ink); }
.ad-font:hover { border-color: #cbd5e1; }
.ad-font.is-active { border-color: var(--ad-ink); box-shadow: 0 0 0 1px var(--ad-ink); }
.ad-font__sample { font-size: 20px; line-height: 1.15; }
.ad-font__name { font-size: 10.5px; color: var(--ad-muted); }
.ad-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 9px; background: #f1f3f5; }
.ad-seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ad-muted); cursor: pointer; }
.ad-seg button:hover { color: var(--ad-ink); }
.ad-seg button.is-active { background: #fff; color: var(--ad-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.ad-seg svg { display: block; width: 15px; height: 15px; }
.ad-layoutrow { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--ad-line-2); }
.ad-layoutrow:first-child { border-top: 0; padding-top: 0; }
.ad-layoutrow__label { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--ad-ink); }
.ad-layoutrow__desc { font-size: 11.5px; color: var(--ad-faint); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* domain & team */
.kv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kv code,
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #f1f5f9; border-radius: 6px; padding: 3px 8px; word-break: break-all; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 220px; }
.inline-form select { width: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ad-faint); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ad-line-2); }
.ad-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--ad-line-2); vertical-align: middle; }
.ad-table select { width: auto; padding: 5px 8px; font-size: 12.5px; }
.ad-steps { margin: 0; padding-left: 18px; color: var(--ad-ink-2); font-size: 13px; }
.ad-steps li + li { margin-top: 4px; }
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #f1f5f9; color: var(--ad-ink-2); }
.pill--ok { background: #ecfdf3; color: #067647; }
.pill--warn { background: #fffaeb; color: #b54708; }
.pill--muted { color: var(--ad-muted); }

.addr { display: flex; align-items: stretch; }

/* responsive */
@media (max-width: 1100px) {
  .ad-design { grid-template-columns: minmax(0, 1fr); }
  .ad-design__preview { position: static; }
}
@media (max-width: 860px) {
  .ad-top__menu { display: inline-grid; }
  .ad-top__url, .ad-top__sep { display: none; }
  .ad-layout { grid-template-columns: minmax(0, 1fr); }
  .ad-side { position: fixed; z-index: 40; top: 52px; left: 0; width: 270px; transform: translateX(-100%); transition: transform 0.18s; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.35); }
  .ad-layout.is-menu .ad-side { transform: none; }
  .ad-main { padding: 16px 16px 80px; }
  .ad-form { grid-template-columns: minmax(0, 1fr); }
  .ad-list__cols { display: none; }
  .ad-row { grid-template-columns: minmax(0, 1fr) auto !important; }
  .ad-row .ad-cell { display: none; }
  .ad-list .ad-search { width: 100%; }
}
@media (max-width: 560px) {
  .ad-top { padding: 0 12px; gap: 8px; }
  .ad-top__site { display: none; }
  .ad-btn-label { display: none; }
  .ad-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- import builder (“Bring your website”) */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Landing page: paste-your-website form */
.hero__import {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  max-width: 560px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero__import input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 16px;
  padding: 0 12px;
  background: transparent;
}
.hero__import .btn { flex: none; }
.hero__import:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.hero__import + .hero__cta { margin-top: 14px; }

.apppage__actions { display: flex; gap: 8px; }

.importcta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 28px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--brand-line);
  background: linear-gradient(90deg, var(--brand-soft), #fff 70%);
}
.importcta:hover { border-color: var(--brand); }
.importcta > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); }
.importcta strong { color: var(--ink); font-size: 15px; }
.importcta__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 20px; }
.importcta__go { margin-left: auto; font-weight: 600; color: var(--brand-ink); white-space: nowrap; }

/* Builder page */
.bx { background: #f4f5f7; min-height: 100vh; }
.bx-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e7e9ed;
}
.bx-top .brand__name { font-size: 16px; }
.bx-top__title { padding-left: 14px; border-left: 1px solid #e7e9ed; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bx-top__spacer { flex: 1; }
.bx-top__user { font-size: 12.5px; color: var(--muted); }

.bx-start { max-width: 720px; margin: 0 auto; padding: 72px 20px 80px; }
.bx-start__title { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.bx-start__lead { font-size: 17px; color: var(--ink-2); margin: 18px 0 30px; }
.bx-url {
  display: flex;
  gap: 8px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.bx-url:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.bx-url input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 0 14px; background: transparent; }
.bx-keys { margin-top: 18px; padding: 4px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.bx-keys summary { cursor: pointer; padding: 10px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.bx-keys[open] summary { border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.bx-keys .field { margin-bottom: 14px; }
.bx-keys input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.bx-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }

/* Building: log on the left, live preview on the right */
.bx--building .bx-main { padding: 0; }
.bx-build { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 56px); }
.bx-log { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: #fff; border-right: 1px solid #e7e9ed; padding: 20px 18px 28px; }
.bx-log__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.bx-log__name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.bx-log__source { font-size: 12.5px; color: var(--muted); }
.bx-progress { height: 4px; border-radius: 99px; background: #eef0f3; overflow: hidden; margin-bottom: 18px; }
.bx-progress i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--brand), #14b8a6); border-radius: inherit; transition: width 0.6s ease; }

.bx-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bx-step { display: flex; gap: 10px; padding: 7px 8px; border-radius: 9px; transition: background 0.2s; }
.bx-step.is-running { background: #f3faf9; }
.bx-step__icon { position: relative; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid #d0d5dd; }
.bx-step.is-running .bx-step__icon { border-color: #cfe9e5; border-top-color: var(--brand); animation: bx-spin 0.8s linear infinite; }
.bx-step.is-done .bx-step__icon { border: 0; background: var(--brand); }
.bx-step.is-done .bx-step__icon::after { content: ''; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bx-step.is-error .bx-step__icon { border: 0; background: #f04438; }
.bx-step.is-error .bx-step__icon::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; }
.bx-step__text { display: flex; flex-direction: column; min-width: 0; }
.bx-step__title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bx-step.is-waiting .bx-step__title { color: var(--muted); font-weight: 500; }
.bx-step__sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.bx-step.is-error .bx-step__sub { color: var(--danger); }
.bx-step__sub:empty { display: none; }
@keyframes bx-spin { to { transform: rotate(360deg); } }

.bx-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 4px; }
.bx-stats:empty { display: none; }
.bx-chip { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #f1f5f9; color: var(--ink-2); }
.bx-chip--img { background: var(--brand-soft); color: var(--brand-ink); }
.bx-feed__title { margin: 18px 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #98a2b3; }
.bx-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bx-feed:empty::after { content: 'People, papers and news appear here as they are found.'; font-size: 12px; color: #98a2b3; }
.bx-feed__item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; background: #fafbfc; font-size: 12.5px; animation: bx-in 0.35s ease; }
.bx-feed__item img { flex: none; width: 26px; height: 26px; border-radius: 6px; object-fit: cover; background: #eef0f3; }
.bx-feed__dot { flex: none; width: 6px; height: 6px; margin: 0 10px; border-radius: 50%; background: var(--brand); }
.bx-feed__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-feed__item em { flex: none; font-style: normal; font-size: 11px; color: #98a2b3; }
@keyframes bx-in { from { opacity: 0; transform: translateY(-4px); } }

.bx-stage { min-width: 0; min-height: 0; padding: 18px 22px 22px; display: flex; transition: padding 0.3s ease; }
.bx-browser { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.35); overflow: hidden; }
.bx-browser__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid #eef0f3; background: #fbfbfc; }
.bx-dots { display: flex; gap: 6px; }
.bx-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e4e7ec; }
.bx-browser__addr { flex: 1; min-width: 0; padding: 4px 12px; border-radius: 7px; background: #f1f3f6; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-browser__open { font-size: 12px; font-weight: 600; text-decoration: none; }
.bx-tabs { display: flex; gap: 2px; padding: 6px 10px; border-bottom: 1px solid #eef0f3; overflow-x: auto; scrollbar-width: none; }
.bx-tab { flex: none; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.bx-tab:hover { background: #f4f5f7; color: var(--ink); }
.bx-tab.is-active { background: var(--ink); color: #fff; }
.bx-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.bx-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity 0.35s ease; background: #fff; }
.bx-frame.is-active { opacity: 1; z-index: 1; }
.bx-veil { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #fff; color: var(--muted); font-size: 14px; }
.bx-spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #e4f2ef; border-top-color: var(--brand); animation: bx-spin 0.8s linear infinite; }

/* The template island */
.bx--island .bx-stage { padding-bottom: 214px; }
.bx-island {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  width: min(1040px, calc(100vw - 32px));
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 30px 80px -24px rgba(15, 23, 42, 0.45), 0 2px 6px rgba(15, 23, 42, 0.06);
}
.bx-island.is-open { transform: translate(-50%, 0); }
/* Beside the build log, centre the island over the preview. */
@media (min-width: 901px) {
  .bx-island { left: calc(340px + (100vw - 340px) / 2); width: min(1040px, calc(100vw - 340px - 44px)); }
}
.bx-island__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px 4px 20px; }
.bx-island__title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bx-island__title strong { font-size: 15px; }
.bx-island__title span { font-size: 12px; color: var(--muted); }
.bx-island__actions { display: flex; align-items: center; gap: 8px; }
.bx-publish { padding-left: 22px; padding-right: 22px; }
.bx-island__rail { display: flex; gap: 12px; padding: 12px 20px 18px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bx-tpl { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 7px; width: 176px; padding: 6px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; font: inherit; text-align: left; transition: transform 0.18s ease, background 0.18s; }
.bx-tpl:hover, .bx-tpl:focus-visible { transform: translateY(-3px); background: rgba(15, 23, 42, 0.04); outline: 0; }
.bx-tpl__name { padding: 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.bx-tpl__field { margin-top: -6px; padding: 0 4px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-tpl.is-suggested .bx-tpl__field { color: var(--brand); font-weight: 600; }
.bx-tpl.is-selected .bx-tpl__name { color: var(--ink); }
.bx-tpl.is-selected .bx-tpl__name::after { content: ' ✓'; color: var(--brand); }
.bx-tpl.is-selected .bx-art { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* A screenshot of the template (public/_ls/templates) */
.bx-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #eef1f4; border: 1px solid rgba(15, 23, 42, 0.1); }
.bx-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Publish & pay */
.bx-modal { width: min(480px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 18px; box-shadow: 0 40px 100px -30px rgba(15, 23, 42, 0.5); }
.bx-modal::backdrop { background: rgba(15, 23, 42, 0.42); backdrop-filter: blur(3px); }
.bx-modal__x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.bx-modal__title { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }
.bx-modal__lead { margin: 10px 0 20px; color: var(--ink-2); font-size: 14.5px; }
.bx-modal__fine { margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.bx-modal__row { display: flex; gap: 10px; justify-content: flex-end; }
.bx-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.bx-plan { position: relative; cursor: pointer; }
.bx-plan input { position: absolute; opacity: 0; }
.bx-plan__body { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.bx-plan input:checked + .bx-plan__body { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08); }
.bx-plan input:focus-visible + .bx-plan__body { outline: 2px solid var(--brand); outline-offset: 2px; }
.bx-plan__body strong { font-size: 13px; color: var(--muted); font-weight: 600; }
.bx-plan__price { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.bx-plan__price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.bx-plan__note { font-size: 12px; color: var(--brand-ink); font-weight: 600; }

@media (max-width: 900px) {
  .bx-build { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: auto; min-height: calc(100vh - 56px); }
  .bx-log { max-height: 42vh; border-right: 0; border-bottom: 1px solid #e7e9ed; }
  .bx-stage { padding: 12px; min-height: 70vh; }
  .bx--island .bx-stage { padding-bottom: 240px; }
  .bx-top__user, .bx-top__title { display: none; }
  .bx-island { bottom: 0; width: 100vw; border-radius: 20px 20px 0 0; }
  .bx-island__head { flex-wrap: wrap; }
  .bx-plans { grid-template-columns: 1fr; }
  .hero__import { flex-direction: column; }
  .hero__import input { padding: 12px; }
  .bx-url { flex-direction: column; }
  .bx-url input { padding: 12px; }
}

/* Dashboard: plans */
.ad-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ad-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; border: 1px solid var(--ad-line); border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.ad-plan:hover { border-color: var(--ad-ink); box-shadow: 0 6px 20px -12px rgba(15, 23, 42, 0.35); }
.ad-plan:disabled { opacity: 0.6; cursor: progress; }
.ad-plan strong { font-size: 12px; color: var(--ad-muted); font-weight: 600; }
.ad-plan__price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ad-ink); }
.ad-plan__price small { font-size: 12px; font-weight: 500; color: var(--ad-muted); letter-spacing: 0; }
.ad-plan__note { font-size: 11.5px; font-weight: 600; color: #0f766e; }

@media (max-width: 700px) {
  .ad-table--team thead { display: none; }
  .ad-table--team, .ad-table--team tbody, .ad-table--team tr, .ad-table--team td { display: block; }
  .ad-table--team tr { padding: 10px 0; border-bottom: 1px solid var(--ad-line-2); }
  .ad-table--team td { padding: 3px 0; border: 0; }
  .ad-table__actions { text-align: left; white-space: normal; }
}

/* Publications: automatic updates */
.ad-sync { margin: 14px 0; }
.ad-sync__body { display: flex; flex-direction: column; gap: 12px; }
.ad-sync__form { display: flex; flex-direction: column; gap: 14px; }
.ad-sync__form .ad-field { max-width: 620px; }
.ad-field__help { font-size: 12px; color: var(--ad-muted); }
.ad-sync__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ad-sync__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--ad-ink-2); }
.ad-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex: none; }
.ad-dot--on { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; }
.ad-sync__warn { margin: 0; font-size: 12.5px; color: #b45309; }
.ad-sync__found { border: 1px solid var(--ad-line); border-radius: 10px; overflow: hidden; }
.ad-sync__foundhead { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #f0fdf4; border-bottom: 1px solid var(--ad-line); font-size: 13.5px; }
.ad-sync__list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.ad-sync__item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--ad-line-2); }
.ad-sync__item:last-child { border-bottom: 0; }
.ad-sync__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; font-size: 12.5px; color: var(--ad-muted); }
.ad-sync__text strong { font-size: 13.5px; font-weight: 600; color: var(--ad-ink); }
.ad-sync__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ad-pill { padding: 1px 8px; border-radius: 99px; background: #f1f4f7; font-size: 11.5px; color: var(--ad-ink-2); }
.ad-sync__btns { display: flex; gap: 6px; flex: none; }
@media (max-width: 640px) { .ad-sync__item { flex-direction: column; align-items: stretch; } }

/* legal pages */
.legal { background: var(--bg); }
.legal__nav { display: flex; gap: 18px; font-size: 14px; }
.legal__nav a { color: var(--muted); text-decoration: none; }
.legal__nav a:hover { color: var(--ink); }
.legal__main { padding: 40px 16px 80px; }
.legal__doc { max-width: 760px; margin: 0 auto; line-height: 1.65; font-size: 15.5px; color: var(--ink-2, #334155); }
.legal__doc h1 { font-family: var(--serif); font-size: 36px; margin: 0 0 6px; color: var(--ink); }
.legal__doc h2 { font-size: 18px; margin: 32px 0 8px; color: var(--ink); }
.legal__doc li { margin-bottom: 6px; }
.legal__meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 14px; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal__table th { color: var(--ink); font-weight: 600; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 13px; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.auth__main .legal-links { margin-top: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
/* account page */
.account__card { padding: 22px 24px; margin-bottom: 16px; }
.account__card h2 { margin: 0 0 12px; font-size: 17px; }
.account__card p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.account__card .form { max-width: 420px; }
.account__danger { border-color: #fecaca; }
.account__sites { margin: 0 0 12px; padding-left: 18px; font-size: 14px; color: var(--ink-2, #334155); }
.account__warn { color: #b45309 !important; }
@media (max-width: 640px) { .legal__table { display: block; overflow-x: auto; } .legal__doc h1 { font-size: 28px; } }
.account__download { border: 1px solid var(--line); }

/* AI assistant */
.ad-ai { display: grid; grid-template-columns: minmax(330px, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
.ad-ai__chat { position: sticky; top: 74px; display: flex; flex-direction: column; height: calc(100vh - 130px); min-height: 520px; border: 1px solid var(--ad-line); border-radius: 12px; background: #fff; overflow: hidden; }
.ad-ai__log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.ad-ai__intro h2 { margin: 6px 0 6px; font-size: 16px; }
.ad-ai__intro p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ad-muted); }
.ad-ai__examples { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.ad-ai__examples:empty { display: none; }
.ad-ai__chip { padding: 6px 10px; border: 1px solid var(--ad-line); border-radius: 99px; background: #fafbfc; font: inherit; font-size: 12.5px; color: var(--ad-ink-2); text-align: left; cursor: pointer; }
.ad-ai__chip:hover { border-color: #cbd5e1; background: var(--ad-hover); }
.ad-ai__msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-ai__msg--me { align-self: flex-end; background: var(--ad-ink); color: #fff; border-bottom-right-radius: 4px; }
.ad-ai__msg--ai { align-self: flex-start; background: #f4f6f8; color: var(--ad-ink); border-bottom-left-radius: 4px; white-space: normal; }
.ad-ai__msg--ai.is-error { background: #fef3f2; color: #b42318; }
.ad-ai__reply { margin: 0; white-space: pre-wrap; }
.ad-ai__thinking { color: var(--ad-muted); }
.ad-ai__steps { margin: 8px 0 0; padding: 0 0 0 18px; font-size: 12.5px; color: var(--ad-ink-2); }
.ad-ai__steps li { margin: 2px 0; }
.ad-ai__steps li.is-live::after { content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border: 2px solid #cbd5e1; border-top-color: var(--ad-ink); border-radius: 50%; vertical-align: -1px; animation: ad-spin 0.8s linear infinite; }
@keyframes ad-spin { to { transform: rotate(360deg); } }
.ad-ai__changes { margin-top: 8px; font-size: 12.5px; }
.ad-ai__changes summary { cursor: pointer; color: var(--ad-muted); }
.ad-ai__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.ad-ai__done { font-size: 12.5px; font-weight: 700; color: #067647; }
.ad-ai__state { font-size: 12.5px; color: var(--ad-muted); }
.ad-ai__composer { border-top: 1px solid var(--ad-line); padding: 10px; background: #fcfcfd; }
.ad-ai__input { width: 100%; resize: vertical; min-height: 64px; max-height: 240px; padding: 9px 11px; border: 1px solid var(--ad-line); border-radius: 10px; font: inherit; font-size: 14px; line-height: 1.45; background: #fff; }
.ad-ai__input:focus { outline: 2px solid #c7d2fe; border-color: #a5b4fc; }
.ad-ai__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ad-ai__meter { font-size: 11.5px; color: var(--ad-faint); }
.ad-preview__bar .ad-ai__pagesel { flex: 0 0 auto; width: auto; max-width: 220px; height: 30px; min-height: 0; padding: 0 26px 0 9px; line-height: 28px; border: 1px solid var(--ad-line); border-radius: 8px; background-color: #fff; font: inherit; font-size: 12.5px; }
.ad-ai__badge { font-size: 12px; color: var(--ad-muted); }
.ad-ai__badge.is-proposal { padding: 3px 8px; border-radius: 99px; background: #eef4ff; color: #3538cd; font-weight: 600; }
.ad-ai__preview { top: 74px; }
.ad-top__ai svg { color: #7c3aed; }
.ad-blocks { display: flex; flex-direction: column; }
.ad-blocks__row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ad-line-2); }
.ad-blocks__row:last-child { border-bottom: 0; }
.ad-blocks__row.is-hidden .ad-blocks__text { opacity: 0.55; }
.ad-blocks__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.ad-blocks__text span { font-size: 12px; color: var(--ad-muted); }
.ad-settings > .ad-blocks { padding: 0 12px 8px; }
.ad-menu__list { display: flex; flex-direction: column; }
.ad-menu__row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--ad-line-2); }
.ad-menu__row.is-child { padding-left: 30px; }
.ad-menu__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ad-menu__fields { display: flex; gap: 6px; }
.ad-menu__fields input { flex: 1; min-width: 0; height: 32px; padding: 0 9px; border: 1px solid var(--ad-line); border-radius: 8px; font: inherit; font-size: 13.5px; }
.ad-menu__kind { font-size: 11.5px; color: var(--ad-muted); }
.ad-menu__out { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 2px; }
.ad-chip { padding: 4px 10px; border: 1px dashed var(--ad-line); border-radius: 99px; background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
.ad-chip:hover { border-style: solid; }
@media (max-width: 600px) {
  .ad-menu__row { flex-wrap: wrap; }
  .ad-menu__fields { flex-direction: column; }
}
.ad-design__ask { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.ad-code { width: 100%; min-height: 180px; padding: 10px 12px; border: 1px solid var(--ad-line); border-radius: 10px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; background: #fbfbfc; tab-size: 2; }
.ad-blocks__help { margin: 10px 16px 2px; font-size: 12.5px; color: var(--ad-muted); }
.ad-blocks .ad-blocks__help { margin: 8px 4px; }
.ad-blocks__move { display: flex; flex-direction: column; width: 28px; flex: 0 0 28px; }
.ad-blocks__move .ad-icon { width: 28px; height: 20px; }
.ad-blocks__move .ad-icon svg { width: 14px; height: 14px; }
.ad-blocks__move .ad-icon:disabled { opacity: 0.25; cursor: default; }
.ad-blocks__foot { display: flex; justify-content: flex-end; padding-top: 8px; }
/* Several buttons under the name: on phones, and in narrow columns (Design → Header, footer & CSS). */
.ad-blocks--stack .ad-blocks__row.is-custom { flex-wrap: wrap; }
.ad-blocks--stack .ad-blocks__row.is-custom .ad-blocks__text { flex: 1 1 calc(100% - 40px); }
.ad-blocks--stack .ad-blocks__row.is-custom > .ad-blocks__text + * { margin-left: 36px; }
@media (max-width: 600px) {
  .ad-blocks__row.is-custom { flex-wrap: wrap; }
  .ad-blocks__row.is-custom .ad-blocks__text { flex: 1 1 calc(100% - 40px); }
  .ad-blocks__row.is-custom > .ad-blocks__text + * { margin-left: 36px; }
}
@media (max-width: 900px) {
  .ad-ai { grid-template-columns: minmax(0, 1fr); }
  .ad-ai__chat { position: static; height: auto; min-height: 0; }
  .ad-ai__log { max-height: 60vh; }
  .ad-ai__preview { position: static; }
  .ad-ai__preview .ad-preview__stage { height: 70vh; }
}
@media (max-width: 640px) { .ad-top__ai .ad-btn-label { display: none; } }

/* AI assistant workspace: chat on the left, the site on the right, full screen under the top bar */
.ad-layout.is-studio { display: block; max-width: none; }
.ad-layout.is-studio .ad-side { display: none; }
.ad-layout.is-studio .ad-main { padding: 0; }
.ad-studio { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); height: calc(100vh - 52px); height: calc(100dvh - 52px); background: #f6f7f9; }
.ad-studio__chat { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--ad-line); }
.ad-studio__head { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px 0 8px; border-bottom: 1px solid var(--ad-line-2); flex: none; }
.ad-studio__back { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ad-muted); text-decoration: none; font-size: 16px; }
.ad-studio__back:hover { background: var(--ad-hover); color: var(--ad-ink); }
.ad-studio__title { display: flex; align-items: center; gap: 7px; flex: 1; font-size: 14px; font-weight: 700; }
.ad-studio__title svg { width: 16px; height: 16px; color: #7c3aed; }
.ad-studio__tabs { display: none; }
.ad-studio__warn { margin: 12px 14px 0; }
.ad-studio .ad-ai__log { flex: 1; min-height: 0; }
.ad-studio .ad-ai__composer { flex: none; }
.ad-studio__preview { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ad-studio__toolbar { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--ad-line); flex: none; }
.ad-studio .ad-preview__stage { flex: 1; height: auto; min-height: 0; background: #eef0f3; }
.ad-studio__proposal { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--ad-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.35); white-space: nowrap; z-index: 2; }
.ad-studio__proposal[hidden] { display: none; }
.ad-studio__proposal-text { display: flex; align-items: center; gap: 7px; margin-right: 6px; font-size: 13px; font-weight: 600; color: var(--ad-ink-2); }
.ad-studio__proposal-text svg { width: 15px; height: 15px; color: #7c3aed; }
@media (max-width: 900px) {
  .ad-studio { grid-template-columns: minmax(0, 1fr); }
  .ad-studio__tabs { display: inline-flex; }
  .ad-studio__preview { display: none; }
  .ad-studio.is-preview .ad-studio__chat { display: none; }
  .ad-studio.is-preview .ad-studio__preview { display: flex; }
  .ad-studio__proposal { left: 12px; right: 12px; transform: none; white-space: normal; flex-wrap: wrap; }
}
.ad-studio__toolbar .ad-ai__pagesel { flex: 0 0 auto; width: auto; max-width: 200px; height: 30px; min-height: 0; padding: 0 26px 0 9px; line-height: 28px; font-size: 12.5px; border-radius: 8px; }
.ad-studio__toolbar .ad-seg { flex: none; flex-wrap: nowrap; }
.ad-studio__toolbar .ad-seg button { display: grid; place-items: center; padding: 5px 9px; }
.ad-studio__toolbar .ad-seg svg { width: 15px; height: 15px; }
.ad-studio__toolbar .ad-ai__badge { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 520px) { .ad-studio__toolbar .ad-ai__badge { display: none; } }

/* ---------------------------------------------------------------- pricing */

.pricing__hero { padding: 64px 0 56px; text-align: center; }
.pricing__eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.pricing__title { margin: 0 auto 12px; max-width: 760px; font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.01em; }
.pricing__lead { margin: 0 auto 28px; max-width: 560px; font-size: 18px; color: var(--muted); }
.pricing__radio { position: absolute; opacity: 0; pointer-events: none; }
.pricing__switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.pricing__seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #e9edf2; }
.pricing__seg label { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.pricing__seg label:hover { color: var(--ink); }
#r-in:checked ~ .pricing__switches .lbl-in,
#r-intl:checked ~ .pricing__switches .lbl-intl,
#b-year:checked ~ .pricing__switches .lbl-year,
#b-month:checked ~ .pricing__switches .lbl-month { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15); }
#r-in:focus-visible ~ .pricing__switches .lbl-in,
#r-intl:focus-visible ~ .pricing__switches .lbl-intl,
#b-year:focus-visible ~ .pricing__switches .lbl-year,
#b-month:focus-visible ~ .pricing__switches .lbl-month { outline: 2px solid var(--brand); outline-offset: 2px; }
.pricing__save { margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; }
.pricing__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 40px; max-width: 900px; margin: 0 auto; padding: 36px; text-align: left; box-shadow: var(--shadow); }
.pricing__plan h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 26px; }
.pricing__plan p { margin: 0; color: var(--muted); }
.pricing__amount { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 26px; border-radius: 14px; background: var(--brand-soft); }
.price { display: none; flex-direction: column; gap: 4px; }
#r-in:checked ~ #b-year:checked ~ .pricing__card .price--in.price--year,
#r-in:checked ~ #b-month:checked ~ .pricing__card .price--in.price--month,
#r-intl:checked ~ #b-year:checked ~ .pricing__card .price--intl.price--year,
#r-intl:checked ~ #b-month:checked ~ .pricing__card .price--intl.price--month { display: flex; }
.price strong { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--ink); }
.price span { font-size: 14.5px; color: var(--ink-2); }
.price small { font-size: 12.5px; color: var(--muted); }
.pricing__cta { margin-top: 20px; justify-content: center; }
.pricing__note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.pricing__features { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pricing__features li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.pricing__features li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.pricing__h2 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 34px); }
.pricing__sub { margin: 0 0 24px; max-width: 720px; color: var(--muted); font-size: 16px; }
.cmp__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cmp { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; table-layout: fixed; }
.cmp th, .cmp td { padding: 14px 10px; border-bottom: 1px solid var(--line-2); text-align: center; vertical-align: middle; }
.cmp thead th { background: #fafbfc; vertical-align: bottom; }
.cmp thead th strong { display: block; font-size: 14.5px; color: var(--ink); }
.cmp thead th span { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.cmp tbody th { text-align: left; font-weight: 650; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; }
/* The feature names stay in view while the builders scroll sideways on small screens. */
.cmp th:first-child { position: sticky; left: 0; z-index: 1; width: 190px; background: #fff; border-right: 1px solid var(--line); }
.cmp thead th:first-child { background: #fafbfc; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:nth-child(even) th:first-child, .cmp tbody tr:nth-child(even) td:not(.cmp__us) { background: #fcfdfd; }
.cmp__price strong { display: block; font-size: 15px; color: var(--ink); }
.cmp__price span { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.cmp__yes { color: var(--brand); font-weight: 800; font-size: 18px; }
.cmp__no { color: #cbd5e1; font-size: 16px; }
.cmp__part { color: var(--ink-2); font-size: 12.5px; line-height: 1.3; }
.cmp .cmp__us { background: var(--brand-soft); border-left: 2px solid var(--brand); border-right: 2px solid var(--brand); }
.cmp thead .cmp__us--head { border-top: 2px solid var(--brand); border-radius: 12px 12px 0 0; }
.cmp thead .cmp__us--head strong { color: var(--brand-ink); }
.cmp tbody tr:last-child .cmp__us { border-bottom: 2px solid var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp__foot { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); max-width: 900px; }
.pricing__faq { max-width: 760px; }
.pricing__faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pricing__faq summary { cursor: pointer; font-weight: 650; font-size: 16px; }
.pricing__faq p { margin: 10px 0 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .pricing__hero { padding: 40px 0; }
  .pricing__card { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .pricing__amount { grid-row: auto; padding: 20px; }
  .price strong { font-size: 40px; }
}
@media (max-width: 480px) {
  .topnav__links { gap: 12px; }
  .topnav__links > a:not(.btn) { font-size: 13.5px; }
  .topnav__links .btn--sm { padding-left: 10px; padding-right: 10px; font-size: 12.5px; white-space: nowrap; }
  .topnav .brand__name { font-size: 15px; }
}
.topnav__short { display: none; }
@media (max-width: 400px) {
  .topnav__long { display: none; }
  .topnav__short { display: inline; }
}
@media (max-width: 640px) {
  .cmp { min-width: 900px; }
  .cmp th:first-child { width: 112px; font-size: 12.5px; padding-left: 12px; padding-right: 8px; }
}

/* ---------------------------------------------------------------- landing (SaaSly-style layout) */

.sq { --sq-ink: #111827; --sq-text: #4b5563; --sq-muted: #6b7280; --sq-line: #e5e7eb; --sq-primary: #4f46e5; --sq-primary-dark: #4338ca; --sq-tint: #f8f9fb; --sq-max: 1180px; margin: 0; background: #fff; color: var(--sq-ink); font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.sq a { color: inherit; text-decoration: none; }
.sq img { display: block; max-width: 100%; height: auto; }
.sq-wrap { max-width: var(--sq-max); margin: 0 auto; padding: 0 24px; }
.sq-skip { position: absolute; left: -9999px; }
.sq-skip:focus { left: 16px; top: 16px; z-index: 100; padding: 8px 12px; background: #fff; border-radius: 8px; }
.sq-center { display: flex; justify-content: center; }

/* buttons */
.sq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.sq-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.sq-btn--primary { background: var(--sq-primary); color: #fff !important; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.sq-btn--primary:hover { background: var(--sq-primary-dark); }
.sq-btn--dark { background: #0b0b12; color: #fff !important; }
.sq-btn--dark:hover { background: #262636; }
.sq-btn--ghost { border-color: var(--sq-line); background: #fff; }
.sq-btn--ghost:hover, .sq-btn--outline:hover { border-color: #c7cad1; }
.sq-btn--outline { border-color: var(--sq-line); background: #fff; color: var(--sq-ink); }
.sq-btn--plain { padding: 0 12px; color: var(--sq-ink); }
.sq-btn--plain:hover { color: var(--sq-primary); }

/* floating navigation */
.sq-nav { position: sticky; top: 14px; z-index: 50; padding: 0 24px; margin-top: 14px; }
.sq-nav__bar { display: flex; align-items: center; gap: 20px; max-width: var(--sq-max); margin: 0 auto; padding: 10px 12px 10px 20px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 14px; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05), 0 8px 24px -12px rgba(30, 64, 120, 0.25); }
.sq-nav__links { display: flex; gap: 28px; margin: 0 auto; font-size: 14.5px; font-weight: 500; color: var(--sq-text); }
.sq-nav__links a:hover { color: var(--sq-primary); }
.sq-nav__actions { display: flex; gap: 8px; }

/* hero over the sky */
.sq-hero { margin-top: -80px; padding: 150px 0 0; background: #eef4fc url('/_ls/landing/sky-hero.webp') center top / cover no-repeat; text-align: center; }
.sq-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 13.5px; color: var(--sq-text); }
.sq-badge__faces { display: inline-flex; }
.sq-badge__faces img { width: 26px; height: 26px; margin-left: -8px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.sq-badge__faces img:first-child { margin-left: 0; }
.sq-hero__title { margin: 0 auto; max-width: 860px; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; }
.sq-hero__lead { max-width: 620px; margin: 20px auto 0; font-size: 17px; line-height: 1.6; color: var(--sq-text); }
.sq-hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.sq-frame { padding: 8px; border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 18px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 30px 70px -30px rgba(30, 64, 120, 0.35), 0 2px 6px rgba(17, 24, 39, 0.05); backdrop-filter: blur(6px); }
.sq-frame img { width: 100%; border-radius: 11px; border: 1px solid rgba(17, 24, 39, 0.06); }
.sq-hero__shot { position: relative; max-width: 1080px; margin: 60px auto 0; }
.sq-hero__shot::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 38%; background: linear-gradient(rgba(255, 255, 255, 0), #fff 92%); border-radius: 0 0 18px 18px; pointer-events: none; }

.sq-trusted { padding: 6px 0 70px; text-align: center; }
.sq-trusted p { margin: 0 0 20px; font-size: 14px; color: var(--sq-muted); }
.sq-trusted ul { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px 54px; margin: 0; padding: 0; list-style: none; }
.sq-trusted a { font-size: 18px; color: #8a8f99; transition: color 0.15s; }
.sq-trusted a:hover { color: var(--sq-ink); }

/* sections */
.sq-section { padding: 100px 0; }
.sq-section--tint { background: var(--sq-tint); }
.sq-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.sq-head p { margin: 16px 0 0; font-size: 16px; line-height: 1.65; color: var(--sq-text); }
.sq-h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }

.sq-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sq-feature { padding: 10px 10px 24px; border: 1px solid var(--sq-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); }
.sq-feature__art { height: 230px; overflow: hidden; padding: 22px 0 0 22px; border-radius: 12px; }
.sq-feature__art img { width: 135%; max-width: none; border-radius: 10px 0 0 0; box-shadow: 0 10px 30px -12px rgba(17, 24, 39, 0.28); }
.sq-feature__art--blue { background: linear-gradient(160deg, #eef2ff, #dbe6fb); }
.sq-feature__art--green { background: linear-gradient(160deg, #effaf3, #d6f0e0); }
.sq-feature__art--orange { background: linear-gradient(160deg, #fff6ec, #fbe3cc); }
.sq-feature h3 { margin: 22px 14px 6px; font-size: 17px; font-weight: 650; }
.sq-feature p { margin: 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--sq-text); }

/* every part of lab life: radio tabs */
.sq-uses { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.sq-uses__radio { position: absolute; opacity: 0; pointer-events: none; }
.sq-uses__lead { margin: 16px 0 28px; font-size: 16px; line-height: 1.65; color: var(--sq-text); }
.sq-uses__list { display: flex; flex-direction: column; gap: 4px; }
.sq-use { display: block; padding: 12px 0 12px 18px; border-left: 2px solid var(--sq-line); cursor: pointer; transition: border-color 0.15s; }
.sq-use strong { display: block; font-size: 15.5px; font-weight: 650; }
.sq-use span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--sq-muted); }
.sq-use:hover strong { color: var(--sq-primary); }
.sq-uses__shot { display: none; }
#use-site:checked ~ .sq-uses__copy .sq-use--site, #use-ai:checked ~ .sq-uses__copy .sq-use--ai, #use-team:checked ~ .sq-uses__copy .sq-use--team, #use-hiring:checked ~ .sq-uses__copy .sq-use--hiring { border-left-color: var(--sq-primary); }
#use-site:checked ~ .sq-uses__shots .sq-uses__shot--site, #use-ai:checked ~ .sq-uses__shots .sq-uses__shot--ai, #use-team:checked ~ .sq-uses__shots .sq-uses__shot--team, #use-hiring:checked ~ .sq-uses__shots .sq-uses__shot--hiring { display: block; animation: sq-fade 0.35s ease; }
#use-site:focus-visible ~ .sq-uses__copy .sq-use--site, #use-ai:focus-visible ~ .sq-uses__copy .sq-use--ai, #use-team:focus-visible ~ .sq-uses__copy .sq-use--team, #use-hiring:focus-visible ~ .sq-uses__copy .sq-use--hiring { outline: 2px solid var(--sq-primary); outline-offset: 2px; border-radius: 4px; }
.sq-uses__shots { padding: 26px; border-radius: 22px; background: linear-gradient(160deg, #eef3fc, #dde8fa); }
.sq-uses__shots .sq-frame { background: rgba(255, 255, 255, 0.7); }
@keyframes sq-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* sky bands */
.sq-sky { padding: 110px 0; background: #e3edfb url('/_ls/landing/sky-band.webp') center / cover no-repeat; }
.sq-sky--cta { padding: 120px 0 110px; }
.sq-sky--cta .sq-head { margin-bottom: 0; }
.sq-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 620px; margin: 0 auto 40px; padding: 0; list-style: none; }
.sq-tools li { position: relative; }
.sq-tool { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 16px; background: #fff; color: var(--c); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; box-shadow: 0 8px 22px -10px rgba(30, 64, 120, 0.35); }
.sq-tool__name { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: var(--sq-ink); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.sq-tools li:hover .sq-tool__name { opacity: 1; }

/* templates (laid out like a testimonial wall) */
.sq-tpls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.sq-tpl { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--sq-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04); transition: box-shadow 0.2s, transform 0.2s; }
.sq-tpl:hover { box-shadow: 0 18px 40px -22px rgba(17, 24, 39, 0.35); transform: translateY(-2px); }
.sq-tpl img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--sq-line); }
.sq-tpl p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--sq-text); }
.sq-tpl strong { font-size: 15px; font-weight: 650; }
.sq-tpl__field { font-size: 12.5px; color: var(--sq-muted); }
.sq-tpl--featured { grid-column: span 4; flex-direction: row; gap: 22px; }
.sq-tpl--featured img { width: 56%; flex: none; align-self: flex-start; }
.sq-tpl--featured > div { display: flex; flex-direction: column; gap: 10px; padding: 8px 6px 4px 0; }
.sq-tpl--featured .sq-tpl__field { color: #f59e0b; font-weight: 600; letter-spacing: 0.02em; }
.sq-tpl--featured strong { font-size: 22px; letter-spacing: -0.02em; }
.sq-tpl--featured p { font-size: 15.5px; color: var(--sq-ink); }
.sq-tpl__try { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--sq-primary); }
.sq-tpl:not(.sq-tpl--featured):not(.sq-tpl--small) { grid-column: span 2; }
.sq-tpl--small { grid-column: span 2; }

/* pricing */
.sq-bill__radio { position: absolute; opacity: 0; pointer-events: none; }
.sq-bill { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 36px; border: 1px solid var(--sq-line); border-radius: 99px; background: #fff; font-size: 14px; font-weight: 600; }
.sq-bill label { padding: 7px 16px; border-radius: 99px; color: var(--sq-muted); cursor: pointer; }
.sq-bill em { margin-left: 4px; font-style: normal; color: #16a34a; }
#bill-month:checked ~ .sq-center label[for='bill-month'], #bill-year:checked ~ .sq-center label[for='bill-year'] { background: #f1f2f5; color: var(--sq-ink); }
#bill-month:focus-visible ~ .sq-center label[for='bill-month'], #bill-year:focus-visible ~ .sq-center label[for='bill-year'] { outline: 2px solid var(--sq-primary); }
.sq-plan__price--month, #bill-month:checked ~ .sq-plans .sq-plan__price--year { display: none; }
#bill-month:checked ~ .sq-plans .sq-plan__price--month { display: block; }
.sq-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 22px; }
.sq-plan { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--sq-line); border-radius: 18px; background: #fff; }
.sq-plan--popular { border: 2px solid var(--sq-primary); box-shadow: 0 24px 50px -28px rgba(91, 91, 246, 0.5); }
.sq-plan h3 { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 15px; font-weight: 650; }
.sq-plan__tag { padding: 3px 10px; border-radius: 99px; background: #eef0ff; color: var(--sq-primary); font-size: 12px; font-weight: 600; }
.sq-plan__for { margin: 6px 0 18px; font-size: 14px; color: var(--sq-muted); }
.sq-plan__price { margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--sq-line); font-size: 15px; color: var(--sq-muted); }
.sq-plan__price strong { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; color: var(--sq-ink); }
.sq-plan ul { display: flex; flex-direction: column; gap: 12px; flex: 1; margin: 0 0 26px; padding: 0; list-style: none; font-size: 14.5px; color: var(--sq-text); }
.sq-plan li { display: flex; align-items: center; gap: 10px; }
.sq-plan li svg { flex: none; color: var(--sq-primary); }
.sq-plan li.is-off { color: #a3a8b3; }
.sq-plan li.is-off svg { color: #d1d5db; }
.sq-plans__note { margin: 26px 0 0; text-align: center; font-size: 14px; color: var(--sq-muted); }
.sq-plans__note a { color: var(--sq-primary); font-weight: 600; }

/* questions */
.sq-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.sq-faq__help { margin-top: 40px; max-width: 290px; padding: 22px; border-radius: 16px; background: var(--sq-tint); }
.sq-faq__help img { width: 30px; height: 30px; }
.sq-faq__help p { margin: 12px 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--sq-text); }
.sq-faq__list details { border-bottom: 1px solid var(--sq-line); }
.sq-faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 16.5px; font-weight: 600; list-style: none; cursor: pointer; }
.sq-faq__list summary::-webkit-details-marker { display: none; }
.sq-faq__list summary::after { content: '+'; flex: none; font-size: 22px; font-weight: 400; color: var(--sq-muted); transition: transform 0.2s; }
.sq-faq__list details[open] summary::after { transform: rotate(45deg); }
.sq-faq__list p { margin: -8px 0 22px; font-size: 15px; line-height: 1.65; color: var(--sq-text); }

/* footer */
.sq-foot { padding: 70px 0 34px; }
.sq-foot__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.sq-foot__brand .brand { font-size: 22px; }
.sq-foot__brand p { max-width: 300px; margin: 18px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--sq-text); }
.sq-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sq-foot__cols h3 { margin: 0 0 16px; font-size: 15px; font-weight: 650; }
.sq-foot__cols a { display: block; margin-bottom: 12px; font-size: 14.5px; color: var(--sq-text); }
.sq-foot__cols a:hover { color: var(--sq-primary); }
.sq-foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--sq-line); font-size: 14px; color: var(--sq-muted); }
.sq-foot__bottom p { margin: 0; }
.sq-top { display: inline-flex; align-items: center; gap: 8px; }
.sq-top span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sq-primary); color: #fff; font-size: 14px; }

@media (max-width: 960px) {
  .sq-nav__links { display: none; }
  .sq-nav__actions { margin-left: auto; }
  .sq-features { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .sq-uses, .sq-faq, .sq-foot__top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sq-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sq-tpl--featured { grid-column: span 2; }
  .sq-tpl:not(.sq-tpl--featured):not(.sq-tpl--small), .sq-tpl--small { grid-column: span 1; }
}
@media (max-width: 640px) {
  .sq-wrap { padding: 0 16px; }
  .sq-nav { padding: 0 12px; }
  .sq-nav__bar { padding: 8px 8px 8px 14px; gap: 10px; }
  .sq-nav .brand__name { font-size: 17px; }
  .sq-hero { padding-top: 130px; }
  .sq-hero__lead { font-size: 16px; }
  .sq-hero__shot { margin-top: 40px; }
  .sq-section, .sq-sky { padding: 70px 0; }
  .sq-uses__shots { padding: 12px; }
  .sq-tpls { grid-template-columns: minmax(0, 1fr); }
  .sq-tpl--featured { grid-column: auto; flex-direction: column; }
  .sq-tpl--featured img { width: 100%; }
  .sq-hero__title br, .sq-h2 br { display: none; }
  .sq-tpl:not(.sq-tpl--featured):not(.sq-tpl--small), .sq-tpl--small { grid-column: auto; }
  .sq-plans { grid-template-columns: minmax(0, 1fr); }
  .sq-tool { width: 54px; height: 54px; }
  .sq-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- applications */
.ad-side__badge { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.ad-appform { display: flex; flex-direction: column; gap: 14px; }
.ad-qs { display: flex; flex-direction: column; gap: 8px; }
.ad-q { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fcfcfd; }
.ad-q__main { display: grid; grid-template-columns: minmax(0, 1fr) 200px auto auto auto; align-items: center; gap: 8px; }
.ad-q__main input[type='text'] { font-weight: 600; }
.ad-q__help { font-size: 12.5px; }
.ad-q textarea { font-size: 12.5px; }
.ad-appform__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ad-list .ad-row--app { grid-template-columns: minmax(0, 1fr) 90px 80px 100px; }
.ad-row.is-unread .ad-row__title { font-weight: 750; }
.ad-row.is-unread .ad-row__title::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: #2563eb; vertical-align: 2px; }
.ad-stars { display: inline-flex; gap: 1px; color: #d4d8de; font-size: 14px; line-height: 1; }
.ad-stars .is-on { color: #f59e0b; }
.ad-stars button { padding: 2px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.ad-stars button.is-on { color: #f59e0b; }
.ad-appstatus { justify-self: end; padding: 2px 9px; border-radius: 99px; background: #f1f4f7; color: var(--ad-ink-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.ad-appstatus--new { background: #dbeafe; color: #1d4ed8; }
.ad-appstatus--shortlisted, .ad-appstatus--interview { background: #fef3c7; color: #92400e; }
.ad-appstatus--offer { background: #dcfce7; color: #166534; }
.ad-appstatus--rejected { background: #f3f4f6; color: #6b7280; }
.ad-app { display: flex; flex-direction: column; gap: 18px; }
.ad-app__meta { margin: 0; font-size: 13px; color: var(--ad-muted); overflow-wrap: anywhere; }
.ad-app__status { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.ad-app__files { display: flex; flex-direction: column; gap: 6px; }
.ad-app__files .ad-btn { justify-content: flex-start; height: auto; padding: 8px 12px; flex-wrap: wrap; }
.ad-app__files small { width: 100%; padding-left: 24px; font-weight: 400; color: var(--ad-faint); overflow-wrap: anywhere; }
.ad-app__answers { display: grid; gap: 4px 0; margin: 0; }
.ad-app__answers dt { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--ad-faint); }
.ad-app__answers dd { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .ad-q__main { grid-template-columns: minmax(0, 1fr) auto auto; }
  .ad-q__main input[type='text'] { grid-column: 1 / -1; }
  .ad-list .ad-row--app { grid-template-columns: minmax(0, 1fr) auto; }
  .ad-row--app > .ad-cell, .ad-row--app > .ad-stars { display: none; }
}

/* ---------------------------------------------------------------- the lab's own pages and tables */
.ad-side__add { width: 100%; border: 0; background: none; font: inherit; text-align: left; color: var(--ad-muted); cursor: pointer; }
.ad-side__add:hover { color: var(--ad-ink); }
.ad-card.ad-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }
.ad-card.ad-empty p { margin: 10px 0 0; }

/* ---------------------------------------------------------------- AI chat attachments */
.ad-ai__bar .ad-ai__meter { margin-right: auto; }
.ad-ai__composer.is-drop { outline: 2px dashed #818cf8; outline-offset: -6px; background: #eef0ff; }
.ad-ai__files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ad-ai__files[hidden] { display: none; }
.ad-ai__file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 6px; border: 1px solid var(--ad-line); border-radius: 8px; background: #fff; font-size: 12.5px; }
.ad-ai__file img { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; }
.ad-ai__file svg { width: 16px; height: 16px; flex: none; color: var(--ad-muted); }
.ad-ai__filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.ad-ai__file button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--ad-faint); cursor: pointer; }
.ad-ai__file button:hover { background: var(--ad-hover); color: var(--ad-ink); }
.ad-ai__file button svg { width: 12px; height: 12px; }
.ad-ai__file.is-uploading { color: var(--ad-muted); }
.ad-ai__file.is-error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.ad-ai__sent { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.ad-ai__sent span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); font-size: 12px; }
.ad-ai__sent svg { width: 12px; height: 12px; }
.ad-rowpages { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--ad-line); border-radius: 12px; background: #fff; }
.ad-rowpages__addr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ad-muted); }
.ad-rowpages .ad-rowpages__base { flex: none; width: 160px; height: 32px; padding: 0 8px; font-size: 13px; }
.ad-rowpages__addr .ad-btn:first-of-type { margin-left: auto; }

/* ---------------------------------------------------------------- files */
.ad-storage { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--ad-line); border-radius: 12px; background: #fff; }
.ad-storage__text { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ad-muted); }
.ad-storage__text strong { color: var(--ad-ink); }
.ad-storage__bar { height: 8px; margin-top: 8px; border-radius: 99px; background: #eef0f3; overflow: hidden; }
.ad-storage__bar span { display: block; height: 100%; border-radius: 99px; background: #4f46e5; }
.ad-storage.is-full .ad-storage__bar span { background: #dc2626; }
.ad-storage__note { margin: 8px 0 0; font-size: 13px; color: #b91c1c; }
.ad-storage__note a { color: inherit; font-weight: 600; }
.ad-files__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.ad-files__bar .ad-search { width: 220px; height: 32px; padding: 0 10px; font-size: 13px; }
.ad-files { min-height: 200px; padding: 2px; border-radius: 12px; }
.ad-files.is-drop { outline: 2px dashed #818cf8; outline-offset: 4px; background: #eef0ff; }
.ad-files__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ad-files__grid--pick { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: 60vh; overflow: auto; }
.ad-file { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 8px; border: 1px solid var(--ad-line); border-radius: 12px; background: #fff; font: inherit; text-align: left; }
button.ad-file { cursor: pointer; }
button.ad-file:hover { border-color: #a5b4fc; box-shadow: 0 0 0 3px #eef0ff; }
.ad-file__thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: repeating-conic-gradient(#f4f5f7 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.ad-file__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ad-file__pdf { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #b91c1c; }
.ad-file__pdf svg { width: 28px; height: 28px; }
.ad-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ad-ink); }
.ad-file__meta { font-size: 11.5px; color: var(--ad-faint); }
.ad-file__used { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: #166534; }
.ad-file__used.is-unused { color: var(--ad-faint); }
.ad-file__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.ad-library { min-width: min(640px, 80vw); }

/* ---------------------------------------------------------------- forms */
.ad-forms { display: flex; flex-direction: column; gap: 8px; }
.ad-formcard { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--ad-line); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.ad-formcard:hover { border-color: #c7cbfa; }
.ad-formcard strong { display: block; font-size: 14.5px; }
.ad-formcard span { font-size: 12.5px; color: var(--ad-muted); }
.ad-formcard__count { display: flex; gap: 10px; white-space: nowrap; }
.ad-formcard__count b { color: #1d4ed8; }
.ad-preset { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.ad-preset:hover { border-color: #a5b4fc; background: #f8f8ff; }
.ad-preset svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: #4f46e5; }
.ad-preset strong { display: block; font-size: 14px; }
.ad-preset small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ad-muted); }

/* ---------------------------------------------------------------- version history */
.ad-history__day { padding: 10px 14px 6px; border-bottom: 1px solid var(--ad-line-2); background: #fcfcfd; font-size: 12px; font-weight: 650; color: var(--ad-muted); }
.ad-history__row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ad-line-2); }
.ad-history__row .ad-row__text { flex: 1; min-width: 0; }
.ad-history__time { width: 54px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--ad-ink-2); font-variant-numeric: tabular-nums; }
.ad-history__row--manual .ad-row__title { color: #4338ca; }
.ad-check--off { justify-content: center; color: var(--ad-faint); }
.ad-q__main select { min-width: 0; }

/* ---------------------------------------------------------------- blog (/blog): set like a journal */
.bl { --paper: #fbfaf6; --ink-bl: #1b1a17; --ink-bl-2: #3d3a34; --rule: #e6e1d6; --accent: #4338ca; margin: 0; background: var(--paper); color: var(--ink-bl); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.bl a { color: inherit; }
.bl-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.bl-nav { border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 92%, transparent); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.bl-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.bl-nav nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.bl-nav nav a { text-decoration: none; color: var(--ink-bl-2); }
.bl-nav nav a:hover { color: var(--ink-bl); }
.bl-nav .bl-nav__cta { padding: 8px 14px; border-radius: 999px; background: var(--ink-bl); color: #fff; font-weight: 600; }
.bl-nav .bl-nav__cta:hover { color: #fff; background: #000; }
.bl-section { display: block; margin: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.bl-meta { display: block; margin: 0; font-size: 13px; color: #78716c; }
.bl-masthead { text-align: center; padding: 72px 0 40px; border-bottom: 3px double var(--rule); }
.bl-masthead__kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #78716c; }
.bl-masthead h1 { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.02em; line-height: 1; }
.bl-masthead__dek { margin: 18px auto 0; max-width: 560px; font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 19px; color: var(--ink-bl-2); }
.bl-lead { display: block; text-decoration: none; padding: 48px 0; border-bottom: 1px solid var(--rule); text-align: center; }
.bl-lead h2 { margin: 0 auto; max-width: 820px; font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.01em; }
.bl-lead:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.bl-lead__dek { margin: 16px auto 14px; max-width: 680px; font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; line-height: 1.55; color: var(--ink-bl-2); }
.bl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.bl-list li { border-bottom: 1px solid var(--rule); }
.bl-list a { display: flex; gap: 18px; padding: 28px 0; text-decoration: none; }
.bl-list__no { flex: none; font-family: 'Source Serif 4', Georgia, serif; font-size: 28px; line-height: 1; color: #c4bdb0; }
.bl-list__body { display: block; }
.bl-list__title { display: block; font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 22px; line-height: 1.22; }
.bl-list a:hover .bl-list__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bl-list__dek { display: block; margin: 8px 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink-bl-2); }
.bl-cta { margin: 64px 0; padding: 40px; border: 1px solid var(--rule); border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 20px 50px -30px rgba(27,26,23,.25); }
.bl-cta__kicker { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.bl-cta h2 { margin: 0 auto; max-width: 620px; font-family: 'Source Serif 4', Georgia, serif; font-size: 30px; line-height: 1.15; }
.bl-cta p { margin: 14px auto 22px; max-width: 600px; color: var(--ink-bl-2); line-height: 1.6; }
.bl-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bl-btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.bl-btn:hover { border-color: #cfc7b8; }
.bl-btn--dark { background: var(--ink-bl); border-color: var(--ink-bl); color: #fff !important; }
.bl-btn--dark:hover { background: #000; }
.bl-article { padding: 40px 0 0; }
.bl-crumbs { font-size: 13px; color: #78716c; margin-bottom: 36px; }
.bl-crumbs a { text-decoration: none; color: var(--ink-bl-2); }
.bl-article__head { max-width: 760px; margin: 0 auto 40px; text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.bl-article__head h1 { margin: 0; font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.015em; }
.bl-article__dek { margin: 18px auto 16px; font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.5; color: var(--ink-bl-2); }
.bl-article__grid { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 56px; justify-content: center; }
.bl-article__grid:not(:has(.bl-toc)) { grid-template-columns: minmax(0, 680px); }
.bl-toc { position: sticky; top: 92px; align-self: start; font-size: 13.5px; }
.bl-toc p { margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #78716c; font-weight: 600; }
.bl-toc ol { margin: 0; padding: 0 0 0 18px; color: #a8a29e; }
.bl-toc li { margin: 0 0 8px; line-height: 1.4; }
.bl-toc a { text-decoration: none; color: var(--ink-bl-2); }
.bl-toc a:hover { color: var(--accent); }
.bl-prose { font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; line-height: 1.72; color: #2a2723; }
.bl-prose > p:first-child::first-letter { float: left; font-size: 3.4em; line-height: 0.9; padding: 6px 10px 0 0; font-weight: 700; color: var(--ink-bl); }
.bl-prose p { margin: 0 0 1.15em; }
.bl-prose h2 { margin: 2em 0 0.6em; font-size: 27px; line-height: 1.2; font-weight: 700; color: var(--ink-bl); scroll-margin-top: 90px; }
.bl-prose ul, .bl-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.bl-prose li { margin: 0 0 0.45em; }
.bl-prose li::marker { color: var(--accent); }
.bl-prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bl-prose strong { color: var(--ink-bl); }
.bl-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82em; background: #f1ede4; padding: 2px 6px; border-radius: 5px; }
.bl-prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-bl-2); }
.bl-related { padding: 0 0 56px; }
.bl-related h2 { font-family: 'Source Serif 4', Georgia, serif; font-size: 24px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.bl-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bl-related__grid a { display: block; text-decoration: none; padding: 20px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.bl-related__grid a:hover { border-color: #cfc7b8; }
.bl-related__title { display: block; font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.bl-foot { border-top: 1px solid var(--rule); padding: 28px 0; font-size: 13.5px; color: #78716c; }
.bl-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.bl-foot nav { display: flex; gap: 18px; }
.bl-foot a { text-decoration: none; }
.bl-foot a:hover { color: var(--ink-bl); }
@media (max-width: 860px) {
  .bl-list { grid-template-columns: 1fr; }
  .bl-article__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bl-toc { position: static; margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
  .bl-related__grid { grid-template-columns: 1fr; }
  .bl-prose { font-size: 18px; }
  .bl-nav nav a:not(.bl-nav__cta):not([href="/blog"]) { display: none; }
  .bl-cta { padding: 28px 20px; }
}
.bl-nav .bl-nav__cta { white-space: nowrap; }
.bl-toc ol { list-style: none; padding-left: 0; }
@media (max-width: 520px) {
  .bl-nav nav a[href="/blog"] { display: none; }
  .bl-nav .bl-nav__cta { padding: 7px 12px; font-size: 13px; }
}

/* ---------------------------------------------------------------- dashboard: quiet, premium refinement
   A warm paper canvas, white surfaces with hairlines and soft depth, serif page titles,
   lighter controls. Overrides the base .ad-* rules above; layout and behaviour are unchanged. */
.ad {
  --ad-ink: #18181b;
  --ad-ink-2: #3f3f46;
  --ad-muted: #71717a;
  --ad-faint: #a1a1aa;
  --ad-line: #e9e7e2;
  --ad-line-2: #f1efea;
  --ad-hover: #f5f4f0;
  --ad-canvas: #faf9f6;
  --ad-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 24px -16px rgba(24, 24, 27, 0.12);
  background: var(--ad-canvas);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.003em;
}
/* top bar */
.ad-top { height: 56px; padding: 0 24px; background: rgba(250, 249, 246, 0.86); border-bottom-color: var(--ad-line); }
.ad-top__brand { gap: 0; font-weight: 700; font-size: 15px; }
.ad-top__brand svg { margin-right: 8px; }
.ad-top__brand span { color: var(--ad-faint); font-weight: 600; }
.ad-top__mark { border-radius: 8px; font-size: 10.5px; letter-spacing: 0.02em; }
.ad-top__name { font-weight: 600; }
.ad-top__url { font-size: 12px; color: var(--ad-faint); }
.ad-save { font-size: 12px; color: var(--ad-faint); }
.ad-save::before { width: 5px; height: 5px; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14); }
/* sidebar */
.ad-side { top: 56px; height: calc(100vh - 56px); padding: 28px 16px 32px 20px; background: transparent; border-right-color: var(--ad-line); }
.ad-side__label { margin: 0 10px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ad-faint); }
.ad-side__group + .ad-side__group { margin-top: 26px; }
.ad-side__link { gap: 11px; padding: 7px 10px; margin-bottom: 2px; border-radius: 8px; color: var(--ad-muted); font-weight: 500; font-size: 13.5px; transition: background 0.15s, color 0.15s; }
.ad-side__link svg { width: 15px; height: 15px; color: #b8b6b0; stroke-width: 1.6; }
.ad-side__link:hover { background: rgba(24, 24, 27, 0.035); color: var(--ad-ink); }
.ad-side__link.is-active { background: #fff; color: var(--ad-ink); font-weight: 600; box-shadow: 0 0 0 1px var(--ad-line), 0 1px 3px rgba(24, 24, 27, 0.05); }
.ad-side__link.is-active svg { color: var(--ad-ink); }
.ad-side__meta { font-size: 11px; font-weight: 500; color: #c4c2bc; font-variant-numeric: tabular-nums; }
.ad-side__hidden { font-size: 10.5px; color: #d4d2cc; letter-spacing: 0.02em; }
/* main column and page heads */
.ad-main { padding: 40px 48px 120px; max-width: 1080px; }
.ad-head { align-items: flex-end; padding-bottom: 20px; margin-bottom: 28px; border-bottom-color: var(--ad-line); }
.ad-head__title { font-family: 'Source Serif 4', Georgia, serif; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.ad-head__sub { margin-top: 8px; font-size: 13.5px; color: var(--ad-muted); max-width: 560px; line-height: 1.5; }
.ad-head__actions { gap: 6px; }
.ad-subhead { margin: 36px 0 12px; }
.ad-subhead h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ad-muted); }
/* buttons: quiet by default, one confident dark action */
.ad-btn { height: 34px; padding: 0 14px; border-radius: 9px; border-color: var(--ad-line); font-size: 12.5px; font-weight: 600; color: var(--ad-ink-2); box-shadow: 0 1px 1px rgba(24, 24, 27, 0.03); transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.ad-btn:hover { background: #fff; border-color: #d6d3cc; color: var(--ad-ink); box-shadow: 0 1px 3px rgba(24, 24, 27, 0.08); }
.ad-btn svg { width: 14px; height: 14px; opacity: 0.75; }
.ad-btn--dark { background: var(--ad-ink); border-color: var(--ad-ink); color: #fff; box-shadow: 0 1px 2px rgba(24, 24, 27, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.ad-btn--dark svg { opacity: 1; }
.ad-btn--dark:hover { background: #000; border-color: #000; color: #fff; }
.ad-btn--help { height: 34px; background: transparent; border-color: transparent; box-shadow: none; color: var(--ad-muted); }
.ad-btn--help:hover { background: rgba(24, 24, 27, 0.04); border-color: transparent; box-shadow: none; }
.ad-btn--ghost { box-shadow: none; }
.ad-icon { border-radius: 9px; border-color: var(--ad-line); }
/* surfaces */
.ad-card, .ad-settings, .ad-list, .ad-design__preview { border-color: var(--ad-line); border-radius: 14px; background: #fff; box-shadow: var(--ad-shadow); }
.ad-card + .ad-card { margin-top: 18px; }
.ad-card__head { padding: 16px 22px; border-bottom-color: var(--ad-line-2); }
.ad-card__title { font-size: 14px; font-weight: 600; }
.ad-card__body { padding: 22px; }
.ad-card__desc { font-size: 13px; line-height: 1.5; }
.ad-settings { margin-bottom: 18px; }
.ad-settings > summary { padding: 15px 22px; font-size: 13px; font-weight: 600; }
.ad-settings > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--ad-faint); border-bottom: 1.5px solid var(--ad-faint); transform: rotate(45deg) translateY(-2px); }
.ad-settings[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.ad-settings__meta { font-size: 12.5px; color: var(--ad-faint); font-weight: 400; }
.ad-form { gap: 20px 22px; padding: 22px; }
.ad .field { gap: 7px; }
.ad .field__label { font-size: 12.5px; font-weight: 600; color: var(--ad-ink); }
.ad .field__help { font-size: 12px; color: var(--ad-faint); line-height: 1.45; }
/* fields */
.ad input[type='text'], .ad input[type='email'], .ad input[type='url'], .ad input[type='search'], .ad input[type='date'], .ad select, .ad textarea {
  font-size: 14px; padding: 9px 12px; border: 1px solid var(--ad-line); border-radius: 10px; background: #fff; color: var(--ad-ink);
  box-shadow: inset 0 1px 1px rgba(24, 24, 27, 0.02); transition: border-color 0.15s, box-shadow 0.15s;
}
.ad input:hover, .ad select:hover, .ad textarea:hover { border-color: #dcd9d2; }
.ad input:focus, .ad select:focus, .ad textarea:focus { outline: none; border-color: #a5a3f0; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }
.ad ::placeholder { color: #b8b6b0; }
/* lists and tables */
.ad-list__bar { padding: 12px 16px; background: transparent; border-bottom-color: var(--ad-line-2); }
.ad-list .ad-search { height: 34px; width: 240px; }
.ad-tabs, .ad-seg { padding: 3px; border-radius: 10px; background: #f3f2ee; }
.ad-tabs button, .ad-seg button { padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--ad-muted); }
.ad-tabs button.is-active, .ad-seg button.is-active { background: #fff; color: var(--ad-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(24, 24, 27, 0.08), 0 0 0 1px rgba(24, 24, 27, 0.04); }
.ad-list__cols, .ad-row { padding: 0 18px; gap: 16px; }
.ad-list__cols { height: 36px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ad-faint); border-bottom-color: var(--ad-line-2); }
.ad-row { min-height: 58px; padding-top: 9px; padding-bottom: 9px; border-bottom-color: var(--ad-line-2); }
.ad-row:hover { background: #fcfbf9; }
.ad-row__title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.ad-row__sub { margin-top: 3px; font-size: 12px; color: var(--ad-faint); }
.ad-thumb { width: 36px; height: 36px; border-radius: 9px; border-color: var(--ad-line); background: #f5f4f0; color: var(--ad-muted); font-size: 11px; font-weight: 600; }
.ad-thumb--round { border-radius: 50%; }
.ad-cell { font-size: 13px; color: var(--ad-muted); }
.ad-cell--tag { padding: 3px 10px; background: transparent; border: 1px solid var(--ad-line); font-size: 12px; color: var(--ad-ink-2); }
.ad-list__foot { padding: 12px 18px; font-size: 12px; color: var(--ad-faint); }
.ad-empty { color: var(--ad-muted); }
/* design studio */
.ad-design { gap: 28px; }
.ad-design__tabs button { white-space: nowrap; }
.ad-preview__bar { padding: 10px 12px; background: transparent; }
.ad-preview__stage { background: #f3f2ee; }
@media (max-width: 900px) {
  .ad-main { padding: 24px 18px 96px; }
  .ad-head__title { font-size: 25px; }
  .ad-side { background: var(--ad-canvas); }
}
.ad-main:has(.ad-design) { max-width: none; }
.ad-layout.is-studio .ad-main { max-width: none; }

.ad-account__menu a.ad-account__danger {
  color: #b42318;
}
