/* Shared site tokens; bounded panels keep their own content reachable. */
#gofoDistillation .gd-topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 18px;
}
#gofoDistillation .gd-brand { grid-column: 2; grid-row: 1; justify-self: center; }
#gofoDistillation .gd-topbar-actions { grid-column: 2; grid-row: 1; justify-self: end; }
#gofoDistillation .gd-global-nav { grid-column: 1; grid-row: 1; justify-self: start; }
#gofoDistillation .gd-salon { align-items: stretch; position:relative; }
#gofoDistillation .gd-salon-aside,
#gofoDistillation .gd-conversation { height: clamp(560px, 74dvh, 820px); min-height: 0; max-height: none; box-sizing: border-box; }
#gofoDistillation .gd-salon-aside { overflow: auto; }
#gofoDistillation .gd-conversation { min-width: 0; }
#gofoDistillation .gd-conversation-head,
#gofoDistillation .gd-salon-prompts,
#gofoDistillation [data-salon-job],
#gofoDistillation .gd-composer { flex: 0 0 auto; }
#gofoDistillation .gd-discussion-scroll { flex: 1 1 0; min-height: 0; max-height: none; overflow: auto; overscroll-behavior: contain; }
#gofoDistillation .gd-composer { margin-top: 0; max-height: 42%; overflow: auto; }
#gofoDistillation .gd-composer textarea { min-height: 72px; max-height: 180px; }
#gofoDistillation .gd-asset-layout { height: clamp(480px, 70dvh, 680px); min-height: 0; }
#gofoDistillation .gd-asset-main { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
#gofoDistillation .gd-asset-main > .gd-section-head,
#gofoDistillation .gd-asset-filter { flex: 0 0 auto; }
#gofoDistillation .gd-asset-scroll { min-height: 0; flex: 1 1 0; overflow: auto; padding-right: 8px; overscroll-behavior: contain; }
#gofoDistillation .gd-asset-metrics { min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); }
#gofoDistillation .gd-asset-metric { min-height: 0; overflow: auto; }
#gofoDistillation .gd-book-cover,
#gofoDistillation .gd-library-item:nth-child(n) .gd-book-cover,
#gofoDistillation .gd-context-cover .gd-book-cover { border-left: 1px solid var(--gd-line); box-shadow: none; position: relative; }
#gofoDistillation, #gofoDistillation * { scrollbar-width: thin; scrollbar-color: var(--gd-line) transparent; }
#gofoDistillation ::-webkit-scrollbar { width: 5px; height: 5px; }
#gofoDistillation ::-webkit-scrollbar-track { background: transparent; }
#gofoDistillation ::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--gd-line); }
#gofoDistillation ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
#gofoDistillation .gd-richtext { overflow-wrap: anywhere; line-height: 1.85; white-space: normal; }
#gofoDistillation .gd-richtext > :first-child { margin-top: 0; }
#gofoDistillation .gd-richtext > :last-child { margin-bottom: 0; }
#gofoDistillation .gd-richtext p { margin: .7em 0; }
#gofoDistillation .gd-richtext h3, #gofoDistillation .gd-richtext h4, #gofoDistillation .gd-richtext h5, #gofoDistillation .gd-richtext h6 { font-size: 1.1em; line-height: 1.5; margin: 1.1em 0 .5em; }
#gofoDistillation .gd-richtext ul, #gofoDistillation .gd-richtext ol { padding-left: 1.6em; margin: .7em 0; }
#gofoDistillation .gd-richtext ul { list-style-type: disc; }
#gofoDistillation .gd-richtext ol { list-style-type: decimal; }
#gofoDistillation .gd-richtext pre { overflow: auto; padding: 12px; background: var(--gd-soft); border: 1px solid var(--gd-line); border-radius: 10px; white-space: pre; }
#gofoDistillation .gd-richtext code { font-family: ui-monospace, monospace; font-size: .9em; }
#gofoDistillation .gd-richtext table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
#gofoDistillation .gd-richtext th, #gofoDistillation .gd-richtext td { border: 1px solid var(--gd-line); padding: 7px 10px; }
#gofoDistillation .gd-richtext blockquote { margin: 12px 0; padding: 8px 14px; border-left: 2px solid var(--gd-line); background: var(--gd-soft); }
#gofoDistillation .gd-inline-citation { display: inline-flex; vertical-align: baseline; max-width: 100%; font-size: 11px; line-height: 1.5; padding: 2px 8px; min-height: 0; margin-inline: 3px; white-space: normal; }
#gofoDistillation button.gd-inline-citation { padding: 2px 8px !important; min-height: 0 !important; font-size: 11px !important; line-height: 1.5 !important; }
#gofoDistillation .gd-inline-citation.is-unresolved { color: var(--gd-muted); border-bottom: 1px dotted currentColor; padding: 0 3px; }
#gofoDistillation .gd-cover-processing::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; padding: 3px;
  background: conic-gradient(var(--gd-accent) var(--gd-cover-progress-angle, 60deg), transparent 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
#gofoDistillation .gd-cover-progress-label { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3; border-radius: 999px; padding: 5px 10px; white-space: nowrap; font-size: 11px; background: var(--gd-glass); color: var(--gd-ink); border: 1px solid var(--gd-line); backdrop-filter: blur(12px); }
#gofoDistillation .gd-cover-processing[data-cover-progress="indeterminate"]::after { background: repeating-conic-gradient(var(--gd-accent) 0deg 20deg, transparent 20deg 40deg); }
@media (max-width: 800px) {
  #gofoDistillation .gd-asset-layout { height: auto; grid-template-columns: minmax(0, 1fr); }
  #gofoDistillation .gd-asset-metrics { order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); }
  #gofoDistillation .gd-asset-metric { min-height: 120px; padding: 18px; }
  #gofoDistillation .gd-asset-main { height: clamp(400px, 64dvh, 600px); }
}
#gofoDistillation .gd-global-nav .gd-nav-short { display:none; }
@media (max-width: 700px) {
  #gofoDistillation .gd-topbar { display: grid; grid-template-columns: 1fr; gap: 12px 4px; }
  #gofoDistillation .gd-topbar-actions { grid-column:1; grid-row:1; }
  #gofoDistillation .gd-global-nav { grid-column:1; grid-row:2; }
  #gofoDistillation .gd-brand { font-size: 17px; white-space: nowrap; }
  #gofoDistillation .gd-brand .gd-icon { width: 22px; }
  #gofoDistillation .gd-topbar-actions { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  #gofoDistillation .gd-add-top { padding: 8px; font-size: 11px; }
  #gofoDistillation .gd-add-top .gd-icon { display: none; }
  #gofoDistillation .gd-global-nav { display:flex; flex-wrap:nowrap; justify-content:space-between; gap:1px; width:100%; max-width:100%; min-width:0; padding:4px; overflow:visible; border-radius:999px; }
  #gofoDistillation .gd-global-nav button { grid-column:auto; width:auto; min-width:0; flex:0 0 auto; min-height:40px; padding:8px 2px; flex-direction:row; justify-content:center; align-items:center; gap:2px; font-size:12px; line-height:17px; border-radius:999px; }
  #gofoDistillation .gd-global-nav .gd-icon { width:14px; height:14px; flex:0 0 auto; display:block; margin:0; }
  #gofoDistillation .gd-global-nav .gd-nav-full { display:none; }
  #gofoDistillation .gd-global-nav .gd-nav-short { display:block; }
  #gofoDistillation .gd-global-nav button:first-of-type:not([aria-current=page]) { padding-left:10px; }
  #gofoDistillation .gd-global-nav button:last-of-type:not([aria-current=page]) { padding-right:10px; }
  #gofoDistillation .gd-global-nav button[aria-current=page] { width:40px; height:40px; padding:0; border-radius:50%; }
  #gofoDistillation .gd-global-nav button[aria-current=page] .gd-nav-label { display:none; }
  #gofoDistillation .gd-global-nav button[aria-current=page] .gd-icon { width:18px; height:18px; }
  #gofoDistillation .gd-salon { grid-template-columns: minmax(0, 1fr); }
  #gofoDistillation .gd-salon-aside { height: auto; max-height: 370px; overflow: auto; }
  #gofoDistillation .gd-conversation { height: clamp(520px, 80dvh, 760px); }
}

/* The workshop lives on the website canvas, not inside a second page card. */
main.container:has(#gofoDistillation) { width: 100%; max-width: none; padding-inline: clamp(16px, 3vw, 48px); }
.content-wrap:has(#gofoDistillation), .content-layout:has(#gofoDistillation) { width: 100%; max-width: none; margin: 0; }
.page-article:has(#gofoDistillation) { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
#gofoDistillation { max-width: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; }

/* Member entry uses the same site surface and glass material. */
#gofoDistillation .gd-access-gate{max-width:640px;margin:48px auto;padding:32px;text-align:center;background:var(--gd-soft);border:1px solid var(--gd-line);border-radius:16px}
#gofoDistillation .gd-access-gate p{margin:16px 0}
#gofoDistillation .gd-access-link{display:inline-flex;align-items:center;min-height:40px;padding:9px 22px;border-radius:999px;background:var(--gd-glass);box-shadow:var(--gd-glass-shadow);color:var(--gd-ink);text-decoration:none}
#gofoDistillation .gd-membership-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 24px;padding:16px 20px;border:1px solid var(--gd-line);border-radius:var(--gd-radius,18px);background:var(--gd-soft);color:var(--gd-muted);font-size:13px;line-height:1.7}
#gofoDistillation .gd-membership-notice p{margin:0}
#gofoDistillation .gd-membership-notice .gd-access-link{flex-shrink:0;white-space:nowrap}
@media(max-width:600px){#gofoDistillation .gd-membership-notice{align-items:flex-start;padding:14px;gap:10px;font-size:12px}#gofoDistillation .gd-membership-notice .gd-access-link{min-height:34px;padding:7px 12px;font-size:12px}}

/* Both salon columns follow the left panel's closed-control height. Expanded lists scroll inside it. */
#gofoDistillation .gd-salon-aside,#gofoDistillation .gd-conversation{height:var(--gd-salon-compact-height,clamp(560px,74dvh,820px));min-height:0;max-height:none;box-sizing:border-box}
#gofoDistillation .gd-salon-aside{overflow:auto;overscroll-behavior:contain}
#gofoDistillation .gd-conversation{overflow:hidden}
#gofoDistillation .gd-discussion-scroll{flex:1 1 0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
#gofoDistillation .gd-composer{flex:0 0 auto;max-height:42%;overflow:auto}
@media(max-width:700px){#gofoDistillation .gd-salon-aside,#gofoDistillation .gd-conversation{height:var(--gd-salon-compact-height,clamp(520px,80dvh,760px))}}
/* The source action shares the cover area instead of reserving a row above it. */
#gofoDistillation .gd-salon-book{padding-top:22px}
#gofoDistillation .gd-salon-book button[data-salon-source]{top:34px;right:max(14px,calc((100% - 190px)/2 + 7px))}
@media(max-width:700px){
 #gofoDistillation .gd-salon-book{padding-top:15px}
 #gofoDistillation .gd-salon-book button[data-salon-source]{top:25px;right:calc((100% - 90px)/2 + 4px);min-height:28px;padding:5px 8px;font-size:9px}
}
#gofoDistillation .gd-quota{margin:0 0 16px;font-size:12px;color:var(--gd-muted)}

#gofoDistillation .gd-retained-list{max-height:50dvh;overflow:auto;text-align:left;margin-top:24px}
#gofoDistillation .gd-retained-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--gd-line)}
#gofoDistillation .gd-retained-list button{flex-shrink:0}
#gofoDistillation .gd-backup-import{margin:0 0 18px;padding:14px;border:1px solid var(--gd-line);border-radius:12px}
#gofoDistillation .gd-backup-import p{margin:10px 0}

/* UI glyphs belong to their controls, not to the article image gallery. */
#gofoDistillation .gd-icon,#gofoDistillation button img,#gofoDistillation button svg{pointer-events:none;-webkit-user-drag:none;user-select:none}
#gofoDistillation img.gd-icon{margin:0;display:inline-block}
@media(max-width:360px){#gofoDistillation .gd-global-nav button{font-size:11px}#gofoDistillation .gd-global-nav .gd-icon{width:13px;height:13px}}
@media(max-width:340px){#gofoDistillation .gd-global-nav button{font-size:10px}#gofoDistillation .gd-global-nav .gd-icon{width:12px;height:12px}}

/* Council portraits and names occupy separate parts of the illustration. */
#gofoDistillation .gd-council-scene{width:100%;min-width:0;min-height:0;aspect-ratio:1711/919;align-self:stretch;background:none;isolation:isolate}
/* Extend the paper surface to the row height; the original illustration stays uncropped. */
#gofoDistillation .gd-council-scene::before{content:"";position:absolute;inset:0;background:#fdfcf7 url('../img/distillation/council-room-notion.png') center/contain no-repeat;pointer-events:none;z-index:-1}
#gofoDistillation .gd-council-seats{top:50%;bottom:auto;height:auto;aspect-ratio:1711/919;transform:translateY(-50%)}
/* A dimmer paper tone preserves black linework, faces and clothing in dark mode. */
.dark-theme #gofoDistillation .gd-council-scene::before,.dark-theme #gofoDistillation .gd-self-avatar-wrap .gd-self-portrait{filter:brightness(.72) saturate(.6)}
#gofoDistillation .gd-council-seat[data-seat=finance]{left:9%;top:15%}
#gofoDistillation .gd-council-seat[data-seat=decision]{left:25%;top:9%}
#gofoDistillation .gd-council-seat[data-seat=career]{left:43%;top:6%}
#gofoDistillation .gd-council-seat[data-seat=relationships]{left:61%;top:9%}
#gofoDistillation .gd-council-seat[data-seat=creativity]{left:83%;top:14%}
#gofoDistillation .gd-council-seat[data-seat=wellbeing]{left:20%;top:88%}
#gofoDistillation .gd-council-seat[data-seat=growth]{left:66%;top:88%}
#gofoDistillation .gd-council-seat[data-seat=philosophy]{left:87%;top:88%}
#gofoDistillation .gd-council-self{align-items:stretch}
#gofoDistillation .gd-self-card{width:100%;min-width:0;box-sizing:border-box}
#gofoDistillation .gd-self-avatar-wrap{position:relative;width:100%;min-width:0;isolation:isolate}
#gofoDistillation .gd-self-avatar-wrap .gd-self-portrait{width:100%;height:auto;aspect-ratio:1;max-height:190px;object-fit:contain;background:#fff;pointer-events:none;user-select:none}
#gofoDistillation .gd-avatar-picker{position:absolute;top:0;right:0;display:grid;place-items:start end;box-sizing:border-box;width:34px;height:30px;padding:3px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#343434;z-index:1}
#gofoDistillation .gd-avatar-picker select{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;margin:0;opacity:0;cursor:pointer;appearance:none}
#gofoDistillation .gd-avatar-picker svg{display:block;width:18px;height:18px;overflow:visible;fill:none;pointer-events:none}
#gofoDistillation .gd-avatar-picker:focus-within{outline:2px solid var(--gd-accent);outline-offset:2px}
#gofoDistillation .gd-avatar-status{margin:0;overflow-wrap:anywhere}
@media(max-width:900px){
 #gofoDistillation .gd-council-layout{grid-template-columns:minmax(0,1fr)}
 #gofoDistillation .gd-council-self{display:flex}
 #gofoDistillation .gd-self-card{display:grid;grid-template-columns:minmax(80px,105px) minmax(0,1fr);gap:10px 14px;align-items:center}
 #gofoDistillation .gd-self-card header,#gofoDistillation .gd-self-card>p,#gofoDistillation .gd-self-card>button{grid-column:2;min-width:0}
 #gofoDistillation .gd-self-card .gd-self-avatar-wrap{grid-column:1;grid-row:1/4}
}
@media(max-width:600px){
 #gofoDistillation .gd-council-seat{min-width:0;min-height:24px;padding:4px 7px;font-size:10px;line-height:16px}
 #gofoDistillation .gd-council-seat b{font-size:10px;line-height:16px}
 #gofoDistillation .gd-council-seat::after{content:"";position:absolute;inset:-6px -2px}
 #gofoDistillation .gd-council-self{padding:14px}
 #gofoDistillation .gd-self-card{padding:10px;grid-template-columns:90px minmax(0,1fr);gap:8px 12px}
}
#gofoDistillation button.gd-council-seat{width:max-content;right:auto;white-space:nowrap;padding:6px 12px!important;min-height:30px!important}
#gofoDistillation .gd-council-seat[data-seat=wellbeing],#gofoDistillation .gd-council-seat[data-seat=growth],#gofoDistillation .gd-council-seat[data-seat=philosophy]{top:auto;bottom:2%}
@media(max-width:600px){#gofoDistillation button.gd-council-seat{padding:3px 7px!important;min-height:24px!important;font-size:10px!important}}
.gofo-page-heading:has(+ #gofoDistillation){max-width:none;padding-bottom:0}

/* Book names: two-line headings, one-line source labels. Original text stays intact. */
/* Seat settings have one disclosure and one final confirmation. */
#gofoDistillation .gd-council-settings{padding:16px;margin:16px 0;border:1px solid var(--gd-line)}
#gofoDistillation .gd-council-settings>summary{cursor:pointer;font-size:14px;font-weight:600;color:var(--gd-ink)}
#gofoDistillation .gd-council-settings-body{display:grid;gap:16px;padding-top:16px;min-width:0}
#gofoDistillation .gd-council-settings-body .gd-small{margin:0;font-size:12px;line-height:1.6}
#gofoDistillation .gd-council-settings-body label{font-size:12px;gap:6px;min-width:0}
#gofoDistillation .gd-council-settings-body select{margin:0;min-height:42px;width:100%;font-size:14px}
#gofoDistillation .gd-council-binding-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;min-width:0}
#gofoDistillation .gd-council-binding-picker>button{min-height:42px;margin:0;padding:9px 16px;font-size:13px;white-space:nowrap;background:var(--gd-raised);box-shadow:none;border:1px solid var(--gd-line)}
#gofoDistillation .gd-council-binding-feedback:has(p:empty):not(:has(button:not([hidden]))){display:none}
#gofoDistillation .gd-council-binding-feedback{margin-top:-8px;display:flex;align-items:center;gap:10px}
#gofoDistillation .gd-council-binding-feedback button{white-space:nowrap;flex:none}
#gofoDistillation .gd-council-bound{padding:12px;border:1px solid var(--gd-line);border-radius:10px;min-width:0}
#gofoDistillation .gd-council-bound>p+p{margin-top:6px}
#gofoDistillation .gd-council-bound ul{padding:0;margin:4px 0 0;list-style:none}
#gofoDistillation .gd-council-bound li{display:flex;align-items:center;gap:12px;padding:8px 0;margin:0}
#gofoDistillation .gd-council-bound li+li{border-top:1px solid var(--gd-line)}
#gofoDistillation .gd-council-bound li>div{flex:1;min-width:0}
#gofoDistillation .gd-council-bound li span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:13px;line-height:1.5;color:var(--gd-ink)}
#gofoDistillation .gd-council-bound li small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--gd-muted)}
#gofoDistillation .gd-council-bound li button{flex:none;margin:0;padding:6px 10px;min-height:34px;font-size:12px;box-shadow:none;background:none}
#gofoDistillation .gd-council-dialog label.gd-council-check{display:flex;flex-direction:row;align-items:flex-start;gap:9px;cursor:pointer;color:var(--gd-ink);font-size:13px;line-height:1.6}
#gofoDistillation .gd-council-dialog .gd-council-basis-method{margin-top:14px;padding-top:12px;border-top:1px solid var(--gd-line)}
#gofoDistillation .gd-council-binding-picker>button:disabled{cursor:default}
#gofoDistillation .gd-council-check input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;margin:3px 0 0}
#gofoDistillation .gd-council-check small{display:block;margin-top:3px;color:var(--gd-muted);font-size:12px;line-height:1.5}
#gofoDistillation .gd-council-settings-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid var(--gd-line);padding-top:14px}
#gofoDistillation .gd-council-settings-footer>p{flex:1}
#gofoDistillation .gd-council-settings-footer>button.gd-primary{flex:none;margin:0;min-height:42px;background:var(--gd-accent);color:#252b0c;border:1px solid var(--gd-accent);box-shadow:none;font-size:13px;font-weight:600}
#gofoDistillation .gd-council-settings-footer>button.gd-primary:hover:not(:disabled){filter:brightness(.94)}
#gofoDistillation .gd-council-settings [hidden]{display:none!important}
#gofoDistillation .gd-council-round{margin-top:20px;border:1px solid var(--gd-line);border-radius:12px;overflow:hidden}
#gofoDistillation .gd-council-round>summary{display:flex;align-items:center;gap:16px;padding:16px;cursor:pointer;list-style:none;background:var(--gd-soft)}
#gofoDistillation .gd-council-round>summary::-webkit-details-marker{display:none}
#gofoDistillation .gd-council-round>summary>span:first-child{flex:1;min-width:0}
#gofoDistillation .gd-council-round>summary b{font-size:13px;font-weight:600}
#gofoDistillation .gd-council-round-question{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin-top:5px;color:var(--gd-muted);font-size:13px;line-height:1.6}
#gofoDistillation .gd-council-round[open] .gd-council-round-question{display:none}
#gofoDistillation .gd-council-round-action{flex:none;font-size:12px;color:var(--gd-muted)}
#gofoDistillation .gd-council-round:not([open]) .gd-round-collapse,#gofoDistillation .gd-council-round[open] .gd-round-expand{display:none}
#gofoDistillation .gd-council-round-body{padding:0 16px 16px;min-width:0;overflow-wrap:anywhere}
#gofoDistillation .gd-council-round-body article{border:0;padding:0;margin:16px 0}
#gofoDistillation .gd-council-round-body article>h4{font-size:15px;line-height:1.7;margin:0 0 12px;font-weight:500}
#gofoDistillation .gd-council-round-body [data-council-understanding-form]{display:grid;gap:14px;padding-top:12px}
#gofoDistillation .gd-council-round-close{display:block;margin:18px auto 0;font-size:12px}
@media(max-width:600px){
 #gofoDistillation .gd-council-settings{padding:12px}
 #gofoDistillation .gd-council-settings-body{gap:14px}
 #gofoDistillation .gd-council-binding-picker{gap:8px}
 #gofoDistillation .gd-council-binding-picker>button{padding:9px 10px;font-size:12px}
 #gofoDistillation .gd-council-settings-body select{font-size:13px;padding-inline:10px 26px}
 #gofoDistillation .gd-council-round>summary{gap:10px;padding:12px}
 #gofoDistillation .gd-council-round-body{padding:0 12px 12px}
}
#gofoDistillation [data-context-title],#gofoDistillation [data-salon-title],#gofoDistillation .gd-book-meta h4,#gofoDistillation .gd-book-overview>h3,
#gofoDistillation .gd-book-cover h4,#gofoDistillation .gd-context-cover .gd-book-cover h4,#gofoDistillation .gd-salon-book .gd-book-cover h4{min-width:0;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow-wrap:anywhere;overflow:hidden;text-overflow:ellipsis}
#gofoDistillation .gd-salon-book,#gofoDistillation .gd-salon-selection,#gofoDistillation .gd-salon-selection label,#gofoDistillation .gd-asset-filter label{min-width:0;max-width:100%}
#gofoDistillation .gd-asset-row>div{flex:1;min-width:0}
#gofoDistillation .gd-asset-row>div>.gd-small,#gofoDistillation .gd-retrieval-hit>.gd-small,#gofoDistillation .gd-asset-review article>.gd-small,#gofoDistillation .gd-inspector>.gd-kind{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#gofoDistillation select{min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Empty panes and exhausted scroll areas hand movement back to the page. */
#gofoDistillation .gd-discussion-scroll,#gofoDistillation .gd-asset-scroll,#gofoDistillation .gd-salon-aside,#gofoDistillation .gd-composer{overscroll-behavior:auto}
/* Desktop keeps its original toolbar and search row. */
#gofoDistillation .gd-shelf-mobile-actions{display:none}
@media(max-width:900px){
 #gofoDistillation .gd-salon{display:flex;flex-direction:column}
 #gofoDistillation .gd-salon-aside,#gofoDistillation .gd-conversation{width:100%}
 #gofoDistillation .gd-salon-aside{grid-template-columns:112px minmax(0,1fr);grid-auto-rows:max-content;align-content:start}
 #gofoDistillation .gd-discussion-scroll>.gd-empty{min-height:0;padding:24px 12px}
}
@media(max-width:600px){
 #gofoDistillation .gd-shelf-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
 #gofoDistillation .gd-shelf-head>div:first-child{min-width:0}
 #gofoDistillation .gd-shelf-head h3{font-size:clamp(20px,6vw,24px);display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0}
 #gofoDistillation .gd-shelf-head h3 [data-library-count]{font-size:12px;white-space:nowrap;margin:0}
 #gofoDistillation .gd-shelf-mobile-actions{display:flex;align-items:center;gap:8px}
 #gofoDistillation .gd-shelf-mobile-actions .gd-shelf-add{white-space:nowrap;font-size:12px;padding:8px 12px!important;min-height:36px!important;margin:0}
 #gofoDistillation .gd-shelf-search-toggle{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0!important;border:0;border-radius:50%;background:var(--gd-glass);box-shadow:var(--gd-glass-shadow)}
 #gofoDistillation .gd-shelf-search-toggle .gd-icon{display:block;width:18px;height:18px;margin:0}
 #gofoDistillation .gd-shelf-tools{display:none;grid-column:1/-1;width:100%;max-width:100%;margin:0}
 #gofoDistillation .gd-shelf-head[data-search-open=true] .gd-shelf-tools{display:flex}
 #gofoDistillation .gd-shelf-tools .gd-search{width:100%;min-width:0}
 #gofoDistillation .gd-topbar-actions:has(>[data-back-shelf][hidden]):not(:has([data-new])){display:none}
}

/* Main view headings share one scale below the site's workshop heading. */
#gofoDistillation.gd-workshop .gd-shelf-head .gd-page-title,
#gofoDistillation.gd-workshop .gd-section-head .gd-page-title{
 display:flex;align-items:center;flex-wrap:wrap;column-gap:10px;row-gap:4px;
 min-width:0;margin:0;font-family:inherit;font-size:24px;font-weight:600;
 line-height:1.4;color:var(--gd-ink)
}
#gofoDistillation.gd-workshop h3.gd-page-title>.gd-icon{display:block;flex:0 0 auto;width:1em;height:1em;margin:0;pointer-events:none}
#gofoDistillation .gd-page-title>[data-shelf-title]{font:inherit;color:inherit;margin:0}
#gofoDistillation .gd-page-title>[data-library-count]{font-size:13px;color:var(--gd-muted);white-space:nowrap;margin:0}
@media(max-width:700px){
 #gofoDistillation.gd-workshop .gd-shelf-head .gd-page-title,
 #gofoDistillation.gd-workshop .gd-section-head .gd-page-title{font-size:20px;column-gap:8px}
 #gofoDistillation .gd-page-title>[data-library-count]{font-size:12px}
}
/* Add material stays in the shelf; the dialog owns its responsive layout. */
#gofoDistillation .gd-add-dialog:not([open]){display:none}
#gofoDistillation .gd-add-dialog[open]{display:block;position:fixed;inset:0;box-sizing:border-box;width:calc(100% - 32px);max-width:760px;height:fit-content;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;background:var(--gd-panel);color:var(--gd-ink);border:1px solid var(--gd-line);border-radius:22px;box-shadow:0 20px 80px #0003;text-align:left}
#gofoDistillation .gd-add-dialog::backdrop{background:rgba(12,15,20,.38);backdrop-filter:blur(4px)}
#gofoDistillation .gd-add-shell{padding:24px;min-width:0}
#gofoDistillation .gd-add-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
#gofoDistillation .gd-add-head h3{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:600;line-height:1.4;color:var(--gd-ink);margin:0}
#gofoDistillation .gd-add-head h3 .gd-icon{width:24px;height:24px;margin:0}
#gofoDistillation [data-add-close]{display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;padding:0;border-radius:50%;margin:0}
#gofoDistillation .gd-add-modes{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;margin:0 0 22px}
#gofoDistillation .gd-add-modes button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;margin:0;padding:12px 8px;min-height:54px;font-size:13px;line-height:1.5;border-radius:14px;border:1px solid transparent;white-space:normal;box-shadow:none;background:var(--gd-soft);color:var(--gd-muted)}
#gofoDistillation .gd-add-modes button[aria-pressed=true]{border-color:var(--gd-accent);background:var(--gd-tint);color:var(--gd-ink)}
#gofoDistillation .gd-add-modes .gd-icon{width:20px;height:20px;flex:0 0 20px;margin:0}
#gofoDistillation .gd-add-dialog [hidden]{display:none!important}
#gofoDistillation .gd-add-dialog form{margin:0;padding:0;min-width:0;background:transparent;border:0;box-shadow:none}
#gofoDistillation .gd-add-pane{margin:0 0 18px;min-width:0}
#gofoDistillation .gd-add-file{display:flex;align-items:center;gap:14px;flex-wrap:wrap;box-sizing:border-box;width:100%;padding:16px;border:1px dashed var(--gd-line);border-radius:12px;font-weight:500;color:var(--gd-ink)}
#gofoDistillation .gd-add-file input[type=file]{width:100%;min-width:0;max-width:100%;padding:0;border:0;background:none;box-shadow:none;border-radius:0;font-size:13px}
#gofoDistillation .gd-add-dialog label{min-width:0}
#gofoDistillation .gd-add-dialog textarea{min-height:144px;max-height:300px;resize:vertical}
#gofoDistillation .gd-add-dialog .gd-small{font-size:12px;line-height:1.65;margin:10px 0;color:var(--gd-muted);overflow-wrap:anywhere}
#gofoDistillation .gd-add-dialog .gd-small:empty{display:none}
#gofoDistillation .gd-add-dialog .is-error{color:var(--gd-danger,#c64c49)}
#gofoDistillation .gd-add-dialog .gd-backup-import{margin:0;padding:0;border:0;background:none}
#gofoDistillation .gd-add-dialog .gd-backup-import h4{font-size:16px;line-height:1.5;margin:0;color:var(--gd-ink)}
#gofoDistillation .gd-add-dialog .gd-package-import{margin:18px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--gd-line);border-radius:0;background:none}
#gofoDistillation .gd-add-dialog .gd-package-import summary{font-size:14px;padding:0}
#gofoDistillation .gd-add-dialog .gd-editor-body{padding:4px 0 0}
#gofoDistillation .gd-add-dialog [data-add-submit]{margin:6px 0 0}
#gofoDistillation .gd-add-dialog .gd-quota{margin:16px 0 0}
#gofoDistillation .gd-topbar-actions:empty{display:none}
@media(max-width:600px){
 #gofoDistillation .gd-add-dialog[open]{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:18px}
 #gofoDistillation .gd-add-shell{padding:18px}
 #gofoDistillation .gd-add-head{margin-bottom:16px}
 #gofoDistillation .gd-add-head h3{font-size:20px}
 #gofoDistillation .gd-add-modes{grid-template-columns:1fr;gap:7px;margin-bottom:18px}
 #gofoDistillation .gd-add-modes button{justify-content:flex-start;min-height:42px;padding:10px 12px;font-size:14px;border-radius:12px}
 #gofoDistillation .gd-add-dialog .gd-field-row{grid-template-columns:1fr;gap:12px}
 #gofoDistillation .gd-add-dialog [data-add-submit]{width:100%}
}
/* Salon disclosures match the book selector in height, chevron, and count alignment. */
#gofoDistillation .gd-salon-selection label{position:relative;display:block}
#gofoDistillation .gd-salon-selection select{box-sizing:border-box;height:44px;min-height:44px;appearance:none;padding-right:38px}
#gofoDistillation .gd-salon-selection label::after,
#gofoDistillation [data-salon-options]>summary::after,
#gofoDistillation .gd-salon-card-picker>summary::after{content:"";display:block;width:8px;height:8px;border-right:2px solid var(--gd-ink);border-bottom:2px solid var(--gd-ink);color:var(--gd-ink);transform:rotate(45deg);box-sizing:border-box;pointer-events:none}
#gofoDistillation .gd-salon-selection label::after{position:absolute;right:16px;bottom:19px}
#gofoDistillation [data-salon-options]>summary,
#gofoDistillation .gd-salon-card-picker>summary{box-sizing:border-box;height:44px;min-height:44px;padding:0 14px;background:var(--gd-raised)}
#gofoDistillation [data-salon-options]>summary>span,
#gofoDistillation .gd-salon-card-picker>summary>span{margin-right:0}
#gofoDistillation [data-salon-options]>summary>small,
#gofoDistillation .gd-salon-card-picker>summary>small{margin-right:auto}
#gofoDistillation [data-salon-options]>summary::after,
#gofoDistillation .gd-salon-card-picker>summary::after{flex:0 0 8px;margin-right:3px;transition:none}
#gofoDistillation [data-salon-options][open]>summary::after,
#gofoDistillation .gd-salon-card-picker[open]>summary::after{transform:rotate(225deg)}
