:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --ink: #17201b;
  --muted: #647169;
  --line: #d9e0d7;
  --panel: #ffffff;
  --accent: #0c7c59;
  --accent-dark: #07553d;
  --gold: #c8922b;
  --deep: #101b16;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

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

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  height: 40px;
  padding: 0 16px;
  font-weight: 750;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button-link {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 750;
  height: 40px;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
}

.button-link.secondary {
  background: #23372f;
}

.button-link.compact {
  height: 36px;
  padding: 0 14px;
}

.button-link.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

button.secondary {
  background: #23372f;
}

button.wide {
  width: 100%;
  margin-top: 16px;
}

button:hover {
  background: var(--accent-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.market {
  grid-column: span 2;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-row div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.metric-row span,
label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-row strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

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

input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 38px;
  padding: 0 10px;
  font: inherit;
}

select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

select {
  background: white;
  height: 38px;
  padding: 0 10px;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.hidden {
  display: none !important;
}

.code {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101815;
  color: #d9fff0;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
}

.history {
  margin-top: 16px;
}

.landing-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 247, 244, 0.78)),
    radial-gradient(circle at 76% 18%, rgba(213, 160, 55, 0.14), transparent 28%),
    #f8faf7;
}

.landing-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.landing-nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding-bottom: 14px;
}

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

.brand-mark {
  align-items: center;
  background: var(--deep);
  border-radius: 8px;
  color: #f6d27d;
  display: inline-flex;
  font-size: 14px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.landing-nav-actions {
  align-items: center;
  display: flex;
  gap: 20px;
}

.landing-nav-actions > a:not(.button-link) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.landing-hero {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 500px;
  padding: 58px 0 44px;
}

.hero-copy h1 {
  font-size: clamp(52px, 7.2vw, 92px);
  line-height: 0.92;
  margin: 0 0 20px;
}

.hero-text {
  color: #46544c;
  font-size: 17px;
  line-height: 1.78;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  max-width: 610px;
  padding-top: 18px;
}

.hero-stats span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 750;
}

.hero-stats strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}

.hero-panel {
  background: var(--deep);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(14, 30, 22, 0.18);
  color: white;
  overflow: hidden;
  padding: 28px;
}

.panel-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel-head h2 {
  color: white;
  font-size: 26px;
  margin: 6px 0 0;
}

.panel-kicker {
  color: #9fb9ad;
  font-size: 13px;
  font-weight: 800;
}

.live-pill {
  background: rgba(12, 124, 89, 0.22);
  border: 1px solid rgba(84, 211, 159, 0.28);
  border-radius: 999px;
  color: #9df0cd;
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
  white-space: nowrap;
}

.price-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 18px;
}

.price-block span,
.price-block small {
  color: #abc4b8;
  display: block;
  font-size: 13px;
  font-weight: 750;
}

.price-block strong {
  display: block;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  margin: 10px 0 8px;
}

.status-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.status-line {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 17px 0;
}

.status-line:nth-child(odd) {
  padding-right: 16px;
}

.status-line:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 16px;
}

.status-line:nth-last-child(-n + 2) {
  border-bottom: 0;
  padding-bottom: 2px;
}

.status-line span {
  color: #abc4b8;
  display: block;
  font-size: 13px;
  font-weight: 750;
}

.status-line strong {
  display: block;
  font-size: 22px;
  margin-top: 8px;
}

.landing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.landing-grid h2 {
  font-size: 22px;
}

.landing-grid p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.landing-workflow {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 0.75fr 1.25fr;
  margin-top: 34px;
  padding-top: 34px;
}

