/* Button system for the treatment page: control hierarchy, one selected state, motion, sizes, targets. */
:root {
  --r: 10px; --h-sm: 36px; --h: 40px; --ease: 140ms cubic-bezier(.2, .7, .3, 1);
  --sel-bg: var(--indigo-soft); --sel-ink: var(--indigo); --sel-ring: inset 0 0 0 1.5px var(--indigo);
}

/* 5 · Motion: one ease on every control, slight press-down. */
button, summary { transition: background-color var(--ease), color var(--ease), box-shadow var(--ease), border-color var(--ease), transform 90ms ease-out; }
button:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { button, summary { transition: none; } button:active { transform: none; } }

/* 6 · Two heights (36 / 40), one radius (10). */
.hiw-open, .pat-toggle { min-height: var(--h); border-radius: var(--r); }
.pat-toggle { width: var(--h); height: var(--h); }
.hiw-open b { width: 28px; height: 28px; }
.rail button { min-height: var(--h); border-radius: var(--r); }
.tools { border-radius: 14px; }
.imgline { border-radius: var(--r); }
.imgline button { min-height: var(--h-sm); border-radius: var(--r); }
.nav button, .pcap button, .chips button { min-height: var(--h-sm); border-radius: var(--r); }
.chips button { min-height: var(--h); }
.stepfoot > button { min-height: var(--h); border-radius: var(--r); }

/* 1 · Three levels, three looks. Level 1 — Treatment/Study keeps the pill. */
.mode { border-radius: 12px; }
.mode button { min-height: var(--h-sm); border-radius: var(--r); }
.mode button.on { color: var(--sel-ink); }

/* Level 2 — Study's Quiz/Anatomy: underlined tabs on the header's bottom edge. */
.mode.study-view { align-self: stretch; background: none; padding: 0; gap: 20px; border-radius: 0; }
.mode.study-view button { min-height: 0; height: 100%; padding: 0 2px; border-radius: 0; box-shadow: inset 0 -2px 0 transparent; }
.mode.study-view button:hover { color: var(--ink); }
.mode.study-view button.on { background: none; color: var(--sel-ink); box-shadow: inset 0 -2px 0 var(--indigo); }
@media (max-width: 860px) { .mode.study-view button { height: auto; min-height: var(--h); } }

/* Level 2 — Case/Meridian become underlined tabs. */
.tabs { background: none; padding: 0; gap: 20px; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 18px; }
.tabs button { flex: none; min-height: var(--h); border-radius: 0; padding: 0 2px; box-shadow: inset 0 -2px 0 transparent; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: none; color: var(--sel-ink); box-shadow: inset 0 -2px 0 var(--indigo); }

/* Level 3 — Assess/Treat/Session become a stepper with connectors and a done state. */
.steps { background: none; padding: 0; gap: 0; margin-bottom: 20px; }
.steps button { position: relative; flex-direction: column; gap: 4px; min-height: 52px; border-radius: var(--r); font-size: 12.5px; box-shadow: none; }
.steps button.on { background: none; box-shadow: none; color: var(--ink); }
.steps button b { width: 26px; height: 26px; font-size: 12px; background: var(--panel); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); position: relative; z-index: 1; }
.steps button + button::before { content: ""; position: absolute; top: 18px; right: calc(50% + 17px); left: calc(-50% + 17px); height: 2px; border-radius: 1px; background: var(--line); }
.steps button.done + button::before { background: var(--indigo); }
.steps button.on b { background: var(--indigo); color: #fff; box-shadow: 0 0 0 4px var(--indigo-soft); }
.steps button.done b { background: var(--indigo-soft); color: var(--indigo); box-shadow: none; font-size: 0; }
.steps button.done b::after { content: "✓"; font: 800 13px "Plus Jakarta Sans", system-ui, sans-serif; }
.steps button.done { color: var(--indigo); }
.steps button:hover:not(.on) b { box-shadow: inset 0 0 0 1.5px var(--indigo); }

/* Study format picker (Drill/Exam/Learn/Full bank): separate choice cards, shared selected state. */
#examPanel .modes { background: none; padding: 0; gap: 8px; border-radius: 0; }
#examPanel .modes button { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); }
#examPanel .modes button:hover:not(.on) { border-color: #c4c9d4; color: var(--ink); }
#examPanel .modes button.on { background: var(--sel-bg); border-color: var(--indigo); box-shadow: none; color: var(--sel-ink); }

/* 2 · One selected treatment everywhere: indigo-soft fill, indigo ink, indigo ring. */
.rail button.on { background: var(--sel-bg); border-color: transparent; box-shadow: var(--sel-ring); color: var(--sel-ink); }
.rail button.on span { color: var(--sel-ink); }
.rail button.on i { background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c); }
.chips button.on { background: var(--sel-bg); border-color: var(--indigo); color: var(--sel-ink); }
.rec.on { background: var(--sel-bg); box-shadow: var(--sel-ring); }
.rec.best { background: none; }
.rec.best + .rec.best { margin-top: 0; }

