/* ============================================================
   OrthoPlan Pro — Clinical Steps core (6 Nov 2026, package STC)
   Loaded after public.css (OrthoPlan_Public::module_assets()).
   Only what the new marks need to mean something; the look of the
   cards themselves comes from the design layer (op-zz-design.css).
   Tokens only, logical properties only: it is read in Arabic too.
   ============================================================ */

/* ---------- The bonding chart (R-STC-12/13) ----------
   Green is bonded: the six-to-six of Continuous, or the sections, drawn
   with no tap. Bypass (red) and Extra-bond (green) paint over it as before.
   A tooth that comes out before bonding is red too, drawn hollow and dashed
   so it is not read as a bypass; its tooltip and the readout say which. */
.op-frontend .op-tc-tooth.is-base:not(.is-on) .op-tc-crown { fill: var(--op-mark-bonded); stroke: var(--op-success-text); }
.op-frontend .op-tc-tooth.is-base:not(.is-on) .op-tc-num   { color: var(--op-success-text); font-weight: 700; }
.op-frontend .op-tc-tooth.is-extract:not(.is-on) .op-tc-crown {
    fill: var(--op-mark-extract);
    fill-opacity: .45;
    stroke: var(--op-danger-text);
    stroke-dasharray: 3 2;
}
.op-frontend .op-tc-tooth.is-extract:not(.is-on) .op-tc-num { color: var(--op-danger-text); }

/* ---------- The bracket chart (R-STC-15/16/19) ----------
   Cross takes the first tooth's bracket and puts it on the second: the
   source is faded and dotted — "so I know an action was done on it" — and
   never hidden; the destination is filled in the Cross blue. Both teeth of
   a Switch are filled in its teal (op-components.css). */
.op-frontend .op-tc-tooth.is-cross-src.is-on .op-tc-crown {
    fill-opacity: .35;
    stroke: var(--op-info-text);
    stroke-dasharray: 4 3;
    stroke-width: 2;
}

/* The short label under a marked tooth — "Flip", "→23", "←45", "↔33" — in
   the action's own colour, readable on a phone (no text under 11px). */
