/* Agent Use Case Library: page-specific styles. Builds on /styles.css tokens. */

/* Hero */
.uc-hero { padding-bottom: clamp(110px, 12vw, 170px); }
.uc-hero .post__back { margin-bottom: 28px; color: var(--text); }
.uc-facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 40px; }
.uc-facts li { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--blue); }
.uc-facts strong { font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.uc-facts .mono { color: var(--text); }

/* Library section */
.uc { padding: clamp(72px, 8vw, 110px) 0 clamp(96px, 12vw, 150px); background: #fff; }
.uc__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.uc__head h2 { font-size: clamp(34px, 4.2vw, 56px); }
.uc__lead { margin-top: 14px; max-width: 36em; color: var(--text); }

.uc-slbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 500; transition: background-color .25s ease, transform .2s var(--ease); }
.uc-slbtn:hover { background: var(--navy-2); }
.uc-slbtn:active { transform: scale(.98); }
.uc-slbtn__n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; background: #fff; color: var(--navy); font-family: var(--mono); font-size: 12px; }
.uc-slbtn.is-bump .uc-slbtn__n { animation: ucBump .45s var(--ease); }
@keyframes ucBump { 40% { transform: scale(1.35); background: #c9d2ff; } }

/* Tools row */
.uc__tools { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.75fr); gap: 12px; margin-bottom: 14px; }
.uc-search { position: relative; display: flex; align-items: center; background: var(--bg-2); transition: box-shadow .2s ease; }
.uc-search:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.uc-search > .ic { position: absolute; left: 16px; color: var(--soft); pointer-events: none; }
.uc-search input { width: 100%; height: 56px; padding: 0 48px 0 46px; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none; }
.uc-search input::-webkit-search-cancel-button { display: none; }
.uc-search input::placeholder { color: var(--soft); }
.uc-search__clear { position: absolute; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); }
.uc-search__clear:hover { color: var(--blue); }
.uc-search__clear[hidden], .uc-grid[hidden], .uc-reset[hidden] { display: none; }
.uc-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.uc-select { position: relative; display: grid; align-content: center; gap: 2px; height: 56px; padding: 0 36px 0 14px; background: var(--bg-2); cursor: pointer; transition: box-shadow .2s ease; }
.uc-select:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.uc-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.uc-select .mono { font-size: 10.5px; color: var(--text); }
.uc-select select { width: 100%; min-width: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: transparent; border: 0; border-radius: 0; outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }

/* Function chips */
.uc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-chips .fchip { display: inline-flex; align-items: center; gap: 8px; }
.uc-chips .fchip .n { font-size: 11px; opacity: .6; }
.uc-chips .fchip.is-on .n { opacity: .8; }

.uc__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin: 26px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.uc-count { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.uc-count strong { color: var(--blue); font-weight: 500; }
.uc-reset { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); padding: 10px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.uc-reset:hover { border-bottom-color: var(--blue); }

/* Card grid */
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.uccard { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 28px; background: var(--bg-2); transition: transform .5s var(--ease), background-color .3s ease; isolation: isolate; overflow: hidden; }
.uccard::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.uccard:hover, .uccard:focus-within { transform: translateY(-4px); background: #eef0f6; }
.uccard:hover::before, .uccard:focus-within::before { transform: scaleX(1); }
.uccard.uc-in { animation: ucIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes ucIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.uccard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.uccard__fn { color: var(--blue); }
.uccard h3 { font-size: 23px; letter-spacing: -0.03em; line-height: 1.15; }
.uccard__open { text-align: left; font: inherit; letter-spacing: inherit; line-height: inherit; color: var(--ink); outline: none; }
.uccard__open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.uccard__open:focus-visible::after { outline: 2px solid var(--blue); outline-offset: -2px; }
.uccard p { font-size: 15.5px; color: var(--text); }
.uccard__metric { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); }
.uccard__metric .mono { display: block; margin-bottom: 4px; font-size: 11px; color: var(--text); }
.uccard__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.uccard__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--blue); }
.uccard:hover .uccard__more .ar { transform: translate(2px, -2px); }
.uccard__save { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px -10px 0; color: var(--text); transition: color .2s ease, transform .2s var(--ease); }
.uccard__save:hover { color: var(--blue); }
.uccard__save:active { transform: scale(.9); }
.uccard__save[aria-pressed="true"] { color: var(--blue); }
.uccard__save[aria-pressed="true"] .ic, .ucd__save[aria-pressed="true"] .ic, .uc-slbtn .ic { fill: currentColor; }
.uc-slbtn .ic { fill: none; }

/* Complexity meter */
.cx { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.cx__bars { display: inline-flex; gap: 3px; }
.cx__bars i { width: 6px; height: 6px; background: #cfd3dc; }
.cx--1 .cx__bars i:nth-child(-n+1), .cx--2 .cx__bars i:nth-child(-n+2), .cx--3 .cx__bars i:nth-child(-n+3) { background: var(--blue); }

/* Empty state */
.uc-empty { display: grid; justify-items: start; gap: 14px; padding: clamp(32px, 5vw, 56px); background: var(--navy); color: #fff; }
.uc-empty[hidden] { display: none; }
.uc-empty .dots { margin-bottom: 6px; }
.uc-empty h3 { font-size: clamp(26px, 2.6vw, 34px); }
.uc-empty p { max-width: 38em; color: rgba(255, 255, 255, .8); }
.uc-empty__row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 10px; }
.uc-empty .btn--blue { background: #fff; color: var(--blue); }
.uc-empty .btn--blue:hover { background: #e9edff; }
.uc-link { font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.uc-empty .uc-link { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }

/* How it works band */
.uc-how .why__list h3 { font-size: clamp(24px, 2.4vw, 32px); }

/* Drawer */
html.uc-lock, html.uc-lock body { overflow: hidden; }
.ucd { position: fixed; inset: 0; z-index: 80; }
.ucd[hidden] { display: none; }
.ucd__scrim { position: absolute; inset: 0; background: rgba(10, 28, 79, .42); opacity: 0; transition: opacity .4s ease; }
.ucd__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(640px, 100%); background: #fff; box-shadow: -24px 0 60px rgba(13, 36, 99, .16); transform: translateX(100%); transition: transform .55s var(--ease); outline: none; }
.ucd.is-open .ucd__scrim { opacity: 1; }
.ucd.is-open .ucd__panel { transform: none; }
.ucd__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; padding: 0 12px 0 32px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.ucd__bar .mono { color: var(--blue); }
.ucd__close { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); transition: color .2s ease, transform .3s var(--ease); }
.ucd__close:hover { color: var(--blue); transform: rotate(90deg); }
.ucd__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 32px 32px 40px; }
.ucd__body.is-swap > * { animation: ucIn .5s var(--ease) both; }
.ucd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.ucd__fn { color: var(--blue); }
.ucd__title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.04; letter-spacing: -0.04em; outline: none; }
.ucd__summary { margin-top: 16px; font-size: 18px; color: var(--text); }
.ucd__inds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ucd__inds .chip { font-size: 11px; padding: 5px 9px; }
.ucd__sec { margin-top: 32px; }
.ucd__sec > .mono { display: block; margin-bottom: 12px; color: var(--text); }
.ucd__sec p { color: #2c2f35; }
.ucd__steps { display: grid; gap: 12px; counter-reset: step; }
.ucd__steps li { position: relative; padding-left: 40px; color: #2c2f35; counter-increment: step; }
.ucd__steps li::before { content: "0" counter(step); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 12px; color: var(--blue); }
.ucd__sys { display: flex; flex-wrap: wrap; gap: 8px; }
.ucd__sys li { padding: 8px 12px; background: var(--bg-2); font-size: 14.5px; font-weight: 500; color: #2d3036; }
.ucd__gate { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 20px; background: var(--navy); color: #fff; }
.ucd__gate .ic { width: 22px; height: 22px; margin-top: 1px; color: #9fb0ff; }
.ucd__gate .mono { display: block; margin-bottom: 6px; color: rgba(255, 255, 255, .7); }
.ucd__gate p { color: rgba(255, 255, 255, .9) !important; }
.ucd__metric { display: grid; gap: 6px; padding: 20px; background: var(--bg-2); border-left: 3px solid var(--blue); }
.ucd__metric .mono { color: var(--text); }
.ucd__metric strong { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.ucd__metric small { font-size: 13.5px; color: var(--text); }
.ucd__rel { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ucd__rel button { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 14px 0; text-align: left; border-bottom: 1px solid var(--line); transition: color .2s ease, padding .3s var(--ease); }
.ucd__rel button:hover { color: var(--blue); padding-left: 6px; }
.ucd__rel .t { font-weight: 500; }
.ucd__rel .mono { display: block; margin-top: 2px; font-size: 11px; color: var(--text); }
.ucd__rel button:hover .ar { transform: translate(2px, -2px); }
.ucd__call { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: 32px; }
.ucd__call p { font-size: 15px; color: var(--text); }
.ucd__call a { color: var(--blue); }
.ucd__actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 32px; border-top: 1px solid var(--line); background: #fff; }
.ucd__actions .btn { flex: 1 1 auto; justify-content: center; }
.ucd__save, .ucd__copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 14px; font-size: 15px; font-weight: 500; background: var(--bg-2); color: var(--ink); transition: background-color .25s ease, color .25s ease, transform .2s var(--ease); white-space: nowrap; }
.ucd__save:hover, .ucd__copy:hover { background: #eceef4; color: var(--blue); }
.ucd__save:active, .ucd__copy:active { transform: scale(.98); }
.ucd__save[aria-pressed="true"] { background: #e9edff; color: var(--blue); }

/* Shortlist */
.usl { display: grid; margin-top: 24px; border-top: 1px solid var(--line); counter-reset: sl; }
.usl:empty { display: none; }
.usl li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); counter-increment: sl; animation: ucIn .45s var(--ease) both; }
.usl li::before { content: counter(sl, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--blue); }
.usl__open { text-align: left; padding: 4px 0; }
.usl__open .t { display: block; font-weight: 500; transition: color .2s ease; }
.usl__open:hover .t { color: var(--blue); }
.usl__open .mono { display: block; margin-top: 2px; font-size: 11px; color: var(--text); }
.usl__rm { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); }
.usl__rm:hover { color: var(--blue); }
.usl-empty { margin-top: 24px; padding: 24px; background: var(--bg-2); color: var(--text); }
.usl-empty[hidden] { display: none; }
.ucd--list .ucd__actions .btn { flex-basis: 100%; }
.ucd--list .ucd__actions .ucd__copy { flex: 1 1 auto; }
.ucd [aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Toast */
.uc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--ink); color: #fff; font-size: 14.5px; transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s ease; pointer-events: none; }
.uc-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Responsive */
@media (max-width: 1000px) {
  .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc__tools { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .uc-grid { grid-template-columns: 1fr; gap: 14px; }
  .uccard { min-height: 0; padding: 24px; }
  .uc-selects { grid-template-columns: 1fr 1fr; }
  .uc-selects .uc-select:first-child { grid-column: 1 / -1; }
  .uc__head { align-items: flex-start; }
  .uc-chips { gap: 6px; }
  .uc-chips .fchip { height: 36px; padding: 0 11px; font-size: 11px; }
  .uc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .uc-facts li { padding-left: 10px; }
  .uc-facts .mono { font-size: 11px; }
  .ucd__bar { padding-left: 20px; height: 60px; }
  .ucd__body { padding: 24px 20px 32px; }
  .ucd__actions { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .ucd__actions .btn { flex-basis: 100%; }
  .ucd__actions .ucd__save, .ucd__actions .ucd__copy { flex: 1 1 0; padding: 0 10px; }
  .ucd__summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .uccard.uc-in, .ucd__body.is-swap > *, .usl li { animation: none; }
  .ucd__panel, .ucd__scrim, .uc-toast { transition: none; }
  .uccard:hover, .uccard:focus-within { transform: none; }
}

/* ---------- Field guide layer: hero, warm-up matcher, lessons, exports ---------- */
.uc-hero .lx-fig { max-width: 560px; justify-self: end; }

.ucf { padding: clamp(72px, 8vw, 110px) 0; background: var(--bg-2); }
.ucf__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: 40px; }
.ucf__eyebrow { color: var(--blue); }
.ucf__head h2 { margin-top: 12px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
.ucf__head > p { max-width: 32em; color: var(--text); }
.ucf__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ucf__form { display: grid; gap: 12px; }
.ucf__q { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 24px; border: 0; background: #fff; }
.ucf__q legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.ucf__q legend .mono { color: var(--blue); font-size: 12px; }
.ucf__q legend + * { clear: both; }
.ucf__q .lx-why { margin-top: 0; }
.ucf__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ucf__opts--stack { display: grid; }
.ucf__opt { position: relative; cursor: pointer; }
.ucf__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ucf__opt > span { display: grid; align-content: center; gap: 2px; min-height: 44px; padding: 8px 14px; background: var(--bg-2); font-size: 15px; font-weight: 500; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.ucf__opt small { font-size: 12.5px; font-weight: 400; color: var(--text); transition: color .2s ease; }
.ucf__opt:hover > span { box-shadow: inset 0 0 0 1px var(--blue); }
.ucf__opt input:checked + span { background: var(--blue); color: #fff; }
.ucf__opt input:checked + span small { color: rgba(255, 255, 255, .82); }
.ucf__opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.ucf__out { position: sticky; top: 84px; min-width: 0; }
.ucf-wait { display: grid; gap: 12px; padding: 32px; background: var(--navy); color: rgba(255, 255, 255, .86); min-height: 260px; align-content: center; }
.ucf-wait .mono { color: #9fb0ff; }
.ucf-wait__dots { display: flex; gap: 6px; }
.ucf-wait__dots li { width: 36px; height: 6px; background: rgba(255, 255, 255, .18); transition: background-color .4s ease; }
.ucf-wait__dots li.is-on { background: #7f95ff; }
.ucf-res { position: relative; display: grid; gap: 12px; padding: 28px; background: #fff; border-top: 3px solid var(--blue); animation: ucIn .6s var(--ease) both; }
.ucf-res__label { margin-top: 6px; color: #5d626b; }
.ucf-res__label:first-child { margin-top: 0; color: var(--blue); }
.ucf-res__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.ucf-res__big b { font-size: clamp(48px, 5.4vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--blue); }
.ucf-res__big span { max-width: 18em; font-size: 16px; color: var(--text); }
.ucf-res__rail { margin-bottom: 6px; }
.ucf-res__rail .lx-rail__pin { width: 22px; }
.ucf-res__text { font-size: 16px; line-height: 1.55; }
.ucf-picks { display: grid; gap: 2px; }
.ucf-picks li { animation: ucIn .5s var(--ease) both; animation-delay: calc(200ms + var(--i) * 110ms); }
.ucf-pick { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "n t ar" "n m ar" "n w ar"; gap: 2px 10px; width: 100%; padding: 14px 16px; text-align: left; background: var(--bg-2); transition: background-color .25s ease; }
.ucf-pick:hover { background: #eef1ff; }
.ucf-pick__n { grid-area: n; color: var(--blue); padding-top: 3px; }
.ucf-pick__t { grid-area: t; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.ucf-pick__m { grid-area: m; font-size: 14px; color: var(--text); }
.ucf-pick__why { grid-area: w; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ucf-pick__why i { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; background: #fff; color: var(--navy); }
.ucf-pick .ar { grid-area: ar; align-self: center; }
.ucf-pick:hover .ar { transform: translate(2px, -2px); }
.ucf__myth { margin-top: 32px; }

/* Lesson drawer */
.ucd-loop { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr; align-items: stretch; margin-top: 24px; }
.ucd-loop__n { display: grid; gap: 2px; padding: 12px 14px; background: var(--bg-2); animation: ucIn .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.ucd-loop__n .mono { font-size: 10.5px; color: #5d626b; }
.ucd-loop__n b { font-size: 15px; font-weight: 500; }
.ucd-loop__n--h { background: var(--navy); color: #fff; }
.ucd-loop__n--h .mono { color: #9fb0ff; }
.ucd-loop__n--m { background: #eef1ff; }
.ucd-loop__ar { position: relative; align-self: center; height: 2px; background: var(--blue); transform-origin: left; animation: ucDraw .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.ucd-loop__ar::after { content: ""; position: absolute; right: 0; top: -3px; border-left: 6px solid var(--blue); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
@keyframes ucDraw { from { transform: scaleX(0); } }
.ucd__lesson { padding-top: 24px; border-top: 1px solid var(--line); }
.ucd__sec .ucd__ln { margin: 0; color: var(--blue); font-size: 11px; }
.ucd__lh { margin: 6px 0 16px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.ucd__sub { display: block; margin: 20px 0 10px; color: var(--text); }
.ucd-ceil { display: grid; gap: 8px; margin-top: 12px; padding: 16px 18px; background: var(--bg-2); }
.ucd-ceil__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ucd-ceil__top .mono { color: var(--text); }
.ucd-ceil__top b { font-size: 18px; font-weight: 500; color: var(--blue); }
.ucd-ceil__bar { height: 6px; background: var(--line); }
.ucd-ceil__bar i { display: block; height: 100%; background: var(--blue); transform: scaleX(var(--v)); transform-origin: left; animation: ucDraw 1s var(--ease) both; animation-delay: .25s; }
.ucd-ceil p { font-size: 14.5px; }
.ucd__lesson .lx-why { margin-top: 12px; }
.ucd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2px; }
.ucd-pair > div { padding: 14px 16px; background: var(--bg-2); }
.ucd-pair dt { color: var(--text); margin-bottom: 4px; }
.ucd-pair dd { margin: 0; font-size: 15px; line-height: 1.4; }

/* Shortlist exports */
.usl-export { margin-top: 28px; display: grid; gap: 10px; }
.usl-export[hidden] { display: none; }
.usl-export > .mono { color: var(--text); }

/* Print brief: built on demand, shown only while printing */
.uc-print { display: none; }
@media print {
  html.uc-printing, html.uc-printing body { overflow: visible !important; height: auto !important; }
  html.uc-printing main > *:not(.uc-print), html.uc-printing .ucd { display: none !important; }
  html.uc-printing .uc-print { display: block; color: #000; }
  .ucd, .uc-toast { display: none !important; }
  .ucp__head { margin-bottom: 18pt; padding-bottom: 12pt; border-bottom: 2px solid #0d2463; }
  .ucp__head h1 { margin: 6pt 0; font-size: 24pt; letter-spacing: -0.02em; }
  .ucp__head p, .ucp p, .ucp li { font-size: 10.5pt; line-height: 1.45; }
  .uc-print .mono { font-size: 8.5pt; color: #1236ff; }
  .ucp { padding: 12pt 0; border-bottom: 1px solid #ccc; break-inside: avoid-page; }
  .ucp h2 { margin: 4pt 0 6pt; font-size: 16pt; }
  .ucp h3 { margin: 8pt 0 2pt; font-size: 10pt; text-transform: uppercase; letter-spacing: .05em; color: #0d2463; }
  .ucp ol { padding-left: 16pt; list-style: decimal; }
  .ucp__sys, .ucp__link { color: #555; font-size: 9pt !important; }
}

@media (max-width: 1000px) {
  .ucf__grid, .ucf__head { grid-template-columns: 1fr; }
  .ucf__out { position: static; }
}
@media (max-width: 760px) {
  .ucf__q { padding: 20px 16px; }
  .ucf-res { padding: 22px 16px; }
  .ucf-wait { padding: 24px 18px; min-height: 0; }
  .ucd-loop { grid-template-columns: 1fr 14px 1fr 14px 1fr; }
  .ucd-loop__n { padding: 10px; }
  .ucd-loop__n b { font-size: 13.5px; }
  .ucd-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ucf-res, .ucf-picks li, .ucd-loop__n, .ucd-loop__ar, .ucd-ceil__bar i { animation: none; }
}
/* Contrast: shared rail stops and myth label use --soft, which is under 4.5:1 on white */
.ucf-res__rail .lx-rail__stops li, .ucf__myth .mono { color: #6b7079; }
.ucf-res__rail .lx-rail__stops li.is-reached { color: var(--ink); }
.ucf__myth > div + div .mono { color: var(--blue); }
@media (max-width: 760px) { .ucf-res__rail .lx-rail__stops li { font-size: 9.5px; letter-spacing: .02em; } }
