/* v11.866.0 — XmasTree pill (top bar, same place on every page) + the level classes of a page. */
.xmas-slot { display: inline-flex; align-items: center; margin-right: 10px; flex: none; } .xmas-slot[hidden] { display: none; }
.xt { display: inline-flex; padding: 2px; gap: 1px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); }
.xt-b { border: 0; background: transparent; width: 28px; height: 24px; border-radius: 999px; cursor: pointer; font-size: .9rem; line-height: 1; filter: grayscale(.85) opacity(.65); transition: background .15s, filter .15s, transform .15s; padding: 0; }
.xt-b:hover { filter: none; transform: translateY(-1px); } .xt-b.on { background: rgba(255,255,255,.95); filter: none; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.xt-b:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 1px; }
.xt-legacy { display: none !important; }
[data-detail-mode="0"] .x-d1:not(.x-applied), [data-detail-mode="0"] .x-d2:not(.x-applied), [data-detail-mode="1"] .x-d2:not(.x-applied) { display: none !important; }
/* .x-lt2 = the calm version of something that has a full 🎄 form: hidden once the full form shows */
/* .x-keep.is-on — something that is APPLIED (an active filter) stays visible at every level */
[data-detail-mode] .fb.fb-active.x-d1, [data-detail-mode] .bf-bar.bf-active.x-d1 { display: block !important; }
[data-detail-mode] .fb.fb-active.x-d1 { display: flex !important; }
[data-detail-mode="2"] .x-lt2 { display: none !important; }
/* v11.871.21 — .x-applied (set by xmas_tree.js on a level-marked control / chip group whose value is IN EFFECT: non-default select / input, pressed toggle, active chip) is exempt from the level hiding above */
body.dark-mode .xt { background: rgba(255,255,255,.08); }
@media (max-width: 575px) { .xt-b { width: 25px; } }

