/* The studio canvas is the viewport for both device previews. */
#treeAppearance { padding:12px 18px; border-bottom:1px solid var(--line); display:grid; gap:9px }
#treeAppearance[hidden] { display:none }
#treeAppearance button { justify-self:start }
.treeStage {
  color:rgb(var(--tree-ink)); background:linear-gradient(145deg,rgb(var(--tree-halo)),rgb(var(--tree-bg)) 62%);
  --sheet-gutter:16px; --shelf-width:min(300px,calc(100cqw - 64px)); --art-size:112px;
  --hairline:rgb(var(--tree-ink) / .14);
}
.treeStage[data-mode="light"] { color-scheme:light }
.treeStage[data-mode="dark"] { color-scheme:dark }
.treeSheet { margin:auto; max-width:736px; padding:0 var(--sheet-gutter) 22px; background:rgb(var(--tree-bg)) }
.treeCover { text-align:center; margin:0 calc(-1 * var(--sheet-gutter)); }
.treePhoto { position:relative; overflow:hidden; isolation:isolate; }
.treePhoto img { display:block; width:100%; height:auto; }
.treePhoto.cropped img { position:absolute; max-width:none; }
.treePhoto:after { content:""; position:absolute; inset:auto 0 -1px; height:25%; pointer-events:none;
  background:linear-gradient(to bottom,rgb(var(--tree-bg) / 0),rgb(var(--tree-bg) / .38) 39%,rgb(var(--tree-bg)) 100%); }
.treeIdentity { position:relative; display:flow-root; padding-inline:8px; }
.treePhoto + .treeIdentity:has(.treeLogo) { margin-top:-10%; }
.treeCover .treeIdentity :is(h2,p) { margin:0; }
.treeLogo { display:block; margin:auto; width:min(100%,390px); height:auto; filter:drop-shadow(0 1px 2px rgb(0 0 0 / .17)); }
.treeIdentity p { color:rgb(var(--tree-muted)); }
.treeIdentity :is(p,.treeTextLink) { margin-block:.45em; }
.treeSheet .treeSocials { display:flex; justify-content:center; flex-wrap:wrap; gap:0; margin:8px 0; }
.tree #page .treeSocials .profileIcon, .tree #page .treeSocials .profileIcon:is(:hover,:focus-visible) {
  width:42px; height:42px; padding:0; color:inherit; background:none; border:0; border-radius:0; text-decoration:none;
}
.tree #page .treeSocials .profileIcon::after { content:none; }
.tree #page .treeSocials .profileIcon svg { width:21px; height:21px; }
.treeSocials .profileIcon:hover svg { transform:translateY(-1px); }
.treeSocials .profileIcon g[stroke] { stroke:rgb(var(--tree-bg)); }
.treeNav { position:sticky; top:0; z-index:3; display:flex; align-items:center; gap:4px;
  margin:0 calc(-1 * var(--sheet-gutter)); padding:4px 8px; background:rgb(var(--tree-bg)); }
.treeTabs { display:flex; align-items:center; flex:1; min-width:0; gap:4px; overflow-x:auto; scrollbar-width:none; }
.treeTabs::-webkit-scrollbar,.treeRail::-webkit-scrollbar { display:none; }
.treeTabs a { flex:none; font-size:calc(15px * var(--body-scale)); text-decoration:none; white-space:nowrap;
  border-radius:6px; padding:5px 8px; color:inherit; line-height:var(--body-leading,1.2); letter-spacing:var(--body-tracking,normal); }
.treeTabs a:is(:hover,[aria-current]) { background:rgb(var(--tree-ink) / .12); }
.treeStage button:is(.treeModeButton,[data-tree-step]) { color:inherit; border:0; border-radius:0; background:none;
  display:grid; place-items:center; padding:0; }
.treeModeButton { margin-left:auto; flex:0 0 36px; height:36px; }
.treeStage button svg { margin:0; }
.treeStage :is(button,a):focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
.treeShelf { padding:14px 0 16px; border-bottom:1px solid var(--hairline); scroll-margin-top:48px; }
.treeShelfHead { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 24px; }
.treeStage .treeShelfHead h3 { margin:0; }
.treeArrows { margin-left:auto; display:flex; }
.treeArrows button { width:30px; height:34px; }
.treeArrows svg { width:20px; height:20px; }
.treeRail { display:grid; grid-auto-flow:column; grid-auto-columns:var(--shelf-width); gap:16px;
  overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; }
.treeRail[data-rows="2"] { grid-template-rows:repeat(2,auto); }
.treeCard { display:flex; position:relative; isolation:isolate; overflow:hidden; border:0; border-radius:8px;
  align-items:center; min-width:0; scroll-snap-align:start; color:inherit; background:rgb(var(--tree-card));
  text-decoration:none; line-height:var(--body-leading,1.3); letter-spacing:var(--body-tracking,normal); font-size:calc(14px * var(--body-scale)); font-weight:var(--body-weight,600); }
