/* Generated from client-visual-language/client-visual-language.css. */
/* Morrell Strategy client visual language
   Canonical source for Corpus and ONYX. Run sync.py after editing. */

:root {
  color-scheme: dark;
  --bg: #0d0c0a;
  --card: rgba(255, 255, 255, 0.02);
  --glass: var(--card);
  --glass-2: rgba(242, 239, 230, 0.035);
  --glass-3: rgba(242, 239, 230, 0.06);
  --rule: rgba(242, 239, 230, 0.10);
  --rule-2: rgba(242, 239, 230, 0.22);
  --stroke: var(--rule);
  --stroke-2: var(--rule-2);
  --ink: #f2efe6;
  --text: var(--ink);
  --muted: #a8a296;
  --faint: #6e6960;
  --accent: #d98e4a;
  --accent-ink: #1a1510;
  --accent-soft: rgba(217, 142, 74, 0.16);
  --trace: #c0673e;
  --good: #7fb88a;
  --warn: #d9b36a;
  --bad: #c96f5e;
  --v1: var(--accent);
  --v2: var(--trace);
  --v3: var(--warn);
  --grad: var(--accent);
  --grad-data: linear-gradient(120deg, var(--v1), var(--v2));
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-ui: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r: 14px;
  --r-lg: var(--r);
  --r-md: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 0.25s;
  --dur-2: 0.45s;
  --dur-3: 0.7s;
  --lift: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
}

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

/* Shared product frame */
aside.side {
  width: 236px;
  padding: 30px 20px 22px;
  background: transparent;
  border-right: 1px solid var(--rule);
  backdrop-filter: none;
}

.wordmark,
.brand .name,
.loginmark,
.loginlogo .t {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
  background: none;
}

.brand { padding: 0 2px 20px; }
.brand img { filter: none; }

.sect {
  color: var(--faint);
  font: 500 9px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
}

.sidenav { gap: 1px; }
.sidenav a {
  color: var(--muted);
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}
.sidenav a:hover {
  color: var(--ink);
  background: rgba(242, 239, 230, 0.03);
  transform: none;
}
.sidenav a.active {
  color: var(--ink);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.sidenav a.active::after { display: none; }
.sidenav a.active::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--accent);
}

.side .ws select,
.side .user,
.userchip {
  color: var(--muted);
  background: transparent;
  border-color: var(--rule);
  border-radius: 10px;
}
.side .user button,
.userchip button { color: var(--faint); }

/* Shared editorial hierarchy */
.pagehead {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 22px;
  align-items: flex-start;
}
.pagehead::before,
.pagehead::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  border-top: 1px solid var(--rule-2);
}
.pagehead::after {
  bottom: 0;
  border-top-color: var(--rule);
}
.pagehead h1 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pagehead .sub {
  max-width: 58ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* Shared surfaces */
.card,
.stat,
.feed .row,
.side .user,
.loginbox .card {
  background: var(--card);
  border-color: var(--rule);
  border-radius: var(--r);
  backdrop-filter: none;
  box-shadow: none;
}
.card { padding: 24px; }
.card.hoverable:hover,
.stat:hover {
  border-color: var(--rule-2);
  box-shadow: var(--lift);
  transform: translateY(-2px);
}
.card.hoverable::after { display: none; }
.card h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.stat::before { opacity: 0.45; }
.stat .k,
th,
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
}
.stat .v {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
}
.stat.money .v,
.moneytext { color: var(--good) !important; text-shadow: none; }

/* Shared controls and state behaviour */
.btn,
.gbtn {
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 99px;
  box-shadow: none;
  font-family: var(--font-ui);
  font-weight: 700;
  transition: transform var(--dur-1) var(--ease), filter var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.btn:hover,
.gbtn:hover {
  filter: brightness(1.07);
  box-shadow: 0 12px 28px -14px rgba(217, 142, 74, 0.8);
  transform: translateY(-2px);
}
.btn:active,
.gbtn:active { transform: translateY(0) scale(0.98); }
.btn.ghost,
.cardtabs button,
.tabs button,
.pillbtn {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule-2);
  box-shadow: none;
}
.btn.ghost:hover,
.cardtabs button:hover,
.tabs button:hover,
.pillbtn:hover { border-color: var(--ink); background: rgba(242, 239, 230, 0.03); }
.cardtabs button.active,
.tabs button.active,
.pillbtn.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  color: var(--ink);
  background: rgba(242, 239, 230, 0.025);
  border-color: var(--rule-2);
  border-radius: 10px;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

th { color: var(--faint); border-color: var(--rule); }
td { border-color: var(--rule); }
tr.rowlink:hover td { background: rgba(242, 239, 230, 0.025); }

/* Keep data legible without turning semantic state colours into brand accents. */
.livedot { background: var(--good); }
.pill.good, .pill.live { color: var(--good); }
.pill.pending, .pill.warn { color: var(--warn); }
.pill.bad, .pill.error { color: var(--bad); }

/* One restrained ambience across products. Product-specific diagrams may layer above it. */
.aurora i { opacity: 0.16; filter: blur(100px); }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--accent-soft), transparent 65%); }
.aurora i:nth-child(2),
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(242, 239, 230, 0.04), transparent 65%); }
#grain { opacity: 0.34; }

/* ONYX's stone illustration remains a product motif, but sits behind the shared
   hierarchy instead of competing with sign-in content. */
#bands { opacity: 0.14; }
#loginstone { opacity: 0.16; }
#login .loginbox .card {
  background: transparent;
  border-color: var(--rule);
  border-radius: var(--r);
  backdrop-filter: none;
}
#login .loginsub { color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 880px) {
  aside.side {
    width: 100%;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .pagehead { margin-bottom: 30px; padding-bottom: 18px; }
  .pagehead h1 { font-size: 23px; }
  .card { padding: 20px; }
}

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