.cx-shell {
  --cx-ink: #183e33;
  --cx-green: #15543f;
  --cx-muted: #52685e;
  --cx-edge: #d8e3db;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 68px;
  color: var(--cx-ink);
  overflow-wrap: anywhere;
}
.cx-shell a { color: var(--cx-green); text-underline-offset: 3px; }
.cx-shell h1 { margin: 4px 0 12px; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.18; letter-spacing: -.04em; }
.cx-shell h2 { font-size: 1.25rem; line-height: 1.45; margin: 0 0 10px; }
.cx-shell h3 { font-size: 1.03rem; line-height: 1.55; margin: 4px 0; }
.cx-shell p { line-height: 1.7; margin: .55em 0; }
.cx-heading, .cx-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.cx-heading > div:first-child, .cx-hero > div:first-child { max-width: 740px; }
.cx-heading p, .cx-muted, .cx-bread, .cx-foot { color: var(--cx-muted); }
.cx-kicker, .cx-bread, .cx-foot, .cx-tag, .cx-status, .cx-muted { font-size: .88rem; }
.cx-bread { margin-bottom: 18px; }
.cx-bread a { margin-right: 5px; }
.cx-kicker { font-weight: 650; }
.cx-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.cx-circle-card, .cx-panel {
  background: #fff;
  border: 1px solid var(--cx-edge);
  border-radius: 14px;
  padding: clamp(18px, 2.5vw, 28px);
  min-width: 0;
}
.cx-circle-card { display: flex; flex-direction: column; }
.cx-circle-top, .cx-foot, .cx-list > li { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cx-circle-top { margin-bottom: 15px; }
.cx-circle-card .cx-circle-intro { flex: 1; color: var(--cx-muted); }
.cx-directory .cx-circle-intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; flex: none; }
.cx-directory .cx-circle-top h2 { margin: 0; }
.cx-directory .cx-tag { flex-shrink: 0; }
.cx-directory .cx-foot { margin-top: auto; }
.cx-directory .cx-circle-intro { margin-bottom: 16px; }
.cx-circle-intro { max-inline-size: 48rem; }
.cx-circle-intro p { white-space: pre-line; margin: 0; line-height: 1.75; }
.cx-circle-intro p + p { margin-top: .7em; }
.cx-circle-card h2 a, .cx-list h3 a { text-decoration: none; }
.cx-circle-card h2 a:hover, .cx-list h3 a:hover { text-decoration: underline; }
.cx-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cx-edge); }
.cx-symbol { color: var(--cx-green); font-size: 1.75rem; line-height: 1; }
.cx-tag, .cx-status { background: #ecf4e9; padding: 4px 9px; border-radius: 20px; display: inline-block; color: #355744; }
.cx-status { background: #f3f4ee; flex-shrink: 0; }
.cx-hero { background: #215740; color: #fff; border-radius: 16px; padding: clamp(22px, 4vw, 48px); }
.cx-hero h1, .cx-hero p { color: #fff; }
.cx-hero .cx-actions > a:not(.cx-on-dark) { color: #fff; }
.cx-board { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.cx-stack, .cx-form { display: grid; gap: 16px; min-width: 0; align-content: start; }
.cx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cx-todo + .cx-todo { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--cx-edge); }
.cx-list { list-style: none; padding: 0; margin: 0; }
.cx-list > li { padding: 15px 0; border-top: 1px solid var(--cx-edge); }
.cx-list > li:first-child { border-top: 0; }
.cx-list > li:last-child { padding-bottom: 0; }
.cx-list > li > div { min-width: 0; }
.cx-list p, .cx-panel > p { color: var(--cx-muted); }
.cx-shell :is(.cx-primary,.cx-ghost,.cx-on-dark) {
  display: inline-flex; justify-content: center; align-items: center; min-height: 42px;
  padding: 8px 16px; border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer;
  border: 1px solid var(--cx-green); text-decoration: none; line-height: 1.5;
}
.cx-shell .cx-primary { background: var(--cx-green); color: #fff; }
.cx-shell .cx-ghost, .cx-shell .cx-on-dark { background: white; color: var(--cx-green); border-color: #bdcec1; }
.cx-shell :focus-visible { outline: 3px solid #d18b29; outline-offset: 3px; }
.cx-shell summary { cursor: pointer; color: var(--cx-green); font-weight: 650; }
.cx-form { max-width: 720px; }
.cx-form label { display: grid; gap: 8px; font-weight: 650; }
.cx-form label input, .cx-form label textarea { width: 100%; padding: 11px; border: 1px solid #b6c8bc; border-radius: 8px; box-sizing: border-box; font: inherit; font-weight: 400; color: var(--cx-ink); }
.cx-form button { justify-self: start; }
.cx-alert { background: #fff3e8; padding: 10px 14px; }
.cx-metrics { margin: 20px 0; }
.cx-metrics-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 20px; }
.cx-metrics-grid dt { color: var(--cx-muted); font-size: .9rem; }
.cx-metrics-grid dd { margin: 6px 0 0; font-size: 1.55rem; font-weight: 650; }
.cx-form select { font: inherit; color: var(--cx-ink); padding: 10px; border: 1px solid var(--cx-edge); border-radius: 8px; }
@media (max-width: 760px) {
  .cx-shell { width: calc(100% - 30px); padding-top: 22px; }
  .cx-board { grid-template-columns: minmax(0,1fr); }
  .cx-list > li { align-items: flex-start; flex-wrap: wrap; }
  .cx-list > li > div { flex: 1 1 170px; }
  .cx-heading { align-items: flex-start; }
}
.cx-topic-progress { display:flex; flex-wrap:wrap; align-items:center; gap:5px 14px; margin-top:8px; font-size:.86rem; }
.cx-topic-progress a { color:#185844; font-weight:650; }
.cx-hero .cx-intro-toggle > summary { display: block; color: inherit; }
.cx-intro-toggle > summary::-webkit-details-marker { display: none; }
.cx-intro-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-weight: 400;
  line-height: 1.75;
  white-space: pre-line;
}
.cx-intro-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: .88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cx-intro-chevron { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.cx-intro-toggle:not([open]) .cx-intro-collapse-label,
.cx-intro-toggle[open] :is(.cx-intro-preview, .cx-intro-expand-label) { display: none; }
.cx-intro-toggle[open] .cx-intro-chevron { transform: rotate(225deg); }