.landing-workflow h2 {
  font-size: 30px;
  line-height: 1.18;
  max-width: 380px;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-list div {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 42px 1fr;
  padding: 16px 18px;
}

.workflow-list strong {
  color: var(--gold);
  font-size: 15px;
}

.workflow-list span {
  color: #38473f;
  line-height: 1.55;
}

.dashboard-body {
  background: #eef2ed;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--deep);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 20px;
}

.sidebar .brand {
  color: white;
}

.sidebar .brand-mark {
  background: #f6d27d;
  color: var(--deep);
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a {
  border-radius: 8px;
  color: #b9c9c1;
  font-size: 14px;
  font-weight: 760;
  padding: 11px 12px;
  text-decoration: none;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.side-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: auto;
  padding: 16px;
}

.side-card span,
.side-card small {
  color: #abc4b8;
  display: block;
  font-size: 12px;
  font-weight: 760;
}

.side-card strong {
  display: block;
  font-size: 24px;
  margin: 8px 0 6px;
}

.dashboard-main {
  min-width: 0;
  padding: 28px;
}

.dashboard-topbar {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-topbar h1 {
  font-size: clamp(28px, 3.2vw, 42px);
}

.page-subtitle {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 0;
}

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

.status-strip div {
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 18px;
}

.status-strip div:last-child {
  border-right: 0;
}

.status-strip span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 780;
}

.status-strip strong {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.source-note {
  margin: 10px 0 18px;
}

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

.config-panel,
.integration-panel,
.rule-panel {
  min-height: 260px;
}

.panel-title {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title h2 {
  font-size: 22px;
  margin-bottom: 0;
}

.mini-pill {
  background: #e9f0eb;
  border-radius: 999px;
  color: #315243;
  font-size: 12px;
  font-weight: 830;
  padding: 7px 10px;
  white-space: nowrap;
}

.mini-pill.gold {
  background: #fbefd8;
  color: #8a641d;
}

.rule-list {
  display: grid;
  gap: 12px;
}

.rule-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.rule-list strong,
.rule-list span {
  display: block;
}

.rule-list strong {
  font-size: 15px;
  margin-bottom: 6px;
}

.rule-list span {
  color: var(--muted);
  line-height: 1.5;
}

.report {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.report:first-child {
  border-top: 0;
}

.report pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 10px 0 0;
  color: #26352d;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.empty-state {
  background: #f7faf6;
  border: 1px dashed var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 18px;
}

.login-body {
  background: #080c0a;
  color: white;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.gold-world {
  inset: 0;
  overflow: hidden;
  position: fixed;
}

.gold-world::before {
  animation: goldSweep 12s ease-in-out infinite alternate, worldRotate 28s linear infinite;
  background:
    radial-gradient(circle at 26% 30%, rgba(255, 218, 112, 0.3), transparent 28%),
    radial-gradient(circle at 72% 42%, rgba(48, 255, 196, 0.13), transparent 30%),
    linear-gradient(115deg, transparent 0 22%, rgba(250, 205, 87, 0.26) 34%, transparent 48% 100%),
    repeating-linear-gradient(90deg, rgba(255, 210, 87, 0.08) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(66, 255, 194, 0.07) 0 1px, transparent 1px 52px),
    radial-gradient(ellipse at center, rgba(198, 137, 35, 0.34), transparent 58%),
    #080c0a;
  content: "";
  inset: -24%;
  position: absolute;
  transform: perspective(900px) rotateX(58deg) scale(1.26);
  transform-origin: 50% 55%;
}

.gold-world::after {
  animation: dataDrift 7s linear infinite, shimmerPulse 4.5s ease-in-out infinite alternate;
  background-image:
    linear-gradient(180deg, rgba(255, 232, 149, 0), rgba(255, 232, 149, 0.34), rgba(255, 232, 149, 0)),
    linear-gradient(180deg, rgba(68, 255, 196, 0), rgba(68, 255, 196, 0.16), rgba(68, 255, 196, 0)),
    repeating-radial-gradient(circle at center, rgba(255, 222, 126, 0.05) 0 1px, transparent 1px 22px);
  background-position: 18% 0, 74% 0, center;
  background-repeat: repeat-y;
  background-size: 2px 160px, 1px 110px, 100% 100%;
  content: "";
  inset: 0;
  position: absolute;
}

.gold-world span {
  animation: tickerFlow 10s linear infinite;
  color: rgba(255, 220, 120, 0.34);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  left: calc(14% * var(--i, 1));
  position: absolute;
  top: -30%;
  writing-mode: vertical-rl;
}

.gold-world span:nth-child(1) { --i: 1; animation-delay: -1s; }
.gold-world span:nth-child(2) { --i: 2; animation-delay: -4s; }
.gold-world span:nth-child(3) { --i: 3; animation-delay: -7s; }
.gold-world span:nth-child(4) { --i: 4; animation-delay: -2s; }
.gold-world span:nth-child(5) { --i: 5; animation-delay: -6s; }
.gold-world span:nth-child(6) { --i: 6; animation-delay: -9s; }

.gold-world span::before {
  content: "XAU USD 896.30 CNY AU99.99 5.00 ALERT NEWS FLOW 891.01 ";
}

.pocket-watch {
  animation: watchFloat 9s ease-in-out infinite;
  height: 340px;
  left: calc(50% - 170px);
  opacity: 0.88;
  position: absolute;
  top: 16vh;
  transform-style: preserve-3d;
  width: 340px;
  z-index: 0;
}

.watch-face {
  animation: watchSpin 11s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.74), transparent 10%),
    radial-gradient(circle at center, #ffe39b 0 10%, #c98f2b 42%, #6f4314 72%, #1b1209 100%);
  border: 10px solid rgba(255, 226, 138, 0.72);
  border-radius: 50%;
  box-shadow:
    0 0 42px rgba(255, 202, 76, 0.42),
    inset 0 0 26px rgba(0, 0, 0, 0.38);
  height: 230px;
  left: 55px;
  position: absolute;
  top: 78px;
  width: 230px;
}

.watch-face::before {
  border: 1px solid rgba(255, 245, 205, 0.42);
  border-radius: 50%;
  content: "";
  inset: 24px;
  position: absolute;
}

.watch-loop {
  border: 12px solid rgba(255, 214, 106, 0.7);
  border-bottom: 0;
  border-radius: 80px 80px 0 0;
  height: 62px;
  left: 126px;
  position: absolute;
  top: 28px;
  width: 88px;
}

.watch-chain {
  animation: chainWave 5s ease-in-out infinite alternate;
  border-top: 2px dashed rgba(255, 221, 132, 0.42);
  height: 180px;
  left: -18px;
  position: absolute;
  top: 48px;
  transform: rotate(-18deg);
  width: 190px;
}

.watch-hand {
  background: #1b1209;
  border-radius: 999px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: 50% 100%;
}

.hour-hand {
  animation: handDrift 18s linear infinite;
  height: 62px;
  width: 6px;
}

.minute-hand {
  animation: handDrift 9s linear infinite;
  height: 86px;
  width: 4px;
}

.watch-core {
  background: #1b1209;
  border: 4px solid #ffe39b;
  border-radius: 50%;
  height: 20px;
  left: calc(50% - 10px);
  position: absolute;
  top: calc(50% - 10px);
  width: 20px;
}

.login-shell {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.login-brand {
  position: absolute;
  text-align: center;
  top: 7vh;
}

.login-logo {
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-shadow: 0 0 34px rgba(255, 206, 86, 0.34);
}

.login-brand p {
  color: #ecd18c;
  font-weight: 750;
  margin: 16px 0 0;
}

.login-card {
  backdrop-filter: blur(18px);
  background: rgba(10, 18, 15, 0.76);
  border: 1px solid rgba(255, 221, 130, 0.22);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  margin-top: 130px;
  max-width: 420px;
  padding: 28px;
  width: min(100%, 420px);
}

.login-card h1 {
  color: white;
  font-size: 30px;
}

.login-card label {
  color: #d8e5dd;
  margin-top: 14px;
}

.login-card input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.login-copy,
.form-message {
  color: #aebeb6;
  line-height: 1.6;
}

.form-message {
  min-height: 22px;
}

@keyframes goldSweep {
  from { transform: perspective(900px) rotateX(58deg) translateY(0) scale(1.26); }
  to { transform: perspective(900px) rotateX(58deg) translateY(6%) scale(1.34); }
}

@keyframes worldRotate {
  from { filter: hue-rotate(0deg) brightness(1); }
  to { filter: hue-rotate(18deg) brightness(1.1); }
}

@keyframes dataDrift {
  from { transform: translateY(-120px); }
  to { transform: translateY(120px); }
}

@keyframes shimmerPulse {
  from { opacity: 0.74; }
  to { opacity: 1; }
}

@keyframes tickerFlow {
  from { transform: translateY(-10vh); }
  to { transform: translateY(140vh); }
}

@keyframes watchFloat {
  0% { transform: translate3d(-18vw, 4vh, 0) rotate(-10deg) scale(0.82); }
  35% { transform: translate3d(18vw, -2vh, 0) rotate(11deg) scale(0.96); }
  70% { transform: translate3d(10vw, 8vh, 0) rotate(-6deg) scale(0.9); }
  100% { transform: translate3d(-18vw, 4vh, 0) rotate(-10deg) scale(0.82); }
}

@keyframes watchSpin {
  from { transform: rotateY(-18deg) rotateX(8deg); }
  to { transform: rotateY(24deg) rotateX(-8deg); }
}

@keyframes chainWave {
  from { transform: rotate(-22deg) translateY(0); }
  to { transform: rotate(-8deg) translateY(18px); }
}

@keyframes handDrift {
  from { transform: translate(-50%, -100%) rotate(0deg); }
  to { transform: translate(-50%, -100%) rotate(360deg); }
}

.home-body {
  background: #f4f6f3;
}

.home-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 22px 20px 60px;
}

.home-nav,
.home-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.home-nav {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.home-hero {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 34px 0 24px;
}

.home-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  max-width: 760px;
}

.profile-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 820;
  padding: 14px 16px;
}

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

.module-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  min-height: 190px;
  padding: 22px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.module-card:hover {
  box-shadow: 0 18px 40px rgba(20, 35, 28, 0.1);
  transform: translateY(-2px);
}

.module-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 820;
}

.module-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin: 18px 0 12px;
}

.module-card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.module-primary {
  background: var(--deep);
  color: white;
}

.module-primary p,
.module-primary span {
  color: #abc4b8;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.detail-panel {
  scroll-margin-top: 18px;
}

.wide-detail {
  grid-column: span 2;
}

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

.insight-list,
.forum-list,
.users-list {
  display: grid;
  gap: 12px;
}

.insight-list div,
.forum-post,
.user-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.insight-list strong,
.insight-list span {
  display: block;
}

.insight-list span,
.forum-post small,
.user-row span {
  color: var(--muted);
  line-height: 1.5;
}

.forum-compose {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin-bottom: 14px;
}

.forum-compose button {
  height: auto;
}

.post-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.profile-button,
.user-pill {
  background: #e9f0eb;
  color: var(--ink);
  height: 34px;
}

.user-directory {
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
}

.user-directory > strong {
  display: block;
  margin-bottom: 10px;
}

.user-directory > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-panel {
  grid-column: span 2;
}

.account-create {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr 1fr 150px auto;
  margin-bottom: 16px;
}

.account-create input {
  margin-top: 0;
}

.user-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) 130px minmax(120px, 160px) 86px auto;
}