.op-frontend .op-tc-partner { font-size: 11px; line-height: 1.35; white-space: nowrap; }
.op-frontend .op-tc-tooth.op-tc-tone-warn .op-tc-partner    { background: var(--op-mark-flip);   color: #fff; }
.op-frontend .op-tc-tooth.op-tc-tone-info .op-tc-partner    { background: var(--op-mark-cross);  color: #fff; }
.op-frontend .op-tc-tooth.op-tc-tone-primary .op-tc-partner { background: var(--op-mark-switch); color: #fff; }

/* ---------- Before bonding (R-STC-06) ---------- */
.op-frontend .op-seq-rows { display: grid; gap: var(--op-sp-3); }
/* One plan item per row, each with its own answer: a rule between them. */
.op-frontend .op-seq-row { padding-block-end: var(--op-sp-3); border-block-end: 1px solid var(--op-border); }
.op-frontend .op-seq-row:last-child { padding-block-end: 0; border-block-end: 0; }
.op-frontend .op-seq-detail { color: var(--op-text-muted); font-variant-numeric: tabular-nums; }
.op-frontend .op-seq-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--op-sp-1) var(--op-sp-2);
    margin-block-end: var(--op-sp-1);
}
.op-frontend .op-seq-label { font-weight: 700; }
.op-frontend .op-seq-head .op-modify { margin-inline-start: auto; }
/* The teeth to come out, in the extraction red: "load them in red". */
.op-frontend .op-seq-extract { color: var(--op-danger-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.op-frontend .op-seq-also { display: flex; flex-wrap: wrap; align-items: center; gap: var(--op-sp-1) var(--op-sp-2); margin: var(--op-sp-3) 0 0; }
.op-frontend .op-seq-also .op-modify { margin-inline-start: auto; }

/* The wire type's '+' sits under its own chips. */
.op-frontend .op-steps-wire-type .op-addopt { margin-block-start: var(--op-sp-1); }

/* ---------- fix/plan — the plan's expansion protocol under its Before-bonding row (R-PLN-12) ---------- */
.op-frontend .op-seq-note { margin: 0 0 var(--op-sp-1); font-size: 13px; color: var(--op-text-muted); font-variant-numeric: tabular-nums; }
/* ---------- end fix/plan ---------- */

/* ---------- fix/ver: which plan these steps are for (R11-STC-01/02) ----------
   "Clinical steps for Treatment Plan 3" with its buttons on one line, the
   '+' list under it, then a tab per set once there are two (the Active
   plan's marked Main), then Compare. Tabs, not a dropdown: two to four sets,
   each one tap away, and which one is open is seen at a glance. */
.op-frontend .op-steps-version { min-width: 0; }   /* the set bar and its form: never wider than the panel */
.op-frontend .op-steps-sets { display: flex; flex-direction: column; gap: var(--op-sp-2); }
.op-frontend .op-steps-sets-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--op-sp-2); }
.op-frontend .op-steps-sets-title { margin: 0; font-size: 16px; line-height: 1.35; }
.op-frontend .op-steps-sets-tag {
    display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--op-radius-pill);
    background: var(--op-bg-alt); color: var(--op-text-muted); font-size: 12px; font-weight: 600; line-height: 20px;
}
.op-frontend .op-steps-sets-tag.is-active { background: var(--op-primary); color: var(--op-primary-text); }
.op-frontend .op-steps-sets-actions { display: flex; flex-wrap: wrap; gap: var(--op-sp-2); margin-inline-start: auto; }
.op-frontend .op-steps-sets-actions .op-btn { display: inline-flex; align-items: center; gap: 6px; }
.op-frontend .op-steps-set-print { text-decoration: none; }
.op-frontend .op-steps-set-delete { color: var(--op-danger-text); }
.op-frontend .op-steps-sets-menu {
    padding: var(--op-sp-2) var(--op-sp-3); border: 1px solid var(--op-border-strong); border-radius: var(--op-radius);
    background: var(--op-surface);
}
.op-frontend .op-steps-sets-menu-title { margin: 0 0 6px; font-size: 13px; color: var(--op-text-muted); }
.op-frontend .op-steps-sets-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--op-sp-2); }
.op-frontend .op-steps-set-pick {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 6px 12px;
    border: 1px solid var(--op-border-strong); border-radius: var(--op-radius); background: var(--op-surface);
    color: var(--op-text); font: inherit; font-size: 13px; text-align: start; cursor: pointer;
}
.op-frontend .op-steps-set-pick:hover { border-color: var(--op-primary); }
.op-frontend .op-steps-set-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--op-border); }
.op-frontend .op-steps-set { margin: 0 0 -1px; }
.op-frontend .op-steps-set-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--op-sp-3); box-sizing: border-box;
    border-bottom: 3px solid transparent; color: var(--op-text-muted); font-size: 14px; text-decoration: none;
}
.op-frontend .op-steps-set.is-viewing .op-steps-set-link { border-bottom-color: var(--op-text); color: var(--op-text); font-weight: 600; }
.op-frontend .op-steps-set-tag { padding: 0 7px; border-radius: var(--op-radius-pill); background: var(--op-bg-alt); font-size: 11px; font-weight: 600; line-height: 18px; }
/* fix/steps18 review (C17-STC-01): a set put away with edits still in it says so on its tab. */
.op-frontend .op-steps-set-unsaved { color: var(--op-warning-text); font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.op-frontend .op-steps-set.is-main .op-steps-set-tag { background: var(--op-primary-light); color: var(--op-primary-dark); }
.op-frontend .op-steps-sets-note { margin: 0; font-size: 13px; }
.op-frontend .op-steps-compare { display: flex; flex-wrap: wrap; align-items: center; gap: var(--op-sp-2); }
.op-frontend .op-steps-compare-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.op-frontend .op-steps-compare .op-steps-compare-pick { width: auto; min-width: 0; flex: 0 1 220px; min-height: 36px; max-width: 100%; }
.op-frontend .op-steps-compare-go { display: inline-flex; align-items: center; gap: 6px; }
.op-frontend .op-steps-draft-view { font-style: normal; }

/* Calm look: a header on the page, not a card — as the plan's versions bar is — so the first card of the step stays within reach. */
.op-ds .op-card.op-steps-sets { gap: 8px; background: none; border: 0; box-shadow: none; padding: 0; margin-bottom: var(--ds-sp-4); }
.op-ds .op-steps-sets-title { font: 600 var(--ds-fs-lg)/var(--ds-lh-lg) var(--ds-font); color: var(--ds-ink); }
.op-ds .op-steps-sets-tag { background: var(--ds-n-100); color: var(--ds-ink-2); font: 600 var(--ds-fs-xs)/20px var(--ds-font); }
.op-ds .op-steps-sets-tag.is-active { background: var(--ds-brand); color: var(--ds-n-0); }
.op-ds .op-steps-set-delete { color: var(--ds-danger); }
.op-ds .op-steps-sets-menu { border-color: var(--ds-line-strong); border-radius: var(--ds-r-md); background: var(--ds-n-50); }
.op-ds .op-steps-sets-menu-title { font-size: var(--ds-fs-sm); color: var(--ds-ink-3); }
.op-ds .op-steps-set-pick { border-color: var(--ds-line-strong); border-radius: var(--ds-r-md); font-size: var(--ds-fs-sm); }
.op-ds .op-steps-set-pick:hover { border-color: var(--ds-brand); }
.op-ds .op-steps-set-list { border-bottom-color: var(--ds-line); }
.op-ds .op-steps-set-link { color: var(--ds-ink-3); font: 500 var(--ds-fs-md)/var(--ds-lh-md) var(--ds-font); }
.op-ds .op-steps-set.is-viewing .op-steps-set-link { border-bottom-color: var(--ds-ink); color: var(--ds-ink); font-weight: 600; }
.op-ds .op-steps-set-tag { background: var(--ds-n-100); color: var(--ds-ink-2); font-size: var(--ds-fs-xs); }
.op-ds .op-steps-set-unsaved { color: var(--ds-warning-text); font: 600 var(--ds-fs-xs)/20px var(--ds-font); }
.op-ds .op-steps-set.is-main .op-steps-set-tag { background: var(--ds-brand-50); color: var(--ds-brand-700); }
.op-ds .op-steps-sets-note { font-size: var(--ds-fs-sm); color: var(--ds-ink-3); }
.op-ds .op-steps-compare-label { font: 600 var(--ds-fs-sm)/var(--ds-lh-sm) var(--ds-font); color: var(--ds-ink-2); }
@media (pointer: coarse) {
    /* Chair-side: the compare pickers are touch targets like every field. */
    .op-frontend .op-steps-compare .op-steps-compare-pick { min-height: 44px; }
}
@media (max-width: 640px) {
    /* Phone: the title on its own line, then the buttons across the width; the
       sets one under the other (a tab row would wrap and lose its line), the
       one open marked at its start; the two compare pickers side by side. */
    .op-frontend .op-steps-sets-actions { margin-inline-start: 0; width: 100%; }
    .op-frontend .op-steps-sets-actions > .op-btn { flex: 1 1 auto; justify-content: center; }
    .op-frontend .op-steps-set-pick { width: 100%; }
    .op-frontend .op-steps-sets-menu li { flex: 1 1 100%; }
    .op-frontend .op-steps-set-list { flex-direction: column; gap: 4px; border-bottom: 0; }
    .op-frontend .op-steps-set { margin: 0; }
    .op-frontend .op-steps-set-link {
        width: 100%; border-bottom: 0; border-inline-start: 3px solid transparent; border-radius: var(--op-radius-sm, 6px);
        background: var(--op-bg-alt);
    }
    .op-frontend .op-steps-set.is-viewing .op-steps-set-link { border-inline-start-color: var(--op-text); background: var(--op-surface); box-shadow: inset 0 0 0 1px var(--op-border-strong); }
    .op-ds .op-steps-set-link { background: var(--ds-n-50); }
    .op-ds .op-steps-set.is-viewing .op-steps-set-link { border-inline-start-color: var(--ds-ink); background: var(--ds-surface); box-shadow: inset 0 0 0 1px var(--ds-line-strong); }
    .op-frontend .op-steps-compare-label { flex: 1 1 100%; }
    .op-frontend .op-steps-compare .op-steps-compare-pick { flex: 1 1 100%; min-height: 44px; }
    .op-frontend .op-steps-compare > .op-muted { display: none; }   /* each picker says which it is (its aria-label) */
    .op-frontend .op-steps-compare-go { flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   fix/stc — Clinical Steps, 11 Nov 2026 (R11-STC-03 … R11-STC-10)
   ========================================================================== */

/* ---------- Two-phase cases: the First phase on its own (R11-STC-03/04) ----------
   "Leave it by itself, in bold large type": its title reads above a card
   title, with the calm layer and without it. */
.op-frontend .op-stc-phase1 > .op-fsec-head .op-fsec-title { font-size: 19px; line-height: 1.35; font-weight: 800; }
.op-ds .op-card.op-stc-phase1 > .op-fsec-head .op-fsec-title { font-size: var(--ds-fs-2xl, 21px); line-height: var(--ds-lh-2xl, 30px); font-weight: 700; }
.op-frontend .op-stc-phase1 .op-field { margin-bottom: 0; }
.op-frontend .op-stc-phase1 .op-linked-grid { margin-bottom: var(--op-sp-3); }

/* ---------- The Second phase group: one heading, every braces card under it ----------
   A <details>: the whole summary row is the tap target, 48px tall at least,
   its chevron at the start and the line of treatment as its title. */
.op-frontend .op-stc-phase2 {
    margin: var(--op-sp-4) 0;
    border: 1px solid var(--ds-line, var(--op-border));
    border-radius: var(--ds-radius-lg, var(--op-radius));
}
.op-frontend .op-stc-phase2 > .op-stc-phase2-head {
    display: flex;
    align-items: center;
    gap: var(--op-sp-3);
    min-height: 48px;
    padding: var(--op-sp-3) var(--op-sp-4);
    cursor: pointer;
    list-style: none;
    border-radius: inherit;
}
.op-frontend .op-stc-phase2 > .op-stc-phase2-head::-webkit-details-marker { display: none; }
.op-frontend .op-stc-phase2 > .op-stc-phase2-head:hover { background: var(--op-primary-light); }
.op-frontend .op-stc-phase2 > .op-stc-phase2-head:focus-visible { outline: 2px solid var(--op-primary); outline-offset: 2px; }
.op-frontend .op-stc-phase2-chev {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    /* Physical sides, so one turn points it the reading way: → closed (←
       in Arabic), ↓ open. */
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease;
    color: var(--ds-ink-2, var(--op-text-muted));
}
[dir="rtl"] .op-frontend .op-stc-phase2-chev { transform: rotate(135deg); }
.op-frontend .op-stc-phase2[open] > .op-stc-phase2-head .op-stc-phase2-chev { transform: rotate(45deg); }
.op-frontend .op-stc-phase2-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-frontend .op-stc-phase2-title { font-size: 19px; line-height: 1.35; font-weight: 800; color: var(--ds-ink, var(--op-text)); overflow-wrap: anywhere; }
.op-ds .op-stc-phase2-title { font-size: var(--ds-fs-2xl, 21px); line-height: var(--ds-lh-2xl, 30px); font-weight: 700; }
.op-frontend .op-stc-phase2-sub { font-size: 13px; color: var(--ds-ink-2, var(--op-text-muted)); }
.op-frontend .op-stc-phase2 .op-stc-phase2-open,
.op-frontend .op-stc-phase2[open] .op-stc-phase2-shut { display: none; }
.op-frontend .op-stc-phase2[open] .op-stc-phase2-open { display: inline; }
.op-frontend .op-stc-phase2-body { padding: 0 var(--op-sp-3) var(--op-sp-3); }
.op-frontend .op-stc-phase2-body > .op-card:first-child { margin-top: 0; }
.op-frontend .op-stc-phase2-body > .op-card:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
    .op-frontend .op-stc-phase2 > .op-stc-phase2-head { padding: var(--op-sp-3); }
    .op-frontend .op-stc-phase2-body { padding: 0 0 var(--op-sp-2); }
    .op-frontend .op-stc-phase2-title { font-size: 17px; }
    .op-ds .op-stc-phase2-title,
    .op-ds .op-card.op-stc-phase1 > .op-fsec-head .op-fsec-title { font-size: var(--ds-fs-xl, 18px); line-height: var(--ds-lh-xl, 26px); }
}
/* On a phone the cards run edge to edge (op-zz-design.css, 10.3): so does the
   group, and the cards inside it stop at its edges instead of bleeding past. */
@media (max-width: 640px) {
    .op-ds .op-tab-panel .op-stc-phase2 { margin-inline: calc(-1 * var(--ds-gutter, 16px)); border-inline: 0; border-radius: 0; }
    .op-ds .op-tab-panel .op-stc-phase2 > .op-stc-phase2-head { padding-inline: var(--ds-gutter, 16px); }
    .op-ds .op-tab-panel .op-stc-phase2-body .op-card { margin-inline: 0; }
}

/* ---------- Bonding's parts read as sections (R11-STC-05) ----------
   "See how it's stuck? Leave a space." Each part has a heading above body
   text, and a rule and room above it; three classes, so the calm layer's
   .op-fsub (a 14px heading with no top margin) does not glue it back. */
.op-frontend .op-bond-part { margin: 0; }
.op-frontend .op-bond-part + .op-bond-part {
    margin-top: var(--ds-sp-5, var(--op-sp-6));
    padding-top: var(--ds-sp-5, var(--op-sp-5));
    border-top: 1px solid var(--ds-line, var(--op-border));
}
.op-frontend .op-bond-part > .op-bond-head {
    margin: 0 0 var(--op-sp-3);
    padding: 0;
    border: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: var(--ds-ink, var(--op-text));
}
.op-frontend .op-bond-part > .op-bond-head::after { content: none; }
.op-frontend .op-bond-part .op-linked-grid { margin-bottom: 0; }

/* ---------- Reset on the bonding and bracket charts (R11-STC-10) ----------
   At the end of the pen row, apart from the pens: it is not a pen. */
.op-frontend .op-tc-states .op-tc-reset { margin-inline-start: auto; min-height: 36px; }

/* ---------- The bracket readout, one entry a line (R11-STC-09) ----------
   "Separate them — not a heap": the pen's word, then each tooth or pair
   on its own line under it. */
.op-frontend .op-tc-readgroup .op-tc-readentry { display: block; padding-inline-start: var(--op-sp-4); line-height: 1.5; }
.op-frontend .op-tc-readgroup + .op-tc-readgroup { margin-top: var(--op-sp-1); }

/* The Summary step prints the same entries a line each (treatment_summary()). */
.op-frontend .op-summary-group[data-group="steps"] .op-linked-value { white-space: pre-line; }

@media (pointer: coarse) {
    .op-frontend .op-tc-states .op-tc-reset { min-height: 44px; }
    .op-frontend .op-stc-phase2 > .op-stc-phase2-head { min-height: 52px; }
}
/* ---------- end fix/stc ---------- */

/* fix/stc review (R11-STC-09): the visit's planned Bracket modification, one entry a line. */
.op-frontend .op-planned-lines { display: flex; flex-direction: column; gap: 4px; }
.op-frontend .op-planned-line { display: block; }
/* Its box sits by the first entry, not halfway down the list. */
.op-frontend .op-planned-tile:has(.op-planned-lines) { align-items: flex-start; }

/* ---------- fix/steps18 (C17-STC-08): the anchorage as the plan's cross ----------
   «يبقى بنفس شكل كروس كده»: the four quadrants laid out as the cross a
   tooth chart is read by — UR | UL over LR | LL — with the midline between
   the sides and the line between the arches, each value in its own tone.
   Dental orientation in every language: the patient's right on the
   viewer's left, as every chart here (the grid is LTR; its words are not). */
.op-frontend .op-anchor-cross { display: flex; flex-direction: column; gap: var(--op-sp-2); margin-top: var(--op-sp-3); }
.op-frontend .op-anchor-cross-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 380px;
    direction: ltr;
    unicode-bidi: isolate;
}
[dir="rtl"] .op-frontend .op-anchor-q { direction: rtl; }
.op-frontend .op-anchor-q {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--op-sp-1);
    min-height: 72px;
    padding: var(--op-sp-2) var(--op-sp-3);
    text-align: center;
}
/* The cross: physical sides on purpose — the grid is drawn LTR in every language. */
.op-frontend .op-anchor-q[data-quad="ur"],
.op-frontend .op-anchor-q[data-quad="lr"] { border-right: 2px solid var(--op-border-strong); }
.op-frontend .op-anchor-q[data-quad="ur"],
.op-frontend .op-anchor-q[data-quad="ul"] { border-bottom: 2px solid var(--op-border-strong); }
.op-frontend .op-anchor-q .op-quadrant-label { line-height: 1.3; }
.op-frontend .op-anchor-val {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 var(--op-sp-3);
    border-radius: var(--op-radius-pill);
    background: var(--op-bg-alt);
    color: var(--op-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.op-frontend .op-anchor-val.op-anchor-tone-danger  { background: var(--op-danger-bg);  color: var(--op-danger-text); }
.op-frontend .op-anchor-val.op-anchor-tone-warn    { background: var(--op-warning-bg); color: var(--op-warning-text); }
.op-frontend .op-anchor-val.op-anchor-tone-success { background: var(--op-success-bg); color: var(--op-success-text); }
.op-frontend .op-anchor-val.op-anchor-tone-info    { background: var(--op-info-bg);    color: var(--op-info-text); }
.op-frontend .op-anchor-val.is-empty { background: transparent; color: var(--op-text-soft); font-weight: 400; }
/* ---------- end fix/steps18 (C17-STC-08) ---------- */

/* ---------- fix/steps18 (C17-STC-03): the bonding chart follows the bond order ----------
   «الابر … هايلايتد واللي تحت فيدد شوية، وبرضو معلَّم»: Upper first draws
   the upper arch at full strength and the lower faded, still green and
   still marked; Lower first the reverse; Both arches (or none) both full.
   Screen only — the PDF prints both at full strength. A faded tooth still
   taps, and comes up to full while the finger or the pointer is on it. */
.op-frontend .op-toothchart[data-bond-lead="upper"] .op-tc-row-lower .op-tc-tooth,
.op-frontend .op-toothchart[data-bond-lead="lower"] .op-tc-row-upper .op-tc-tooth {
    opacity: .45;
    transition: opacity .15s ease;
}
.op-frontend .op-toothchart[data-bond-lead="upper"] .op-tc-row-lower .op-tc-tooth:is(:hover, :focus-visible),
.op-frontend .op-toothchart[data-bond-lead="lower"] .op-tc-row-upper .op-tc-tooth:is(:hover, :focus-visible) { opacity: 1; }
.op-frontend .op-tc-leadnote { margin: var(--op-sp-2) 0 0; font-size: 13px; line-height: 1.45; color: var(--op-text-muted); }
@media (prefers-reduced-motion: reduce) {
    .op-frontend .op-toothchart[data-bond-lead] .op-tc-tooth { transition: none; }
}
/* ---------- end fix/steps18 (C17-STC-03) ---------- */

/* ---------- fix/steps18 (C17-STC-04): the fourth bracket pen, Flip and cross ----------
   A bracket moved onto another tooth AND turned. Its source is faded as a
   Cross's (is-cross-src, above); its destination is the Cross blue with
   the Flip's amber ring round the crown and round its "←45" badge, so a
   Flip and cross on 23 never reads as a Flip of the canine's own bracket.
   The pen's swatch is the Cross blue ringed in the same amber. */
.op-frontend .op-tc-tooth.is-flip-dest.is-on .op-tc-crown { stroke: var(--op-mark-flip); stroke-width: 3.5; }
.op-frontend .op-tc-tooth.is-flip-dest .op-tc-partner { box-shadow: 0 0 0 2px var(--op-mark-flip); }
.op-frontend .op-tc-state[data-flip] > .op-tc-swatch { box-shadow: 0 0 0 2px var(--op-mark-flip); }
/* ---------- end fix/steps18 (C17-STC-04) ---------- */