/* v11.871.24 — the pill's modern tooltip (one shared popover, built by xmas_tree.js) */
.xt-tip { position: fixed; z-index: 3000; width: min(340px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 14px; background: #0f172a; color: #e2e8f0; border: 1px solid rgba(148,163,184,.25); box-shadow: 0 18px 48px rgba(2,6,23,.45); font-size: .8rem; line-height: 1.35; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .14s, transform .14s; visibility: hidden; }
.xt-tip.on { opacity: 1; transform: none; visibility: visible; }
.xt-tip-h { font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; } .xt-tip-h small { font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 6px; color: #64748b; }
.xt-tip-r { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 7px 8px; border-radius: 10px; border: 1px solid transparent; }
.xt-tip-r .ic { font-size: 1.15rem; line-height: 1.2; } .xt-tip-r b { color: #f8fafc; font-size: .84rem; } .xt-tip-r b em { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #4f46e5; color: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 5px; vertical-align: 1px; }
.xt-tip-r p { margin: 2px 0 0; color: #cbd5e1; } .xt-tip-r small { display: block; margin-top: 3px; color: #818cf8; font-size: .7rem; }
.xt-tip-r.cur { background: rgba(79,70,229,.18); border-color: rgba(129,140,248,.45); } .xt-tip-r.hov:not(.cur) { background: rgba(148,163,184,.12); }
.xt-tip kbd { font: 700 .66rem ui-monospace, monospace; background: rgba(148,163,184,.2); color: #e2e8f0; border-radius: 5px; padding: 1px 6px; border: 1px solid rgba(148,163,184,.3); }
.xt-tip-f { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(148,163,184,.2); color: #94a3b8; font-size: .72rem; }
body.dark-mode .xt-tip { background: #020617; border-color: rgba(148,163,184,.35); }
@media (prefers-reduced-motion: reduce) { .xt-tip { transition: none; } }

/* v11.871.31 — per-person level studio: an overridden block (data-xo = the lowest level it shows from) is decided by ONE rule; the editor chips; the explicit tooltip */
[data-detail-mode="0"] [data-xo="1"]:not(.x-applied):not(.fb-active):not(.bf-active), [data-detail-mode="0"] [data-xo="2"]:not(.x-applied):not(.fb-active):not(.bf-active),
[data-detail-mode="1"] [data-xo="2"]:not(.x-applied):not(.fb-active):not(.bf-active) { display: none !important; }
.xt.custom::after { content: ""; position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; border: 2px solid #1e293b; } .xt { position: relative; }
.xt-tip { pointer-events: auto; }
.xt-tip-h .xt-cust { margin-left: 8px; font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #f59e0b; color: #1e293b; border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
.xt-sub { margin: 4px 0 0 !important; font-size: .7rem; color: #94a3b8 !important; }
.xt-names { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .xt-names i { font-style: normal; font-size: .68rem; font-weight: 600; background: rgba(148,163,184,.16); color: #e2e8f0; border-radius: 6px; padding: 1px 7px; } .xt-names i.more { background: transparent; color: #94a3b8; }
.xt-tip-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .xt-tip-f > span { margin-left: auto; }
.xt-tip-b { border: 0; background: #4f46e5; color: #fff; font-weight: 700; font-size: .74rem; border-radius: 9px; padding: 5px 11px; cursor: pointer; } .xt-tip-b:hover { background: #6366f1; } .xt-tip-b.ghost { background: rgba(148,163,184,.18); color: #e2e8f0; }
#xtEditLayer { position: absolute; left: 0; top: 0; width: 100%; height: 0; overflow: visible; z-index: 2400; pointer-events: none; } #xtEditLayer .xt-chip { pointer-events: auto; }
.xt-part { outline: 2px dashed rgba(99,102,241,.55) !important; outline-offset: -2px; }
.xt-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; max-width: 320px; padding: 3px 4px 3px 9px; border-radius: 999px; background: rgba(15,23,42,.94); color: #e2e8f0; box-shadow: 0 6px 18px rgba(2,6,23,.4); font-size: .7rem; font-weight: 700; } .xt-chip.cust { box-shadow: 0 0 0 2px #f59e0b, 0 6px 18px rgba(2,6,23,.4); }
.xt-chip-l { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .xt-chip-g { display: inline-flex; gap: 2px; background: rgba(148,163,184,.16); border-radius: 999px; padding: 2px; }
.xt-chip-g button { border: 0; background: transparent; width: 26px; height: 22px; border-radius: 999px; cursor: pointer; font-size: .82rem; line-height: 1; filter: grayscale(.85) opacity(.55); padding: 0; } .xt-chip-g button:hover { filter: none; } .xt-chip-g button.on { background: #fff; filter: none; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
#xtEditBar { position: fixed; z-index: 3000; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); flex-wrap: wrap; background: rgba(15,23,42,.96); backdrop-filter: blur(12px); color: #e2e8f0; border-radius: 16px; padding: 10px 14px; box-shadow: 0 18px 50px rgba(2,6,23,.5); }
#xtEditBar .xe-t { display: flex; gap: 10px; align-items: center; max-width: 520px; } #xtEditBar .xe-t > i { font-size: 1.3rem; color: #a5b4fc; } #xtEditBar b { display: block; font-size: .86rem; } #xtEditBar small { display: block; color: #94a3b8; font-size: .72rem; line-height: 1.35; } #xtEditBar small span { color: #e2e8f0; font-weight: 700; white-space: nowrap; }
#xtEditBar .xe-n { font-size: .74rem; font-weight: 700; color: #fbbf24; } #xtEditBar .xe-s { font-size: .72rem; color: #86efac; min-width: 70px; }
#xtEditBar .xe-b { border: 0; background: #4f46e5; color: #fff; font-weight: 800; font-size: .8rem; border-radius: 10px; padding: 7px 14px; cursor: pointer; } #xtEditBar .xe-b.ghost { background: rgba(148,163,184,.18); color: #e2e8f0; } #xtEditBar .xe-b:disabled { opacity: .4; cursor: default; }
body.dark-mode .xt-chip { background: #020617; }
@media (max-width: 640px) { .xt-chip-l { max-width: 70px; } #xtEditBar { bottom: 8px; } }