.treeCard:focus-visible { outline-offset:-3px; }
.treeVideo { aspect-ratio:16/9; justify-content:center; color:white; background:#232626; }
.treeVideo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-2; }
.treeVideo::before { content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(to bottom,rgb(0 0 0 / .84),rgb(0 0 0 / .42) 25%,transparent 56%); }
.treeVideo .treeCaption { position:absolute; inset:8px 10px auto; text-shadow:0 1px 4px #000;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.treeVideo svg { width:33px; height:33px; filter:drop-shadow(0 1px 5px #000); }
.treeRelease { min-height:var(--art-size); }
.treeRelease img { position:absolute; inset:0 auto 0 0; width:var(--art-size); height:100%; object-fit:cover; object-position:center; }
.treeRelease:has(img) { padding-left:var(--art-size); }
.treeRelease .treeCaption { padding:10px 12px; }
.treeRelease:not(:has(img)) { min-height:48px; }
.treeFooter { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; padding:28px 0 6px; }
.treeTextLink,.treeExtra a,.treeExtra summary,.treeExtra :is(.eyebrow,.byline,.postBody,p) { color:inherit; }
.treeFooter .treeTextLink { font-size:calc(12px * var(--body-scale)); color:rgb(var(--tree-muted)); }
.treeExtra:is(.text,.feature,.playlist) { padding:18px 0; background:transparent; border-color:var(--hairline); }
.treeExtra :is(.tile,.cta) { background:rgb(var(--tree-card)); color:inherit; border:0; }
@container (min-width:600px) {
  .treeStage { padding:clamp(24px,6cqw,80px) 24px; --sheet-gutter:clamp(24px,5cqw,48px); --shelf-width:416px; --art-size:144px; }
  .treeSheet { padding-top:clamp(24px,5cqw,56px); border-radius:12px; }
  .treeCover { width:min(390px,100%); margin:auto; }
  .treePhoto { border-radius:16px; }
  .treePhoto + .treeIdentity:has(.treeLogo) { margin-top:-4%; }
  .treeIdentity { padding-inline:0; }
  .treeSocials { padding-top:8px; }
  .treeNav { margin-inline:0; padding-inline:0; }
}
.tree #edit[open] #form { display:flex; flex-direction:column; max-height:88dvh; }
.tree #edit #fields { min-height:0; overflow:auto; }
.treeCropEditor { border:1px solid var(--line); border-radius:8px; padding:10px; }
.treeCropEditor summary { cursor:pointer; }
.treeCropEditor p,.treeCropEditor output { color:var(--dim); font-size:13px; }
.cropSurface { position:relative; width:fit-content; max-width:100%; margin:12px auto; overflow:hidden; background:#111; }
.cropSurface img { display:block; max-width:100%; max-height:40vh; width:auto; height:auto; }
.cropFrame { position:absolute; border:1px solid white; box-shadow:0 0 0 100vmax #0008; touch-action:none; }
.cropFrame button { display:block; position:absolute; padding:0; border:0; border-radius:0; background:none; touch-action:none; }
.cropFrame [data-grip="move"] { inset:0; width:100%; height:100%; cursor:move; }
.cropFrame [data-grip]:not([data-grip="move"]) { width:24px; height:24px; }
.cropFrame [data-grip]:not([data-grip="move"])::after { content:""; position:absolute; width:9px; height:9px; background:white; border:1px solid #333; }
.cropFrame [data-grip^="n"],.cropFrame [data-grip^="n"]::after { top:0; }
.cropFrame [data-grip^="s"],.cropFrame [data-grip^="s"]::after { bottom:0; }
.cropFrame [data-grip$="w"],.cropFrame [data-grip$="w"]::after { left:0; }
.cropFrame [data-grip$="e"],.cropFrame [data-grip$="e"]::after { right:0; }
.cropFrame :is([data-grip="nw"],[data-grip="se"]) { cursor:nwse-resize; }
.cropFrame :is([data-grip="ne"],[data-grip="sw"]) { cursor:nesw-resize; }
.cropTools { display:flex; justify-content:space-between; align-items:end; gap:8px; flex-wrap:wrap; margin:8px 0; }

.treeRail[data-layout="video"] { grid-auto-columns:100%; }
.treeRail[data-wide-art="false"] .treeRelease img { height:var(--art-size); }
.treeRail[data-wide-art="true"] { --cover-width:min(calc(var(--art-size) * 1.34),48%); }
.treeRail[data-wide-art="true"] .treeRelease:has(img) { padding-left:var(--cover-width); }
.treeRail[data-wide-art="true"] .treeRelease img { width:var(--cover-width); }
#treeSectionTools[hidden],#add[hidden],#treeLayoutField[hidden] { display:none; }
#treeSectionTools { padding:10px 16px 0; }
.treeSectionActions,.treeBlocksHead { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.treeSectionActions button { font-size:13px; padding:5px 7px; }
#treeSectionBack { padding-left:0; border:0; background:transparent; color:var(--mint); }
.treeSectionMeta { padding:6px 0 14px; color:var(--dim); font-size:13px; }
.treeBlocksHead { border-top:1px solid var(--line); padding:12px 0 6px; font-size:14px; }
#treeBlockCount { margin-left:4px; font-size:12px; color:var(--dim); font-weight:400; }
#treeAddBlock { display:grid; place-items:center; width:32px; height:32px; border:0; background:var(--mint); color:#10251e; border-radius:50%; padding:0; }
#treeAddBlock:hover { background:#d3ffed; }
#treeAddBlock svg { margin:0; width:18px; height:18px; stroke-width:2.4; }
.treeSectionFields { display:grid; gap:14px; padding:20px; }
#treeSectionError { color:#ffbdaf; margin:0; }
#treeSectionError:empty { display:none; }
#treeSaveSection { margin-left:auto; }
#copyTreeLink { margin-top:7px; padding:8px; color:var(--mint); background:transparent }
#copyTreeLink svg { margin:0; display:block }
#copyFeedback { font-size:13px; color:var(--mint); user-select:text }
#copyFeedback:empty { display:none }
.publicTree #page, .publicTree .treeStage { min-height:100svh }
