:root {
  --ink: #f5f1e8;
  --ink2: #e0bb7a;
  --paper: #0a0a0a;
  --card: #151515;
  --copper: #c89b5b;
  --copper2: #e0bb7a;
  --muted: #a8a29a;
  --line: #29241d;
  --green: #2f785b;
  --red: #a9453a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --r: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
.container {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--copper);
  color: #0a0a0a;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.hero-logo {
  width: min(380px, 82vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}
.btn-dark {
  background: var(--copper);
  color: #0a0a0a;
}
.btn-copper {
  background: var(--copper);
  color: #0a0a0a;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: inherit;
}
.hero {
  background:
    radial-gradient(
      circle at 82% 15%,
      rgba(200, 155, 91, 0.15),
      transparent 34%
    ),
    linear-gradient(135deg, #070707, #111111);
  color: var(--ink);
  padding: 92px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 700;
  color: var(--copper2);
}
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin: 0;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.97;
  max-width: 760px;
}
.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 610px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-card .slot {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section {
  padding: 78px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}
.section h2 {
  font-size: clamp(34px, 5vw, 52px);
}
.muted {
  color: var(--muted);
}
.consent-field > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--copper);
}
.automation-readiness {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: 0 0 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--copper) 9%, var(--card));
}
.automation-readiness span {
  color: var(--muted);
  text-align: right;
}
.automation-lower {
  margin-top: 20px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: 0.2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-card .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--copper);
}
.service-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature {
  padding: 28px;
  border-top: 1px solid var(--line);
}
.feature strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.location {
  background: #111111;
  color: var(--ink);
  border-radius: 32px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.72);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-card {
  background: var(--paper);
  border-radius: 26px;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: var(--shadow);
}
.modal-head {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 26px;
}
.steps {
  display: flex;
  gap: 7px;
  margin-bottom: 26px;
}
.steps i {
  height: 5px;
  flex: 1;
  border-radius: 9px;
  background: var(--line);
}
.steps i.on {
  background: var(--copper);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.choice {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 15px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
}
.choice.active {
  border-color: var(--copper);
  box-shadow: 0 0 0 2px rgba(181, 100, 61, 0.14);
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.slot-btn {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  cursor: pointer;
}
.slot-btn.active {
  background: var(--copper);
  color: #0a0a0a;
}
.summary {
  background: #111111;
  border-radius: 16px;
  padding: 18px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: #111111;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--copper);
}
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}
.admin {
  min-height: 100vh;
  background: #0a0a0a;
}
.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #0a0a0a;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 8px 25px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  color: #a8a29a;
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
}
.nav button.active,
.nav button:hover {
  background: #201b15;
  color: var(--copper2);
}
.admin-main {
  padding: 30px;
  min-width: 0;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.admin-header h1 {
  font-size: 38px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.metric small {
  color: var(--muted);
}
.metric b {
  display: block;
  font-size: 27px;
  margin-top: 8px;
}
.panel {
  margin-top: 18px;
}
.panel h3 {
  font-family: "DM Sans";
  font-size: 18px;
  margin-bottom: 18px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}
th,
td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.badge {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #201b15;
}
.badge.green {
  color: var(--green);
  background: #e4f2eb;
}
.badge.red {
  color: var(--red);
  background: #f7e7e4;
}
.toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.toolbar input,
.toolbar select {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #111111;
  color: var(--ink);
}
.tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin-bottom: 16px;
}
.tabs button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #111111;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 14px;
}
.tabs button.active {
  background: var(--copper);
  color: #0a0a0a;
}
.list-cards {
  display: grid;
  gap: 10px;
}
.list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 15px;
}
.chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 20px;
}
.bar-col {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.bar {
  background: linear-gradient(var(--copper2), var(--copper));
  border-radius: 8px 8px 3px 3px;
  min-height: 8px;
  margin-bottom: 8px;
}
.empty {
  text-align: center;
  padding: 42px;
  color: var(--muted);
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--copper);
  color: #0a0a0a;
  padding: 13px 18px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
  z-index: 90;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.mobile-nav {
  display: none;
}
.danger {
  color: var(--red);
}

/* Direções de arte calculadas a partir do par predominante + tinta. */
body[data-direction="editorial"] {
  --ink: var(--brand-ink);
  --ink2: var(--brand-ink);
  --paper: var(--brand-primary);
  --card: color-mix(in srgb, var(--brand-primary) 88%, var(--brand-ink));
  --copper: var(--brand-ink);
  --copper2: var(--brand-ink);
  --muted: color-mix(in srgb, var(--brand-ink) 66%, var(--brand-primary));
  --line: color-mix(in srgb, var(--brand-ink) 22%, var(--brand-primary));
  --shadow: 14px 16px 0 color-mix(in srgb, var(--brand-ink) 13%, transparent);
  --r: 3px;
  background: var(--paper);
}
body[data-direction="editorial"] h1,
body[data-direction="editorial"] h2,
body[data-direction="editorial"] h3 { font-family:"Cormorant Garamond",serif; font-weight:500; }
body[data-direction="editorial"] .topbar { background:color-mix(in srgb,var(--brand-primary) 92%,transparent); }
body[data-direction="editorial"] .hero { background:var(--brand-primary); border-bottom:1px solid var(--line); }
body[data-direction="editorial"] .hero-grid { grid-template-columns:.92fr 1.08fr; }
body[data-direction="editorial"] .hero h1 { font-size:clamp(62px,9vw,112px); letter-spacing:-.045em; }
body[data-direction="editorial"] .hero-logo { border-radius:2px; transform:rotate(1.5deg); box-shadow:var(--shadow); }
body[data-direction="editorial"] .brand-logo { border-radius:2px; background:var(--brand-ink); color:var(--brand-primary); }
body[data-direction="editorial"] .btn { border-radius:2px; }
body[data-direction="editorial"] .btn-dark,
body[data-direction="editorial"] .btn-copper,
body[data-direction="editorial"] .slot-btn.active { background:var(--brand-ink); color:var(--brand-primary); }
body[data-direction="editorial"] .service-card { border-top-width:3px; }
body[data-direction="editorial"] .service-card:nth-child(even) { transform:translateY(22px); }
body[data-direction="editorial"] .location { border-radius:2px; border:1px solid var(--line); background:var(--card); }

body[data-direction="serene"] {
  --ink: var(--brand-ink);
  --ink2: var(--brand-ink);
  --paper: color-mix(in srgb, var(--brand-primary) 8%, #fff);
  --card: color-mix(in srgb, var(--brand-primary) 3%, #fff);
  --copper: var(--brand-primary);
  --copper2: color-mix(in srgb, var(--brand-primary) 80%, var(--brand-ink));
  --muted: color-mix(in srgb, var(--brand-ink) 68%, #fff);
  --line: color-mix(in srgb, var(--brand-primary) 25%, #fff);
  --green: #46735d;
  --red: #ad5963;
  --shadow: 0 20px 55px color-mix(in srgb,var(--brand-ink) 11%,transparent);
  --r: 24px;
  font-family: "Nunito Sans", sans-serif;
  background: var(--paper);
}
body[data-direction="serene"] h1,
body[data-direction="serene"] h2,
body[data-direction="serene"] h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
}
body[data-direction="serene"] .topbar {
  background: color-mix(in srgb,var(--paper) 94%,transparent);
}
body[data-direction="serene"] .hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 30%, color-mix(in srgb,var(--brand-primary) 15%,transparent), transparent 22%),
    linear-gradient(135deg, #fff, var(--paper));
}
body[data-direction="serene"] .hero::before,
body[data-direction="serene"] .hero::after {
  content: "";
  position: absolute;
  width:180px;
  height:280px;
  border:1px solid color-mix(in srgb,var(--brand-primary) 28%,transparent);
  border-radius:50%;
}
body[data-direction="serene"] .hero::before { left:-110px; top:25%; transform:rotate(-18deg); }
body[data-direction="serene"] .hero::after { right:-80px; bottom:-35%; transform:rotate(18deg); }
body[data-direction="serene"] .hero h1 {
  color: var(--brand-ink);
  letter-spacing: 0.01em;
  line-height: 0.94;
}
body[data-direction="serene"] .brand-logo,
body[data-direction="serene"] .hero-logo {
  color: var(--brand-on-primary);
  background:var(--brand-primary);
  border-color:var(--line);
}
body[data-direction="serene"] .hero-logo {
  border-radius: 50% 50% 46% 54% / 48% 52% 48% 52%;
  box-shadow: 0 28px 70px color-mix(in srgb,var(--brand-primary) 22%,transparent);
}
body[data-direction="serene"] .btn-dark,
body[data-direction="serene"] .btn-copper,
body[data-direction="serene"] .slot-btn.active,
body[data-direction="serene"] .tabs button.active {
  background: var(--brand-primary);
  color: var(--brand-on-primary);
}
body[data-direction="serene"] .service-card {
  box-shadow: 0 8px 30px color-mix(in srgb,var(--brand-ink) 6%,transparent);
}
body[data-direction="serene"] .service-card:hover { border-color:var(--brand-primary); }
body[data-direction="serene"] .location,
body[data-direction="serene"] .summary,
body[data-direction="serene"] .field input,
body[data-direction="serene"] .field select,
body[data-direction="serene"] .field textarea,
body[data-direction="serene"] .toolbar input,
body[data-direction="serene"] .toolbar select,
body[data-direction="serene"] .tabs button {
  background: #fff;
  color: var(--ink);
}
body[data-direction="serene"] .location {
  background: color-mix(in srgb,var(--brand-primary) 17%,#fff);
}
body[data-direction="serene"] .modal { background:color-mix(in srgb,var(--brand-ink) 52%,transparent); }
body[data-direction="serene"] .admin,
body[data-direction="serene"] .sidebar { background:var(--paper); }
body[data-direction="serene"] .nav button { color:var(--muted); }
body[data-direction="serene"] .nav button.active,
body[data-direction="serene"] .nav button:hover {
  background:color-mix(in srgb,var(--brand-primary) 14%,#fff);
  color:var(--brand-ink);
}
body[data-direction="serene"] .badge { background:color-mix(in srgb,var(--brand-primary) 13%,#fff); }
body[data-direction="serene"] .mobile-nav { background:#fff; }
body[data-direction="serene"] .toast { background:var(--brand-primary); color:var(--brand-on-primary); }
.chrona-platform,
.chrona-platform h1,
.chrona-platform h2,
.chrona-platform h3,
.chrona-login,
.chrona-login h1,
.chrona-login h2,
.chrona-login h3,
.chrona-site h1,
.chrona-site h2,
.chrona-site h3 {
  font-family: "DM Sans", sans-serif;
}
.chrona-platform {
  --ink: #111a32;
  --paper: #f5f7fb;
  --card: #ffffff;
  --line: #e2e7f0;
  --copper: #5b5df0;
  --copper2: #5b5df0;
  --muted: #667085;
  --green: #16785b;
  --red: #b42318;
  --shadow: 0 18px 55px rgba(23, 35, 79, 0.1);
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0, rgba(91, 93, 240, 0.12), transparent 32%),
    radial-gradient(circle at 4% 82%, rgba(35, 195, 166, 0.1), transparent 28%),
    var(--paper);
  color: var(--ink);
}
.platform-main {
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: auto;
  padding: 30px 32px 64px;
}
.platform-header {
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
}
.platform-header p { margin: 7px 0 0; }
.header-actions,
.row-actions,
.desktop-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.chrona-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.chrona-wordmark span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #7476ff, #4b4dd6);
  color: #fff;
  letter-spacing: 0;
  box-shadow: 0 10px 30px rgba(91, 93, 240, 0.28);
}
.chrona-wordmark.compact span { width: 38px; height: 38px; }
.platform-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  margin: 28px 0 18px;
  padding: 38px 42px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(104, 237, 211, 0.24), transparent 28%),
    linear-gradient(135deg, #111a32, #252862 72%, #3f42b6);
  box-shadow: 0 24px 65px rgba(26, 32, 74, 0.2);
}
.platform-hero h1 { font-size: clamp(36px, 5vw, 58px); margin: 7px 0 12px; letter-spacing: -0.05em; }
.platform-hero p { max-width: 620px; margin: 0; color: #cbd3ed; font-size: 17px; }
.platform-orbit {
  width: 170px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.platform-orbit::before { content:""; position:absolute; inset:21px; border:1px solid rgba(255,255,255,.14); border-radius:50%; }
.platform-orbit span { font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.platform-orbit i { position:absolute; width:10px; height:10px; border-radius:50%; background:#68edd3; box-shadow:0 0 24px #68edd3; }
.platform-orbit i:nth-child(2) { left:-5px; top:48%; }
.platform-orbit i:nth-child(3) { right:18px; top:12px; background:#9fa0ff; }
.platform-orbit i:nth-child(4) { right:10px; bottom:21px; background:#fff; }
.chrona-platform .metric,
.chrona-platform .panel { box-shadow: 0 10px 34px rgba(23,35,79,.055); }
.chrona-platform .metric span { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.chrona-platform .badge { background:#eef0f6; }
.platform-alert-panel {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0;
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  border-color: #d9dfec;
  background: #fff;
}
.platform-alert-rail {
  display: grid;
  grid-template-rows: repeat(4,1fr);
  background: #111a32;
}
.platform-alert-rail i { position:relative; border-bottom:1px solid rgba(255,255,255,.22); }
.platform-alert-rail i::after {
  content:"";
  position:absolute;
  width:6px;
  height:6px;
  right:3px;
  top:50%;
  border-radius:50%;
  transform:translate(50%,-50%);
  background:#68edd3;
  box-shadow:0 0 12px rgba(104,237,211,.75);
}
.platform-alert-body { padding: 28px 30px 26px; }
.platform-alert-head { align-items:flex-start; }
.platform-alert-head h3 { margin:5px 0 5px; font-size:25px; letter-spacing:-.025em; }
.platform-alert-head p { margin:0; color:#667085; }
.alert-schedule {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:22px 0 24px;
  border:1px solid #e2e7f0;
  border-radius:14px;
  background:#f6f8fc;
}
.alert-schedule span { padding:13px 16px; border-right:1px solid #e2e7f0; }
.alert-schedule span:last-child { border-right:0; }
.alert-schedule b,.alert-schedule small { display:block; }
.alert-schedule b { color:#111a32; font-size:14px; }
.alert-schedule small { margin-top:2px; color:#667085; font-size:11px; }
.platform-alert-panel .field > span,
.platform-alert-panel .consent-field > span { color:#26314d; font:600 13px/1.4 "DM Sans",sans-serif; }
.platform-alert-panel .field input {
  border-color:#ccd4e2;
  background:#f8faff;
  color:#111a32;
  -webkit-text-fill-color:#111a32;
  caret-color:#5b5df0;
  font:500 14px/1.4 "DM Sans",sans-serif;
}
.platform-alert-panel .field input::placeholder { color:#7b8499; opacity:1; }
.platform-alert-panel .field input:focus { border-color:#5b5df0; background:#fff; box-shadow:0 0 0 3px rgba(91,93,240,.12); }
.platform-alert-panel .consent-field small { display:block; margin-top:4px; color:#667085; font:400 12px/1.45 "DM Sans",sans-serif; }
.platform-alert-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #e2e7f0;
}
.platform-alert-footer b,.platform-alert-footer small { display:block; }
.platform-alert-footer b { color:#111a32; font-size:13px; }
.platform-alert-footer small { margin-top:3px; color:#667085; }
.support-mode {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding:12px 14px 12px 16px;
  border:1px solid color-mix(in srgb,var(--brand-primary,var(--copper)) 32%,var(--line));
  border-radius:14px;
  background:color-mix(in srgb,var(--brand-primary,var(--copper)) 10%,var(--card));
  color:var(--ink);
}
.support-mode > span { display:grid; grid-template-columns:auto auto; align-items:center; justify-content:start; column-gap:9px; }
.support-mode i { width:8px; height:8px; border-radius:50%; background:var(--brand-primary,var(--copper)); box-shadow:0 0 0 5px color-mix(in srgb,var(--brand-primary,var(--copper)) 17%,transparent); }
.support-mode b { font-size:13px; }
.support-mode small { grid-column:2; color:var(--muted); margin-top:2px; }
.chrona-platform .platform-table { margin-top:18px; padding:26px; }
.chrona-platform th { letter-spacing:.08em; }
.chrona-platform td { vertical-align:middle; }
.tenant-cell { display:flex; align-items:center; gap:11px; min-width:190px; }
.tenant-dot { width:10px; height:38px; border-radius:999px; flex:0 0 auto; }
.row-actions { min-width:310px; }
.row-actions .btn { padding:8px 11px; font-size:12px; }
@media (max-width: 700px) {
  .platform-alert-body { padding:22px 18px; }
  .platform-alert-head,.platform-alert-footer,.support-mode { align-items:stretch; flex-direction:column; }
  .alert-schedule { grid-template-columns:1fr 1fr; }
  .alert-schedule span:nth-child(2) { border-right:0; }
  .alert-schedule span:nth-child(-n+2) { border-bottom:1px solid #e2e7f0; }
}
.chrona-login {
  min-height: 100vh;
  padding: 38px 16px;
  color: #eef2ff;
  background:
    radial-gradient(circle at 12% 8%, rgba(91,93,240,.27), transparent 31%),
    radial-gradient(circle at 90% 88%, rgba(34,195,166,.16), transparent 28%),
    #080c1b;
}
.auth-shell {
  width: min(1050px, 100%);
  min-height: calc(100vh - 76px);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr minmax(390px, 470px);
  gap: 70px;
  align-items: center;
}
.auth-copy { align-self:stretch; padding:28px 0; display:flex; flex-direction:column; justify-content:space-between; }
.auth-copy h1 { margin:12px 0 18px; font-size:clamp(46px,6vw,76px); line-height:.98; letter-spacing:-.055em; }
.auth-copy p { max-width:480px; color:#aeb9d7; font-size:18px; line-height:1.7; }
.auth-copy > small { color:#7f8aad; }
.chrona-login .auth-card {
  --ink: #111a32;
  --muted: #667085;
  --line: #dfe4ee;
  --copper: #5b5df0;
  color: var(--ink);
  background:#fff;
  border-color:rgba(255,255,255,.55);
  border-radius:28px;
  padding:36px;
  box-shadow:0 28px 80px rgba(0,0,0,.32);
}
.auth-card h2 { margin:8px 0 10px; font-size:32px; letter-spacing:-.035em; }
.auth-card form { margin-top:24px; }
.auth-card .field { margin-top:15px; }
.auth-card .field input { background:#f7f8fc; color:var(--ink); border-color:var(--line); padding:14px; }
.auth-card .btn-dark { color:#fff; }
.auth-forgot { padding-left:0; margin-top:8px; font-size:13px; color:#5b5df0; }
.auth-notice { display:flex; align-items:center; gap:11px; margin:20px 0 4px; padding:13px; border-radius:14px; background:#edf9f5; color:#135e49; }
.auth-notice > span { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#d3f1e6; }
.auth-notice small { display:block; margin-top:2px; }
body[data-tenant="chrona"] {
  --ink:#eef2ff;--paper:#080b16;--card:#11172a;--line:#26304b;--copper:#748ffc;--copper2:#9caeff;--muted:#9ba7c3;
}
.chrona-site.topbar { background:rgba(8,11,22,.92); }
.chrona-site .hero { background:radial-gradient(circle at 78% 15%,rgba(116,143,252,.2),transparent 34%),linear-gradient(135deg,#080b16,#11172a); }
.chrona-site .service-card,.chrona-site .hero-card { background:#11172a;border-color:#26304b; }
.chrona-site .brand-logo { background:linear-gradient(145deg,#748ffc,#4c63d2);color:#fff; }
.chrona-site .btn-dark { color:#fff; }
.logo-fallback,
.hero-monogram { display:grid; place-items:center; font-weight:800; }
.hero-monogram { font-size:clamp(48px,8vw,100px); letter-spacing:.06em; }
body[data-direction="studio"] {
  --ink:var(--brand-ink);
  --paper:color-mix(in srgb,var(--brand-primary) 5%,#fff);
  --card:#ffffff;
  --line:color-mix(in srgb,var(--brand-ink) 14%,#fff);
  --muted:color-mix(in srgb,var(--brand-ink) 64%,#fff);
  --green:#16785b;
  --red:#b42318;
  --shadow:0 22px 60px color-mix(in srgb,var(--brand-ink) 13%,transparent);
  background:var(--paper);
}
body[data-direction="studio"],
body[data-direction="studio"] h1,
body[data-direction="studio"] h2,
body[data-direction="studio"] h3 { font-family:"DM Sans",sans-serif; }
body[data-direction="studio"] .topbar { background:rgba(255,255,255,.92); }
body[data-direction="studio"] .brand-logo { border:0; color:var(--brand-on-primary); background:var(--brand-primary); border-radius:4px 16px 4px 16px; }
body[data-direction="studio"] .hero {
  color:var(--ink);
  background:
    repeating-linear-gradient(90deg,transparent 0,transparent 79px,color-mix(in srgb,var(--brand-ink) 6%,transparent) 80px),
    linear-gradient(118deg,#fff 0 58%,color-mix(in srgb,var(--brand-primary) 18%,#fff) 58% 100%);
}
body[data-direction="studio"] .hero h1 { letter-spacing:-.065em; max-width:650px; }
body[data-direction="studio"] .hero-logo { border:0; border-radius:4px 52px 4px 52px; color:var(--brand-on-primary); background:var(--brand-primary); box-shadow:18px 18px 0 var(--brand-ink); }
body[data-direction="studio"] .btn-dark,
body[data-direction="studio"] .btn-copper,
body[data-direction="studio"] .slot-btn.active,
body[data-direction="studio"] .tabs button.active { background:var(--brand-primary); color:var(--brand-on-primary); }
body[data-direction="studio"] .service-card { border-radius:4px 22px 4px 22px; box-shadow:none; }
body[data-direction="studio"] .service-card:nth-child(3n+2) { border-bottom:4px solid var(--brand-primary); }
body[data-direction="studio"] .service-card:hover { border-color:var(--brand-primary); }
body[data-direction="studio"] .location { color:var(--brand-on-primary); background:var(--brand-primary); border-radius:4px 38px 4px 38px; }
body[data-direction="studio"] .location .btn-outline { color:var(--brand-on-primary); border-color:color-mix(in srgb,var(--brand-on-primary) 32%,transparent); }
body[data-direction="studio"] .modal-card,
body[data-direction="studio"] .modal-head,
body[data-direction="studio"] .summary,
body[data-direction="studio"] .field input,
body[data-direction="studio"] .field select,
body[data-direction="studio"] .field textarea,
body[data-direction="studio"] .toolbar input,
body[data-direction="studio"] .toolbar select,
body[data-direction="studio"] .tabs button { background:#fff; color:var(--ink); }
body[data-direction="studio"] .admin { background:var(--paper); }
body[data-direction="studio"] .sidebar { background:#fff; color:var(--ink); }
body[data-direction="studio"] .nav button { color:var(--muted); }
body[data-direction="studio"] .nav button.active,
body[data-direction="studio"] .nav button:hover { color:var(--brand-ink); background:color-mix(in srgb,var(--brand-primary) 10%,#fff); }
body[data-direction="studio"] .mobile-nav { background:#fff; }
.setup-note { display:inline-flex; margin-top:22px!important; padding:10px 13px; border:1px solid var(--line); border-radius:12px; font-size:13px!important; }
.empty-state { padding:48px 24px; text-align:center; border:1px dashed var(--line); border-radius:20px; color:var(--muted); background:color-mix(in srgb,var(--card) 84%,transparent); }
.empty-state h3 { color:var(--ink); margin:10px 0 6px; }
.empty-state p { margin:0; }
.empty-icon { font-size:28px; color:var(--copper); }
.full-span { grid-column:1/-1; }
.onboarding-modal {
  --ink:#111a32;
  --muted:#667085;
  --line:#dfe4ee;
  --card:#fff;
  --paper:#fff;
  --copper:#5b5df0;
  --copper2:#5b5df0;
  color:var(--ink);
  background:rgba(8,12,27,.72);
  backdrop-filter:blur(8px);
}
.onboarding-modal h2,
.onboarding-modal h3,
.onboarding-modal h4 { font-family:"DM Sans",sans-serif; }
.onboarding-modal .modal-card { background:#fff; border:1px solid rgba(255,255,255,.5); }
.onboarding-modal .modal-head { background:rgba(255,255,255,.96); }
.onboarding-modal .modal-head h3 { margin:4px 0; font-size:27px; }
.onboarding-modal .modal-head p { margin:0; font-size:13px; }
.onboarding-modal .field input,
.onboarding-modal .field select,
.onboarding-modal .field textarea { background:#f8f9fc; color:var(--ink); }
.onboarding-modal .field small { color:var(--muted); font-size:11px; }
.onboarding-modal .btn-dark { color:#fff; }
.onboarding-section { display:flex; align-items:center; gap:12px; margin:8px 0 16px; padding-top:22px; border-top:1px solid var(--line); }
.onboarding-section:first-child { padding-top:0; border-top:0; }
.onboarding-section h4 { margin:0 0 3px; font-size:16px; }
.onboarding-section p { margin:0; color:var(--muted); font-size:12px; }
.section-number { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:11px; background:#edeefe; color:#4b4dd6; font-size:11px; font-weight:800; }
.brand-fields { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.identity-builder { display:grid; grid-template-columns:.9fr 1.1fr; gap:16px; align-items:stretch; }
.identity-colors { display:grid; gap:12px; }
.color-field { display:flex; align-items:center; gap:11px; min-height:58px; padding:9px 12px; border:1px solid var(--line); border-radius:13px; background:#f8f9fc; }
.color-field input { width:38px; height:38px; padding:0; border:0; background:transparent; }
.color-field span { display:grid; gap:2px; }
.color-field small { color:var(--muted); font-size:11px; }
.direction-auto { --preview-primary:#2667ff; --preview-ink:#152238; display:grid; grid-template-columns:150px 1fr; gap:18px; align-items:center; min-height:132px; padding:15px; border:1px solid var(--line); border-radius:18px; background:#f8f9fc; }
.direction-auto > div:last-child { display:grid; gap:5px; }
.direction-auto small { color:#747d91; font-size:10px; font-weight:800; letter-spacing:.16em; }
.direction-auto b { color:#111a32; font-size:23px; }
.direction-auto span { color:#667085; font-size:12px; }
.direction-mini { position:relative; overflow:hidden; height:100px; border-radius:12px; color:var(--preview-ink); background:color-mix(in srgb,var(--preview-primary) 17%,#fff); border:1px solid color-mix(in srgb,var(--preview-ink) 18%,transparent); }
.direction-mini i { position:absolute; inset:12px auto 12px 12px; width:5px; background:var(--preview-primary); }
.direction-mini span { position:absolute; left:29px; right:16px; top:22px; height:7px; background:var(--preview-ink); box-shadow:0 16px 0 color-mix(in srgb,var(--preview-ink) 34%,transparent); }
.direction-mini strong { position:absolute; right:13px; bottom:8px; font-size:26px; letter-spacing:-.08em; }
.direction-auto[data-preview-direction="editorial"] .direction-mini { border-radius:2px; background:var(--preview-primary); color:var(--preview-ink); }
.direction-auto[data-preview-direction="editorial"] .direction-mini i { width:1px; background:var(--preview-ink); }
.direction-auto[data-preview-direction="editorial"] .direction-mini span { height:2px; background:var(--preview-ink); box-shadow:0 11px 0 color-mix(in srgb,var(--preview-ink) 45%,transparent); }
.direction-auto[data-preview-direction="editorial"] .direction-mini strong { font-family:"Cormorant Garamond",serif; font-size:34px; font-weight:500; }
.direction-auto[data-preview-direction="serene"] .direction-mini { border-radius:48% 52% 44% 56%; background:color-mix(in srgb,var(--preview-primary) 12%,#fff); }
.direction-auto[data-preview-direction="serene"] .direction-mini i { inset:auto auto -25px -4px; width:85px; height:85px; border:1px solid var(--preview-primary); border-radius:50%; background:transparent; }
.direction-auto[data-preview-direction="serene"] .direction-mini span { height:3px; border-radius:99px; }
.direction-auto[data-preview-direction="serene"] .direction-mini strong { font-family:"Cormorant Garamond",serif; font-weight:500; }
.identity-note { margin:10px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.direction-config-note { display:grid; align-content:center; gap:3px; min-height:58px; padding:10px 13px; border:1px solid var(--line); border-radius:13px; background:color-mix(in srgb,var(--copper) 7%,var(--card)); }
.direction-config-note small { font-size:9px; letter-spacing:.15em; color:var(--muted); }
.direction-config-note b { font-size:17px; }
.direction-config-note span { color:var(--muted); font-size:11px; }
.success-card { width:min(540px,100%); padding:42px; text-align:center; }
.success-card h2 { margin:9px 0; font-size:34px; }
.success-card p { color:var(--muted); line-height:1.6; }
.success-mark { width:58px; height:58px; display:grid; place-items:center; margin:0 auto 18px; border-radius:19px; color:#136d51; background:#dcf6ed; font-size:27px; font-weight:800; }
.direction-result { display:grid; gap:3px; margin:20px 0; padding:15px; border:1px solid #dfe4ee; border-left:4px solid #5b5df0; border-radius:4px 14px 14px 4px; text-align:left; background:#f8f9fc; }
.direction-result small { color:#747d91; font-size:9px; font-weight:800; letter-spacing:.15em; }
.direction-result b { color:#111a32; font-size:20px; }
.direction-result span { color:#667085; font-size:12px; }
.link-preview { margin:24px 0; padding:14px; border:1px solid var(--line); border-radius:14px; text-align:left; background:#f8f9fc; overflow:hidden; }
.link-preview small { display:block; margin-bottom:4px; color:var(--muted); }
.link-preview b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.crm-panel {
  padding: 18px;
  overflow: hidden;
}
.crm-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.crm-toolbar select,
.crm-card-actions select {
  border: 1px solid var(--line);
  background: #111;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 11px;
}
.crm-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(275px, 1fr);
  gap: 13px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  align-items: start;
}
.crm-column {
  border: 1px solid var(--line);
  border-top: 3px solid var(--stage-color);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
  min-height: 230px;
}
.crm-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 10px;
}
.crm-column-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.crm-column-head small {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #201b15;
  color: var(--muted);
}
.crm-stage-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stage-color);
}
.crm-cards {
  display: grid;
  gap: 9px;
  padding: 0 10px 10px;
}
.crm-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  overflow: hidden;
}
.crm-card.won { border-color: rgba(114,184,141,.55); }
.crm-card.lost { opacity: .7; }
.crm-card-main {
  display: grid;
  justify-items: start;
  gap: 7px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}
.crm-card-main:hover { background: rgba(255,255,255,.025); }
.crm-card h4,
.crm-card p { margin: 0; }
.crm-card h4 { font-size: 15px; }
.crm-card p { color: var(--muted); font-size: 13px; }
.crm-card-main small { display: block; }
.crm-value { color: var(--copper2); }
.crm-card-actions {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  padding: 7px;
  border-top: 1px solid var(--line);
}
.crm-card-actions select { width: 100%; font-size: 12px; }
.crm-card-actions .btn { padding: 7px 8px; font-size: 11px; }
.crm-empty {
  padding: 35px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
body[data-direction="serene"] .crm-toolbar select,
body[data-direction="serene"] .crm-card-actions select { background: #fff; color: var(--ink); }
body[data-direction="serene"] .crm-column { background: rgba(255,255,255,.4); }
@media (max-width: 900px) {
  body[data-direction="editorial"] .hero-grid {
    grid-template-columns: 1fr;
  }
  body[data-direction="editorial"] .hero-logo {
    justify-self: center;
    transform: rotate(.75deg);
  }
  body[data-direction="editorial"] .service-card:nth-child(even) {
    transform: none;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .auth-copy {
    min-height: auto;
    padding: 4px;
  }
  .auth-copy > div:last-child,
  .auth-copy > small {
    display: none;
  }
  .platform-hero {
    min-height: 230px;
  }
  .platform-orbit {
    display: none;
  }
  .platform-main {
    padding: 30px 16px 70px;
  }
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .hero-card {
    display: none;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .admin-main {
    padding: 20px 16px 90px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 30;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: #111111;
    border: 1px solid var(--line);
    padding: 7px;
    border-radius: 17px;
    overflow: auto;
    box-shadow: var(--shadow);
  }
  .mobile-nav button {
    border: 0;
    background: transparent;
    color: #a8a29a;
    min-width: 76px;
    padding: 9px 7px;
    border-radius: 11px;
    font-size: 11px;
  }
  .mobile-nav button.active {
    background: #201b15;
    color: var(--copper2);
  }
  .location {
    grid-template-columns: 1fr;
  }
  .crm-board { grid-auto-columns: minmax(270px, 82vw); }
  .crm-toolbar { justify-content: flex-start; }
  .section {
    padding: 58px 0;
  }
}
@media (max-width: 600px) {
  .automation-readiness {
    align-items: flex-start;
    flex-direction: column;
  }
  .automation-readiness span {
    text-align: left;
  }
  .auth-page {
    padding: 20px 14px;
  }
  .auth-card {
    padding: 26px 22px;
  }
  .auth-copy h1 {
    font-size: 36px;
  }
  .brand-fields {
    grid-template-columns: 1fr;
  }
  .identity-builder {
    grid-template-columns: 1fr;
  }
  .direction-auto {
    grid-template-columns: 120px 1fr;
  }
  .platform-hero {
    padding: 26px 22px;
    border-radius: 20px;
  }
  .platform-hero h1 {
    font-size: 34px;
  }
  .platform-table-wrap {
    margin-inline: -16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .onboarding-section {
    padding: 18px;
  }
  .success-card {
    padding: 30px 22px;
  }
  .topbar .btn-outline {
    display: none;
  }
  .hero {
    padding: 68px 0;
  }
  .hero h1 {
    font-size: 50px;
  }
  .service-grid,
  .choice-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .slots {
    grid-template-columns: repeat(3, 1fr);
  }
  .section-head,
  .footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 16px;
  }
  .metric b {
    font-size: 21px;
  }
  .admin-header h1 {
    font-size: 30px;
  }
  .modal-body {
    padding: 20px;
  }
  .field.full {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  .topbar .desktop-actions .btn-outline {
    display: none;
  }
  .topbar .container {
    gap: 12px;
  }
  .topbar .brand {
    min-width: 0;
  }
}
