/* Researcher console. Tokens and primitives come from style.css. */

body.ad { background: var(--bg); color: var(--ink-body); font-size: 14px; }
.ad h1 { font-size: 1.35rem; }
.ad table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ad th, .ad td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ad th { color: var(--muted); font-weight: 600; font-size: .75rem; letter-spacing: .02em; background: var(--panel); position: sticky; top: 0; z-index: 1; }
.ad tbody tr:last-child td { border-bottom: none; }
.ad tr.clickable { cursor: pointer; transition: background-color 120ms var(--ease-out); }
.ad tr.clickable:hover td { background: #f9fafb; }
.ad td.num, .ad th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-2); }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0e4fa8, var(--brand)); margin-bottom: 1rem; }
.brand-mark .ic { width: 22px; height: 22px; }
.brand-mark.sm { width: 32px; height: 32px; border-radius: 10px; margin: 0; }
.brand-mark.sm .ic { width: 17px; height: 17px; }

/* App shell: sidebar + content */
#app { display: grid; grid-template-columns: var(--side-w, 248px) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns 200ms var(--ease-out); }
body.side-mini #app { --side-w: 68px; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: .25rem; padding: .85rem .7rem; background: #fbfbfa; border-right: 1px solid var(--line); overflow: hidden; z-index: 20; }
.side-head { display: flex; align-items: center; gap: .4rem; padding: 0 .1rem .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); min-width: 0; flex: 1; }
.brand strong { display: block; font-size: .9rem; line-height: 1.15; white-space: nowrap; }
.brand small { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-label { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: .9rem .6rem .35rem; white-space: nowrap; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: var(--radius-sm); color: var(--ink-body); font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; transition: background-color 140ms var(--ease-out), color 140ms var(--ease-out); }
.side-nav a .ic { width: 18px; height: 18px; color: var(--muted); }
.side-nav a:hover { background: var(--sunken); color: var(--ink); }
.side-nav a.on { background: var(--brand-tint); color: var(--brand); }
.side-nav a.on .ic { color: var(--brand); }
.side-foot { border-top: 1px solid var(--line); padding-top: .7rem; display: grid; gap: .35rem; }
.me-card { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .45rem .5rem; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; }
.me-card:hover { background: var(--sunken); }
.me-card .avatar { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: .82rem; }
.me-card .label { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.me-card small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.me-card select { border: none; background: transparent; padding: 0; font-weight: 700; font-size: .88rem; box-shadow: none !important; width: 100%; cursor: pointer; }
.side-out { justify-content: flex-start; gap: .7rem; padding-left: .65rem; color: var(--muted); }
.side-out .ic { width: 18px; height: 18px; }
body.side-mini .side .label, body.side-mini .side-label { display: none; }
body.side-mini .side-head { flex-direction: column; }
body.side-mini .side-nav a, body.side-mini .side-out { justify-content: center; padding: .6rem 0; }
body.side-mini .me-card { justify-content: center; padding: .45rem 0; }
body.side-mini #side-toggle .ic { transform: scaleX(-1); }
a.btn.on { background: var(--brand-tint); color: var(--brand); }

.view { max-width: 1320px; margin: 0 auto; padding: 1.25rem 1.25rem 4rem; }
.view.wide { max-width: none; padding: 0; }
.page-head { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: .25rem 0 1rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .2rem 0 0; color: var(--muted); }
.subnav { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 0 0 1rem; overflow-x: auto; }
.subnav a { padding: .55rem .8rem; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a.on { color: var(--ink); border-bottom-color: var(--brand); }
.subnav .count { font-size: .72rem; color: var(--faint); margin-left: .25rem; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); margin-bottom: 1rem; }
.card > .card-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.card > .card-head h2, .card > .card-head h3 { margin: 0; font-size: .98rem; }
.card > .card-head p { margin: 0; flex-basis: 100%; font-size: .82rem; color: var(--muted); }
.card > .card-body { padding: 1rem; }
.card > .card-body.flush { padding: 0; }
.card > .card-foot { padding: .75rem 1rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 1100px) { .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.side { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
details.card > summary { cursor: pointer; list-style: none; padding: .85rem 1rem; display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform 160ms var(--ease-out); margin-right: .2rem; }
details.card[open] > summary::before { transform: rotate(45deg); }
details.card[open] > summary { border-bottom: 1px solid var(--line); }
details.card > summary .muted { font-weight: 500; font-size: .82rem; }

/* Big picture metrics (overview) */
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; box-shadow: var(--shadow-1); }
.metric { padding: 1rem 1.1rem; border-right: 1px solid var(--line); }
.metric:last-child { border-right: none; }
.metric .k { font-size: .78rem; color: var(--muted); font-weight: 600; }
.metric .v { font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.metric .s { font-size: .76rem; color: var(--faint); }
@media (max-width: 1000px) { .metrics { grid-template-columns: repeat(3, 1fr); } .metric:nth-child(3n) { border-right: none; } .metric:nth-child(-n + 3) { border-bottom: 1px solid var(--line); } }

.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: .7rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: none; }
.todo .n { min-width: 2.2rem; height: 1.7rem; padding: 0 .45rem; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: .82rem; background: var(--brand-tint); color: var(--brand); }
.todo .n.zero { background: var(--ok-tint); color: var(--ok); }
.todo a { margin-left: auto; font-weight: 600; font-size: .82rem; }

/* Link cards (recruit) */
.link-card { padding: 1rem; display: grid; gap: .7rem; }
.link-card .url { display: flex; gap: .4rem; align-items: center; }
.link-card .url code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .4rem .6rem; border: 1px solid var(--line); background: var(--sunken); border-radius: var(--radius-xs); }
.bar { height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.funnel { display: flex; gap: 1.2rem; font-size: .8rem; color: var(--muted); }
.funnel strong { display: block; font-size: 1.05rem; color: var(--ink); }

/* Session list */
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.toolbar input[type='search'] { width: 18rem; max-width: 100%; }
.toolbar select { width: auto; }
.check { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; color: var(--ink-body); cursor: pointer; }
.cell-sub { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }
.codestate { display: inline-flex; gap: .25rem; }
.codestate span { font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 6px; background: var(--sunken); color: var(--faint); border: 1px solid var(--line); }
.codestate span.on { background: var(--ok-tint); color: var(--ok); border-color: var(--ok-line); }
.codestate span.part { background: var(--warn-tint); color: var(--warn); border-color: var(--warn-line); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: .3rem; font-size: 1rem; }

/* Session workspace: list | transcript | panel */
.ws { display: grid; grid-template-columns: 250px minmax(0, 1fr) 400px; height: 100vh; }
.ws-list { border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; }
.ws-list .ws-search { padding: .7rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.ws-item { display: block; padding: .65rem .85rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-body); }
.ws-item:hover { background: var(--sunken); }
.ws-item.on { background: var(--brand-tint); box-shadow: inset 3px 0 0 var(--brand); }
.ws-item strong { color: var(--ink); font-size: .88rem; }
.ws-item .row { gap: .35rem; margin-top: .2rem; }
.ws-main { overflow-y: auto; background: var(--bg); }
.ws-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem 1.25rem; background: rgba(246, 247, 249, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ws-head h1 { margin: 0; font-size: 1.15rem; }
.ws-panel { border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; display: flex; flex-direction: column; }
.ws-tabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.ws-tabs button { flex: 1; border: none; border-radius: 0; background: none; box-shadow: none; color: var(--muted); font-size: .8rem; padding: .75rem .3rem; border-bottom: 2px solid transparent; min-height: 0; }
.ws-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.ws-tabs button .count { font-size: .7rem; color: var(--faint); margin-left: .2rem; }
.ws-pane { padding: 1rem; }
.ws-pane h3 { font-size: .9rem; margin: 1.1rem 0 .5rem; }
.ws-pane h3:first-child { margin-top: 0; }
@media (max-width: 1280px) { .ws { grid-template-columns: 0 minmax(0, 1fr) 380px; } .ws-list { display: none; } }
@media (max-width: 900px) { .ws { grid-template-columns: 1fr; height: auto; } .ws-panel { border-left: none; border-top: 1px solid var(--line); } }

/* Transcript, grouped by guide item (question header, then answers) */
.tx { max-width: 820px; margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.qblock { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; box-shadow: var(--shadow-1); overflow: hidden; }
.qblock.flash { animation: flash 1.2s var(--ease-out); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--brand-tint-strong); } 100% { box-shadow: var(--shadow-1); } }
.qhead { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; background: #fafbfc; border-bottom: 1px solid var(--line); }
.qhead .item { font-size: .72rem; font-weight: 800; padding: .1rem .45rem; border-radius: 6px; background: var(--brand-tint); color: var(--brand); flex-shrink: 0; margin-top: .1rem; }
.qhead .qtext { color: var(--ink-body); font-size: .88rem; line-height: 1.55; flex: 1; }
.qhead .qtext p { margin: 0 0 .35rem; }
.qhead .qtext p:last-child { margin: 0; }
.qhead .meta { font-size: .72rem; color: var(--faint); white-space: nowrap; }
.guard { margin-top: .35rem; font-size: .76rem; color: var(--warn); }
.guard summary { cursor: pointer; }
.guard div { color: var(--muted); margin-top: .25rem; white-space: pre-wrap; }
.answer { padding: .8rem .9rem .85rem; border-top: 1px dashed var(--line); }
.answer:first-of-type { border-top: none; }
.answer .ameta { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; font-size: .72rem; color: var(--faint); margin-bottom: .3rem; }
.answer .ttext { color: var(--ink); font-size: .95rem; line-height: 1.7; white-space: pre-wrap; cursor: text; }
.answer .ttext::selection, .answer .ttext *::selection { background: #fde68a; }
.answer.demo { background: #fffdf5; }
.sysnote { text-align: center; margin: .8rem auto; font-size: .78rem; color: var(--muted); background: var(--panel); border: 1px dashed var(--line-strong); border-radius: 999px; padding: .3rem .9rem; width: fit-content; max-width: 90%; }
mark.hl { border-radius: 4px; padding: 0 1px; color: inherit; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.lchips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.lchip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .1rem .2rem .1rem .5rem; border-radius: 999px; border: 1px solid; }
.lchip .who { font-weight: 500; opacity: .75; }
.lchip button { min-height: 0; width: 20px; height: 20px; padding: 0; border: none; background: none; box-shadow: none; color: inherit; opacity: .6; font-size: .9rem; }
.lchip button:hover { opacity: 1; background: rgba(0, 0, 0, .06); }

/* Selection popover */
.pop { position: absolute; z-index: 40; width: min(420px, calc(100vw - 24px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow-pop); animation: pop-in 160ms var(--ease-out); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
.pop .quote { font-size: .82rem; color: var(--ink-body); background: #fffbeb; border-left: 3px solid #f59e0b; padding: .4rem .6rem; border-radius: 6px; margin-bottom: .7rem; max-height: 6rem; overflow: auto; }
.pop .def { font-size: .78rem; color: var(--muted); margin: -.4rem 0 .6rem; }

/* Panel elements */
.kv { display: grid; grid-template-columns: 9.5rem 1fr; gap: .35rem .75rem; font-size: .82rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.stats div { background: var(--sunken); border-radius: var(--radius-xs); padding: .45rem .5rem; text-align: center; }
.stats div.warn { background: var(--warn-tint); }
.stats strong { display: block; font-size: 1.05rem; color: var(--ink); }
.stats span { font-size: .7rem; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 2px; background: var(--sunken); gap: 2px; flex-wrap: wrap; }
.seg button { border: none; box-shadow: none; background: none; min-height: 28px; padding: .2rem .6rem; font-size: .78rem; color: var(--muted); border-radius: 7px; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-1); }
.seg button.on.ok { color: var(--ok); } .seg button.on.bad { color: var(--bad); } .seg button.on.warn { color: var(--warn); }
.vcard { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem; margin-bottom: .6rem; }
.vcard.done { border-color: var(--ok-line); background: #fbfefc; }
.vcard .vhead { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .35rem; }
.vcard .hyp { font-size: .78rem; color: var(--muted); margin-bottom: .45rem; }
.vcard .why { font-size: .82rem; color: var(--ink-body); margin: .35rem 0; }
.quote { border-left: 3px solid var(--line-strong); padding: .1rem 0 .1rem .55rem; margin: .3rem 0; font-size: .82rem; color: var(--ink-body); }
.adj-unit { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; overflow: hidden; }
.adj-unit .u-head { display: flex; gap: .4rem; align-items: center; padding: .45rem .65rem; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); cursor: pointer; }
.adj-row { padding: .55rem .65rem; border-bottom: 1px solid var(--line); }
.adj-row:last-child { border-bottom: none; }
.adj-row.decided { background: #fbfefc; }
.adj-row .r1 { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.adj-row .q { font-size: .8rem; color: var(--ink-body); margin-top: .25rem; }
.runlog { background: #0f172a; color: #e2e8f0; border-radius: var(--radius-sm); padding: .7rem; font-size: .76rem; max-height: 260px; overflow: auto; white-space: pre-wrap; margin: .6rem 0 0; }

/* Analysis */
.ci { position: relative; height: 18px; background: var(--sunken); border-radius: 5px; min-width: 140px; }
.ci .range { position: absolute; top: 6px; height: 6px; background: var(--brand-tint-strong); border-radius: 3px; }
.ci .pt { position: absolute; top: 3px; width: 3px; height: 12px; background: var(--brand); border-radius: 2px; transform: translateX(-1px); }
.ci .thr { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: .8rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.col { background: var(--sunken); border-radius: var(--radius); padding: .6rem; }
.col-head { display: flex; align-items: center; gap: .4rem; margin: 0 .2rem .55rem; font-weight: 700; font-size: .82rem; color: var(--ink); }
.col-head .count { margin-left: auto; font-size: .75rem; color: var(--muted); }
.qcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .7rem; margin-bottom: .5rem; box-shadow: var(--shadow-1); }
.qcard .who { font-size: .75rem; font-weight: 700; color: var(--ink); }
.qcard .who span { font-weight: 500; color: var(--muted); }
.qcard p { margin: .3rem 0 0; font-size: .84rem; color: var(--ink-body); line-height: 1.55; }
.matrix th.rot { height: 7rem; white-space: nowrap; vertical-align: bottom; padding: 0 .2rem .4rem; }
.matrix th.rot span { display: inline-block; transform: rotate(-60deg); transform-origin: left bottom; width: 1.4rem; font-size: .72rem; }
td.cell { text-align: center; min-width: 1.8rem; color: var(--muted); }
td.cell.has { background: var(--brand-tint); color: var(--brand); font-weight: 700; cursor: help; }
td.cell.full { background: var(--ok-tint); color: var(--ok); }
td.cell.part { background: var(--warn-tint); color: var(--warn); }
td.cell.no { background: var(--bad-tint); color: var(--bad); }
td.cell.unmet { background: var(--bad-tint); color: var(--bad); font-weight: 700; }
.scroll-x { overflow-x: auto; }
.syn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; }
.syn-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem; background: var(--panel); }
.syn-card p { margin: .45rem 0; font-size: .88rem; }
.syn-card ul { margin: .2rem 0 .4rem; padding-left: 1.1rem; font-size: .85rem; }
.syn-card.persona { background: linear-gradient(180deg, var(--brand-tint), #fff 42%); }
.memo { border-bottom: 1px solid var(--line); padding: .8rem 1rem; }
.memo:last-child { border-bottom: none; }
.memo .mtext { white-space: pre-wrap; font-size: .88rem; color: var(--ink-body); margin-top: .35rem; }
.export-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.export-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem; display: flex; flex-direction: column; gap: .2rem; background: var(--panel); }
.export-card p { flex: 1; margin: .2rem 0 .6rem; }
.gloss dt { font-weight: 700; color: var(--ink); margin-top: .8rem; }
.gloss dd { margin: .2rem 0 0; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(16, 24, 40, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 1rem; animation: fade 160ms var(--ease-out); }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; background: var(--panel); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 1.25rem; animation: pop-in 200ms var(--ease-out); }
.modal-card.wide { max-width: 900px; }
.modal-card h2 { margin-bottom: .4rem; }
.modal-card .actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; }
.modal-card pre { background: var(--sunken); padding: .75rem; border-radius: var(--radius-sm); font-size: .76rem; white-space: pre-wrap; max-height: 60vh; overflow: auto; }

.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sunken), #fff, var(--sunken)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: .5rem 0; }
@keyframes sk { to { background-position: -200% 0; } }