.user-row span {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.inline-check {
  align-items: center;
  display: flex;
  gap: 6px;
}

.inline-check input {
  height: auto;
  margin: 0;
  width: auto;
}

@media (max-width: 780px) {
  .shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 20px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .actions,
  .grid,
  .metric-row,
  .form-grid,
  .landing-hero,
  .landing-grid,
  .landing-workflow,
  .dashboard-shell,
  .dashboard-grid,
  .status-strip,
  .home-hero,
  .home-grid,
  .detail-grid,
  .compact-strip,
  .account-create,
  .user-row,
  .forum-compose {
    grid-template-columns: 1fr;
  }

  .home-shell {
    padding: 16px 12px 42px;
  }

  .home-nav,
  .home-actions {
    align-items: stretch;
  }

  .home-nav {
    flex-direction: column;
  }

  .home-actions .button-link,
  .home-actions button {
    flex: 1;
  }

  .home-hero {
    align-items: start;
  }

  .module-card {
    min-height: 150px;
  }

  .wide-detail,
  .account-panel {
    grid-column: span 1;
  }

  .forum-compose button {
    height: 40px;
  }

  .login-shell {
    padding: 18px;
  }

  .login-brand {
    top: 5vh;
  }

  .login-card {
    margin-top: 110px;
    padding: 22px;
  }

  .dashboard-main {
    padding: 18px 12px 28px;
  }

  .dashboard-topbar {
    flex-direction: column;
  }

  .dashboard-topbar .actions,
  .dashboard-topbar .actions button,
  .dashboard-topbar .actions .button-link {
    width: 100%;
  }

  .sidebar {
    gap: 16px;
    padding: 18px 12px;
  }

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

  .side-card {
    margin-top: 0;
  }

  .status-strip div,
  .status-strip div:last-child {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .status-strip div:last-child {
    border-bottom: 0;
  }

  .landing-shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 14px;
  }

  .landing-nav {
    align-items: stretch;
    gap: 12px;
  }

  .landing-nav-actions {
    gap: 10px;
    justify-content: space-between;
  }

  .landing-nav-actions > a:not(.button-link) {
    display: none;
  }

  .landing-hero {
    gap: 28px;
    min-height: 0;
    padding: 40px 0 30px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-stats,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 16px;
  }

  .status-line,
  .status-line:nth-child(even),
  .status-line:nth-child(odd) {
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-right: 0;
  }

  .status-line:last-child {
    border-bottom: 0;
  }

  .grid {
    display: grid;
  }

  .market {
    grid-column: span 1;
  }

  .actions button {
    flex: 1;
  }
}