/* 3 · Primary action is indigo; the back step is a quiet text button. */
.stepfoot > button.pri { background: var(--indigo); border-color: var(--indigo); box-shadow: 0 6px 16px -8px var(--indigo); }
.stepfoot > button.pri:hover { background: #3c4bcc; }
.stepfoot > button[data-go-step]:not(.pri) { flex: none; border-color: transparent; background: none; color: var(--muted); padding: 0 10px; }
.stepfoot > button[data-go-step]:not(.pri):hover { color: var(--ink); background: #f4f5f8; }

/* 4 · "This case" stays a filter; Reset view (clears and re-centres) is a solid indigo button, shown only when something is on. */
.rail .act[data-mer="case"].on { background: var(--sel-bg); box-shadow: var(--sel-ring); }
.rail .act[data-mer="clear"] { gap: 7px; min-height: 38px; border: 0; border-radius: 10px; background: var(--indigo); color: #fff; font-size: 12.5px; font-weight: 700; }
.rail .act[data-mer="clear"]:hover { background: #3c4bc7; }
.rail .act[data-mer="clear"] span { color: inherit; font-weight: inherit; }
.rail .act[data-mer="clear"] svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail:not(:has(button.on)):not(.has-case) .act[data-mer="clear"] { visibility: hidden; }
/* The Meridians tab is for study: the case's shortcut is not offered there and Clear only clears the drawn lines. */
.app.mer .rail .act[data-mer="case"] { display: none; }
.app.mer .rail:not(:has(button.on)) .act[data-mer="clear"] { visibility: hidden; }

/* 7 · Make hidden controls look clickable; make non-buttons stop looking like buttons. */
.rec .why summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; border-radius: 6px; padding: 2px 4px; margin-inline-start: -4px; }
.rec .why summary::-webkit-details-marker { display: none; }
.rec .why summary::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform var(--ease); }
.rec .why[open] summary::before { transform: rotate(45deg); }
.rec .why summary:hover { background: var(--indigo-soft); }
.assess-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-sm); padding: 0 10px; margin-inline-start: -10px; border-radius: var(--r); }
.assess-link:hover { background: #f4f5f8; }
.assess-link .edit-chip { font: 600 11.5px "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--indigo); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--panel); }
.tag { background: none; color: var(--muted); padding: 0 2px; font-size: 11px; }
.tag + .tag::before { content: "·"; margin-inline-end: 4px; color: var(--line); }

/* Layer style swatches, shared by Settings and the Layers card (body-tools.css). */
:is(.set-bones, .bstyles) .sw-ivory { background: radial-gradient(circle at 35% 35%, #f3ead8, #cfc2a6); }
:is(.set-bones, .bstyles) .sw-xray { background: radial-gradient(circle, #0b1220 45%, #9cc8ff); }
:is(.set-bones, .bstyles) .sw-ink { background: #fff; box-shadow: inset 0 0 0 2px #2b2b33; }
:is(.set-bones, .bstyles) .sw-focus { background: radial-gradient(circle at 35% 35%, #e6dcc6, #c4bba8); box-shadow: 0 0 0 2px #f59e0b88; }
:is(.set-bones, .bstyles) .sw-clay { background: radial-gradient(circle at 40% 35%, #d9c7a8 30%, #2a2622 75%); }
:is(.set-bones, .bstyles) .sw-s-natural { background: radial-gradient(circle at 35% 35%, #f0d2bf, #d9a98c); }
:is(.set-bones, .bstyles) .sw-s-bronze { background: radial-gradient(circle at 35% 35%, #b07a55, #7d4f33); }
:is(.set-bones, .bstyles) .sw-b-light { background: radial-gradient(circle at 50% 40%, #fff, #e3e6ec); }
:is(.set-bones, .bstyles) .sw-b-dark { background: radial-gradient(circle at 50% 40%, #232a3d, #090b12); }
:is(.set-bones, .bstyles) .sw-m-red { background: radial-gradient(circle at 35% 35%, #e0766c, #b4433c); }
:is(.set-bones, .bstyles) .sw-m-regions { background: conic-gradient(#d9627a 0 20%, #c8553d 0 40%, #7fae3f 0 60%, #8f5bb5 0 80%, #3f8fb8 0); }
:is(.set-bones, .bstyles) .sw-m-ink { background: #ffb9ad; box-shadow: inset 0 0 0 2px #4a2a2e; }
:is(.set-bones, .bstyles) .sw-m-glow { background: radial-gradient(circle, #0b1220 45%, #ff5a4a); }
:is(.set-bones, .bstyles) .sw-m-peel { background: radial-gradient(circle, #f59e0b 35%, #eadfd0 40%, #eadfd0 70%, #a8473a 75%); }

/* 8 · Bigger targets: 40px move handle with a label; 14px sidebar text. */
/* Move handle: a small icon above the head. With a mouse it shows only while the pointer is over the body area;
   touch screens can't hover, so there it stays, faint. Its ::before keeps a 48px hit area around the 32px circle. */
.grip { width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; transition: opacity 180ms ease, background-color var(--ease); }
.grip svg { width: 16px; height: 16px; }
@media (hover: hover) { .grip { opacity: 0; } .stage:hover .grip, .grip:focus-visible { opacity: 1; } }
@media (hover: none) { .grip { opacity: .65; } }
html.touring .grip { opacity: 1; }
.rail button { font-size: 14px; }
.rail button b { font-size: 12px; min-width: 22px; }


/* Study quiz: same heights/radius; "select all" options wide enough for their labels; Exit is a quiet
   text button (Esc also exits), so Check stays the one loud action. */
#examPanel .next, #examPanel .act, #examPanel .qbar .back { min-height: var(--h); border-radius: var(--r); }
#examPanel .opts button { border-radius: var(--r); }
#examPanel .opts.multi { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
#examPanel .qexit { text-align: center; }
#examPanel .qexit .exit { width: auto; min-height: var(--h-sm); border: 0; background: none; color: var(--muted); border-radius: var(--r); padding: 0 12px; font: 600 13.5px "Plus Jakarta Sans", system-ui, sans-serif; }
#examPanel .qexit .exit:hover, #examPanel .qexit .exit:focus-visible { background: #fdecec; color: #c03030; }

/* Body layer toggle (layer-toggle.js): Muscles/Bones show the anatomy frame over the stage. The frame lets input
   through to the treatment body it mirrors, so the toolbar and the Move handle keep working; Cun (rings drawn on the
   skin) and the point caption step aside, and of the labels only the Move handle shows above the frame. */
.stage .anat-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, #fff 0%, #e3e6ec 70%); }
.stage .anat-frame[hidden] { display: none; }
.stage .anat-wait { position: absolute; z-index: 5; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 10px 16px; border-radius: 999px;
  background: #fffffff0; border: 1px solid var(--line); box-shadow: 0 4px 16px #0002; color: var(--ink); font-weight: 600; font-size: 14px; pointer-events: none; }
.stage .anat-wait[hidden] { display: none; }
.stage .region-legend { position: absolute; z-index: 4; bottom: 66px; inset-inline-start: 16px; display: flex; flex-direction: column; gap: 5px; padding: 10px 12px;
  border: 1px solid #ffffff33; border-radius: 12px; background: #121626b8; backdrop-filter: blur(10px); color: #fff; font: 500 12px "Plus Jakarta Sans", system-ui, sans-serif; pointer-events: none; }
/* Above the Muscles list button (d-orbit.html .anat-list); the open list panel takes that corner, so it steps aside. */
.stage .region-legend[hidden], .stage:not(.anatomy) .region-legend, .app.quiz .region-legend,
.stage:has(> .anat-dock:not([hidden]):not(:empty)) .region-legend { display: none; }
.stage .region-legend b { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.stage .region-legend span { display: flex; align-items: center; gap: 7px; }
.stage .region-legend i { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px #0003; }
@media (max-width: 860px) {
  /* phones: a narrow column beside the legs, over the list button */
  .stage .region-legend { bottom: 56px; inset-inline-start: 10px; max-width: 128px; gap: 3px; padding: 7px 9px; font-size: 10.5px; line-height: 1.25; }
  .app.mer .stage .region-legend { bottom: 102px; }
  .stage .region-legend b { font-size: 9.5px; }
  .stage .region-legend i { width: 9px; height: 9px; }
}
}
.stage .tools { z-index: 3; }
.stage .tools:has(.g.show) { z-index: 8; } /* an open card (Layers) goes over the point card, side panels and sheets */
.app:not(.quiz) .stage.anatomy .tools .cun, .app:not(.quiz) .stage.anatomy .pcap { display: none; }
.app:not(.quiz) .stage.anatomy > canvas { position: relative; z-index: 3; } /* meridians draw over the anatomy */
.app:not(.quiz) .stage.anatomy .labels { z-index: 4; }

/* Anatomy dock (anatomy-dock.js): with Muscles or Bones on, a second dock opens right of the meridian list
   and names the tapped part. Side by side on wide screens, under the body on phones; never in Study. */
.anat-dock { grid-area: dock; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-inline-end: 1px solid var(--line); }
.anat-dock[hidden], .app.exam:not(.study-anat) .anat-dock { display: none; }
/* exam.css shows every aside in Study; the Indications dock belongs to its own tab only. */
.app.exam .ind-dock { display: none; }
/* Anatomy tab (.exam.study-anat): the Treatment stage with its toolbar, and the anatomy dock as the side panel. */
.app.exam.study-anat { grid-template: "bar bar bar" 60px "rail stage dock" minmax(0, 1fr) / 0 minmax(0, 1fr) 380px; }
.app.exam.study-anat > aside:not(.anat-dock) { display: none; }
.app.exam.study-anat .anat-dock { border-inline-end: 0; border-inline-start: 1px solid var(--line); }
.ad-hint { padding: 24px 18px; color: var(--muted); font-size: 14px; }
.ad-hint p { margin: 0 0 12px; }
.ad-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-pick button { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 700 14px "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; }
.ad-pick button:hover { border-color: var(--indigo); color: var(--indigo); }
.ad-pick button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.app.anat-open:not(.exam) { grid-template: "bar bar bar bar" 60px "rail dock stage aside" minmax(0, 1fr) / minmax(200px, max-content) 280px minmax(0, 1fr) 420px; }
@media (max-width: 1280px) and (min-width: 861px) { .app.anat-open:not(.exam) { grid-template-columns: 76px 250px minmax(0, 1fr) 380px; } }
.ad-head { padding: 20px 18px 12px; border-bottom: 1px solid var(--line); }
.ad-head .k { margin: 0 0 6px; }
.ad-picked b { display: block; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.ad-picked small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.ad-picked:not(.on) b { font-size: 16px; color: var(--muted); font-weight: 600; }
.ad-picked.on { padding: 10px 12px; border-radius: var(--r); background: #fff4de; box-shadow: inset 4px 0 0 #f59e0b; }
.ad-picked .side { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; background: #f59e0b; color: #fff; font: 700 10.5px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .04em; text-transform: uppercase; }
.ad-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ad-acts button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font: 600 12.5px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.ad-acts button:hover { border-color: #c4c9d4; }
.ad-acts button.on { background: var(--sel-bg); border-color: var(--indigo); color: var(--sel-ink); }
.ad-acts button.restore { border-color: #f59e0b; color: #b45309; }
.ad-q { margin: 12px 18px 6px; min-height: var(--h); border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; font: 14px "Plus Jakarta Sans", system-ui, sans-serif; background: var(--panel); }
.ad-q:focus { outline: 2px solid var(--indigo-soft); border-color: var(--indigo); }
.ad-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 24px; }
.ad-list details { border-bottom: 1px solid var(--line); }
.ad-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 8px; font-weight: 700; font-size: 14px; }
.ad-list summary::-webkit-details-marker { display: none; }
.ad-list summary span { font: 700 11px "JetBrains Mono", ui-monospace, monospace; color: var(--muted); }
.ad-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; text-align: start; font: 14px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.ad-list button:hover { background: #f4f5f8; }
.ad-list button.on { background: #f59e0b; color: #fff; font-weight: 700; }
.ad-list button small { color: var(--muted); font-size: 11px; }
.ad-list button.on small { color: #fff; }
.ad-empty { padding: 12px 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .anat-dock { border-inline-end: 0; border-top: 1px solid var(--line); max-height: 52svh; }
  .ad-head { padding: 14px 16px 10px; }
  .ad-q { margin: 10px 16px 6px; }
}


/* Right-to-left languages: the switch knob starts on the right and slides left. */
[dir="rtl"] .switch .knob::after { left: auto; right: 2px; }
[dir="rtl"] .switch.on .knob::after { transform: translateX(-12px); }
[dir="rtl"] .steps button + button::before { left: calc(50% + 17px); right: calc(-50% + 17px); }


/* Indications tab (indications-mode.js): the stage, and one dock of indications where the side panel was. */
.ind-dock { grid-area: dock; display: none; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding: 16px; background: var(--panel); border-inline-start: 1px solid var(--line); }
.app.ind { grid-template: "bar bar bar" 60px "rail stage dock" minmax(0, 1fr) / 0 minmax(0, 1fr) 380px; }
.app.ind .ind-dock { display: flex; }
.app.ind > aside:not(.ind-dock), .app.ind #rail { display: none; }
.isearch input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 500 14px "Plus Jakarta Sans", system-ui, sans-serif; background: #f6f7f9; }
.isearch input:focus { outline: 2px solid var(--indigo); outline-offset: 1px; background: #fff; }
.ilist { display: flex; flex-direction: column; gap: 6px; }
.iitem { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.iitem.on { border-color: var(--indigo); }
.ihead { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; background: none; cursor: pointer; text-align: start; font: 600 14px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); }
.ihead small { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
.iitem.on .ihead { background: var(--indigo-soft); color: var(--indigo); }
.ipts { display: flex; flex-direction: column; }
.ipts button { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: start; font: 400 13px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); }
.ipts button:hover, .ipts button.on { background: #f3f5fb; }
.ipts button.on b { color: #00a85a; }
.ipts b { flex: none; width: 44px; font: 700 12.5px "JetBrains Mono", ui-monospace, monospace; padding-top: 1px; }
.ipts button:disabled b { width: auto; min-width: 44px; }
.ipts em { display: block; font-style: normal; font-weight: 600; }
.ipts small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
@media (max-width: 860px) { .app.ind .ind-dock { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* Treatment: a picked point's details open under its row in the case list (an accordion: one open at a time). */
.rec-card { margin: 0 0 10px; background: #fff; }
.rec-card .pdet { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Indications: conditions A–Z. The condition's own text (NHS) sits in a grey box, credited, apart from the points
   this app suggests (indications-mode.js). */
.caz { display: flex; flex-wrap: wrap; gap: 2px; }
.caz button { min-width: 24px; height: 26px; border: 0; border-radius: 6px; background: none; font: 700 11.5px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--muted); cursor: pointer; }
.caz button.on { background: var(--indigo-soft); color: var(--indigo); }
.cbody { padding: 0 12px 12px; }
.cinfo { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f4f5f8; border-inline-start: 3px solid #b8bdc9; font-size: 13.5px; line-height: 1.5; }
.cinfo p { margin: 0 0 6px; }
.ck { margin: 8px 0 4px !important; font: 700 10.5px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ck:first-child { margin-top: 0 !important; }
.ck span { color: var(--ink); }
.csyms { margin: 0; padding: 0; list-style: none; }
.csyms li { position: relative; padding: 2px 0 2px 14px; }
.csyms li::before { content: "•"; position: absolute; inset-inline-start: 2px; color: var(--muted); }
.ctag { display: inline-block; margin-inline-start: 4px; border-radius: 999px; padding: 0 8px; background: #e2f6ea; color: #0b6b3c; font: 600 11px/1.7 "Plus Jakarta Sans", system-ui, sans-serif; white-space: nowrap; }
.ctag.main { background: #0b8a4c; color: #fff; }
.ccredit { margin: 8px 0 0 !important; font-size: 12px; color: var(--muted); }
.ccredit a, .ilicence a { color: var(--indigo); }
.cnote { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.crefer { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: #fdecec; color: #c03030; font-weight: 600; font-size: 13px; }
.iitem.icare { --red: #c62828; }
.iitem.icare .ihead { align-items: center; }
.iitem.icare .ihead b { display: inline-flex; align-items: center; gap: 8px; }
.iitem.icare .ihead small { color: var(--red); font-weight: 600; }
.iitem.icare.on { border-color: var(--red); }
.iitem.icare.on .ihead { background: #fdeeee; color: #8f1d1d; }
.cbadge { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--red); color: #fff; }
.cbadge svg, .calert svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.cbadge svg { width: 13px; height: 13px; stroke-width: 3; }
.calert { display: flex; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fdeeee; border: 1px solid #f3c4c4; color: #8f1d1d; font-size: 12.5px; line-height: 1.45; }
.calert svg { width: 22px; height: 22px; flex: none; color: var(--red); stroke-width: 2; }
.calert b { display: block; color: var(--red); font-size: 14px; }
.cpts { margin-top: 12px; }
.cpts .csum { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; }
.ipts button:disabled { cursor: default; opacity: 1; }
.cpts .ipts { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cpts .ipts button:first-child { border-top: 0; }
.ipts button.best { background: #f2fbf6; }
.cbest { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: #0b6b3c; margin: 1px 0 2px; }
.ccov { display: flex; flex-wrap: wrap; gap: 3px; margin: 2px 0; }
.ccov .ctag { margin: 0; }
.cmore { margin-top: 8px; }
.ilicence { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
[dir="rtl"] .ck { letter-spacing: 0; }
