/* uv-transform.css — "ONE PAGE, THREE SOULS" for figure#ua3-transform.
   Companion to js/uv-transform.js. The scene lives inside
   #ua3-transform-stage (aria-hidden): one fictional newspaper —
   THE DAILY FILE — visibly reshaping itself per reader. Four layered
   compositions (cluttered source / serif reading column / one-topic
   timeline / funding table) swap under a jade interpreting shimmer while
   ghost carriers fly matched stories between their old and new seats.
   The original .ua3-browser-bar / .ua3-page-canvas markup stays in the
   DOM as the no-JS and forced-colors frame and is hidden only while
   .uv1-live is set. ui-anima-page.js keeps driving state through the
   data-transform-state / data-transform-view attributes on the figure
   root — this layer only reads them.

   Type floor 13px (0.8125rem). Jade = verified/trust only. Rust = the
   paper's editorial accent. Every class, data attribute, and state hook
   carries the uv1- prefix. */

.ua3-transform-stage.uv1-live > :not(.uv1-stage) { display: none; }

.ua3-transform-stage.uv1-live { padding: 0.65rem; }

.uv1-stage {
    font-family: var(--ua3-font, 'Geist', system-ui, sans-serif);
    color: var(--ua3-ink, #191917);
    pointer-events: none;
}

/* ---------- browser frame ---------- */

.uv1-frame {
    position: relative;
    border: 1px solid #9f9b91;
    background: var(--ua3-white, #fffdf8);
    box-shadow: 0 1px 0 rgba(23, 23, 20, 0.08);
}

.uv1-bar {
    display: grid;
    grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.15rem;
    padding-inline: 0.7rem;
    border-bottom: 1px solid #9f9b91;
    background: #e9e6dd;
}
.uv1-bar > i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #aaa69d; }
.uv1-url {
    margin-left: 0.35rem;
    overflow: hidden;
    color: #545149;
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.uv1-lens {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--ua3-ink, #191917);
    background: var(--ua3-white, #fffdf8);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.uv1-lens > i { width: 0.4rem; height: 0.4rem; background: var(--ua3-jade, #28543f); }
.uv1-stage.uv1-weaving .uv1-lens { border-color: var(--ua3-rust, #a73a1e); color: var(--ua3-rust, #a73a1e); }
.uv1-stage.uv1-weaving .uv1-lens > i { background: var(--ua3-rust-bright, #d4512e); }
.uv1-demo { color: var(--ua3-rust, #a73a1e); font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); font-size: 0.8125rem; font-weight: 600; }

/* ---------- page body ---------- */

.uv1-page { padding: 0.65rem 0.8rem 0.55rem; }

.uv1-mast {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--ua3-ink, #191917);
}
.uv1-mast-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: letter-spacing 0.45s ease, font-weight 0.45s ease;
}
.uv1-mast-tag {
    color: var(--ua3-muted, #5f5d55);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    transition: opacity 0.35s ease;
}
.uv1-stage[data-uv1-key="read"] .uv1-mast-name { letter-spacing: 0.14em; font-weight: 400; }
.uv1-stage[data-uv1-key="read"] .uv1-mast-tag { opacity: 0.4; }

.uv1-view { position: relative; height: 16.25rem; overflow: hidden; }

/* ---------- layers + choreography ---------- */

.uv1-layer { position: absolute; inset: 0; padding-top: 0.45rem; visibility: hidden; }
.uv1-layer.uv1-on,
.uv1-layer.uv1-leave { visibility: visible; }

.uv1-b {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.34s ease, transform 0.4s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.uv1-layer--original .uv1-b { transform: translateY(9px) scale(0.99); }
.uv1-layer--follow .uv1-b { transform: translateX(18px); }
.uv1-layer--scan .uv1-b { transform: translateX(-16px); }
.uv1-layer.uv1-on .uv1-b { opacity: 1; transform: none; }
.uv1-layer.uv1-leave .uv1-b {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.86);
    transition: opacity 0.24s ease-in, transform 0.26s ease-in;
    transition-delay: 0s !important;
}

.uv1-layer.uv1-on .uv1-d1 { transition-delay: 0.02s; }
.uv1-layer.uv1-on .uv1-d2 { transition-delay: 0.07s; }
.uv1-layer.uv1-on .uv1-d3 { transition-delay: 0.13s; }
.uv1-layer.uv1-on .uv1-d4 { transition-delay: 0.19s; }
.uv1-layer.uv1-on .uv1-d5 { transition-delay: 0.26s; }
.uv1-layer.uv1-on .uv1-d6 { transition-delay: 0.33s; }
.uv1-layer.uv1-on .uv1-d7 { transition-delay: 0.4s; }
.uv1-layer.uv1-on .uv1-d8 { transition-delay: 0.47s; }
.uv1-layer.uv1-on .uv1-d9 { transition-delay: 0.54s; }
.uv1-layer.uv1-on .uv1-d10 { transition-delay: 0.6s; }

.uv1-stage.uv1-instant .uv1-b,
.uv1-stage.uv1-instant .uv1-lens,
.uv1-stage.uv1-instant .uv1-mast-name,
.uv1-stage.uv1-instant .uv1-mast-tag,
.uv1-stage.uv1-instant .uv1-rail,
.uv1-stage.uv1-instant .uv1-readthread,
.uv1-stage.uv1-instant .uv1-trow--head::after { transition: none !important; }

/* ---------- layer · original (the cluttered source) ---------- */

.uv1-strip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(167, 58, 30, 0.4);
    background: var(--ua3-rust-pale, #f3e0d8);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
}
.uv1-strip-dot { flex: 0 0 auto; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--ua3-rust-bright, #d4512e); opacity: 0.35; transition: opacity 0.22s ease; }
.uv1-strip-dot.uv1-lit { opacity: 1; }
.uv1-strip > b { color: var(--ua3-rust, #a73a1e); font-weight: 700; letter-spacing: 0.06em; }
.uv1-strip > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.uv1-strip > em { margin-left: auto; color: var(--ua3-rust, #a73a1e); font-style: normal; font-weight: 600; letter-spacing: 0.08em; }

.uv1-clutter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
    margin-top: 0.4rem;
}
.uv1-card {
    display: flex;
    flex-direction: column;
    gap: 0.14rem;
    min-width: 0;
    padding: 0.3rem 0.45rem;
    border: 1px solid var(--ua3-rule, #ddd6c9);
    background: #f7f5ef;
}
.uv1-card > small { color: var(--ua3-rust, #a73a1e); font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); font-size: 0.8125rem; }
.uv1-card > strong { font-size: 0.8125rem; line-height: 1.2; }
.uv1-card--slim > strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.uv1-tx {
    display: block;
    height: 0.3rem;
    margin-top: 0.12rem;
    border-radius: 1px;
    background: repeating-linear-gradient(90deg, #d9d3c4 0 0.9rem, transparent 0.9rem 1.12rem);
}
.uv1-tx--s { width: 68%; }

.uv1-noise--ad {
    position: relative;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    overflow: hidden;
    padding: 0.4rem;
    border: 1px dashed var(--ua3-amber, #6d4a00);
    background: repeating-linear-gradient(-45deg, var(--ua3-amber-pale, #f4ead3), var(--ua3-amber-pale, #f4ead3) 7px, #efe2c2 7px, #efe2c2 14px);
    text-align: center;
}
.uv1-noise--ad > b { color: var(--ua3-amber, #6d4a00); font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); font-size: 0.8125rem; letter-spacing: 0.24em; }
.uv1-noise--ad > span { color: var(--ua3-amber, #6d4a00); font-size: 0.8125rem; font-weight: 650; line-height: 1.25; }
.uv1-adbtn {
    padding: 0.14rem 0.6rem;
    background: var(--ua3-amber, #6d4a00);
    color: var(--ua3-amber-pale, #f4ead3);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.uv1-adsheen {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 34%;
    background: linear-gradient(100deg, rgba(255, 253, 248, 0) 0%, rgba(255, 253, 248, 0.55) 50%, rgba(255, 253, 248, 0) 100%);
    transform: translateX(-130%);
    will-change: transform;
}

.uv1-noise--sp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.45rem;
    border: 1px dotted #b3ac9c;
    background: #efece2;
}
.uv1-noise--sp > b { color: #6d6a60; font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); font-size: 0.8125rem; letter-spacing: 0.14em; }
.uv1-noise--sp .uv1-tx { flex: 1; margin-top: 0; }

.uv1-popup {
    position: absolute;
    right: 0.5rem;
    bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.28rem 0.55rem;
    background: var(--ua3-dark, #171714);
    color: var(--ua3-paper, #f4f1e9);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    box-shadow: 3px 3px 0 rgba(23, 23, 20, 0.18);
    will-change: transform;
}
.uv1-popup > span { opacity: 0.65; }

/* ---------- layer · read (one serif column) ---------- */

.uv1-readcol {
    position: relative;
    width: min(30rem, 80%);
    margin: 0.2rem auto 0;
    padding-left: 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}
.uv1-readthread {
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.3rem;
    width: 2px;
    background: var(--ua3-rule, #ddd6c9);
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}
.uv1-layer.uv1-on .uv1-readthread { opacity: 1; }
.uv1-readthread > u {
    position: absolute;
    inset: 0;
    background: var(--ua3-rust, #a73a1e);
    transform: scaleY(0.15);
    transform-origin: top;
    will-change: transform;
}

.uv1-read-kick {
    color: var(--ua3-ink, #191917);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
}
.uv1-read-head {
    margin: 0;
    max-width: 22ch;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-size: clamp(1.3rem, 3.4cqi, 1.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.005em;
}
.uv1-read-rule { display: block; width: 3.2rem; height: 2px; background: var(--ua3-rust, #a73a1e); }
.uv1-read-deck {
    margin: 0;
    color: var(--ua3-ink-2, #45443f);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
}
.uv1-read-body {
    margin: 0.05rem 0 0;
    max-width: 46ch;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
    line-height: 1.5;
}
.uv1-cap {
    float: left;
    padding: 0.12rem 0.3rem 0 0;
    color: var(--ua3-rust, #a73a1e);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.05rem;
    font-weight: 700;
    line-height: 0.78;
}
.uv1-tx--r { height: 0.34rem; margin: 0.16rem 0 0; background: repeating-linear-gradient(90deg, #e4ddcc 0 1.15rem, transparent 1.15rem 1.42rem); }
.uv1-tx--half { width: 52%; }

.uv1-tray {
    margin: 0.45rem 0 0;
    color: var(--ua3-muted, #5f5d55);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    text-align: center;
}

/* ---------- layer · follow (one-topic timeline) ---------- */

.uv1-fol-title,
.uv1-scan-title {
    margin: 0 0 0.6rem;
    color: var(--ua3-ink, #191917);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.uv1-layer--follow { padding-top: 0.65rem; }
.uv1-fol-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1rem;
}
.uv1-fol-feed { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }

.uv1-rail {
    position: absolute;
    left: 4.05rem;
    top: 0.45rem;
    height: 7rem; /* js/uv-transform.js re-seats top + height on the measured nodes */
    width: 2px;
    background: var(--ua3-rule-strong, #c9c2b1);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) 0.15s;
}
.uv1-layer.uv1-on .uv1-rail { transform: scaleY(1); }
.uv1-rail::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid var(--ua3-jade, #28543f);
}
.uv1-rail-pulse {
    position: absolute;
    left: -3px;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ua3-jade, #28543f);
    box-shadow: 0 0 0 3px rgba(40, 84, 63, 0.16);
    will-change: transform;
}

.uv1-fent {
    display: grid;
    grid-template-columns: 3.4rem 1.3rem minmax(0, 1fr);
    align-items: start;
    gap: 0.25rem;
}
.uv1-ftime {
    padding-top: 0.1rem;
    color: var(--ua3-rust, #a73a1e);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: right;
}
.uv1-fnode {
    justify-self: center;
    width: 11px;
    height: 11px;
    margin-top: 0.18rem;
    border: 2px solid var(--ua3-jade, #28543f);
    border-radius: 50%;
    background: var(--ua3-white, #fffdf8);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.uv1-fnode.uv1-glow { background: var(--ua3-jade, #28543f); box-shadow: 0 0 0 4px rgba(40, 84, 63, 0.18); }
.uv1-fbody { min-width: 0; }
.uv1-fbody > strong { display: block; font-size: 0.875rem; line-height: 1.25; }
.uv1-flatest {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0 0.28rem;
    border: 1px solid var(--ua3-jade, #28543f);
    background: var(--ua3-jade-pale, #e2ece6);
    color: var(--ua3-jade, #28543f);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.08em;
    vertical-align: 0.06em;
}
.uv1-fbody .uv1-tx { width: 82%; }
.uv1-fol-dir {
    margin: 0.3rem 0 0 4.95rem;
    color: var(--ua3-muted, #5f5d55);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
}

.uv1-fol-aside {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-left: 0.85rem;
    border-left: 1px dashed var(--ua3-rule-strong, #c9c2b1);
}
.uv1-aside-tag { margin: 0; color: var(--ua3-muted, #5f5d55); font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); font-size: 0.8125rem; letter-spacing: 0.1em; }
.uv1-ghostcard {
    padding: 0.3rem 0.45rem;
    border: 1px solid #e5dfd0;
    background: #faf8f2;
    transform: scale(0.985);
}
.uv1-ghostcard > strong { color: #8d897c; font-size: 0.8125rem; font-weight: 500; line-height: 1.2; }
.uv1-aside-note { margin: 0.1rem 0 0; color: var(--ua3-muted, #5f5d55); font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); font-size: 0.8125rem; }
.uv1-fol-tray { display: none; }

/* ---------- layer · scan (funding table) ---------- */

.uv1-table { border: 1px solid var(--ua3-rule-strong, #c9c2b1); background: var(--ua3-white, #fffdf8); }
.uv1-trow {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.7fr 1fr;
    min-height: 2.15rem;
    padding: 0 0.6rem;
    border-top: 1px solid var(--ua3-rule, #e6dfcf);
    transition: background 0.25s ease;
}
.uv1-trow:first-child { border-top: 0; }
.uv1-trow > * {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-right: 0.45rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.uv1-trow > * + * { border-left: 1px solid #eae4d4; padding-left: 0.55rem; }

.uv1-trow--head { min-height: 1.95rem; background: #f3efe4; }
.uv1-trow--head > span {
    color: #5b584e;
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.uv1-trow--head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--ua3-ink, #191917);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) 0.18s;
}
.uv1-layer.uv1-on .uv1-trow--head::after { transform: scaleX(1); }

.uv1-trow > strong { font-size: 0.875rem; }
.uv1-trow > span { color: var(--ua3-ink-2, #45443f); font-size: 0.8125rem; }
.uv1-trow > span:nth-child(2) { font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); }
.uv1-c-amt { justify-content: flex-end; font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); }
b.uv1-c-amt { font-size: 0.875rem; font-weight: 700; transition: color 0.25s ease; }
.uv1-trow.uv1-hot { background: #fbf6e8; }
.uv1-trow.uv1-hot b.uv1-c-amt { color: var(--ua3-rust, #a73a1e); }

.uv1-scan-sum { margin: 0.5rem 0 0 0.6rem; color: var(--ua3-muted, #5f5d55); font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace); font-size: 0.8125rem; }
.uv1-layer--scan .uv1-tray { margin: 0.35rem 0 0 0.6rem; text-align: left; }

/* ---------- interpreting shimmer + ghost carriers ---------- */

.uv1-shimmer {
    position: absolute;
    top: -8%;
    bottom: -8%;
    left: 0;
    width: 30%;
    z-index: 4;
    background: linear-gradient(97deg, rgba(40, 84, 63, 0) 0%, rgba(40, 84, 63, 0.09) 30%, rgba(255, 253, 248, 0.72) 50%, rgba(40, 84, 63, 0.09) 70%, rgba(40, 84, 63, 0) 100%);
    opacity: 0;
    transform: translateX(-140%);
    will-change: transform, opacity;
}
.uv1-shimmer > i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 52%;
    width: 2px;
    background: rgba(40, 84, 63, 0.35);
}

.uv1-ghosts { position: absolute; inset: 0; z-index: 5; }
.uv1-carrier {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.5rem;
    border-left: 3px solid var(--ua3-jade, #28543f);
    background: var(--ua3-dark, #171714);
    color: var(--ua3-paper, #f4f1e9);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 2px 3px 0 rgba(23, 23, 20, 0.16);
    opacity: 0;
    will-change: transform, opacity;
}

/* ---------- trust strip (persistent furniture) ---------- */

.uv1-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--ua3-rule-strong, #c9c2b1);
}
.uv1-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.8rem;
    padding: 0.22rem 0.55rem;
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    white-space: nowrap;
}
.uv1-chip--v { position: relative; background: var(--ua3-jade, #28543f); color: var(--ua3-white, #fffdf8); }
.uv1-chip--v > i { width: 0.45rem; height: 0.45rem; background: #9fc4af; transition: background 0.3s ease; }
.uv1-stage.uv1-weaving .uv1-chip--v > i { background: var(--ua3-white, #fffdf8); }
.uv1-rean {
    position: absolute;
    left: 0;
    top: -1.35rem;
    padding: 0 0.35rem;
    border: 1px solid var(--ua3-jade, #28543f);
    background: var(--ua3-jade-pale, #e2ece6);
    color: var(--ua3-jade, #28543f);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.uv1-rean.uv1-rean-on { opacity: 1; }
.uv1-chip--u {
    border: 1px dashed var(--ua3-amber, #6d4a00);
    color: var(--ua3-amber, #6d4a00);
    background: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(109, 74, 0, 0.08) 4px, rgba(109, 74, 0, 0.08) 8px);
}
.uv1-chip--u > i { width: 0.45rem; height: 0.45rem; border: 1px dashed var(--ua3-amber, #6d4a00); }
.uv1-meta {
    overflow: hidden;
    color: var(--ua3-muted, #5f5d55);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- verified thread overlay ---------- */

.uv1-thread {
    position: absolute;
    inset: 0;
    z-index: 6;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.uv1-thread-glow { fill: none; stroke: rgba(40, 84, 63, 0.14); stroke-width: 5; }
.uv1-thread-line { fill: none; stroke: var(--ua3-jade, #28543f); stroke-width: 1.4; stroke-dasharray: 3 6; opacity: 0.6; }
.uv1-stage.uv1-weaving .uv1-thread-glow { stroke: rgba(40, 84, 63, 0.3); }

/* ---------- narrow container (<540px host) ----------
   Threshold sits above the ~527px the two nowrap trust chips
   need side by side, so the strip wraps before it can push a
   horizontal scrollbar onto the page. */

.uv1-stage.uv1-narrow .uv1-demo { display: none; }
.uv1-stage.uv1-narrow .uv1-mast-tag { display: none; }
.uv1-stage.uv1-narrow .uv1-view { height: 20.5rem; }
.uv1-stage.uv1-narrow .uv1-clutter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uv1-stage.uv1-narrow .uv1-noise--ad { grid-row: auto; }
.uv1-stage.uv1-narrow .uv1-noise--sp { display: none; }
.uv1-stage.uv1-narrow .uv1-card .uv1-tx { display: none; }
.uv1-stage.uv1-narrow .uv1-strip > em { display: none; }
.uv1-stage.uv1-narrow .uv1-trust { flex-wrap: wrap; justify-content: flex-start; row-gap: 0.3rem; }
.uv1-stage.uv1-narrow .uv1-readcol { width: 94%; }
.uv1-stage.uv1-narrow .uv1-read-head { max-width: none; }
.uv1-stage.uv1-narrow .uv1-fol-grid { grid-template-columns: minmax(0, 1fr); }
.uv1-stage.uv1-narrow .uv1-fol-aside { display: none; }
.uv1-stage.uv1-narrow .uv1-fol-tray {
    display: block;
    margin: 0.4rem 0 0;
    color: var(--ua3-muted, #5f5d55);
    font-family: var(--ua3-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 0.8125rem;
}
.uv1-stage.uv1-narrow .uv1-trow { grid-template-columns: 1.1fr 0.85fr 0.75fr; }
.uv1-stage.uv1-narrow .uv1-c-inv { display: none; }
.uv1-stage.uv1-narrow .uv1-meta { display: none; }
.uv1-stage.uv1-narrow .uv1-fol-dir { margin-left: 0; }

/* ---------- reduced motion: static, information-complete frames ---------- */

@media (prefers-reduced-motion: reduce) {
    .uv1-stage *,
    .uv1-stage *::after,
    .uv1-stage *::before { transition: none !important; animation: none !important; }
    .uv1-shimmer,
    .uv1-carrier { display: none; }
}

/* ---------- forced colors: restore the original markup ---------- */

@media (forced-colors: active) {
    .ua3-transform-stage.uv1-live > .uv1-stage { display: none; }
    .ua3-transform-stage.uv1-live > .ua3-browser-bar { display: grid; }
    .ua3-transform-stage.uv1-live > .ua3-page-canvas { display: grid; }
}
