/* Alternative visual concept. The original content and card template scripts are unchanged. */
:root{--lime:#c9a771;--bg:#f6f2ea;--panel:#fffdf8;--text:#252924;--muted:#737970}
body{background:#f6f2ea;color:#252924;font-family:'Hanken Grotesk',Arial,sans-serif;padding-left:270px;min-height:100vh}
header{max-width:none;padding:32px 44px;margin:0;border-bottom:1px solid #d4d8ce;background:transparent;color:#252924;align-items:center}header .logo{font-size:48px;font-weight:800;letter-spacing:-.06em;color:#252924}header small{color:#737970}
main{max-width:1280px;padding:36px 44px}.hero{position:relative;background:#e7ebdf;border-radius:120px 16px 120px 16px;margin:0 0 36px;height:230px;overflow:hidden}.hero img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
#nav{position:fixed;left:0;top:0;bottom:0;width:270px;background:#202a25;padding:160px 22px 30px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;z-index:15}
#nav:before{content:'EPP / KNOWLEDGE';position:absolute;left:26px;top:48px;color:#e7ebdf;font:12px 'JetBrains Mono',monospace;letter-spacing:.12em}
#nav button{width:100%;white-space:normal;text-align:left;background:transparent;color:#ccd4ca;border:0;border-radius:12px;padding:15px 18px;font-size:14px;font-weight:400}#nav button.active{background:#e7ebdf;color:#202a25;font-weight:500}#nav .development{color:#c9a771;display:block;margin:5px 0 0;font-size:10px}
#content>h1{font-size:clamp(32px,4vw,52px);font-weight:500;letter-spacing:-.04em;line-height:1.15;color:#252924;margin:20px 0 24px;padding:0;background:none}h2{font-size:25px;line-height:1.35;font-weight:500;letter-spacing:-.025em;color:#252924}h3{color:#252924;font-weight:500}p,li,small{color:#737970;line-height:1.65}
.blocks,.products,.tools{gap:26px}.block,.product{border:1px solid #dddcd4;border-radius:24px;background:#fffdf8;padding:30px;box-shadow:0 9px 28px #202a2505}.block.colour{border-top:4px solid}.block h2,.product h2{margin-top:0}#content img{display:none}.price{color:#252924;font-size:25px;font-weight:500}
button,a.tool,.tool.primary,.staff-chat,.tool-entry>button,.tool-entry>.tool{background:#202a25;color:#fffdf8;border:1px solid #202a25;border-radius:24px;padding:12px 20px;font-weight:400}button:hover,a.tool:hover{background:#3a4c40;color:#fff}.edit-card,.move-handle,.tab-edit{background:#f6f2ea;color:#737970;border-color:#dddcd4;border-radius:9px}.staff-delete{background:transparent;color:#b45446}.notice{border:1px solid #dddcd4;background:#fffdf8;color:#737970;border-radius:20px}.objection{border-color:#dddcd4}
details summary,.tool-entry summary{color:#3a4c40;font-weight:500;border-top:1px solid #e5e3db;padding-top:12px}.product>details{min-height:56px}a{color:#3a4c40}input,select,textarea,.editor-dialog input,.editor-dialog textarea{background:#fffdf8;color:#252924;border:1px solid #c6ccbf;border-radius:12px}.editor-dialog{background:#fffdf8;color:#252924;border-radius:24px}.full-row{grid-column:1/-1}.epp-add-card{border-color:#c6ccbf;color:#3a4c40;border-radius:24px}footer{color:#737970}
@media(max-width:1050px){body{padding-left:220px}#nav{width:220px;padding-left:14px;padding-right:14px}main{padding:28px 24px}header{padding:24px}.blocks,.products,.tools{grid-template-columns:1fr}.hero{height:190px}}
@media(max-width:700px){body{padding-left:0}header{padding:24px 20px}main{padding:20px}#nav{position:relative;left:auto;top:auto;bottom:auto;width:100%;padding:14px;border-radius:18px;flex-direction:row;overflow-x:auto;margin:0 0 30px}#nav:before{display:none}#nav button{width:auto;min-width:150px;flex:0 0 auto}.hero{height:180px;border-radius:60px 12px}.block,.product{padding:24px}#content>h1{font-size:34px}.spin-columns,.role-composite,.tools-columns{grid-template-columns:1fr}}

/* Owner revision: champagne text, readable chat headings, interactive learning mascot. */
header>small{color:#c9a771}.brand-values{display:inline-flex;flex-direction:column;margin-left:18px;font:10px/1.5 'JetBrains Mono',monospace;color:#c9a771;vertical-align:middle}header .logo{display:inline-block}header>div>small{display:block;margin-top:8px}
.hero~#nav button{color:#ccd4ca}.hero~#nav button.active{color:#202a25}.development{color:#c9a771!important}
button,a.tool,.tool.primary,.staff-chat,.tool-entry>button,.tool-entry>.tool{color:#c9a771}
#nav button{color:#ccd4ca}#nav button.active{color:#202a25}
#content .tool-list .tool-entry>button,#content .tool-list .tool-entry>a.tool{background:#fff;color:#252924;border:1px solid #dddcd4;border-radius:14px;font-weight:500}
.route-scroller,.route-map,.route-map-vertical{display:none!important}.route-icons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:24px 0}.route-icons>div{display:flex;flex-direction:column;align-items:center;gap:9px;text-align:center}.route-icons svg{width:42px;height:42px;color:#3a4c40}.route-icons small{color:#c9a771;font:10px 'JetBrains Mono',monospace}.route-icons span{font-size:13px;color:#252924}
.workspace-card{overflow:visible;min-height:0}.workspace-card>h2{font-size:clamp(20px,2.2vw,28px);line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip;margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid #dddcd4}.workspace-card>small{display:block;margin-bottom:16px;color:#c9a771}.workspace-card>p{margin-bottom:24px;line-height:1.65}.workspace-card>.tool{margin-top:24px}
.block>h2,.product>h2{position:relative;isolation:isolate;align-self:start;height:fit-content;width:fit-content;max-width:100%;padding:4px 7px;margin-left:-7px;transition:color .25s}.block>h2:before,.product>h2:before{content:'';position:absolute;inset:0;background:#202a25;z-index:-1;transform:scaleX(0);transform-origin:left;transition:transform .45s ease}.block:hover>h2:before,.product:hover>h2:before{transform:scaleX(1)}.block:hover>h2,.product:hover>h2{color:#c9a771}
.epp-holding{outline-color:#c9a771}.drop-target{outline-color:#c9a771}.epp-hold-hint{background:#c9a771}.drag-ghost{outline-color:#c9a771}.move-handle{color:#737970}.access-check{color:#c9a771}
.psychotype-picker{grid-column:1/-1;width:100%;margin:28px 0}.psychotype-tabs{display:flex;gap:12px;flex-wrap:wrap}.psychotype-tabs button{background:#fff;color:#252924;border-color:#dddcd4;border-radius:12px}.psychotype-tabs button[aria-selected=true]{background:#202a25;color:#c9a771}.psychotype-mascot{display:flex;justify-content:center;padding:32px 0}.psychotype-mascot img{display:block!important;width:min(100%,650px);height:auto;transition:filter .6s ease}
.psychotype-picker[data-colour=yellow] .psychotype-mascot img{filter:sepia(.9) saturate(2.5) hue-rotate(0deg)}
.psychotype-picker[data-colour=green] .psychotype-mascot img{filter:sepia(.9) saturate(2.1) hue-rotate(65deg)}
.psychotype-picker[data-colour=red] .psychotype-mascot img{filter:sepia(.9) saturate(3) hue-rotate(310deg)}
.psychotype-picker[data-colour=blue] .psychotype-mascot img{filter:sepia(.9) saturate(2) hue-rotate(160deg)}
.psychotype-panels .colour{width:100%}.psychotype-panels [hidden]{display:none!important}.psychotype-panels h2{font-size:28px}.psychotype-panels .block{border-top-color:#dddcd4!important}
@media(max-width:700px){.route-icons{gap:5px}.route-icons svg{width:30px;height:30px}.route-icons span{font-size:11px}.brand-values{font-size:8px;margin-left:12px}.workspace-card>h2{font-size:23px}.psychotype-mascot{padding:24px 0}}
@media(prefers-reduced-motion:reduce){.block>h2,.product>h2,.block>h2:before,.product>h2:before,.psychotype-mascot img{transition:none}}

body[data-window-layout=horizontal] #content .workspace-card,#content .workspace-card{display:flex;flex-direction:column;gap:0;align-items:stretch}
body[data-window-layout=horizontal] #content .workspace-card>h2,#content .workspace-card>h2{width:fit-content;max-width:100%;grid-column:auto;align-self:flex-start}

/* Refined header, full-width branch, soft colour tints and edge-to-title reveal. */
header{flex-wrap:nowrap}.header-brand{display:flex;align-items:stretch;gap:18px}.header-brand .logo{font-size:64px;line-height:1;font-weight:800}.header-brand .brand-values{margin:0;justify-content:space-between;font-size:12px;line-height:1.25;padding:3px 0}.library-title{color:#c9a771;font-size:15px;text-align:right}
#nav button{text-align:center}
.block>h2,.product>h2{margin-left:0;padding:4px 0;--title-edge:30px}.block>h2:before,.product>h2:before{left:calc(-1 * var(--title-edge));right:-12px;border-radius:0 12px 12px 0}.block:hover>h2,.product:hover>h2{color:#c9a771}
#content .tool-list .tool-entry>button,#content .tool-list .tool-entry>a.tool{transition:background .25s,color .25s,border-color .25s}
#content .tool-list .tool-entry>button:hover,#content .tool-list .tool-entry>a.tool:hover,#content .tool-list .tool-entry>button:focus-visible,#content .tool-list .tool-entry>a.tool:focus-visible{background:#202a25;color:#c9a771;border-color:#202a25}
.psychotype-picker[data-colour=yellow] .psychotype-mascot img{filter:sepia(.32) saturate(.7) hue-rotate(0deg)}
.psychotype-picker[data-colour=green] .psychotype-mascot img{filter:sepia(.32) saturate(.7) hue-rotate(65deg)}
.psychotype-picker[data-colour=red] .psychotype-mascot img{filter:sepia(.32) saturate(.7) hue-rotate(310deg)}
.psychotype-picker[data-colour=blue] .psychotype-mascot img{filter:sepia(.22) saturate(.75) hue-rotate(160deg)}
.hero{height:auto;aspect-ratio:2/1}.hero img{width:100%;height:100%;object-fit:contain}
@media(max-width:700px){.header-brand{gap:12px}.header-brand .logo{font-size:48px}.header-brand .brand-values{font-size:8px}.library-title{font-size:12px;max-width:95px}.block>h2,.product>h2{--title-edge:24px}.hero{height:auto;aspect-ratio:2/1}}

/* Larger library heading in the header. */
header .library-title{font-size:clamp(24px,3vw,38px);font-weight:500;line-height:1.15;letter-spacing:-.025em;max-width:none}
@media(max-width:700px){header .library-title{font-size:clamp(20px,4vw,28px);max-width:48%}}

/* Product hierarchy and restrained, visible psychotype colours. */
body[data-window-layout] #content article.product{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:20px;align-content:start}
body[data-window-layout] #content article.product>h2{grid-column:1;grid-row:1;align-self:start;margin-bottom:20px}
body[data-window-layout] #content article.product>.price{grid-column:2;grid-row:1;align-self:start;justify-self:end;text-align:right;margin:0;padding-top:4px;font-size:clamp(18px,2vw,25px);line-height:1.35}
body[data-window-layout] #content article.product>p,body[data-window-layout] #content article.product>details{grid-column:1/-1}
.psychotype-picker[data-colour=yellow]{--psy-colour:#e8dfba}.psychotype-picker[data-colour=green]{--psy-colour:#cfddd0}.psychotype-picker[data-colour=red]{--psy-colour:#e6ccc9}.psychotype-picker[data-colour=blue]{--psy-colour:#cbdbe7}
.psychotype-tabs button[data-colour=yellow]{background:#e8dfba}.psychotype-tabs button[data-colour=green]{background:#cfddd0}.psychotype-tabs button[data-colour=red]{background:#e6ccc9}.psychotype-tabs button[data-colour=blue]{background:#cbdbe7}
.psychotype-tabs button[aria-selected=true]{color:#252924;border-color:#252924;box-shadow:0 0 0 2px #25292422;font-weight:600}
.psychotype-picker[data-colour=yellow] .psychotype-mascot img{filter:sepia(.65) saturate(1.35) hue-rotate(0deg)}
.psychotype-picker[data-colour=green] .psychotype-mascot img{filter:sepia(.65) saturate(1.35) hue-rotate(65deg)}
.psychotype-picker[data-colour=red] .psychotype-mascot img{filter:sepia(.65) saturate(1.35) hue-rotate(310deg)}
.psychotype-picker[data-colour=blue] .psychotype-mascot img{filter:sepia(.65) saturate(1.35) hue-rotate(160deg)}
.psychotype-panels .colour>h2{color:#252924!important}.psychotype-panels .colour>h2:before{background:var(--psy-colour)!important;transform:scaleX(1)}
.psychotype-panels .colour:not([hidden])>h2:before{animation:psychotype-reveal .6s ease both}
@keyframes psychotype-reveal{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:450px){body[data-window-layout] #content article.product{column-gap:12px}body[data-window-layout] #content article.product>h2{font-size:20px}body[data-window-layout] #content article.product>.price{font-size:16px;max-width:120px}}
@media(prefers-reduced-motion:reduce){.psychotype-panels .colour:not([hidden])>h2:before{animation:none}}

/* Keep the original branch silver while tinting the mascot. */
.psychotype-art{position:relative;width:min(100%,650px)}
.psychotype-mascot .psychotype-art>img{width:100%;height:auto}
.psychotype-mascot .psychotype-art>.psychotype-branch{position:absolute;inset:0;filter:none!important;transition:none;pointer-events:none;mask-image:url('assets/branch-mask-v2.svg');mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-image:url('assets/branch-mask-v2.svg');-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat}

/* Separate tab shelf, with all authorized management controls retained. */
body,body[data-window-layout]{padding-left:0!important}
header{max-width:1280px;margin:auto}
main{max-width:1280px;margin:auto}
#nav,body[data-window-layout] #nav{position:relative;inset:auto;width:100%;padding:16px;margin:0 0 24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border-radius:22px;background:#e8e5dd;overflow:visible;z-index:5}
#nav:before{display:none}
#nav button,body[data-window-layout] #nav button{position:relative;width:100%;min-width:0;white-space:normal;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:16px 12px;border:1px solid #d4d4c9;border-radius:14px;background:#fffdf8;color:#202a25;font-weight:500;line-height:1.4;gap:4px;transition:background .2s,box-shadow .2s}
#nav button:hover{background:#f6f2ea;box-shadow:0 4px 14px #202a2510}
#nav button.active,body[data-window-layout] #nav button.active{background:#fff;color:#202a25;border-color:#c9a771;box-shadow:0 0 0 2px #c9a77125,0 6px 18px #202a2510}
#nav button[data-id=admin]{background:#202a25;color:#fffdf8}
#nav button[data-id=admin].active{background:#202a25;color:#fffdf8}
#nav .tab-edit{font-size:10px;padding:4px 8px;border:1px solid #d9d6ce;line-height:1.2;border-radius:5px;color:#596259;background:#f6f2ea;align-self:flex-end}
#management-shelf{display:flex;gap:10px;flex-wrap:wrap;padding:0 0 22px;margin-bottom:10px;border-bottom:1px solid #d9d6ce}
#management-shelf button{border-radius:8px;font-size:12px;padding:11px 16px;background:#fff;color:#202a25;border-color:#d4d4c9}
#management-shelf button:hover{background:#202a25;color:#fff}
.tab-settings{display:grid;gap:10px;margin:20px 0}.tab-settings>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid #dedbd4}.tab-settings button{font-size:12px;border-radius:8px;padding:9px 12px}
#content .edit-card{z-index:3;padding:6px 10px;font-size:11px;border-radius:6px;background:#f6f2ea;color:#202a25}#content .edit-card:hover{background:#202a25;color:#fff}
[hidden]{display:none!important}
@media(max-width:850px){#nav,body[data-window-layout] #nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:550px){#nav,body[data-window-layout] #nav{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:8px}#nav button,body[data-window-layout] #nav button{font-size:12px;min-height:64px}#management-shelf{gap:8px}#management-shelf button{flex:1;min-width:130px}}

.psychotype-original-cards{grid-template-columns:1fr!important}

/* One scrolling row of independent tab buttons, without a shared background. */
#nav,body[data-window-layout] #nav{display:flex;flex-direction:row;flex-wrap:nowrap;grid-template-columns:none;background:transparent;padding:8px 0 16px;border-radius:0;overflow-x:auto;overflow-y:hidden;gap:10px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c9a771 transparent}
#nav button,body[data-window-layout] #nav button{flex:0 0 auto;min-width:156px;max-width:220px;width:auto;min-height:64px;scroll-snap-align:start;padding:14px 20px}
@media(max-width:550px){#nav button,body[data-window-layout] #nav button{min-width:145px;max-width:185px}}

/* Fluid window sizing and a clean reading mode. */
html,body{width:100%;min-width:0;overflow-x:hidden}
header,main{width:100%;max-width:none;margin:0;padding-left:clamp(16px,3vw,48px);padding-right:clamp(16px,3vw,48px);box-sizing:border-box}
#content,#content .blocks,#content .products{min-width:0;width:100%}
#content .block,#content .product,#content .editable-subblock{min-width:0;overflow-wrap:break-word}
#library-edit-switch{margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid #dedbd4}
#toggle-library-editing{border-radius:8px;font-size:14px;padding:12px 18px;background:#202a25;color:#fff}
#toggle-library-editing[aria-pressed=true]{background:#fff;color:#202a25;border-color:#c9a771}
body:not([data-editing=true]) .edit-card,body:not([data-editing=true]) .tab-edit,body:not([data-editing=true]) .admin-entry-edit,body:not([data-editing=true]) .epp-add-card,body:not([data-editing=true]) #management-shelf{display:none!important}
@media(max-width:700px){header{gap:14px;flex-wrap:wrap}main{padding-top:20px}header .library-title{max-width:100%}.spin-columns,.role-composite,.tools-columns{grid-template-columns:1fr!important}.editor-dialog{max-width:calc(100vw - 24px)}.route-icons{gap:5px}.route-icons span{font-size:10px}.route-icons svg{width:30px;height:30px}}

header .library-title{margin-left:auto;text-align:right;font-size:clamp(32px,4vw,56px);font-weight:500;line-height:1.15;max-width:none}
@media(max-width:700px){header .library-title{font-size:28px;margin-left:auto;text-align:right;max-width:100%}}

/* Always reachable editor dismissal, including long popup forms. */
.editor-window-bar{background:#fffdf8;color:#252924}
.editor-window-close{flex:none;width:36px;height:36px;padding:0;border:0;background:transparent;color:#202a25;font-size:28px;line-height:1;cursor:pointer}
.editor-window-close:hover{background:#e9e5dd}
.popup-form-actions{position:sticky;bottom:0;background:#fffdf8;padding:12px 0;z-index:2}

/* A single header row, clear of device cutouts and Telegram controls. */
:root{--epp-action-bg:#202a25;--epp-action-text:#c9a771;--epp-device-top:0px;--epp-content-top:0px;--epp-device-left:0px;--epp-content-left:0px;--epp-device-right:0px;--epp-content-right:0px}
header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:clamp(10px,2vw,28px);flex-wrap:nowrap;padding-top:calc(24px + max(env(safe-area-inset-top,0px),var(--epp-device-top),var(--tg-safe-area-inset-top,0px)) + max(var(--epp-content-top),var(--tg-content-safe-area-inset-top,0px)));padding-left:calc(clamp(16px,3vw,48px) + max(env(safe-area-inset-left,0px),var(--epp-device-left)) + var(--epp-content-left));padding-right:calc(clamp(16px,3vw,48px) + max(env(safe-area-inset-right,0px),var(--epp-device-right)) + var(--epp-content-right));padding-bottom:24px}
.header-brand{--brand-height:clamp(32px,5vw,64px);display:flex;align-items:stretch;gap:clamp(8px,1.4vw,18px);min-width:0}
.header-brand .logo{font-size:var(--brand-height);line-height:1;margin:0;flex:none}
.header-brand .brand-values{height:var(--brand-height);padding:0;margin:0;display:flex;flex-direction:column;justify-content:space-between;font-size:calc(var(--brand-height) / 5.3);line-height:1;flex:none}
header .library-title{display:block;justify-self:end;min-width:0;max-width:100%;margin:0;text-align:right;font-size:clamp(20px,4vw,56px);line-height:1.12;overflow-wrap:normal}
#nav button:hover,#nav button:focus-visible,#nav button.active,body[data-window-layout] #nav button:hover,body[data-window-layout] #nav button:focus-visible,body[data-window-layout] #nav button.active{background:var(--epp-action-bg);color:var(--epp-action-text);border-color:var(--epp-action-bg);box-shadow:0 4px 14px #202a2518}
#nav button.active .development,#nav button:hover .development{color:var(--epp-action-text)!important}
@media(max-width:700px){header{padding-bottom:20px}header .library-title{font-size:clamp(19px,4.8vw,28px);max-width:100%;margin:0}.header-brand{--brand-height:clamp(32px,9vw,48px)}}

/* Align the three words with the visible capitals, not the logo line box. */
.header-brand{align-items:center}
.header-brand .brand-values{height:calc(var(--brand-height) * .72);font-size:calc(var(--brand-height) / 5.3);line-height:1}

.proposal-overlay{position:fixed;inset:0;z-index:10000;background:#e7f2fe;padding-top:42px}.proposal-overlay iframe{width:100%;height:100%;border:0}.proposal-overlay-close{position:absolute;right:16px;top:0;height:40px;min-width:40px;color:#101923!important;background:transparent!important;border:0!important;font:32px Arial!important;cursor:pointer}

#nav button:disabled{background:#e0e2e5!important;color:#8a8e95!important;border-color:#d0d3d8!important;box-shadow:none!important;cursor:not-allowed;opacity:.75;pointer-events:none}
