/* Thin site layer — tokens + components-core load from config; edit components.css then split. */

/* Thin site layer — use-case/page specifics only; components match design/mockups/usecase.html */
a.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
a.skip:focus {
  position: fixed;
  top: var(--sp-2);
  left: var(--sp-2);
  width: auto;
  height: auto;
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  clip: auto;
  overflow: visible;
  white-space: normal;
  z-index: calc(var(--z-header) + 10);
  background: var(--c-surface);
  border: 2px solid var(--c-focus);
  border-radius: var(--r-md);
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 600;
}
.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: var(--c-paper);
  padding: var(--sp-5);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--sp-4);
  overflow: auto;
}
.nav-sheet[hidden] { display: none; }
.nav-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.nav-sheet__links { display: grid; gap: 0; align-content: start; }
.nav-sheet__links a {
  display: block;
  padding: var(--sp-4) 0;
  font-size: var(--step-1);
  font-weight: 600;
  text-decoration: none;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.theme-btn--sheet { width: 100%; }
.header-agent-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.site-header__actions #my-agents-count[hidden] { display: none; }
/* My-agents drawer (footer aside#my-agents-drawer; keep overlay model, not components-core slide-in) */
.drawer[hidden] { display: none; }
#my-agents-drawer {
  position: fixed; inset: 0; z-index: var(--z-drawer, 50);
  width: auto; max-width: none; height: auto; min-height: 0;
  transform: none; box-shadow: none; border: 0; display: block;
  background: color-mix(in srgb, #000 55%, transparent);
}
#my-agents-drawer .drawer__panel {
  position: absolute; right: 0; top: 0; left: auto; width: min(400px, 100%); height: 100%;
  background: var(--c-surface); border-left: 1px solid var(--c-line);
  padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3);
  box-shadow: var(--shadow-3);
}
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  margin: 0 0 var(--sp-2); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line);
}
.drawer__head h2 { margin: 0; font-size: var(--step-1); }
.drawer__lede { margin: 0 0 var(--sp-3); font-size: var(--step--1); color: var(--c-ink-2); }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); flex: 1; overflow: auto; }
.drawer__list .drawer__item { display: block; }
.drawer__item-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2);
}
.drawer__title { color: var(--c-brand-ink); text-decoration: none; font-weight: 500; flex: 1; min-width: 0; }
.delta {
  margin: var(--sp-1) 0 0; font-size: var(--step--1); color: var(--c-ink-2); line-height: 1.4;
}
.delta__text { display: inline; }
.delta__dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-play);
  vertical-align: 0.15em; margin-right: 0.4em;
}
.delta__more {
  margin-left: 0.35em; min-height: auto; padding: 0.1em 0.45em; font-size: var(--step--2); vertical-align: 0.1em;
}
.delta__extra { display: block; margin: 0.35em 0 0 1.15em; }
.delta__extra .delta__text { display: block; margin-top: 0.2em; }
.delta--retired .delta__text { color: var(--c-warn); }
.my-page__persona-news { margin: var(--sp-4) 0 0; }
.my-page__persona-news a { color: var(--c-ink-2); }
.drawer__routes, .my-page__routes { margin: var(--sp-3) 0 0; display: grid; gap: var(--sp-2); }
.drawer__routes { padding-top: var(--sp-3); border-top: 1px solid var(--c-line); }
.my-page__routes { margin-top: var(--sp-5); margin-bottom: var(--sp-5); }
.my-page:has(#my-grid .uc-card) > p { margin-top: var(--sp-6); }
@media (prefers-reduced-motion: reduce) {
  .delta__dot { animation: none; }
}
.why {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--c-ink-2);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 2px 10px;
  margin: 0 0 8px;
}
.why b { color: var(--c-brand-ink); font-weight: 600; }
.uc-card > .why {
  display: inline;
  padding: 2px 10px;
  line-height: 1.5;
}
.why .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-play);
  flex-shrink: 0;
}
.chg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
  max-width: 52rem;
}
.chg a {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.chg a:hover { border-color: var(--c-brand); }
.chg .n { font-size: 1.6rem; font-weight: 700; color: var(--c-brand-ink); line-height: 1.1; }
.chg .n--play { color: var(--c-play-ink); }
.chg .k { font-size: 0.85rem; color: var(--c-ink-2); }
.chg .d { font-size: 0.75rem; color: var(--c-ink-3); margin-top: 4px; }
.chg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chg-head h2 { margin: 0; font-size: 1.25rem; }
.rel-row { margin: 0 0 28px; }
.rel-row h3 { margin: 0 0 2px; font-size: 1.05rem; }
.rel-row .lead { margin: 0 0 12px; color: var(--c-ink-3); font-size: 0.9rem; }
.grid.rel { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .chg { grid-template-columns: repeat(2, 1fr); }
  .grid.rel { grid-template-columns: 1fr; }
}
.drawer__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--c-line); }
.usecase-guides .eyebrow { margin: var(--sp-5) 0 var(--sp-2); }
.usecase-page .lead { max-width: var(--measure); }
.usecase-page .longform { margin-top: var(--sp-8); }
.usecase-page .longform h3 { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--step-1); }
.guide-index {
  list-style: none;
  margin: var(--sp-6, 1.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4, 1rem);
  max-width: var(--measure-wide, 42rem);
}
.guide-index__title {
  font-size: var(--step-1, 1.125rem);
  font-weight: 700;
  color: var(--c-brand-ink, var(--accent));
  text-decoration: none;
}
.guide-index__title:hover {
  text-decoration: underline;
}
.guide-index__summary {
  margin: var(--sp-1, 0.25rem) 0 0;
}

.guides-inline { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.usecase-page .guides-inline a { font-size: var(--step--1); color: var(--c-brand-ink); }
.usecase-page .share-qr { margin-top: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--r-md); }
@media (max-width: 479px) {
  .checklist > div { grid-template-columns: 1fr; }
}
.usecase-page .runpanel { display: flex; flex-direction: column; }
.usecase-page .runpanel [role="tabpanel"] { width: 100%; min-width: 0; }
.usecase-page .runpanel .well pre { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 1023px) {
  .usecase-page .split__rail { min-width: 0; }
  .usecase-page .runpanel .well pre { max-height: min(50vh, 420px); }
}
.site-footer .sharebar { margin-bottom: var(--sp-6); }
.notices { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; gap: var(--sp-2); max-width: var(--measure); font-size: var(--step--1); color: var(--c-ink-2); }