.tree-garland { position: absolute; z-index: 1; pointer-events: none; }
.tree-garland > svg, .tree-garland > .rift-garland-canvas { width: 100%; height: 100%; overflow: visible; display: block; }
.tree-garland[data-style="dew"] { mask: url('/front/assets/optimized/tree.1c6f7dae02ca.webp') center / 100% 100% no-repeat; }
.garland-wire { fill: none; stroke: #34563b; stroke-width: 1.1; stroke-linecap: round; }
.garland-spill { fill: var(--light); opacity: .18; filter: blur(7px); mix-blend-mode: screen; }
.garland-halo { fill: var(--light); opacity: .48; filter: blur(4px); mix-blend-mode: screen; }
.tree-garland[data-material="glass"] .garland-halo { opacity: .28; }
.tree-garland[data-material="glass"] .garland-spill { opacity: .10; }
.garland-light { transform-box: fill-box; transform-origin: center; }
.tree-garland[data-mode="breathe"] .garland-emission { animation: tree-garland-breathe 4s ease-in-out infinite; }
.tree-garland[data-mode="twinkle"] .garland-emission { animation: tree-garland-twinkle 5s ease-in-out var(--twinkle) infinite; }
.tree-garland[data-mode="wave"] .garland-emission { animation: tree-garland-wave 6s step-end var(--delay) infinite; }
.tree-garland[data-mode="alternate"] .garland-emission { animation: tree-garland-breathe 4s ease-in-out var(--alternate) infinite; }
@keyframes tree-garland-breathe { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes tree-garland-twinkle { 0%,48%,100% { opacity: 1; } 23%,72% { opacity: 0; } }
@keyframes tree-garland-wave { 0%,69.99% { opacity: 1; } 70%,100% { opacity: 0; } }

.garland-panel {
    position: fixed; z-index: 4500; box-sizing: border-box; width: 380px; max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 32px); overflow: auto; padding: 16px;
    color: #f9e6c4; border: 3px solid #482811; border-radius: 12px;
    background: linear-gradient(100deg, #492b1aee, #724729f5 48%, #482b1bf5);
    box-shadow: inset 0 0 0 1px #bd895552, 0 12px 32px #120b09a6;
    font: 14px/1.35 Georgia, serif; scrollbar-width: thin; scrollbar-color: #ba8d58 #442817;
}
.garland-panel[hidden], .garland-panel-body[hidden] { display: none; }
.garland-panel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.garland-panel h2 { margin: 0; font: 23px Georgia, serif; color: #ffe4aa; }
.garland-panel label { display: block; margin: 14px 0 5px; color: #e5c394; }
.garland-panel select {
    box-sizing: border-box; width: 100%; min-height: 36px; padding: 6px 8px;
    border: 1px solid #b28955; border-radius: 5px; background: #332316; color: #fff0d2; font: inherit;
}
.garland-panel button { font: inherit; cursor: pointer; }
.garland-panel .garland-model-fields { display: none; }
.garland-field-title { margin: 15px 0 7px; color: #e5c394; }
.garland-choice-row { display: grid; grid-template-columns: 26px minmax(0,1fr) 26px; gap: 5px; align-items: center; }
.garland-style-track,.garland-palette-track { display: flex; align-items: stretch; gap: 9px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 5px 3px; }
.garland-style-track::-webkit-scrollbar,.garland-palette-track::-webkit-scrollbar { display: none; }
.garland-panel .garland-scroll-arrow { min-height: 42px; padding: 0; border: 0; background: transparent; color: #f5d4a0; font-size: 32px; line-height: 1; border-radius: 5px; }
.garland-panel .garland-scroll-arrow:hover { background: #e6b16b1a; }
.garland-panel .garland-style-card { flex: 0 0 124px; padding: 4px 3px 7px; border: 1px solid #b68e5b65; border-radius: 9px; background: #241b17b8; color: #e6d1af; scroll-snap-align: start; }
.garland-style-card > svg, .garland-style-card > .rift-garland-thumbnail { display: block; width: 116px; height: 76px; }
.garland-style-card span { display: block; min-height: 30px; font-size: 11px; line-height: 1.35; }
.garland-panel .garland-style-card[aria-pressed="true"] { border-color: #ffe2a6; background: #79533170; box-shadow: inset 0 0 0 1px #ffe2a6; color: #fff2d5; }
.garland-palette-track { align-items: center; min-height: 48px; }
.garland-panel .garland-color-swatch { flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid #271b12; outline: 1px solid #b28b5d70; scroll-snap-align: start; }
.garland-panel .garland-color-swatch[aria-pressed="true"] { outline: 2px solid #ffe5ad; box-shadow: 0 0 0 4px #100c0799; }
.garland-panel button:disabled, .garland-panel select:disabled { opacity: .6; cursor: wait; }
.garland-panel button:focus-visible, .garland-panel select:focus-visible { outline: 2px solid #ffe5ac; outline-offset: 3px; }
.garland-panel .garland-fold { border: 0; padding: 6px; background: transparent; color: #ffe3a2; text-decoration: underline; }
.garland-panel .garland-remove { margin: 13px 0 5px; background: none; color: #e7c99e; border: 0; padding: 4px 0; text-decoration: underline; }
.garland-palette-preview { height: 9px; border-radius: 5px; margin-top: 7px; box-shadow: 0 0 8px #ffe6b12b; }
.garland-actions { display: flex; gap: 8px; margin-top: 12px; }
.garland-actions button { flex: 1; padding: 9px 6px; border: 1px solid #ba8d58; border-radius: 6px; background: #3e291a; color: #ffe6ba; }
.garland-actions button:first-child { background: linear-gradient(#ad8050, #80562d); color: #fff4da; }
.garland-status { min-height: 1.35em; margin: 10px 0 0; color: #ffe0b8; font-size: 12px; }
.garland-panel[data-placement="bottom"] { left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; max-width: none; max-height: 48dvh; }
.garland-panel[data-placement="bottom"]:has(.garland-panel-body[hidden]) { max-height: none; }
.garland-panel[data-placement="bottom"] .garland-panel-body { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.garland-panel[data-placement="bottom"] .garland-panel-body[hidden] { display: none; }
.garland-panel[data-placement="bottom"] .garland-actions,
.garland-panel[data-placement="bottom"] .garland-status,
.garland-panel[data-placement="bottom"] .garland-remove { grid-column: 1 / -1; }
.garland-panel[data-placement="bottom"] .garland-image-field,
.garland-panel[data-placement="bottom"] .garland-color-field,
.garland-panel[data-placement="bottom"] .garland-size-field,
.garland-panel[data-placement="bottom"] .garland-mode-field { grid-column: 1 / -1; }
.garland-panel[data-placement="bottom"] { padding: 12px; }
.garland-panel[data-placement="bottom"] label { margin-top: 6px; font-size: 12px; }
.garland-panel[data-placement="bottom"] select { min-height: 32px; padding: 4px; }
.garland-panel[data-placement="bottom"] .garland-remove { margin: 3px 0 0; font-size: 12px; }
.garland-panel[data-placement="bottom"] .garland-actions { margin-top: 5px; }
.garland-panel[data-placement="bottom"] .garland-actions button { padding: 7px 4px; }
.garland-panel[data-placement="bottom"] .garland-status { margin-top: 4px; }
.garland-status:empty { display: none; }
@media (max-height: 450px) { .garland-panel { padding: 10px; } .garland-panel label { margin-top: 6px; } }

.garland-panel .garland-size-field[hidden] { display: none; }

.tree-garland[data-source=drawn] .garland-halo{opacity:.48;filter:blur(3px)}
.tree-garland[data-source=drawn] .garland-spill{opacity:.20;filter:blur(7px)}
.tree-garland[data-source=site][data-soft-glass=true] .garland-halo{opacity:.24}
.tree-garland[data-source=site][data-soft-glass=true] .garland-spill{opacity:.085}
