.cg-crown { margin: 6px 26px 4px; }
.cg-char-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5em, 1fr));
    gap: 14px;
}
.cg-char-grid-wide { grid-template-columns: repeat(auto-fill, minmax(16em, 1fr)); }
.cg-char-card {
    --chtext: #dfe5ff;
    --cell: polygon(21% 0%, 79% 0%, 100% 34%, 100% 66%, 79% 100%, 21% 100%, 0% 66%, 0% 34%);
    position: relative; overflow: visible;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; text-align: center; justify-content: flex-start;
    padding: 26px 14px 26px; min-height: 12em;
    clip-path: var(--cell);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--chc) 85%, transparent),
        color-mix(in srgb, var(--chc) 55%, transparent));
    border: 0; border-radius: 0;
    transition: transform .16s ease, filter .22s ease;
}
.cg-char-card::before {
    content: ""; position: absolute; inset: 1.5px; z-index: 0;
    clip-path: var(--cell);
    background:
        radial-gradient(130% 80% at 50% 0%,
            color-mix(in srgb, var(--chc) 13%, transparent), transparent 62%),
        linear-gradient(180deg, rgba(15, 19, 42, 0.99), rgba(9, 12, 28, 0.99));
}
.cg-char-face, .cg-char-name, .cg-char-stage { position: relative; z-index: 1; }
.cg-char-card.is-door { cursor: pointer; }
.cg-char-card.is-door .cg-char-name { text-decoration: none; }
.maas-card,
.uh-card,
.uh-seat,
.uh-absent,
.cid-card,
.rm-none,
.rm-account-t {
    --edge: var(--uh, #8caaff);
    --cell-fixed: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px),
                          calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
    position: relative;
    border: 0; border-radius: 0;
    clip-path: var(--cell-fixed);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--edge) 78%, transparent),
        color-mix(in srgb, var(--edge) 42%, transparent));
}
.maas-card::before,
.uh-card::before,
.uh-seat::before,
.uh-absent::before,
.cid-card::before,
.rm-none::before,
.rm-account-t::before {
    content: ""; position: absolute; inset: 1.5px; z-index: -1;
    clip-path: var(--cell-fixed);
    background:
        radial-gradient(130% 80% at 50% 0%, color-mix(in srgb, var(--edge) 11%, transparent), transparent 62%),
        linear-gradient(180deg, rgba(15, 19, 42, 0.985), rgba(9, 12, 28, 0.985));
}
.maas-card > *, .uh-card > *, .uh-seat > *, .uh-absent > *, .cid-card > *,
.rm-none > *, .rm-account-t > * {
    position: relative; z-index: 1;
}
.uh-card, .cid-card, .rm-none, .rm-account-t { padding: 1.1rem 1.35rem; }
.rm-none   { --edge: var(--rc, #8caaff); }
.rm-account-t { --edge: var(--rc, #8caaff); }
.rm-account-t { border-left: 0; }
.cg-char-card:hover {
    transform: perspective(1100px) translateZ(80px) translateY(-10px) rotateX(4deg) scale(1.14);
    z-index: 40;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.75))
            drop-shadow(0 0 24px color-mix(in srgb, var(--chc) 45%, transparent));
}
.cg-char-card:hover .cg-char-glyph {
    filter: drop-shadow(0 0 16px color-mix(in srgb, var(--chc) 90%, transparent))
            drop-shadow(0 0 38px color-mix(in srgb, var(--chc) 50%, transparent));
}
.cg-char-face {
    position: relative; z-index: 1;
    height: 3em;
    display: flex; align-items: center; justify-content: center;
}
.cg-char-glyph {
    position: relative; z-index: 2;
    font-size: 2.4em; line-height: 1; color: var(--chc);
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--chc) 80%, transparent))
            drop-shadow(0 0 28px color-mix(in srgb, var(--chc) 40%, transparent));
}
.cg-char-img {
    width: 4.6em; height: 4.6em; object-fit: cover; border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--chc) 60%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--chc) 35%, transparent);
}
.cg-char-name {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1.05em; font-weight: 800;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--chc);
    text-shadow: 0 0 12px color-mix(in srgb, var(--chc) 55%, transparent),
                 0 0 30px color-mix(in srgb, var(--chc) 25%, transparent);
}
button.cg-char-name-door {
    background: none; border: none; padding: 0; cursor: pointer;
    text-align: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
}
button.cg-char-name-door:hover {
    text-shadow: 0 0 16px color-mix(in srgb, var(--chc) 80%, transparent),
                 0 0 40px color-mix(in srgb, var(--chc) 45%, transparent);
    text-decoration: underline; text-underline-offset: 4px;
}
.cg-char-stage {
    font-size: 1em; color: #8f99cc;
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
}
.cg-char-deck {
    position: absolute; left: 50%; bottom: 12px; z-index: 2;
    display: flex; align-items: center; justify-content: center; gap: 18px;
    padding: 0; background: none; border: 0; clip-path: none;
    opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
    transition: opacity .14s ease .04s, transform .2s cubic-bezier(.2,.8,.3,1) .04s;
}
.cg-char-card:hover .cg-char-deck {
    opacity: 1; transform: translate(-50%, 0); pointer-events: auto;
}
.cg-char-slot:hover .cg-lug { opacity: 1; }
.cg-char-slot:hover button.cg-lug { pointer-events: auto; }
.cg-char-slot:hover .cg-lug-tl { transform: translate(-58%, -58%) rotate(45deg) scale(1); }
.cg-char-slot:hover .cg-lug-tr { transform: translate(58%, -58%) rotate(-45deg) scale(1); }
.cg-char-slot:hover .cg-lug-bl { transform: translate(-58%, 58%) rotate(-45deg) scale(1); }
.cg-char-slot:hover .cg-lug-br { transform: translate(58%, 58%) rotate(45deg) scale(1); }
.cg-char-slot:hover .cg-lug-tr { transition-delay: .04s; }
.cg-char-slot:hover .cg-lug-bl { transition-delay: .08s; }
.cg-char-slot:hover .cg-lug-br { transition-delay: .12s; }
.cg-char-desc { margin: 0; font-size: 1em; line-height: 1.5; color: var(--chtext); }
.cg-dossier-back {
    padding: 8px 16px; margin-bottom: 18px; cursor: pointer;
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1em; letter-spacing: 0.06em;
    color: #b9c1e8; background: rgba(20, 25, 52, 0.9);
    border: 1px solid rgba(140, 150, 210, 0.28); border-radius: 8px;
}
.cg-dossier-back:hover { color: #ffffff; border-color: color-mix(in srgb, var(--chc) 55%, transparent); }
.cg-dossier-face .cg-char-glyph { font-size: 3.6em; }
.pz-eng-cell .cg-char-face { height: 2.6em; }
.pz-eng-cell .cg-char-glyph { font-size: 2.1em; }
.pz-eng-cell .cg-char-name { font-size: 0.95em; }
.cg-shape-octagon  { --cell: polygon(21% 0%, 79% 0%, 100% 34%, 100% 66%, 79% 100%, 21% 100%, 0% 66%, 0% 34%); }
.cg-shape-hex      { --cell: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.cg-shape-shield   { --cell: polygon(50% 0%, 100% 18%, 100% 55%, 50% 100%, 0% 55%, 0% 18%); }
.cg-shape-tablet   { --cell: polygon(16% 0%, 84% 0%, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0% 84%, 0% 16%); }
.cg-shape-chevron  { --cell: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%); }
.cg-shape-capsule  { --cell: polygon(0% 20%, 20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%); }
.cg-shape-diamond  { --cell: polygon(50% 0%, 100% 26%, 100% 74%, 50% 100%, 0% 74%, 0% 26%); }
.cg-shape-blade    { --cell: polygon(0% 0%, 86% 0%, 100% 16%, 100% 100%, 14% 100%, 0% 84%); }
.rm { color: var(--text, #dfe6f2); padding: 1.6rem 1.9rem 5rem; max-width: 1500px; }
.rm-eyebrow {
    font-size: 1rem; letter-spacing: 0.32em; font-weight: 700;
    color: var(--accent-gold, #e8c66a); margin-bottom: 0.45rem; text-transform: uppercase;
}
.rm-eyebrow-cut { color: #e0685f; }
.rm-title {
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800; line-height: 1.02; letter-spacing: -0.015em;
    margin: 0 0 0.55rem; color: var(--rc);
    text-shadow: 0 0 34px color-mix(in srgb, var(--rc) 34%, transparent);
}
.rm-lede {
    font-size: 1.16rem; line-height: 1.62; margin: 0; max-width: 74ch;
    color: rgba(240, 215, 154, 0.94);
    font-style: italic;
}
.rm-head {
    display: grid; grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 26px; align-items: start; margin-bottom: 34px;
}
.rm-head.rm-head-noportrait { grid-template-columns: minmax(0, 1fr) auto; }
.rm-portrait {
    width: 132px; height: 132px; min-height: 0; padding: 0;
    align-items: center; justify-content: center; pointer-events: none;
}
.rm-portrait .cg-char-glyph { font-size: 3rem; }
.rm-head-text { min-width: 0; }
.rm-stage {
    display: inline-block; margin-top: 12px; font-size: 1rem; font-weight: 700;
    color: #e8c66a; background: rgba(232, 198, 106, 0.14); padding: 4px 13px; border-radius: 20px;
}
.rm-doors { display: flex; flex-direction: column; gap: 10px; }
.rm-door {
    display: flex; align-items: center; gap: 12px; width: 100%;
    font-family: inherit; text-align: left; cursor: pointer;
    padding: 11px 14px; border-radius: 12px;
    color: #e9eefb;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--rc) 11%, transparent),
        color-mix(in srgb, var(--rc) 5%, transparent));
    border: 1px solid color-mix(in srgb, var(--rc) 34%, transparent);
    transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.rm-door:hover {
    border-color: color-mix(in srgb, var(--rc) 76%, transparent);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--rc) 20%, transparent),
        color-mix(in srgb, var(--rc) 9%, transparent));
    transform: translateX(2px);
}
.rm-door:focus-visible { outline: 2px solid var(--rc); outline-offset: 2px; }
.rm-door-g { font-size: 1.15rem; line-height: 1; color: var(--rc); flex: none; }
.rm-door-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.rm-door-k {
    font-size: 1rem; font-weight: 700; letter-spacing: .14em;
    color: var(--rc); text-transform: uppercase;
}
.rm-door-n { font-size: 1rem; color: rgba(233, 238, 251, .82); }
.rm-door-x { font-size: 1.25rem; color: color-mix(in srgb, var(--rc) 62%, transparent); flex: none; }
.cg-char-card.is-found {
    position: relative;
    z-index: 3;
    outline: 2px solid var(--chc, #8FFFD8);
    outline-offset: 3px;
    animation: cg-flare 2.4s cubic-bezier(.22, .61, .36, 1) 1 both;
}
.cg-char-card.is-found .cg-char-glyph { animation: cg-flare-glyph 2.4s ease-out 1 both; }
@media (prefers-reduced-motion: reduce) {
    .cg-char-card.is-found,
    .cg-char-card.is-found .cg-char-glyph { animation: none; }
    .cg-char-card.is-found {
        filter: brightness(1.55) saturate(1.35);
        background-color: color-mix(in srgb, var(--chc, #8FFFD8) 30%, transparent);
        box-shadow:
            0 0 0 3px color-mix(in srgb, var(--chc, #8FFFD8) 88%, transparent),
            0 0 34px 8px color-mix(in srgb, var(--chc, #8FFFD8) 55%, transparent);
    }
    .cg-char-card.is-found .cg-char-glyph { color: #ffffff; }
}
.rm-btn {
    font-size: 1rem; font-weight: 700; padding: 9px 17px; border-radius: 9px; cursor: pointer;
    white-space: nowrap; color: var(--rc);
    background: color-mix(in srgb, var(--rc) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--rc) 42%, transparent);
    transition: background .13s ease, border-color .13s ease;
}
.rm-btn:hover {
    background: color-mix(in srgb, var(--rc) 24%, transparent);
    border-color: color-mix(in srgb, var(--rc) 72%, transparent);
}
.rm-k {
    display: block; font-size: 1rem; letter-spacing: 0.28em; text-transform: uppercase;
    font-weight: 700; color: var(--accent-gold, #e8c66a); margin: 34px 0 14px;
}
.rm-owed-list { margin: 0; padding-left: 24px; }
.rm-owed-list li { font-size: 1.05rem; line-height: 1.65; margin-bottom: 8px; color: #dfe6f2; }
.rm-motions { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-motion {
    font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; padding: 8px 15px; border-radius: 999px;
    color: var(--rc, #dfe6f2);
    background: color-mix(in srgb, var(--rc) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--rc) 48%, transparent);
}
.rm-answers-s {
    font-size: 1rem; line-height: 1.6; color: rgba(223, 230, 242, 0.62);
    margin: 12px 0 0; max-width: 84ch;
}
.rm-termrow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.rm-term {
    font-size: 1.12rem; font-weight: 600; color: var(--rc, #dfe6f2);
    padding: 10px 18px; border-radius: 11px;
    background: color-mix(in srgb, var(--rc) 9%, var(--bg-raised, #131a2a));
    border: 1px solid color-mix(in srgb, var(--rc) 34%, transparent);
}
.rm-termbar {
    flex: 1 1 60px; min-width: 60px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--rc) 62%, transparent),
        color-mix(in srgb, var(--rc) 12%, transparent));
}
.rm-neighbours { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-neighbour {
    font-family: inherit; cursor: pointer;
    font-size: 1rem; font-weight: 600; padding: 9px 17px; border-radius: 9px;
    color: #e8eefb;
    background: color-mix(in srgb, var(--rc) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--rc) 38%, transparent);
    transition: background .13s ease, border-color .13s ease, color .13s ease;
}
.rm-neighbour:hover {
    background: color-mix(in srgb, var(--rc) 22%, transparent);
    border-color: color-mix(in srgb, var(--rc) 74%, transparent);
    color: var(--rc, #e8eefb);
}
.rm-watch-t {
    font-size: 1.05rem; line-height: 1.7; color: rgba(223, 230, 242, 0.9);
    margin: 0 0 12px; max-width: 84ch;
}
.rm-watch-shift {
    font-size: 1.02rem; font-weight: 600; color: var(--accent-gold, #e8c66a); margin: 12px 0 0;
}
.rm-account-t {
    font-size: 1.05rem; line-height: 1.7; color: rgba(223, 230, 242, 0.9); margin: 0; max-width: 84ch;
    padding: 1rem 1.25rem; border-radius: 11px;
    background: color-mix(in srgb, var(--rc) 6%, var(--bg-raised, #131a2a));
    border-left: 6px solid var(--rc);
}
.rm-caps-note {
  margin: 0 0 20px; max-width: 78ch;
  font-size: 1.02rem; line-height: 1.6; font-style: italic;
  color: #e6c778;
  border-left: 3px solid color-mix(in srgb, var(--rc) 60%, transparent);
  padding: 10px 0 10px 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 9%, transparent), transparent 70%);
}
.rm-count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rm-count b { font-size: 1.7rem; font-weight: 800; color: var(--rc); font-variant-numeric: tabular-nums; }
.rm-count b.rm-count-cold { color: #9aa7bd; margin-left: 16px; }
.rm-count span { font-size: 1rem; color: rgba(210, 224, 220, 0.66); }
.rm-showcold {
    margin-left: auto; font-size: 1rem; color: rgba(210, 224, 220, 0.8);
    display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.rm-showcold input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--rc); }
.rm-line {
    display: flex; align-items: stretch; gap: 10px;
    border-left: 3px solid color-mix(in srgb, var(--rc) 62%, transparent);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--rc) 4%, transparent);
    transition: background .14s ease;
}
.rm-line:hover { background: color-mix(in srgb, var(--rc) 9%, transparent); }
.rm-line.is-cold { opacity: .62; border-left-color: rgba(150, 165, 185, .5); }
.rm-line-acts { display: flex; align-items: center; gap: 7px; padding: 0 12px 0 0; flex: none; }
.rm-op {
    font-family: inherit; cursor: pointer;
    font-size: 1rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
    padding: 7px 15px;
    color: color-mix(in srgb, var(--rc) 82%, #e8eefb);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--rc) 15%, transparent),
        color-mix(in srgb, var(--rc) 6%, transparent));
    border: 1px solid color-mix(in srgb, var(--rc) 46%, transparent);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.rm-op:hover {
    color: #f2f7ff;
    border-color: color-mix(in srgb, var(--rc) 92%, transparent);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--rc) 34%, transparent),
        color-mix(in srgb, var(--rc) 14%, transparent));
    box-shadow: 0 0 14px -3px color-mix(in srgb, var(--rc) 60%, transparent);
}
.rm-op:focus-visible { outline: 2px solid var(--rc); outline-offset: 2px; }
.rm-op-arch {
    color: #f0c576;
    border-color: rgba(232, 198, 106, .44);
    background: linear-gradient(180deg, rgba(232, 198, 106, .13), rgba(232, 198, 106, .05));
}
.rm-op-arch:hover {
    color: #ffe6ad; border-color: rgba(232, 198, 106, .9);
    background: linear-gradient(180deg, rgba(232, 198, 106, .3), rgba(232, 198, 106, .12));
    box-shadow: 0 0 14px -3px rgba(232, 198, 106, .6);
}
.rm-op-cut {
    color: #ff9b8c;
    border-color: rgba(255, 122, 102, .42);
    background: linear-gradient(180deg, rgba(255, 122, 102, .12), rgba(255, 122, 102, .04));
}
.rm-op-cut:hover {
    color: #ffd0c7; border-color: rgba(255, 122, 102, .92);
    background: linear-gradient(180deg, rgba(255, 122, 102, .3), rgba(255, 122, 102, .1));
    box-shadow: 0 0 14px -3px rgba(255, 122, 102, .62);
}
@media (max-width: 60rem) {
    .rm-line { flex-direction: column; align-items: stretch; }
    .rm-line-acts { padding: 0 12px 12px 14px; flex-wrap: wrap; }
}
.cg-char-full {
    margin: 8px 14px 0; font-size: 1rem; line-height: 1.5;
    color: rgba(215, 228, 245, .72); text-align: center;
}
.cg-char-card > .cg-char-full { position: relative; z-index: 1; margin: 3px 8px 0; font-size: 1rem; line-height: 1.3; opacity: 0.82; }
.cg-trinity-card > .cg-char-full { position: relative; z-index: 1; opacity: 1; color: rgba(223, 234, 248, .86); font-size: 1.05rem; line-height: 1.6; letter-spacing: .008em; margin-top: 6px; }
.cg-char-card .cg-acr-lit { color: var(--chc); font-weight: 800; font-style: normal; }
.rm-rows { display: flex; flex-direction: column; gap: 8px; }
.rm-row, .rm-lrow {
    display: grid; grid-template-columns: 13ch minmax(0, 1fr) 16ch 18ch; gap: 16px;
    align-items: baseline; width: 100%; text-align: left; cursor: pointer;
    padding: 0.85rem 1.1rem; border-radius: 10px;
    background: color-mix(in srgb, var(--rc) 5%, var(--bg-raised, #131a2a));
    border: 1px solid color-mix(in srgb, var(--rc) 22%, transparent);
    border-left: 6px solid var(--rc);
    transition: border-color .12s ease, background .12s ease;
}
.rm-row:hover {
    background: color-mix(in srgb, var(--rc) 11%, var(--bg-raised, #131a2a));
    border-color: color-mix(in srgb, var(--rc) 60%, transparent);
}
.rm-row.is-cold { opacity: 0.62; border-left-color: #9aa7bd; }
.rm-lrow { cursor: default; grid-template-columns: 13ch minmax(0, 1fr) 14ch 18ch auto; }
.rm-lrow.is-back { border-left-color: #62e0d0; }
.rm-row-when { font-size: 1rem; color: rgba(210, 224, 220, 0.6); white-space: nowrap; }
.rm-row-t {
    font-size: 1.05rem; color: #eaf1ff; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rm-row-kind { font-size: 1rem; color: var(--rc); font-weight: 700; }
.rm-row-id {
    font-size: 1rem; color: rgba(210, 224, 220, 0.5);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left;
}
.rm-row-kind { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-back {
    font-size: 1rem; font-weight: 700; color: var(--rc); background: none; border: 0;
    cursor: pointer; padding: 0; margin-bottom: 18px;
}
.rm-back:hover { text-decoration: underline; }
.rm-open-t { font-size: 1.45rem; font-weight: 700; margin: 0 0 12px; color: #eaf1ff; line-height: 1.35; }
.rm-open-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.rm-pill {
    font-size: 1rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
    color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent);
}
.rm-pill-id { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 600; }
.rm-pill-cold { color: #9aa7bd; background: rgba(154, 167, 189, 0.14); }
.rm-when { font-size: 1rem; color: rgba(210, 224, 220, 0.6); }
.rm-fields { margin: 0 0 26px; display: flex; flex-direction: column; gap: 2px; }
.rm-field {
    display: grid; grid-template-columns: minmax(14ch, 24ch) minmax(0, 1fr); gap: 18px;
    padding-top: 7px; padding-bottom: 7px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rm-field-k { font-size: 1rem; font-weight: 700; color: rgba(210, 224, 220, 0.62); }
.rm-field-v {
    font-size: 1.05rem; color: #e6ecf9; line-height: 1.6; margin: 0;
    overflow-wrap: anywhere; white-space: pre-wrap;
}
.rm-ref {
    font-size: 1.05rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    color: var(--rc); background: color-mix(in srgb, var(--rc) 11%, transparent);
    border: 1px solid color-mix(in srgb, var(--rc) 34%, transparent);
    border-radius: 6px; padding: 2px 9px; cursor: pointer;
}
.rm-ref:hover { background: color-mix(in srgb, var(--rc) 24%, transparent); }
.rm-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.rm-act {
    font-size: 1rem; font-weight: 700; padding: 9px 18px; border-radius: 9px; cursor: pointer;
    color: rgba(223, 233, 230, 0.9); background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.rm-act:hover { background: rgba(255, 255, 255, 0.13); color: #fff; }
.rm-act-fork { color: #b48cff; border-color: rgba(180, 140, 255, 0.4); background: rgba(180, 140, 255, 0.1); }
.rm-act-fork:hover { background: rgba(180, 140, 255, 0.22); color: #d9c6ff; }
.rm-act-arch { color: #62c4e8; border-color: rgba(98, 196, 232, 0.4); background: rgba(98, 196, 232, 0.1); }
.rm-act-arch:hover { background: rgba(98, 196, 232, 0.22); color: #cdefff; }
.rm-act-cut { color: #e0685f; border-color: rgba(224, 104, 95, 0.4); background: rgba(224, 104, 95, 0.1); }
.rm-act-cut:hover { background: rgba(224, 104, 95, 0.22); color: #ffd2ce; }
.rm-act-back { color: #62e0d0; border-color: rgba(98, 224, 208, 0.4); background: rgba(98, 224, 208, 0.1); }
.rm-none {
    padding: 1.5rem 1.7rem; border-radius: 12px;
    background: color-mix(in srgb, var(--rc) 5%, var(--bg-raised, #131a2a));
    border: 1px dashed color-mix(in srgb, var(--rc) 34%, transparent);
}
.rm-none-t { font-size: 1.08rem; line-height: 1.7; color: #dfe6f2; margin: 0 0 10px; max-width: 80ch; }
.rm-none-s { font-size: 1.02rem; line-height: 1.6; color: rgba(210, 224, 220, 0.62); margin: 0; }
.rm-ledger-s { font-size: 1.02rem; color: rgba(210, 224, 220, 0.68); line-height: 1.6; margin: 0 0 14px; max-width: 80ch; }
.rm-ask-back {
    position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
    background: rgba(6, 9, 20, 0.78); padding: 24px;
}
.rm-ask {
    width: min(720px, 100%); max-height: 86vh; overflow: auto;
    padding: 1.7rem 1.9rem; border-radius: 14px;
    background: var(--bg-raised, #131a2a); border: 1px solid rgba(255, 255, 255, 0.14);
}
.rm-ask-t { font-size: 1.35rem; font-weight: 700; margin: 0 0 12px; color: #eaf1ff; line-height: 1.4; }
.rm-ask-s { font-size: 1.05rem; line-height: 1.7; color: rgba(223, 230, 242, 0.86); margin: 0 0 16px; }
.rm-ask-in {
    width: 100%; font-size: 1.05rem; padding: 11px 14px; border-radius: 9px; margin-bottom: 18px;
    color: #eaf1ff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18);
}
.rm-ask-in:focus { outline: none; border-color: var(--rc); }
.rm-ask-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.rm-say { margin: 14px 0 14px; font-size: 1.02rem; color: #e8c66a; }
.rm-say.is-raised {
    color: #ffd2ce; background: rgba(224, 104, 95, 0.12);
    border: 1px solid rgba(224, 104, 95, 0.42); border-left-width: 3px;
    border-radius: 9px; padding: 12px 15px; line-height: 1.6; max-width: 80ch;
}
.rm-gates { margin: 0 0 18px; padding-left: 26px; }
.rm-gates li { font-size: 1.05rem; line-height: 1.7; color: #dfe6f2; }
.rm-cmd {
    display: block; font-size: 1rem; line-height: 1.6; padding: 12px 15px; border-radius: 9px;
    margin-bottom: 18px; color: #cfe9ff; background: rgba(10, 14, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12); overflow-x: auto; white-space: pre;
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.rm-lost { text-align: left; }
.rm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.rm-find {
    flex: 1; min-width: 260px; font-size: 1.05rem; padding: 10px 14px; border-radius: 9px;
    color: #eaf1ff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
}
.rm-find:focus { outline: none; border-color: var(--rc); }
.rm-pick {
    font-size: 1rem; font-weight: 700; padding: 10px 13px; border-radius: 9px; cursor: pointer;
    color: #eaf1ff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
}
.rm-pick:focus { outline: none; border-color: var(--rc); }
.rm-act-new {
    color: #8ef0c0; border-color: rgba(142,240,192,0.42); background: rgba(142,240,192,0.12);
}
.rm-act-new:hover { background: rgba(142,240,192,0.26); color: #d6fff0; }
.rm-new {
    margin-bottom: 20px; padding: 1.3rem 1.5rem; border-radius: 12px;
    background: color-mix(in srgb, var(--rc) 6%, var(--bg-raised, #131a2a));
    border: 1px solid color-mix(in srgb, var(--rc) 34%, transparent);
    border-left: 6px solid var(--rc);
}
.rm-new .rm-field-k { display: block; margin: 14px 0 7px; }
.rm-newline { display: grid; grid-template-columns: minmax(12ch, 24ch) minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }
.rm-newline .rm-ask-in { margin-bottom: 0; }
NOTE FOR THE AUTHOR: the shell itself does not yield at narrow widths - the rail and the panel hold
   their full size and squeeze every page, not only this one. That is your chrome and it is locked, so it
   is flagged here rather than changed. */
.rm { container-type: inline-size; overflow-x: hidden; }
.rm-cmd, .rm-fields { max-width: 100%; }
.usi-page {
    --bg-deep: #0b0d18; --bg-base: #131525; --bg-surface: #1b1e30; --bg-raised: #232742; --bg-hover: #2c3050;
    --border: #2d3150; --border-strong: #3f4470; --text-bright: #f0f3ff; --text-primary: #dde2f3; --text: #dde2f3;
    --text-secondary: #9aa1c1; --text-muted: #6b7299; --accent-gold: #e8c66a; --accent-cyan: #4fc6e8;
    --mono: "Cascadia Mono", Consolas, monospace; --chtext: #dfe5ff;
    --cell: polygon(21% 0%, 79% 0%, 100% 34%, 100% 66%, 79% 100%, 21% 100%, 0% 66%, 0% 34%);
}
.cg-char-card.cg-shape-circle, .cg-char-card.cg-shape-circle .cg-char-face { clip-path: circle(50% at 50% 50%); }
.cg-char-card.cg-shape-square, .cg-char-card.cg-shape-square .cg-char-face { clip-path: inset(0 round 10px); }
.usi-rm .usi-motion.is-lit { outline: 2px solid var(--rc); outline-offset: 4px; transition: outline-color .3s; }
.rmg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.rmg-card { --t: #ffb020; position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px;
            border-radius: 16px; background: linear-gradient(165deg, color-mix(in srgb, var(--t) 10%, #161b2c), #141827 70%);
            border: 1px solid color-mix(in srgb, var(--t) 30%, transparent); overflow: hidden; }
.rmg-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--t); opacity: .85; }
.rmg-teal { --t: #4fd6c8; } .rmg-sky { --t: #7cc4ff; } .rmg-violet { --t: #c49bff; }
.rmg-amber { --t: #ffb020; } .rmg-coral { --t: #ff8f7a; } .rmg-green { --t: #8fdc84; }
.rmg-head h3 { margin: 2px 0 2px; font-size: 1.12rem; font-weight: 750; letter-spacing: .01em; color: var(--t); }
.rmg-head p { margin: 0; font-size: 1rem; line-height: 1.45; color: rgba(223, 230, 242, .72); }
.rmg-acts { display: flex; flex-direction: column; gap: 8px; }
.rmg-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 9px 14px;
           border-radius: 11px; text-decoration: none; color: #eef2f8; font-size: 1.02rem; font-weight: 600;
           background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09);
           transition: background .16s, border-color .16s, box-shadow .16s, transform .12s; }
.rmg-act:hover, .rmg-act:focus-visible { background: color-mix(in srgb, var(--t) 16%, #1b2134); border-color: var(--t);
           box-shadow: 0 0 18px color-mix(in srgb, var(--t) 30%, transparent); outline: none; }
.rmg-act:active { transform: translateY(1px); }
.rmg-verb::first-letter { text-transform: uppercase; }
.rmg-go { font-size: 1.3rem; line-height: 1; color: var(--t); }
.rmg-where { font-size: 1rem; font-weight: 600; font-family: ui-monospace, Consolas, monospace; padding: 1px 9px; border-radius: 7px;
             color: rgba(223, 230, 242, .78); border: 1px dashed rgba(223, 230, 242, .35); }
.rm-task-reading{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px;margin:18px 0;padding:18px 22px;border:1px solid #84dfc877;border-left:4px solid #84dfc8;border-radius:18px 4px;background:linear-gradient(110deg,#173e44,#171c31);color:#d8f5ed;font-size:17px}.rm-task-reading strong{color:#9ce5d1}.rm-task-reading p{margin:0;white-space:pre-line}.rm-task-reading button{text-decoration:none}@media(max-width:680px){.rm-task-reading{grid-template-columns:1fr auto}.rm-task-reading p{grid-column:1/-1;grid-row:2}}
.rm-about { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 14px; width: 100%; margin: 26px 0 8px;
            padding: 14px 18px; border-radius: 13px; cursor: pointer; text-align: left; font: inherit; color: #dfe6f2;
            background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .12); transition: border-color .15s, background .15s; }
.rm-about:hover, .rm-about.is-open { border-color: rgba(79, 214, 200, .55); background: rgba(79, 214, 200, .06); }
.rm-about-t { font-size: 17px; font-weight: 700; color: #bfeee8; }
.rm-about-s { font-size: 16px; color: rgba(223, 230, 242, .66); }
.rm-about-x { font-size: 18px; color: #4fd6c8; }
@media (max-width: 640px) { .rm-about { grid-template-columns: 1fr auto; } .rm-about-s { grid-column: 1 / -1; grid-row: 2; } }
.rm-folded { display: none; }
.app-root,
.quorums-page,
.cb-page,
.chamber,
.engine-page,
.ps-page,
.workflows-page,
.wf-editor {
    position: relative;
}
.app-root::before,
.quorums-page::before,
.cb-page::before,
.chamber::before,
.engine-page::before,
.ps-page::before,
.agents-page::before,
.workflows-page::before,
.wf-editor::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.wf-editor::before      { background: var(--skin-workflow-editor-bg); }
) ────────────────────────────────────── */
.wf-editor {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    color: var(--text-primary);
    background: #04050f;
    background-image:
        radial-gradient(ellipse at top left, rgba(79,198,232,0.05), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(229,162,58,0.05), transparent 60%);
}
.wf-editor-state {
    padding: 80px 40px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    font-family: "Crimson Pro", "Cormorant Garamond", "Georgia", serif;
}
.wf-editor-notfound h2 {
    color: var(--text-bright);
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.wf-editor-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: start;
    padding: 28px 56px 24px;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-amber) 12%, transparent);
    background: rgba(0, 0, 0, 0.3);
}
.wf-editor-back {
    background: transparent;
    border: none;
    color: rgba(255, 235, 205, 0.55);
    font-size: 26px;
    cursor: pointer;
    padding: 6px 12px;
    margin-top: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.wf-editor-back:hover {
    color: var(--accent-amber);
    transform: translateX(-2px);
}
.wf-editor-titleblock {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.wf-editor-eyebrow {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 235, 205, 0.62);
}
.wf-editor-eyebrow code {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid color-mix(in srgb, var(--accent-amber) 25%, transparent);
    color: var(--accent-amber);
    padding: 1px 7px;
    border-radius: 2px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    margin-left: 4px;
}
.wf-editor-name {
    background: transparent;
    border: none;
    border-bottom: 1px dashed color-mix(in srgb, var(--accent-amber) 22%, transparent);
    padding: 4px 0;
    color: var(--text-bright);
    font-family: "Crimson Pro", "Cormorant Garamond", "Georgia", serif;
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing: 0.01em;
    line-height: 1;
    outline: none;
    transition: border-color 0.15s ease;
}
.wf-editor-name:focus {
    border-bottom-color: var(--accent-amber);
}
.wf-editor-name::placeholder {
    color: rgba(255, 235, 205, 0.3);
    font-style: italic;
}
.wf-editor-desc {
    background: transparent;
    border: none;
    padding: 0;
    color: rgba(255, 235, 205, 0.78);
    font-family: "Crimson Pro", "Cormorant Garamond", "Georgia", serif;
    font-style: italic;
    font-size: 15px;
    outline: none;
}
.wf-editor-desc::placeholder {
    color: rgba(255, 235, 205, 0.28);
}
.wf-editor-sigil {
    width: 28px;
    height: 28px;
    margin-top: 8px;
    opacity: 0.30;
    transition: opacity 0.4s ease;
}
.wf-editor-sigil.is-pulsing {
    opacity: 1;
    animation: wf-sigil-burst 1.4s ease-out;
}
.wf-editor-sigil-mark { width: 100%; height: 100%; display: block; }
.wf-editor-sigil-core { fill: var(--accent-amber);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-amber) 80%, transparent)); }
.wf-editor-sigil-ring { fill: none; stroke: color-mix(in srgb, var(--accent-amber) 65%, transparent); stroke-width: 0.8; }
.wf-editor-sigil-halo { fill: none; stroke: color-mix(in srgb, var(--accent-amber) 25%, transparent); stroke-width: 0.5; }
.wf-editor-chain {
    padding: 32px 56px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.wf-editor-empty {
    max-width: 720px;
    margin: 40px auto;
    padding: 38px 44px;
    text-align: left;
    color: rgba(255,235,205,.7);
    border: 1px solid #2c2619;
    border-radius: 16px;
    background: radial-gradient(120% 80% at 50% -10%, rgba(232,198,106,.08), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.wf-empty-mark { font-size: 2.4rem; text-align: center; color: #e8c66a; margin-bottom: 4px; }
.wf-empty-title { margin: 0 0 8px; text-align: center; font-family: "Crimson Pro","Cormorant Garamond","Georgia",serif; font-weight: 700; font-size: 1.7rem; color: #fdf6e8; }
.wf-empty-lead { margin: 0 auto 20px; text-align: center; max-width: 560px; font-size: 1.05rem; line-height: 1.5; color: rgba(255,235,205,.72); }
.wf-empty-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wf-empty-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; line-height: 1.45; color: rgba(255,235,205,.85); }
.wf-empty-steps b { color: #f0d489; font-weight: 700; }
.wf-empty-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(232,198,106,.16); border: 1px solid #6a5a33; color: #f0d489; font-weight: 800; font-size: 1rem; }
.wf-editor-empty-hint { margin: 0; text-align: center; font-size: 1.05rem; font-weight: 700; color: #e8c66a; }
.wf-editor-empty-hint strong { color: var(--accent-amber); font-weight: 700; }
.wf-step {
    position: relative;
    width: min(640px, 90%);
    background: linear-gradient(180deg, #1a1714 0%, #0e0a08 100%);
    border: 1px solid color-mix(in srgb, var(--accent-amber) 28%, transparent);
    border-left: 3px solid var(--accent-amber);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.wf-step:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent-amber) 22%, transparent);
}
.wf-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wf-step-num {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--accent-amber);
}
.wf-step-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    background: transparent;
    border: none;
    color: rgba(255, 235, 205, 0.35);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 2px;
    line-height: 1;
    transition: color 0.18s ease, background 0.18s ease;
}
.wf-step-remove:hover {
    color: #ff9aa8;
    background: rgba(240, 74, 94, 0.12);
}
.wf-step-body {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 16px 38px 16px 18px;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.18s ease;
}
.wf-step-body:hover {
    background: color-mix(in srgb, var(--accent-amber) 6%, transparent);
}
.wf-step-name {
    margin: 0 0 8px;
    font-family: "Crimson Pro", "Cormorant Garamond", "Georgia", serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--text-bright);
    line-height: 1.1;
}
.wf-step-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wf-step-quorum-id {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 10.5px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 7px;
    border-radius: 2px;
}
.wf-step-workflow {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent-amber) 70%, white);
}
.wf-flow {
    position: relative;
    width: 4px;
    height: 56px;
    pointer-events: none;
}
.wf-flow-vein {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        color-mix(in srgb, var(--accent-amber) 35%, transparent) 18%,
        color-mix(in srgb, var(--accent-amber) 35%, transparent) 82%,
        transparent 100%);
    border-radius: 2px;
}
.wf-flow-capsule {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle,
        #ffe6b0 0%,
        var(--accent-amber) 50%,
        transparent 100%);
    box-shadow: 0 0 14px var(--accent-amber);
    transform: translateX(-50%);
    animation: wf-capsule-travel 2.6s ease-in-out infinite;
}
.wf-flow-trailing .wf-flow-vein {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent-amber) 35%, transparent) 0%,
        color-mix(in srgb, var(--accent-amber) 15%, transparent) 70%,
        transparent 100%);
}
.wf-add-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    margin-top: 8px;
    background: rgba(229, 162, 58, 0.08);
    border: 1px dashed color-mix(in srgb, var(--accent-amber) 45%, transparent);
    border-radius: 3px;
    color: var(--text-bright);
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.wf-add-step:hover {
    background: color-mix(in srgb, var(--accent-amber) 18%, transparent);
    border-color: var(--accent-amber);
    border-style: solid;
    box-shadow: 0 0 22px color-mix(in srgb, var(--accent-amber) 32%, transparent);
}
.wf-add-step-plus {
    font-size: 18px;
    line-height: 1;
    color: var(--accent-amber);
    margin-top: -2px;
}
.wf-picker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 9, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: wf-picker-backdrop-in 0.22s ease-out;
}
.wf-picker {
    background: radial-gradient(120% 80% at 50% -8%, rgba(90,216,255,.045), transparent 60%),
                linear-gradient(180deg, #12141c 0%, #0a0b11 100%);
    border: 1px solid #2a3038;
    border-radius: 16px;
    padding: 22px 24px 26px;
    width: min(1120px, 90vw);
    max-width: 100%;
    max-height: 84vh;
    overflow-y: auto;
    box-shadow: 0 40px 110px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03);
    position: relative;
    animation: wf-picker-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.wf-picker-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: rgba(255, 235, 205, 0.6);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 5;
    transition: color 0.18s ease, background 0.18s ease;
}
.wf-picker-close:hover { color: #ff5a6a; background: rgba(255,90,106,.12); }
.wf-picker-eyebrow {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d8b878;
    text-align: center;
    margin-bottom: 4px;
}
.wf-picker-title {
    margin: 0 0 16px;
    text-align: center;
    font-family: "Crimson Pro", "Cormorant Garamond", "Georgia", serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.02em;
    line-height: 1.05;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2318;
    background: linear-gradient(180deg,
        #fff7e0 0%,
        #ead0a6 30%,
        #b88a4c 58%,
        var(--accent-amber) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wf-picker-sub {
    margin: 0 0 22px;
    color: rgba(255, 235, 205, 0.55);
    font-family: "Crimson Pro", "Cormorant Garamond", "Georgia", serif;
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.45;
}
.wf-picker-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
    gap: 14px;
}
.wf-picker-list > li { list-style: none; margin: 0; display: flex; }
.wf-picker-item {
    --wa: #7fb0e0; --waBg: rgba(127,176,224,.10); --waGlow: rgba(127,176,224,.42);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--waBg), rgba(255,255,255,.012));
    border: 1px solid #262c34;
    border-left: 4px solid var(--wa);
    border-radius: 12px;
    padding: 15px 16px 46px;
    cursor: pointer;
    text-align: left;
    color: #d6dde6;
    transition: transform 0.13s ease, box-shadow 0.13s ease, border-color 0.13s ease;
    overflow: hidden;
}
.wf-picker-item:hover { transform: translateY(-2px); border-color: var(--wa); box-shadow: 0 14px 32px rgba(0,0,0,.55), 0 0 0 1px var(--waGlow); }
.wf-picker-item::after { content: '▶  USE THIS'; position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; text-align: center;
    font-size: 1rem; font-weight: 800; letter-spacing: .06em; color: #06090f; background: var(--wa); opacity: 0; transition: opacity .12s ease; }
.wf-picker-item:hover::after { opacity: .95; }
.wf-picker-item-name {
    font-family: "Crimson Pro", "Cormorant Garamond", "Georgia", serif;
    font-weight: 700;
    font-size: 1.28rem;
    color: #eef3f8;
    line-height: 1.16;
}
.wf-picker-item-meta {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1rem;
    color: #8a94a2;
    letter-spacing: 0.03em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.wf-picker-item-meta code {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 1rem;
    color: #b9c2cd;
}
.wf-picker-item-workflow {
    color: var(--wa);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}
.wf-picker-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.wf-picker-search { font-size: 1.05rem; color: #eef3f8; background: #0a0e16; border: 1.5px solid #2f3a49; border-radius: 11px; padding: 12px 15px; outline: none; width: 100%; }
.wf-picker-search::placeholder { color: #6b7686; }
.wf-picker-search:focus { border-color: #5ad8ff; box-shadow: 0 0 0 3px rgba(90,216,255,.12); }
.wf-picker-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wf-chip { font-size: 1rem; font-weight: 600; color: #c2ccd8; background: rgba(255,255,255,.04); border: 1px solid #313c50; border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: all .12s ease; }
.wf-chip:hover { border-color: #5a6b82; color: #eaf1f8; }
.wf-chip.on { color: #071018; background: #7fe0ff; border-color: #7fe0ff; font-weight: 700; }
.wf-picker-count { margin-left: auto; font-size: 1rem; color: #9aa6b4; }
.wf-stage {
    width: min(640px, 90%);
    display: flex;
    flex-direction: column;
}
.wf-stage.is-parallel {
    width: min(1100px, 96%);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
}
.wf-stage.is-parallel .wf-step {
    width: auto;
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 360px;
}
.wf-add-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.wf-add-step-parallel {
    background: rgba(229, 162, 58, 0.04);
    border-style: dashed;
    border-color: color-mix(in srgb, var(--accent-amber) 30%, transparent);
}
.wf-add-step-parallel .wf-add-step-plus {
    font-size: 16px;
    letter-spacing: 0;
}
.wf-step--stance {
    border-left-color: var(--accent-amber);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent-amber) 8%, #1a1714) 0%,
        #0e0a08 100%);
}
.wf-step--stance:hover {
    border-color: var(--accent-amber);
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent-amber) 22%, transparent);
}
.wf-step--quorum {
    border-left-color: var(--accent-cyan);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent-cyan) 6%, #141a1d) 0%,
        #080d0f 100%);
}
.wf-step--quorum:hover {
    border-color: color-mix(in srgb, var(--accent-cyan) 55%, transparent);
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent-cyan) 18%, transparent);
}
.wf-step--plugin {
    border-left-color: #7899b0;
    background: linear-gradient(180deg,
        color-mix(in srgb, #7899b0 5%, #131618) 0%,
        #0a0c0e 100%);
    opacity: 0.75;
}
.wf-step--plugin:hover {
    opacity: 1;
    border-color: color-mix(in srgb, #7899b0 50%, transparent);
    box-shadow: 0 0 20px rgba(120, 153, 176, 0.14);
}
.wf-step--conditional {
    border-left-color: var(--accent-violet);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent-violet) 7%, #13101a) 0%,
        #0a0810 100%);
}
.wf-step--conditional:hover {
    border-color: color-mix(in srgb, var(--accent-violet) 55%, transparent);
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent-violet) 18%, transparent);
}
.wf-step--join {
    border-left-color: var(--accent-phosphor, #cbff4a);
    background: linear-gradient(180deg,
        color-mix(in srgb, #cbff4a 5%, #13180e) 0%,
        #090c06 100%);
}
.wf-step--join:hover {
    border-color: color-mix(in srgb, #cbff4a 55%, transparent);
    box-shadow: 0 0 24px color-mix(in srgb, #cbff4a 14%, transparent);
}
.wf-step--terminal {
    border-left-color: #e85565;
    background: linear-gradient(180deg,
        color-mix(in srgb, #e85565 7%, #1a0e10) 0%,
        #0e0608 100%);
}
.wf-step--terminal:hover {
    border-color: color-mix(in srgb, #e85565 55%, transparent);
    box-shadow: 0 0 24px color-mix(in srgb, #e85565 20%, transparent);
}
.wf-step-type-badge {
    display: inline-block;
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 2px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 235, 200, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.wf-step--stance   .wf-step-type-badge { color: var(--accent-amber); border-color: color-mix(in srgb, var(--accent-amber) 35%, transparent); }
.wf-step--quorum   .wf-step-type-badge { color: var(--accent-cyan);  border-color: color-mix(in srgb, var(--accent-cyan)  35%, transparent); }
.wf-step--plugin   .wf-step-type-badge { color: #7899b0;              border-color: rgba(120,153,176, 0.3); }
.wf-step--conditional .wf-step-type-badge { color: var(--accent-violet); border-color: color-mix(in srgb, var(--accent-violet) 35%, transparent); }
.wf-step--join     .wf-step-type-badge { color: var(--accent-phosphor, #cbff4a); border-color: color-mix(in srgb, #cbff4a 30%, transparent); }
.wf-step--terminal .wf-step-type-badge { color: #e85565;              border-color: rgba(232,85,101, 0.35); }
.wf-step-type-badge.is-persona {
    color: color-mix(in srgb, var(--accent-cyan) 70%, var(--accent-violet));
    border-color: color-mix(in srgb, var(--accent-cyan) 25%, transparent);
}
.wf-step-stance-label {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-amber) 30%, transparent);
    color: var(--text-bright);
    font-family: "Crimson Pro", "Cormorant Garamond", "Georgia", serif;
    font-size: 20px;
    font-style: italic;
    padding: 4px 0 6px;
    outline: none;
    transition: border-color 0.18s ease;
    box-sizing: border-box;
}
.wf-step-stance-label::placeholder {
    color: rgba(255, 235, 200, 0.3);
    font-style: italic;
}
.wf-step-stance-label:focus {
    border-bottom-color: var(--accent-amber);
}
.wf-step-condition {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid color-mix(in srgb, var(--accent-violet) 30%, transparent);
    border-radius: 2px;
    color: var(--text-primary);
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 12.5px;
    padding: 7px 10px;
    outline: none;
    transition: border-color 0.18s ease;
    box-sizing: border-box;
}
.wf-step-condition::placeholder {
    color: rgba(176, 102, 240, 0.35);
}
.wf-step-condition:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent-violet) 14%, transparent);
}
.wf-step-pending,
.wf-step-join-hint,
.wf-step-terminal-hint {
    display: block;
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 11.5px;
    letter-spacing: 0.05em;
    opacity: 0.55;
}
.wf-step--plugin   .wf-step-pending      { color: #7899b0; }
.wf-step-plugin-name { display: block; margin-top: 6px; font-weight: 650; font-size: 0.92rem; color: #cbe9ff;
    text-shadow: 0 0 10px rgba(120,200,255,0.35); }
.wf-step-body--plugin { cursor: pointer; }
.wf-step--join     .wf-step-join-hint    { color: var(--accent-phosphor, #cbff4a); }
.wf-step--terminal .wf-step-terminal-hint { color: #e85565; }
.wf-step-body--stance,
.wf-step-body--plugin,
.wf-step-body--join,
.wf-step-body--conditional,
.wf-step-body--terminal {
    cursor: default;
}
.wf-step-body--stance:hover,
.wf-step-body--plugin:hover,
.wf-step-body--join:hover,
.wf-step-body--conditional:hover,
.wf-step-body--terminal:hover {
    background: transparent;
}
.wf-warnings {
    width: min(640px, 90%);
    margin: 0 auto 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wf-warning {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--accent-amber);
    background: color-mix(in srgb, var(--accent-amber) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-amber) 28%, transparent);
    border-left: 3px solid var(--accent-amber);
    border-radius: 2px;
    padding: 7px 14px;
}
.wf-node-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    width: min(640px, 90%);
    align-self: center;
}
.wf-node-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 28px;
    min-width: 124px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    color: rgba(255, 235, 200, 0.55);
}
.wf-node-tile:hover {
    background: rgba(255, 255, 255, 0.07);
}
.wf-node-tile-glyph {
    font-size: 36px;
    line-height: 1;
}
.wf-node-tile-label {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.18em;
}
.wf-node-tile--stance {
    border-color: color-mix(in srgb, var(--accent-amber) 28%, transparent);
    color: var(--accent-amber);
}
.wf-node-tile--stance:hover {
    background: color-mix(in srgb, var(--accent-amber) 8%, transparent);
    border-color: color-mix(in srgb, var(--accent-amber) 55%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent-amber) 18%, transparent);
}
.wf-node-tile--quorum {
    border-color: color-mix(in srgb, var(--accent-cyan) 28%, transparent);
    color: var(--accent-cyan);
}
.wf-node-tile--quorum:hover {
    background: color-mix(in srgb, var(--accent-cyan) 8%, transparent);
    border-color: color-mix(in srgb, var(--accent-cyan) 55%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent-cyan) 18%, transparent);
}
.wf-node-tile--quorum.is-persona {
    color: color-mix(in srgb, var(--accent-cyan) 65%, var(--accent-violet));
    border-color: color-mix(in srgb, var(--accent-cyan) 22%, transparent);
}
.wf-node-tile--quorum.is-persona:hover {
    background: color-mix(in srgb, var(--accent-cyan) 6%, transparent);
}
.wf-node-tile--plugin {
    border-color: rgba(120, 153, 176, 0.25);
    color: #7899b0;
    opacity: 0.7;
}
.wf-node-tile--plugin:hover {
    opacity: 1;
    background: rgba(120, 153, 176, 0.07);
    border-color: rgba(120, 153, 176, 0.45);
    box-shadow: 0 0 14px rgba(120, 153, 176, 0.12);
}
.wf-node-tile--conditional {
    border-color: color-mix(in srgb, var(--accent-violet) 28%, transparent);
    color: var(--accent-violet);
}
.wf-node-tile--conditional:hover {
    background: color-mix(in srgb, var(--accent-violet) 8%, transparent);
    border-color: color-mix(in srgb, var(--accent-violet) 55%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent-violet) 18%, transparent);
}
.wf-node-tile--join {
    border-color: color-mix(in srgb, #cbff4a 25%, transparent);
    color: var(--accent-phosphor, #cbff4a);
}
.wf-node-tile--join:hover {
    background: color-mix(in srgb, #cbff4a 7%, transparent);
    border-color: color-mix(in srgb, #cbff4a 50%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, #cbff4a 14%, transparent);
}
.wf-node-tile--terminal {
    border-color: rgba(232, 85, 101, 0.28);
    color: #e85565;
}
.wf-node-tile--terminal:hover {
    background: rgba(232, 85, 101, 0.08);
    border-color: rgba(232, 85, 101, 0.55);
    box-shadow: 0 0 16px rgba(232, 85, 101, 0.18);
}
.wf-node-tile--saw { border-color: rgba(255, 197, 60, 0.30); color: #ffc53c; }
.wf-node-tile--saw:hover {
    background: rgba(255, 197, 60, 0.09);
    border-color: rgba(255, 197, 60, 0.58);
    box-shadow: 0 0 16px rgba(255, 197, 60, 0.20);
}
.wf-step-body--saw {
    border-color: rgba(255, 197, 60, 0.34);
    border-left: 6px solid #ffc53c;
    background: color-mix(in srgb, #ffc53c 6%, var(--bg-raised, #131a2a));
}
.wf-step-body--saw:hover {
    border-color: rgba(255, 197, 60, 0.7);
    background: color-mix(in srgb, #ffc53c 12%, var(--bg-raised, #131a2a));
}
.wf-step-saw-name { display: block; font-size: 1.05rem; font-weight: 800; color: #ffc53c; }
.wf-step-saw-watch {
    display: block; font-size: 1rem; line-height: 1.5; color: rgba(223, 233, 230, 0.85); margin-top: 4px;
}
.wf-step-saw-cost {
    display: block; font-size: 1rem; color: rgba(210, 224, 220, 0.6); margin-top: 6px;
}
.wf-picker-choice--saw { border-left: 6px solid #ffc53c; }
.wf-picker-choice-n { display: block; font-size: 1.1rem; font-weight: 800; color: #ffc53c; }
.wf-picker-choice-s { display: block; font-size: 1.02rem; line-height: 1.6; color: #dfe6f2; margin-top: 5px; }
.wf-picker-choice-m { display: block; font-size: 1rem; color: rgba(210, 224, 220, 0.6); margin-top: 7px; }
.wf-picker-empty { padding: 1.4rem 1.6rem; }
.wf-picker-empty .wf-picker-choice {
    display: inline-block; margin-top: 6px; cursor: pointer;
    font-size: 1rem; font-weight: 700; padding: 10px 20px; border-radius: 9px;
    color: #ffc53c; background: rgba(255, 197, 60, 0.12);
    border: 1px solid rgba(255, 197, 60, 0.45);
    transition: background .13s ease, border-color .13s ease, color .13s ease;
}
.wf-picker-empty .wf-picker-choice:hover {
    background: rgba(255, 197, 60, 0.26); border-color: #ffc53c; color: #fff3d6;
}
.wf-picker-empty-t { font-size: 1.15rem; font-weight: 700; color: #ffc53c; margin: 0 0 12px; }
.wf-picker-empty-s {
    font-size: 1.02rem; line-height: 1.7; color: rgba(223, 233, 230, 0.85); margin: 0 0 12px; max-width: 70ch;
}
.wf-picker-personas { list-style: none; padding: 0; margin: 0; }
.wf-persona-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 12px 12px 46px;
    background: linear-gradient(180deg, rgba(232,198,106,.05), rgba(255,255,255,.012));
    border: 1px solid #2c2619;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.wf-persona-item:hover { border-color: #e8c66a; box-shadow: 0 14px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(232,198,106,.4); transform: translateY(-2px); }
.wf-persona-item::after { content: '▶  USE THIS'; position: absolute; left: 0; right: 0; bottom: 0; padding: 9px; text-align: center;
    font-size: 1rem; font-weight: 800; letter-spacing: .06em; color: #06090f; background: #e8c66a; opacity: 0; transition: opacity .12s ease; }
.wf-persona-item:hover::after { opacity: .95; }
.wf-persona-portrait {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    background-size: cover;
    background-position: center 12%;
    border: 1px solid #2c2619;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.wf-persona-portrait-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
    background: var(--bg-input, #14100c);
}
.wf-persona-text { display: flex; flex-direction: column; gap: 4px; align-items: center; min-width: 0; }
.wf-persona-name {
    font-family: "Crimson Pro", "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fdf6e8;
    line-height: 1.15;
}
.wf-persona-meta code {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1rem;
    color: #9c8f76;
}
.wf-picker-empty {
    grid-column: 1 / -1;
    list-style: none;
    color: var(--text-muted);
    font-style: italic;
    padding: 18px;
    text-align: center;
}
.wf-step-persona-row { display: flex; align-items: center; gap: 16px; }
.wf-step-persona-portrait {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.wf-step-persona-portrait-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan, #4fc6e8);
    font-size: 26px;
    background: var(--bg-input);
}
.wf-del-yes {
    background: linear-gradient(180deg, #c83030, #9a2020); color: #fff; border: none;
    border-radius: 5px; padding: 4px 11px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.wf-del-yes:hover { filter: brightness(1.15); }
.wf-del-no {
    background: transparent; color: rgba(216, 205, 168, 0.7);
    border: 1px solid rgba(216, 205, 168, 0.3); border-radius: 5px; padding: 4px 11px;
    font-size: 11px; cursor: pointer;
}
.wf-del-no:hover { color: #e7dcb6; border-color: rgba(216, 205, 168, 0.6); }
.atelier-worktop .wf-editor-topbar { display: flex; }
.wf-standing { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.wf-standing-ready { border-color: rgba(143,217,143,.45); background: rgba(143,217,143,.06); }
.wf-standing-notyet { border-color: rgba(255,184,107,.5); background: rgba(255,184,107,.06); }
.wf-standing-h { font-size: 1.1rem; font-weight: 800; color: #fff; }
.wf-standing-ready .wf-standing-h { color: #8fd98f; }
.wf-standing-notyet .wf-standing-h { color: #ffb86b; }
.wf-standing-line { font-size: 1rem; color: #dfe6f2; line-height: 1.45; }
.wf-standing-line.err { color: #ff8a8a; }
.wf-standing-line.warn { color: #ffd479; }
.wf-standing-line.note { color: #9fb2c6; }
.wf-bench { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(127,224,255,.35); background: linear-gradient(180deg, rgba(127,224,255,.07), rgba(127,224,255,.02)); }
.wf-bench-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wf-bench-title { font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; color: #7fe0ff; }
.wf-bench-sub { font-size: 1rem; color: #b9c6d6; }
.wf-bench-ask { width: 100%; box-sizing: border-box; font-size: 1rem; padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(127,224,255,.4); background: rgba(255,255,255,.05); color: #eaf1f8; font-family: inherit; resize: vertical; }
.wf-bench-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wf-bench-live { font-size: 1rem; font-weight: 800; color: #06090f; background: #8fd98f; border: 1px solid #8fd98f; border-radius: 9px; padding: 9px 14px; cursor: pointer; font-family: inherit; }
.wf-bench-live:disabled { opacity: .55; cursor: default; }
.wf-bench-note { font-size: 1rem; color: #ffd479; }
.wf-bench-runs { display: flex; flex-direction: column; gap: 5px; }
.wf-bench-run { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; font-size: 1rem; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.wf-bench-run-state { font-weight: 800; color: #7fe0ff; }
.wf-step--workflow { border-left-color: var(--accent-amber, #e5a23a); }
.wf-step-body--workflow {
    width: 100%;
    cursor: pointer;
    text-align: left;
    background: linear-gradient(90deg, rgba(255, 158, 61, .12), rgba(0, 0, 0, .4));
    border: none;
}
.wf-step-body--workflow:hover { background: linear-gradient(90deg, rgba(255, 158, 61, .2), rgba(0, 0, 0, .4)); }
.wf-step--workflow .wf-step-type-badge { border-color: rgba(255, 158, 61, .6); color: var(--accent-amber, #e5a23a); }
.wf-step-inner { margin-top: 0.6rem; }
.wf-sig { display: inline-flex; align-items: center; gap: 0; }
.wf-sig-node { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 158, 61, .75); flex: 0 0 auto; }
.wf-sig-arm { width: 11px; height: 1.5px; background: rgba(255, 158, 61, .45); flex: 0 0 auto; }
.wf-sig-quorum   { background: #123040; border-color: #6ea6c9; width: 11px; height: 11px; }
.wf-sig-workflow { background: rgba(255,158,61,.5); }
.wf-sig-plugin   { border-radius: 2px; background: #7a4a12; }
.wf-sig-terminal { background: var(--accent-amber, #e5a23a); }
.wf-sig-conditional { border-radius: 1px; transform: rotate(45deg); }
.wf-sig-join     { border-radius: 1px; transform: rotate(45deg); border-color: #c9d96e; }
.wf-sig-stance   { background: transparent; }
.wf-node-tile--workflow .wf-node-tile-glyph { color: var(--accent-amber, #e5a23a); }
.wf-picker-search {
    width: 100%;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(255, 158, 61, .3);
    border-radius: 3px;
    background: rgba(0, 0, 0, .45);
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 1.1rem;
    color: #ffe9c2;
}
.wf-picker-search:focus { outline: none; border-color: rgba(255, 200, 120, .8); }
.wf-picker-traits { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.9rem; }
.wf-trait {
    padding: 4px 11px;
    border: 1px solid rgba(255, 158, 61, .35);
    border-radius: 999px;
    background: rgba(255, 158, 61, .05);
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1rem;
    color: rgba(255, 220, 170, .85);
    cursor: pointer;
    transition: background .13s ease, border-color .13s ease;
}
.wf-trait:hover:not(:disabled) { background: rgba(255, 158, 61, .18); }
.wf-trait.is-on { background: rgba(255, 158, 61, .32); border-color: #e5a23a; color: #fff1d6; font-weight: 700; }
.wf-trait.is-dead { opacity: .22; cursor: default; }
.wf-trait-n { opacity: .55; margin-left: 4px; font-size: .85rem; }
.wf-picker-wf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wf-flow {
    position: relative;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.wf-flow-vein {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: var(--accent-amber, #e5a23a);
    transition: background .15s ease;
}
.wf-flow-vein::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 0;
    height: 0;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--accent-amber, #e5a23a);
}
.wf-flow:hover .wf-flow-vein { background: #ffca6e; }
.wf-flow-capsule {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #ffca6e;
    box-shadow: 0 0 8px rgba(255, 202, 110, .8);
    animation: wf-travel 3.4s cubic-bezier(.45, 0, .55, 1) infinite;
    z-index: 2;
}
@media (prefers-reduced-motion: reduce) { .wf-flow-capsule { animation: none; } }
.wf-flow-split {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    border: 1.6px solid var(--accent-amber, #e5a23a);
    background: rgba(11, 16, 23, .75);
    color: var(--accent-amber, #e5a23a);
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .16s ease, background .13s ease;
    z-index: 1;
}
.wf-flow:hover .wf-flow-split { opacity: 1; }
.wf-flow-split:hover { background: rgba(255, 158, 61, .3); }
.pf { margin: 26px 0 34px; }
.wf { margin: 26px 0 34px; }
.sf { margin: 26px 0 34px; }
.sf-verdict { padding: 20px 22px; border-radius: 14px; margin-bottom: 26px; border: 1px solid; }
.sf-verdict-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sf-regime { font-size: 2rem; font-weight: 800; letter-spacing: .03em; line-height: 1; }
.sf-permit { font-size: 1.02rem; letter-spacing: .06em; padding: 4px 11px; border-radius: 999px; border: 1px solid currentColor; }
.sf-permit.is-ok { color: rgba(210,224,220,.72); }
.sf-permit.is-not { color: #ff8f7a; }
.sf-optimal { background: rgba(94,230,168,.08);  border-color: rgba(94,230,168,.38); }
.sf-optimal .sf-regime { color: #5ee6a8; }
.sf-pain    { background: rgba(232,198,106,.08); border-color: rgba(232,198,106,.4); }
.sf-pain .sf-regime { color: #e8c66a; }
.sf-suffering { background: rgba(255,143,122,.09); border-color: rgba(255,143,122,.42); }
.sf-suffering .sf-regime { color: #ff8f7a; }
.sf-torture { background: rgba(224,68,60,.14); border-color: rgba(224,68,60,.6); }
.sf-torture .sf-regime { color: #ff5a4d; }
.sf-notread { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.14); }
.sf-notread .sf-regime { color: rgba(210,224,220,.75); }
.sf-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 15px; }
.sf-fig { display: flex; flex-direction: column; gap: 3px; }
.sf-fig b { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #eef6f4; }
.sf-fig span { font-size: 1rem; line-height: 1.4; color: rgba(210,224,220,.7); }
.sf-why { margin: 0; max-width: 84ch; font-size: 1.05rem; line-height: 1.62; color: #e8efec; }
.sf-turns { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.sf-turn { margin: 0 0 8px; max-width: 84ch; font-size: 1.01rem; line-height: 1.55; font-style: italic; color: rgba(232,239,236,.88); }
.sf-bench {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px; border-radius: 13px; margin-bottom: 22px;
  background: rgba(255,255,255,.026); border: 1px solid rgba(255,255,255,.085);
}
.sf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.sf-cell { display: flex; flex-direction: column; gap: 5px; }
.sf-area { min-height: 58px; line-height: 1.55; resize: vertical; font-family: inherit; }
.sf-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.sf-strip-col { padding: 13px 15px; border-radius: 11px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.075); }
.sf-strip-k { font-size: 1rem; letter-spacing: .09em; color: rgba(210,224,220,.58); }
.sf-strip-v { margin: 6px 0 0; font-size: 1.01rem; line-height: 1.55; color: rgba(210,224,220,.84); }
.sf-red { color: #ff5a4d; }
.sf-said {
  margin: 0; padding: 14px 18px; max-width: 84ch;
  border-left: 3px solid color-mix(in srgb, var(--rc) 55%, transparent);
  background: rgba(255,255,255,.028); border-radius: 0 10px 10px 0;
}
.sf-said p { margin: 0 0 9px; font-size: 1.04rem; line-height: 1.6; color: #e8efec; font-style: italic; }
.sf-said cite { font-size: 1rem; font-style: normal; color: rgba(210,224,220,.6); }
.wf-say { margin: 0 0 16px; max-width: 84ch; font-size: 1.02rem; line-height: 1.6; color: rgba(210,224,220,.78); }
.wf-said {
  margin: 0 0 22px; padding: 14px 18px; max-width: 84ch;
  border-left: 3px solid color-mix(in srgb, var(--rc) 55%, transparent);
  background: rgba(255,255,255,.028); border-radius: 0 10px 10px 0;
}
.wf-said p { margin: 0 0 9px; font-size: 1.05rem; line-height: 1.62; color: #e8efec; font-style: italic; }
.wf-said cite { font-size: 1rem; font-style: normal; color: rgba(210,224,220,.6); }
.wf-input {
  margin: 0 0 24px; padding: 15px 18px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09);
  border-left: 4px solid #e8c66a;
}
.wf-input.is-live { border-left-color: #5ee6a8; }
.wf-input-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.wf-input-k { font-size: 1rem; letter-spacing: .09em; color: rgba(210,224,220,.66); }
.wf-input-v { font-size: 1.25rem; font-weight: 700; color: #e8c66a; }
.wf-input.is-live .wf-input-v { color: #5ee6a8; }
.wf-input-s { margin: 0; max-width: 84ch; font-size: 1.02rem; line-height: 1.6; color: rgba(210,224,220,.8); }
.wf-bench {
  display: flex; flex-direction: column; gap: 9px;
  padding: 18px 20px; border-radius: 13px; margin-bottom: 20px;
  background: rgba(255,255,255,.026); border: 1px solid rgba(255,255,255,.085);
}
.wf-wide { width: 100%; max-width: 520px; }
.wf-area { min-height: 74px; line-height: 1.55; resize: vertical; font-family: inherit; }
.wf-check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 4px; cursor: pointer; }
.wf-check input { margin-top: 4px; width: 17px; height: 17px; flex: none; }
.wf-check span { font-size: 1.02rem; line-height: 1.5; color: rgba(210,224,220,.84); max-width: 74ch; }
.wf-verdict { padding: 17px 20px; border-radius: 13px; margin-bottom: 26px; border: 1px solid; }
.wf-verdict-sig { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; margin-bottom: 9px; }
.wf-verdict-why { margin: 0; max-width: 84ch; font-size: 1.05rem; line-height: 1.62; color: #e8efec; }
.wf-wise    { background: rgba(94,230,168,.09);  border-color: rgba(94,230,168,.4); }
.wf-wise .wf-verdict-sig { color: #5ee6a8; }
.wf-notwise { background: rgba(224,104,95,.1);   border-color: rgba(224,104,95,.42); }
.wf-notwise .wf-verdict-sig { color: #ff8f7a; }
.wf-refused { background: rgba(232,198,106,.09); border-color: rgba(232,198,106,.4); }
.wf-refused .wf-verdict-sig { color: #e8c66a; }
.wf-turns { margin-top: 13px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.wf-turns-k { font-size: 1rem; letter-spacing: .08em; color: rgba(210,224,220,.58); }
.wf-turn { margin: 7px 0 0; max-width: 84ch; font-size: 1.01rem; line-height: 1.55; font-style: italic; color: rgba(232,239,236,.9); }
.wf-cannot, .wf-owed { margin: 0 0 22px; padding-left: 24px; max-width: 88ch; }
.wf-cannot li, .wf-owed li { font-size: 1.03rem; line-height: 1.62; margin-bottom: 9px; color: rgba(210,224,220,.85); }
.wf-cannot li::marker { color: #ff8f7a; }
.wf-owed li::marker { color: #e8c66a; }
.pf-lede {
  margin: 0 0 20px; max-width: 84ch;
  font-size: 1.06rem; line-height: 1.6; color: rgba(210,224,220,.86);
}
.pf-read {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.pf-fig {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.032);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 4px solid var(--rc);
}
.pf-fig b {
  font-size: 2.2rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--rc);
}
.pf-fig span { font-size: 1rem; line-height: 1.45; color: rgba(210,224,220,.74); }
.pf-fig-drift {
  grid-column: 1 / -1;
  flex-direction: row; align-items: baseline; gap: 14px;
  border-left-color: #ff6f57; background: rgba(255,111,87,.07);
}
.pf-fig-drift b { color: #ff8f7a; }
.pf-fig-drift span { color: #ffc7ba; }
.pf-bar {
  height: 14px; border-radius: 999px; overflow: hidden;
  background: rgba(255,111,87,.22);
  border: 1px solid rgba(255,255,255,.10);
}
.pf-bar-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--rc), color-mix(in srgb, var(--rc) 55%, #ffffff));
}
.pf-bar-say {
  margin: 10px 0 26px; max-width: 84ch;
  font-size: 1rem; line-height: 1.55; color: rgba(210,224,220,.78);
}
.pf-bar-say b { color: var(--rc); }
.pf-h {
  margin: 26px 0 6px; font-size: 1.15rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--rc);
}
.pf-h-drift { color: #ff8f7a; }
.pf-h-say { margin: 0 0 14px; font-size: 1rem; color: rgba(210,224,220,.7); }
.pf-none, .pf-empty, .pf-more {
  margin: 8px 0 0; max-width: 84ch;
  font-size: 1rem; line-height: 1.55; font-style: italic; color: rgba(210,224,220,.7);
}
.pf-more { color: #e6c778; }
.pf-rung {
  display: inline-block; padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  font-size: 1rem; font-weight: 800; letter-spacing: .1em;
  color: #0c1018; background: var(--rc);
}
.pf-rung-s, .pf-rung-strategy { background: color-mix(in srgb, var(--rc) 62%, #0c1018); color: #eef6f4; }
.pf-rung-p, .pf-rung-plan { background: color-mix(in srgb, var(--rc) 34%, #0c1018); color: #cfe0dc; }
.pf-rung-goal { background: var(--rc); color: #0c1018; }
.pf-chain { display: flex; flex-direction: column; gap: 10px; }
.pf-goal {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.026);
}
.pf-goal.is-open { border-color: color-mix(in srgb, var(--rc) 45%, transparent); }
.pf-goal-head {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center; justify-items: start; gap: 12px;
  width: 100%; padding: 13px 15px; cursor: pointer; text-align: left;
  background: none; border: 0; color: inherit; font: inherit;
}
.pf-goal-head:hover { background: rgba(255,255,255,.03); }
.pf-goal-t { font-size: 1.04rem; line-height: 1.45; font-weight: 600; color: #eef6f4; }
.pf-goal-n {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 1rem; color: rgba(210,224,220,.66); font-variant-numeric: tabular-nums;
}
.pf-chev { color: rgba(210,224,220,.55); font-size: 1rem; justify-self: end; }
.pf-goal-body { padding: 4px 15px 16px; display: flex; flex-direction: column; gap: 12px; }
.pf-id { font-size: 1rem; }
.pf-strat {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(0,0,0,.24);
  border-left: 3px solid color-mix(in srgb, var(--rc) 55%, transparent);
}
.pf-strat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-strat-head b { font-size: 1.04rem; color: #eef6f4; }
.pf-intent { margin: 8px 0 0; font-size: 1rem; line-height: 1.5; color: rgba(210,224,220,.76); }
.pf-plan {
  margin-top: 10px; padding: 10px 12px; border-radius: 9px;
  background: rgba(255,255,255,.028);
  border-left: 3px solid color-mix(in srgb, var(--rc) 30%, transparent);
}
.pf-plan-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pf-plan-head b { font-size: 1rem; color: #eef6f4; }
.pf-purpose { margin: 7px 0 0; font-size: 1rem; line-height: 1.5; color: rgba(210,224,220,.72); }
.pf-state {
  padding: 2px 9px; border-radius: 999px; font-size: 1rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.12); color: rgba(210,224,220,.8);
}
.pf-state-concluded { color: #86dfa8; border-color: rgba(95,217,140,.4); }
.pf-state-active { color: #93b6f5; border-color: rgba(90,140,240,.4); }
.pf-warn { font-size: 1rem; font-style: normal; font-weight: 700; color: #ff8f7a; }
.pf-ok { font-size: 1rem; color: rgba(134,223,168,.9); }
.pf-drift-sum { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 18px; }
.pf-ds {
  padding: 15px 17px; border-radius: 12px;
  background: rgba(255,111,87,.07); border: 1px solid rgba(255,111,87,.26);
}
.pf-ds-head {
  display: grid; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 14px;
}
.pf-ds b {
  font-size: 2rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; color: #ff8f7a;
}
.pf-ds span { font-size: 1.04rem; line-height: 1.5; color: #ffc7ba; max-width: 84ch; }
.pf-names { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.pf-name {
  padding: 4px 11px; border-radius: 999px;
  font-size: 1rem; line-height: 1.35; color: rgba(255,214,204,.9);
  background: rgba(0,0,0,.26); border: 1px solid rgba(255,111,87,.28);
}
.pf-name-more {
  background: none; border-style: dashed; color: #e6c778; border-color: rgba(230,199,120,.45);
}
.pf-drift { display: flex; flex-direction: column; gap: 7px; }
.pf-adrift {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 9px;
  background: rgba(255,255,255,.026);
  border-left: 3px solid rgba(255,111,87,.55);
}
.pf-adrift-t { font-size: 1rem; line-height: 1.45; color: #eef6f4; }
.pf-adrift-w {
  font-size: 1rem; line-height: 1.4; color: rgba(255,199,186,.85);
  text-align: right; max-width: 42ch;
}
@media (max-width: 900px) {
  .pf-adrift { grid-template-columns: auto minmax(0,1fr); }
  .pf-adrift-w { grid-column: 1 / -1; text-align: left; max-width: none; }
  .pf-goal-head { grid-template-columns: auto minmax(0,1fr) auto; }
  .pf-goal-n { grid-column: 1 / -1; }
}
.cf-stratum-eyebrow {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 235, 205, 0.75);
    text-shadow: 0 0 30px rgba(220, 180, 100, 0.25);
}
.cf-stratum-eyebrow::before,
.cf-stratum-eyebrow::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--accent-amber) 28%, transparent) 40%,
        color-mix(in srgb, var(--accent-amber) 28%, transparent) 60%,
        transparent 100%);
}
.cf-stratum-eyebrow-icon {
    color: var(--accent-amber);
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-amber) 45%, transparent));
}
.cf-word-atelier { color: #d4af37; text-shadow: 0 0 14px rgba(212,175,55,.55), 0 0 30px rgba(212,175,55,.25); }
.cf-word-green {
    animation:
        green-blaze 2.2s ease-out 1 both,
        throb-green 3.8s ease-in-out 2.2s infinite;
}
.cf-word-blue {
    animation:
        blue-flicker-startup 4.6s ease-out 0.4s 1 both,
        throb-blue           4.2s ease-in-out 5.0s infinite;
}
.cf-word-pink {
    animation:
        pink-single-flicker 1.4s ease-out 0s 1 both,
        throb-pink          3.5s ease-in-out 1.4s infinite;
}
.cf-word-sep {
    color: rgba(255, 238, 212, 0.68);
    font-weight: 500;
    letter-spacing: 0.06em;
}
.ps-meta-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(220, 200, 175, 0.60);
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    margin-top: 6px;
}
.ps-meta-optional {
    color: rgba(220, 200, 175, 0.35);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1px;
    margin-left: 6px;
}
.ps-meta-input {
    background: rgba(0, 0, 0, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 5px;
    color: var(--text-bright);
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color 0.14s, box-shadow 0.14s;
}
.ps-meta-input:focus {
    outline: none;
    border-color: rgba(255, 200, 130, 0.65);
    box-shadow: 0 0 0 1px rgba(255, 200, 130, 0.22);
}
.ps-meta-input::placeholder { color: rgba(220, 200, 175, 0.30); }
.ps-seal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(180deg,
        rgba(255, 180, 110, 0.18) 0%,
        rgba(160,  80,  30, 0.22) 100%);
    border: 1px solid rgba(255, 180, 110, 0.55);
    border-radius: 6px;
    color: rgba(255, 240, 210, 0.98);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.14s, border-color 0.14s, box-shadow 0.14s, transform 0.10s;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 4px 14px rgba(0, 0, 0, 0.40),
        0 0 22px rgba(255, 120, 50, 0.18);
}
.ps-seal:hover {
    background: linear-gradient(180deg,
        rgba(255, 200, 130, 0.28) 0%,
        rgba(180,  90,  35, 0.30) 100%);
    border-color: rgba(255, 200, 130, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(255, 120, 50, 0.32);
}
.ps-seal:active { transform: translateY(1px); }
.ps-seal-mark {
    font-size: 14px;
    filter: drop-shadow(0 0 8px rgba(255, 200, 130, 0.55));
}
.ps-skin-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}
.ps-skin-sub code {
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 11px;
    color: var(--accent-cyan);
    background: rgba(79, 198, 232, 0.08);
    padding: 1px 4px;
    border-radius: 3px;
}
.machinery-title { margin-top: 0; margin-bottom: 18px; font-size: 23px; }
.machinery-title .cf-word-green, .machinery-title .cf-word-pink { font-size: 2.3rem; }
.mtg-crown .cf-word-pink { filter: drop-shadow(0 0 14px rgba(255,157,214,.5)); }
.machinery-title .cf-word-sep { text-transform: none; font-weight: 400; font-size: 0.6em; opacity: 0.85; letter-spacing: 0.05em; }
.ps-page .ps-skin-sub { font-size: 1.08rem; }
.ps-page .ps-meta-label { font-size: 1rem; }
.ps-page .ps-meta-input { font-size: 1.05rem; }
.ps-page .ps-meta-optional { font-size: 1rem; }
.ps-page .ps-seal-text { font-size: 1.05rem; }
.ps-page .ps-meta-input { padding: 12px 16px; font-size: 1.15rem; }
.cg-eng-tabs {
    font-size: 16px;
    display: flex; gap: 14px; flex-wrap: wrap;
    margin: 4px 26px 16px; padding: 0;
}
.cg-eng-tab {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 14px;
    padding: 16px 30px; cursor: pointer;
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1.18em; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase; color: #98a2cf;
    background: linear-gradient(180deg, rgba(20, 25, 54, 0.95), rgba(12, 16, 38, 0.95));
    border: 1px solid rgba(140, 150, 210, 0.2); border-radius: 16px;
    transition: transform .15s ease, box-shadow .22s ease, border-color .22s ease,
                color .22s ease, text-shadow .22s ease;
}
.cg-eng-tab::after {
    content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, transparent, var(--tabc), transparent);
    opacity: 0.28; transition: opacity .22s ease, box-shadow .22s ease;
}
.cg-eng-tab:hover { transform: translateY(-2px); color: #eef2ff; }
.cg-eng-tab:hover::after { opacity: 0.65; }
.cg-eng-tab-glyph { font-size: 1.45em; line-height: 1; }
.cg-eng-tab-op    { --tabc: #8FFFD8; }
.cg-eng-tab-usi   { --tabc: #D9A6FF; }
.cg-eng-tab-con   { --tabc: #FFDE8A; }
.cg-eng-tab .cg-eng-tab-glyph {
    color: var(--tabc);
    filter: drop-shadow(0 0 7px color-mix(in srgb, var(--tabc) 70%, transparent))
            drop-shadow(0 0 18px color-mix(in srgb, var(--tabc) 35%, transparent));
}
.cg-eng-tab.on {
    color: #ffffff;
    text-shadow: 0 0 10px color-mix(in srgb, var(--tabc) 85%, transparent),
                 0 0 26px color-mix(in srgb, var(--tabc) 50%, transparent),
                 0 0 48px color-mix(in srgb, var(--tabc) 25%, transparent);
    border-color: color-mix(in srgb, var(--tabc) 70%, transparent);
    box-shadow: 0 0 28px color-mix(in srgb, var(--tabc) 32%, transparent),
                0 6px 22px rgba(0, 0, 0, 0.5),
                inset 0 0 32px color-mix(in srgb, var(--tabc) 13%, transparent);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--tabc) 16%, #161b3a),
        color-mix(in srgb, var(--tabc) 6%, #0c102a));
}
.cg-eng-tab.on::after {
    opacity: 1;
    box-shadow: 0 0 14px var(--tabc), 0 0 30px color-mix(in srgb, var(--tabc) 55%, transparent);
}
.pz-eng-stage {
    font-size: 18px; display: block;
    width: 100%; min-width: 0; max-width: none; margin: 0;
    box-sizing: border-box;
    padding: 34px 38px 40px;
    background: rgba(13, 16, 34, 0.86);
    border: 1px solid rgba(140, 150, 210, 0.2);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 0 80px rgba(120, 140, 220, 0.03);
}
.pz-eng-stage .ps-skin-sub { margin: 0 0 22px; font-size: 1.02em; }
.pz-eng-stage .ps-meta-label, .pz-eng-stage .ps-meta-optional, .pz-eng-stage .ps-meta-input, .pz-eng-stage .ps-upload-btn, .pz-eng-stage .ps-skin-sub, .pz-eng-stage .ps-upload-error { font-size: 1em; }
.pz-eng-tabs {
    margin: 18px 0 22px; font-size: inherit; gap: 12px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pz-eng-tabs .cg-eng-tab {
    padding: 15px 20px; font-size: 1em; letter-spacing: 0.08em;
    justify-content: center; text-align: center;
}
.ps-featured-name .ps-meta-input { width: 100%; box-sizing: border-box; }
.pz-eng-pick {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5em, 1fr));
    gap: 14px; margin: 0 0 26px; min-width: 0;
}
.pz-eng-cell {
    min-height: 9.5em; padding: 22px 12px 20px; cursor: pointer;
    font: inherit; text-align: center;
}
.pz-eng-cell.is-picked {
    filter: drop-shadow(0 0 22px color-mix(in srgb, var(--chc) 65%, transparent));
}
.pz-eng-worn {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 0.8em; letter-spacing: 0.08em; color: var(--chc); opacity: 0.9;
}
.pz-eng-head {
    display: flex; align-items: center; gap: 18px; margin: 0 0 22px; width: 100%;
}
.pz-eng-head-name {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1.4em; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--chc);
    text-shadow: 0 0 14px color-mix(in srgb, var(--chc) 55%, transparent);
}
.pz-eng-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-eng-tabs, .pz-eng-form, .pz-eng-controls { min-width: 0; }
.pz-eng-chip {
    --chc: #8FFFD8;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 13px 20px; cursor: pointer;
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1.02em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: #b6bee6;
    background: linear-gradient(180deg, rgba(18, 23, 46, 0.95), rgba(9, 12, 28, 0.95));
    border: 1px solid color-mix(in srgb, var(--chc) 28%, transparent);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform .14s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}
.pz-eng-chip:hover {
    transform: translateY(-2px); color: #ffffff;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--chc) 18%, rgba(18, 23, 46, 0.95)), rgba(9, 12, 28, 0.95));
    box-shadow: 0 0 16px color-mix(in srgb, var(--chc) 35%, transparent);
}
.pz-eng-chip.on {
    color: #ffffff;
    text-shadow: 0 0 10px color-mix(in srgb, var(--chc) 70%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--chc) 34%, transparent),
                inset 0 0 18px color-mix(in srgb, var(--chc) 12%, transparent);
    border-color: color-mix(in srgb, var(--chc) 72%, transparent);
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--chc) 16%, #161b3a), color-mix(in srgb, var(--chc) 5%, #0c102a));
}
.pz-eng-chip-dot {
    width: 0.95em; height: 0.95em; border-radius: 50%;
    background: var(--chc);
    box-shadow: 0 0 8px color-mix(in srgb, var(--chc) 60%, transparent);
}
.pz-eng-chip-dressed { color: var(--chc); font-size: 1em; }
.pz-eng-form {
    display: grid; grid-template-columns: minmax(19em, 24em) 1fr;
    gap: 26px; align-items: start;
}
@media (max-width: 900px) { .pz-eng-form { grid-template-columns: 1fr; } }
.pz-eng-preview { align-self: start; }
.pz-eng-controls {
    display: flex; flex-direction: column; gap: 16px;
    padding: 18px 20px;
    background: rgba(18, 22, 47, 0.85);
    border: 1px solid rgba(140, 150, 210, 0.2); border-radius: 16px;
}
.pz-eng-row { display: flex; flex-direction: column; gap: 8px; }
.pz-eng-facerow, .pz-eng-colorrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pz-eng-color {
    width: 3.2em; height: 2.4em; padding: 2px;
    background: #10142e; border: 1px solid rgba(140, 150, 210, 0.35);
    border-radius: 8px; cursor: pointer;
}
.pz-eng-hex { max-width: 9.5em; }
.pz-eng-free { min-width: 18em; flex: 1; }
.pz-eng-clear {
    padding: 8px 14px; cursor: pointer; font-size: 1em;
    color: #b9c1e8; background: rgba(24, 29, 60, 0.9);
    border: 1px solid rgba(140, 150, 210, 0.3); border-radius: 8px;
}
.pz-eng-clear:hover { color: #f0f3ff; }
.pz-eng-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.pz-eng-seal {
    font-family: var(--mono, "Cascadia Mono", Consolas, monospace);
    font-size: 1em; letter-spacing: 0.1em; padding: 11px 22px;
}
.pz-eng-reset {
    padding: 10px 18px; cursor: pointer; font-size: 1em; font-weight: 700;
    letter-spacing: 0.06em; color: #ffd3de;
    background: rgba(70, 26, 40, 0.75);
    border: 1px solid rgba(255, 120, 150, 0.4); border-radius: 10px;
}
.pz-eng-reset:hover { box-shadow: 0 0 12px rgba(255, 94, 126, 0.3); }
.pz-eng-toast { font-size: 1em; color: #8FFFD8; }
.mtg-crown .cf-word-pink { font-size: 2.3rem; letter-spacing: .42em; }
.mtg-sweep .cf-word-pink { animation: mtgSweepIn 1.2s cubic-bezier(.22,.61,.36,1) 0s 1 both,
  throb-pink 3.5s ease-in-out 1.2s infinite; }
.mtg-crown .cf-word-sep { font-size: 1.25rem; letter-spacing: .3em; opacity: .8; }
.mtg-crown .cf-stratum-eyebrow-icon { font-size: 1.9rem; }
.pz-eng-open {
    margin-left: auto; background: rgba(98,196,232,0.14); color: #bfeaf2;
    border: 1px solid rgba(98,196,232,0.42); border-radius: 8px;
    padding: 7px 15px; cursor: pointer; font-size: 0.98rem; font-weight: 700;
}
.pz-eng-open:hover { background: rgba(98,196,232,0.24); color: #eaf8ff; }
.pz-shape-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pz-shape-chip {
    width: 62px; height: 62px; padding: 0; cursor: pointer; position: relative;
    background: rgba(255,255,255,0.06); border: 0; clip-path: var(--cell);
    display: flex; align-items: center; justify-content: center;
    color: rgba(238,241,255,0.62); font-size: 1rem; font-weight: 700;
    transition: background 140ms ease, color 140ms ease;
}
.pz-shape-chip:hover { background: rgba(255,255,255,0.13); color: #eef1ff; }
.pz-shape-chip.on { background: var(--chc, #8FFFD8); color: #0b1020; }
.pz-shape-name { font-size: 1rem; font-weight: 700; color: #cfd6ff; letter-spacing: 0.02em; }
.skn-container { --bg-raised: #232742; --bg-surface: #1b1e30; --border: #2d3150; --text-bright: #f0f3ff; --text-primary: #dde2f3; --text: #dde2f3; --text-secondary: #9aa1c1; --text-muted: #6b7299; --accent-gold: #e8c66a; --chtext: #dfe5ff; --cell: polygon(21% 0%, 79% 0%, 100% 34%, 100% 66%, 79% 100%, 21% 100%, 0% 66%, 0% 34%); }
.ev { --ev: #ffb020; --ev-soft: rgba(255,176,32,.12); --ink: #eef3f1; --dim: rgba(214,226,222,.74);
      --good: #5ee6a8; --gold: #e8c66a; --coral: #ff8f7a; --sky: #7cc4ff; --violet: #c49bff; --teal: #4fd6c8;
      margin: 22px 0 34px; color: var(--ink); font-size: 16px; }
.ev-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ev-tab { font: inherit; font-size: 16.8px; font-weight: 700; letter-spacing: .02em; padding: 10px 18px; border-radius: 12px;
          border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.03); color: var(--dim); cursor: pointer;
          transition: box-shadow .18s, background .18s, color .18s; }
.ev-tab b { margin-left: 8px; font-variant-numeric: tabular-nums; opacity: .85; }
.ev-tab-shelf { --c: var(--ev); } .ev-tab-take { --c: var(--teal); } .ev-tab-ask { --c: var(--violet); } .ev-tab-req { --c: var(--coral); }
.ev-tab:hover { color: var(--c); border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
.ev-tab.is-on { color: #10131a; background: var(--c); border-color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); }
.ev-cmd { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; margin: 0 0 16px; padding: 14px 16px;
          border-radius: 13px; border: 1px solid rgba(143,220,132,.45); background: rgba(143,220,132,.07); }
.ev-cmd div { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 16.3px; color: var(--dim); }
.ev-cmd b { color: var(--ink); }
.ev-cmd code { grid-column: 1 / -1; grid-row: 2; font-size: 16px; line-height: 1.5; padding: 10px 12px; border-radius: 9px;
               background: #0d1220; color: #d9f3d4; overflow-wrap: anywhere; user-select: all; }
.ev-cmd .ev-x { grid-column: 2; grid-row: 1; }
.ev-said-line { margin: 0 0 16px; padding: 11px 15px; border-radius: 11px; font-size: 16.3px; line-height: 1.5;
                background: rgba(94,230,168,.08); border: 1px solid rgba(94,230,168,.35); color: #dff7ec; }
.ev-said-line.is-bad { background: rgba(255,143,122,.09); border-color: rgba(255,143,122,.45); color: #ffe1da; }
.ev-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ev-count { font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: 13px;
            border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: var(--ink); cursor: pointer; transition: box-shadow .18s; }
.ev-count b { font-size: 27.2px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--c); }
.ev-count span { font-size: 16px; color: var(--dim); }
.ev-count:hover, .ev-count.is-on { border-color: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 28%, transparent); }
.ev-standing { --c: var(--good); } .ev-held { --c: var(--gold); } .ev-withdrawn { --c: rgba(214,226,222,.6); } .ev-linked { --c: var(--ev); }
.ev-search { width: 100%; box-sizing: border-box; margin-bottom: 16px; }
.ev-panes { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .ev-panes { grid-template-columns: 1fr; } }
.ev-list { display: flex; flex-direction: column; gap: 10px; }
.ev-card { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 7px; padding: 14px 16px; border-radius: 14px;
           border: 1px solid rgba(255,255,255,.1); border-left: 4px solid var(--st, var(--ev)); background: rgba(255,255,255,.028);
           color: var(--ink); cursor: pointer; transition: box-shadow .18s, border-color .18s, transform .12s; }
.ev-card:hover { box-shadow: 0 0 20px rgba(255,176,32,.22); border-color: rgba(255,176,32,.5); }
.ev-card.is-sel { background: var(--ev-soft); border-color: var(--ev); box-shadow: 0 0 24px rgba(255,176,32,.3); }
.ev-card-top { display: flex; justify-content: space-between; gap: 12px; }
.ev-state { font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st, var(--ev)); }
.ev-id { font-size: 16px; font-family: ui-monospace, Consolas, monospace; color: var(--dim); }
.ev-covers { font-size: 17px; line-height: 1.45; color: var(--ink); }
.ev-by { font-size: 16px; color: var(--dim); }
.ev-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-st-standing { --st: var(--good); } .ev-st-held { --st: var(--gold); } .ev-st-withdrawn { --st: rgba(214,226,222,.55); } .ev-st-cut-requested { --st: var(--coral); }
.ev-rq-open { --st: var(--coral); } .ev-rq-satisfied { --st: var(--good); } .ev-rq-closed { --st: rgba(214,226,222,.55); }
.ev-req-list .ev-card { cursor: default; }
.ev-kind { font-size: 16px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--k); color: var(--k); background: color-mix(in srgb, var(--k) 10%, transparent); white-space: nowrap; }
.ev-k-content { --k: #f4d27a; } .ev-k-file { --k: var(--sky); } .ev-k-link { --k: var(--violet); } .ev-k-capsule { --k: var(--teal); }
.ev-k-snapshot { --k: #8fd3ff; } .ev-k-capture { --k: #d9a8ff; } .ev-k-receipt { --k: #b6e68a; } .ev-k-other { --k: #ffc2a8; }
.ev-empty, .ev-hint { padding: 18px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.18); color: var(--dim); font-size: 16.3px; line-height: 1.55; }
.ev-empty p { margin: 0 0 12px; }
.ev-detail { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,176,32,.28); background: linear-gradient(160deg, rgba(255,176,32,.07), rgba(255,255,255,.02)); }
.ev-head { border-left: 4px solid var(--st, var(--ev)); padding-left: 14px; margin-bottom: 16px; }
.ev-h { margin: 4px 0 8px; font-size: 20.8px; line-height: 1.35; color: var(--ink); }
.ev-meta { margin: 0 0 4px; font-size: 16px; line-height: 1.5; color: var(--dim); }
.ev-meta b { color: var(--ink); }
.ev-sens { color: var(--gold); }
.ev-items { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); }
.ev-ref { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ev-pin { font-size: 16px; color: var(--dim); font-family: ui-monospace, Consolas, monospace; }
.ev-pin.is-pinned { color: var(--good); }
.ev-read { flex-basis: 100%; font-size: 16px; line-height: 1.45; }
.ev-r-intact { color: var(--good); } .ev-r-changed, .ev-r-missing { color: var(--coral); } .ev-r-unpinned, .ev-r-unchecked { color: var(--gold); }
.ev-x { font: inherit; font-size: 16px; background: none; border: 1px solid rgba(255,143,122,.5); color: var(--coral); border-radius: 9px; padding: 3px 10px; cursor: pointer; }
.ev-links { margin: 0 0 16px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; color: var(--dim); }
.ev-links b { color: var(--ink); }
.ev-stance { display: inline-block; min-width: 96px; font-weight: 700; color: var(--s); }
.ev-s-supports { --s: var(--good); } .ev-s-contradicts { --s: var(--coral); } .ev-s-context { --s: var(--sky); } .ev-s-rel { --s: var(--violet); }
.ev-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.ev-act-cut { border-color: rgba(255,143,122,.6) !important; color: var(--coral) !important; }
.ev-bench { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ev-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ev-row > input { flex: 1 1 220px; min-width: 0; }
.ev-select { flex: 0 0 auto; }
.ev-narrow { flex: 0 1 190px !important; }
.ev-flag { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 7px; font-size: 16px; font-weight: 700;
           color: #10131a; background: #ffe24a; box-shadow: 0 0 12px rgba(255,226,74,.45); transform: rotate(-1.5deg); }
.ev-custody { margin-top: 6px; font-size: 16px; color: var(--dim); }
.ev-custody summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ev); font-weight: 600; }
.ev-custody ol { margin: 6px 0 0; padding-left: 22px; line-height: 1.6; }
.ev-take { display: flex; flex-direction: column; gap: 16px; max-width: 980px; margin-bottom: 26px; }
.ev-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 15px;
           border: 1px solid rgba(79,214,200,.28); background: rgba(79,214,200,.05); }
.ev-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18.4px; color: #10131a; background: var(--teal); }
.ev-step-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ev-area { width: 100%; box-sizing: border-box; min-height: 64px; line-height: 1.55; resize: vertical; font-family: inherit; }
.ev-more summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--teal); font-size: 16px; }
.ev-go { font-size: 17.3px !important; padding: 12px 26px !important; }
.ev-reason { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(196,155,255,.32); background: rgba(196,155,255,.05); }
.ev-subject { margin: 0 0 14px; font-size: 17.9px; line-height: 1.45; color: var(--ink); font-weight: 600; }
.ev-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ev-group { padding: 12px 14px; border-radius: 12px; border-top: 3px solid var(--g); background: rgba(255,255,255,.03); }
.ev-group h4 { margin: 0 0 8px; font-size: 16.3px; color: var(--g); letter-spacing: .03em; }
.ev-group p { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.ev-g-sup { --g: var(--good); } .ev-g-con { --g: var(--coral); } .ev-g-ctx { --g: var(--sky); }
.ev-w { display: block; color: var(--dim); }
.ev-sig, .ev-gap { margin: 0 0 12px; padding-left: 22px; font-size: 16px; line-height: 1.6; }
.ev-sig { color: var(--ink); } .ev-gap { color: #ffd3c9; }
.ev-standing-line { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--dim); font-style: italic; }
.evb-top { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 4px 0 10px; }
.evb-find { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.evb-find-l { font-size: 17px; font-weight: 700; color: #bfeee8; }
.evb-find-in { font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px; color: #eef2f8; background: rgba(8, 11, 18, .8);
               border: 1px solid rgba(79, 214, 200, .35); }
.evb-find-in:focus { outline: none; border-color: #4fd6c8; box-shadow: 0 0 0 3px rgba(79, 214, 200, .18); }
.evb-add { font: inherit; font-size: 17px; font-weight: 750; padding: 12px 20px; border-radius: 12px; cursor: pointer; color: #1a1206; white-space: nowrap;
           background: linear-gradient(180deg, #ffe2a0, #ffc75a); border: 1px solid #ffd37a; box-shadow: 0 0 18px -6px rgba(255, 211, 122, .8); }
.evb-add:hover { filter: brightness(1.05); }
.evb-doors { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.evb-door, .evb-back { font: inherit; font-size: 16px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: #bfeee8;
                       background: rgba(79, 214, 200, .08); border: 1px solid rgba(79, 214, 200, .35); }
.evb-door:hover, .evb-back:hover { border-color: #4fd6c8; background: rgba(79, 214, 200, .14); }
.evb-back { margin: 4px 0 16px; }
.evb-panes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .evb-panes { grid-template-columns: 1fr; } }
.evb-list { display: flex; flex-direction: column; gap: 10px; }
.evb-count { font-size: 16px; color: rgba(223, 230, 242, .66); }
.evb-card { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; padding: 14px 16px; border-radius: 13px; cursor: pointer;
            color: #eef2f8; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s, background .15s; }
.evb-card:hover { border-color: rgba(79, 214, 200, .6); }
.evb-card.is-sel { border-color: #4fd6c8; background: rgba(79, 214, 200, .09); box-shadow: 0 0 20px -8px #4fd6c8; }
.evb-card-t { font-size: 17px; font-weight: 650; line-height: 1.4; }
.evb-card-m { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 16px; color: #bfeee8; }
.evb-card-by { font-size: 16px; color: rgba(223, 230, 242, .6); }
.evb-used { color: #8fdc84; }
.evb-tag { font-size: 16px; font-weight: 700; padding: 1px 9px; border-radius: 999px; color: #ffd98a; background: rgba(224, 162, 58, .14); border: 1px solid rgba(224, 162, 58, .45); }
.evb-empty { padding: 18px; border-radius: 13px; border: 1px dashed rgba(255, 255, 255, .18); font-size: 16px; color: #cfd6e6; }
.evb-open { padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); min-height: 200px; }
.evb-how h3 { margin: 0 0 10px; font-size: 19px; color: #bfeee8; }
.evb-how ol { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.7; color: #dfe6f2; }
.evb-how p { margin: 12px 0 0; font-size: 16px; color: rgba(223, 230, 242, .66); }
.evb-h { margin: 6px 0 4px; font-size: 21px; font-weight: 700; line-height: 1.35; color: #f5f7fc; }
.evb-meta { margin: 0 0 6px; font-size: 16px; color: rgba(223, 230, 242, .66); }
.evb-k { display: block; margin: 16px 0 8px; font-size: 16px; font-weight: 700; color: #4fd6c8; }
.evb-items, .evb-uses, .evb-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.evb-items li, .evb-uses li, .evb-reqs li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 16px; line-height: 1.5; color: #dfe6f2; }
.evb-kind { font-weight: 700; color: #bfeee8; white-space: nowrap; }
.evb-ref { overflow-wrap: anywhere; }
.evb-none { margin: 0; font-size: 16px; color: rgba(223, 230, 242, .6); }
.evb-stance { font-weight: 700; white-space: nowrap; padding: 1px 10px; border-radius: 999px; border: 1px solid currentColor; }
.evb-stance::first-letter { text-transform: uppercase; }
.evb-s-supports { --s: #8fdc84; } .evb-s-contradicts { --s: #ff9f88; } .evb-s-context { --s: #7cc4ff; }
.evb-stance.evb-s-supports, .evb-stance.evb-s-contradicts, .evb-stance.evb-s-context { color: var(--s); }
.evb-use { margin-top: 6px; padding: 14px 16px; border-radius: 13px; background: rgba(79, 214, 200, .05); border: 1px solid rgba(79, 214, 200, .25); }
.evb-use .evb-k { margin-top: 0; }
.evb-in { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; color: #eef2f8; background: rgba(8, 11, 18, .8);
          border: 1px solid rgba(255, 255, 255, .16); width: 100%; box-sizing: border-box; }
.evb-in:focus { outline: none; border-color: #4fd6c8; }
.evb-sel { width: auto; }
.evb-stances { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.evb-st { font: inherit; font-size: 16px; font-weight: 700; padding: 10px 14px; border-radius: 11px; cursor: pointer; color: #eef2f8;
          background: color-mix(in srgb, var(--s) 10%, transparent); border: 1px solid color-mix(in srgb, var(--s) 55%, transparent); }
.evb-st:hover { background: color-mix(in srgb, var(--s) 20%, transparent); border-color: var(--s); }
.evb-more { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.evb-more summary { cursor: pointer; font-size: 17px; font-weight: 700; color: #dfe6f2; }
.evb-more-b { padding-top: 6px; }
.evb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.evb-row .evb-in { flex: 1 1 220px; width: auto; }
.evb-btn { font: inherit; font-size: 16px; font-weight: 650; padding: 9px 14px; border-radius: 10px; cursor: pointer; color: #dfe6f2;
           background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .18); }
.evb-btn:hover { border-color: #4fd6c8; }
.evb-btn-cut { color: #ff9f88; border-color: rgba(255, 159, 136, .45); }
.evb-note { font-size: 16px; color: rgba(223, 230, 242, .62); }
.evb-checks, .evb-hist, .evb-list-p { margin: 6px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.55; color: #cfd6e6; }
.evb-id { margin: 12px 0 0; font-size: 16px; color: rgba(223, 230, 242, .6); }
.evb-id code { font-size: 16px; color: #cfe0ff; }
.evb-x { font: inherit; font-size: 16px; color: #ff9f88; background: none; border: none; cursor: pointer; text-decoration: underline; }
.evb-form { max-width: 820px; }
.evb-form-h { margin: 0 0 6px; font-size: 22px; font-weight: 750; color: #f5f7fc; }
.evb-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.evb-kt { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; padding: 12px 14px; border-radius: 12px; cursor: pointer;
          color: #eef2f8; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); }
.evb-kt b { font-size: 17px; } .evb-kt span { font-size: 16px; color: rgba(223, 230, 242, .66); }
.evb-kt:hover { border-color: rgba(79, 214, 200, .6); }
.evb-kt.on { border-color: #4fd6c8; background: rgba(79, 214, 200, .1); box-shadow: 0 0 18px -8px #4fd6c8; }
.evb-save { margin-top: 20px; }
.evb-subject { font-size: 17px; font-weight: 650; color: #f5f7fc; margin: 16px 0 10px; }
.evb-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.evb-side { padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--s) 45%, transparent); background: color-mix(in srgb, var(--s) 7%, transparent); }
.evb-side h4 { margin: 0 0 6px; font-size: 17px; color: var(--s); }
.evb-side p { margin: 4px 0; font-size: 16px; line-height: 1.45; color: #dfe6f2; }
.evb-said { margin: 26px 0 0; font-size: 16px; font-style: italic; color: rgba(223, 230, 242, .6); }
.evb-said cite { font-style: normal; margin-left: 8px; }
