#member{min-height:100vh;background:#f5f1f7}
.journey-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem max(1rem,calc((100vw - 73rem)/2));background:#fff;border-bottom:1px solid var(--line)}
.journey-header a,.journey-card a{color:var(--ink);font-weight:600}
.journey-header a{text-decoration:none}
.journey-header nav [aria-current=page]{text-decoration:underline;text-underline-offset:.35em}
.journey-header nav{display:flex;gap:clamp(.85rem,3vw,2rem)}
.journey-brand{display:flex;align-items:center;gap:.5rem;white-space:nowrap}
.journey-mark{display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:var(--yellow)}
.journey-header #member-logout{margin:0}
.journey-wrap{max-width:75rem;margin:auto;padding:clamp(1rem,5vw,3.25rem) clamp(1rem,4vw,2rem) 4rem}
.journey-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.5rem}
.journey-heading .eyebrow{margin-bottom:.4rem}
.journey-heading h1 span{color:#826200}
.journey-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-block:1rem 2.5rem}
.journey-card{padding:clamp(1.2rem,3vw,2rem);border:1px solid var(--line);border-radius:1.3rem;background:white;overflow-wrap:anywhere}
.journey-card h2{font-size:clamp(1.45rem,3vw,2rem);margin-bottom:.85rem}
.journey-practice{background:#ede3f2}
.journey-guide{background:#fff5cf}
.journey-guide .note{margin:1rem 0 0}
.journey-card progress{display:block;width:100%;height:.65rem;accent-color:#8d6500;margin-bottom:1rem}
.journey-card ul{padding-left:1.25rem;margin:0}
.journey-history ol{padding-left:1rem;margin:0;list-style:none;border-left:2px solid #e8dbea}
.journey-history ol:empty{display:none}
.journey-history li{position:relative;padding-bottom:.6rem}
.journey-history li::before{position:absolute;left:-1.35rem;top:.5rem;content:'';width:.55rem;height:.55rem;background:#9a6b19;border-radius:50%}
.journey-history time{display:block;font-size:.85rem;color:#65576a}
.lesson-actions{margin-top:1.25rem}
.lesson-actions p{margin:0}
.journey-library .content-card,.journey-card{scroll-margin-top:1rem}
@media(max-width:700px){
  .journey-header{flex-wrap:wrap;gap:.65rem}
  .journey-header nav{order:2;width:100%;border-top:1px solid var(--line);padding-top:.6rem;flex-wrap:wrap}
  .journey-grid{grid-template-columns:1fr}
}
.journey-today{margin-top:2rem}
.journey-today>h2{font-size:clamp(1.9rem,4vw,2.65rem);margin-bottom:1rem}
.journey-cards{display:flex;gap:1rem}
.journey-tile{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:clamp(1.1rem,3vw,1.65rem);border-radius:1.3rem;border:1px solid var(--line);overflow-wrap:anywhere}
.journey-tile h3{font-size:clamp(1.25rem,2vw,1.6rem);line-height:1.2;margin:0 0 .55rem}
.journey-tile .cta{margin-top:auto}
.journey-tile .cta:not(.primary){color:var(--ink);background:#fff}
.journey-tile-next{background:#fff}
.journey-tile-discover{background:#ede3f2}
.journey-tile-win{background:#fff0b3}
@media(max-width:700px){
  .journey-cards{display:grid;grid-template-columns:minmax(0,1fr)}
}
#member-personal button{margin:.2rem .35rem .2rem 0}
#member-personal textarea{max-width:100%}
#member-personal{scroll-margin:1rem}
.member-map-card{margin-block:1rem;background:#fdfbff;scroll-margin-top:1rem}
.member-map-actions{display:flex;flex-wrap:wrap;gap:.65rem}
.member-profile-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.85rem;margin-bottom:1.2rem}
.member-profile-header h1{margin:0}
.member-profile-header .cta{background:#fff;color:var(--ink)}
#member-profile-settings{scroll-margin-top:1rem}
.growth-explorer{
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
  border:1px solid #e5dae9;border-radius:1.4rem;overflow:hidden;background:#fff;
}
.growth-diagram{
  display:flex;flex-direction:column;min-width:0;padding:1rem;
  background:radial-gradient(ellipse at 52% 56%,#614471 0%,#3c2949 52%,#2d2234 100%);color:white;
}
.growth-instruction,.growth-key{color:#f1e2f4;font-size:.84rem;margin:0;padding:.2rem .3rem}
.growth-key::before{content:'';display:inline-block;width:1.4rem;border-top:2px dashed #edc0fa;vertical-align:middle;margin-right:.5rem}
.growth-stage{position:relative;flex:1;min-height:23rem;isolation:isolate}
.growth-stage canvas{
  position:absolute;inset:0;width:100%;height:100%;
  background:radial-gradient(circle,#ead9f233 1px,transparent 1px) center/19px 19px;
}
.growth-hub,.growth-stage .growth-area{
  position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);margin:0;
}
.growth-hub{
  --x:42%;--y:52%;display:grid;place-content:center;justify-items:center;text-align:center;
  width:5.1rem;height:5.1rem;border:1px solid #d8b8e0;border-radius:50%;color:#fff;background:#543860;
  box-shadow:0 0 0 .42rem #d8b8e023;font-size:.69rem;font-weight:700;
}
.growth-hub span:first-child{color:#ffdb57;font-size:1.45rem;line-height:1.15}
.growth-stage .growth-area{
  display:grid;justify-items:start;gap:.25rem;width:min(46%,12rem);padding:.65rem .75rem;
  border:1px solid #cbb1d4;border-radius:.9rem;background:#efe3f4;color:#36243e;
  text-align:left;line-height:1.25;box-shadow:0 .3rem .8rem #140b2080;overflow-wrap:anywhere;
}
.growth-area[data-position="0"]{--x:26%;--y:19%}
.growth-area[data-position="1"]{--x:75%;--y:39%}
.growth-area[data-position="2"]{--x:65%;--y:80%}
.growth-stage[data-count="2"] .growth-area[data-position="1"]{--y:70%}
.growth-stage[data-count="1"] .growth-area[data-position="0"]{--x:68%;--y:38%}
.growth-stage[data-count="1"] .growth-hub{--x:24%;--y:62%}
.growth-stage[data-count="1"]{min-height:17rem}
.growth-stage .growth-area[aria-pressed=true]{border-color:#ffe487;background:#ffe487;box-shadow:0 0 0 .28rem #ffdf6040,0 .3rem .8rem #26163180}
.growth-stage .growth-area.growth-related{border-color:#e9a9f5;box-shadow:0 0 0 2px #e9a9f559,0 .3rem .8rem #26163180}
.growth-marker{font-size:.68rem;text-transform:uppercase;letter-spacing:.065em;color:#563069;font-weight:750}
.growth-detail{min-width:0;padding:clamp(1rem,3vw,1.85rem)}
.growth-detail h3{font-size:clamp(1.52rem,3vw,2.35rem);line-height:1.09;margin:0;letter-spacing:-.035em}
.growth-detail .growth-domain{margin:.4rem 0 .85rem;color:#655571;font-size:.89rem;font-weight:600}
.growth-first-step{padding:.75rem .95rem;margin-top:1rem;border-radius:.85rem;background:#fff0b3}
.growth-first-step .growth-note{margin:0}
.growth-relations{margin-top:1rem}
.growth-relations h4{font-size:.88rem;margin:0 0 .35rem}
#member-personal .growth-relations button{
  display:grid;gap:.15rem;width:100%;margin:.25rem 0 0;padding:.55rem .75rem;
  text-align:left;border-color:#e7d6ed;background:#f7eef9;color:#4c295a;font-size:.88rem;
}
.growth-relations button span{font-weight:400;font-size:.79rem}
@media(max-width:850px){
  .growth-explorer{grid-template-columns:minmax(0,1fr)}
  .growth-stage{min-height:18rem}
}
@media(max-width:420px){
  .growth-diagram{padding:.7rem}
  .growth-stage .growth-area{padding:.55rem .52rem;font-size:.8rem}
  .growth-area[data-position="1"]{--y:42%}
  .growth-stage[data-count="2"] .growth-area[data-position="1"]{--y:73%}
  .growth-hub{--x:32%;width:4.15rem;height:4.15rem}
}
@media(prefers-reduced-motion:no-preference){
  .growth-explorer.is-visible canvas{animation:growth-lines-in 540ms ease-out both}
  .growth-stage .growth-area{transition:background-color 180ms,box-shadow 180ms}
  @keyframes growth-lines-in{from{opacity:.25}to{opacity:1}}
}
#member-assessment{max-height:calc(100dvh - 2rem);overflow:auto}
#member-assessment-body label{margin-block:.75rem}
.member-photo-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.member-avatar{display:block;width:88px;height:88px;border-radius:50%;object-fit:cover;border:2px solid var(--yellow)}
.assessment-recommendation{padding:.75rem 1rem;margin-block:.65rem;border:1px solid var(--line);border-radius:.85rem;background:#f5f1f7}
.assessment-recommendation p{margin:.35rem 0 0}
.member-avatar-initials{display:grid;place-items:center;background:#ede3f2;color:var(--ink);font-weight:700;font-size:1.65rem}
#member-photo-status{margin:.75rem 0 0}
.member-chat{display:grid;grid-template-columns:minmax(9rem,1fr) minmax(0,2fr);gap:1rem;margin-top:.7rem}
.chat-sidebar,.chat-thread{min-width:0}
.chat-sidebar h3,.chat-thread h3{margin:.35rem 0 .7rem}
#member-chat-contacts{display:flex;flex-direction:column;gap:.25rem;max-height:16rem;overflow:auto}
#member-chat-contacts button{text-align:left;overflow-wrap:anywhere}
#member-chat-contacts [aria-pressed=true]{background:var(--yellow);border-color:var(--yellow)}
.chat-thread{display:flex;flex-direction:column;padding:.6rem .8rem;background:white;border-radius:1rem;border:1px solid var(--line)}
.chat-thread-heading,.chat-topbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.chat-thread-heading h3{overflow-wrap:anywhere}
.chat-messages{display:flex;flex-direction:column;gap:.6rem;min-height:11rem;max-height:20rem;overflow:auto;padding:.45rem}
.chat-bubble{border-radius:.85rem;padding:.55rem .7rem;max-width:90%;overflow-wrap:anywhere}
.chat-bubble p{margin:0;white-space:pre-wrap;color:var(--ink)}
.chat-bubble time{font-size:.75rem;color:#5d5261}
.chat-received{background:#ede3f2}
.chat-sent{margin-left:auto;background:#ffe78a}
.chat-composer{display:flex;align-items:end;gap:.5rem;margin-top:.55rem}
.chat-composer label{flex:1;min-width:0}
#member-chat-status:empty{display:none}
#member-inbox{grid-column:1/-1}
.chat-launcher{position:fixed;right:1rem;bottom:1rem;z-index:5;display:flex;align-items:center;gap:.55rem;margin:0;background:var(--ink);color:white;border:1px solid var(--ink);border-radius:999px;box-shadow:0 .4rem 1.2rem #251d2540}
#member-chat-unread{min-width:1.5rem;padding:.1rem .35rem;border-radius:999px;background:var(--yellow);color:var(--ink);text-align:center;font-weight:700}
#member-chat-dialog{position:fixed;inset:auto 1rem 1rem auto;width:min(45rem,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);margin:0;background:#f5f1f7;overflow:auto}
#member-chat-dialog .chat-messages{flex:1;min-height:5rem}
#member-chat-dialog::backdrop{background:#251d2540}
@media(max-width:650px){
 .member-chat{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:.4rem}
 #member-chat-contacts{flex-direction:row}
 #member-chat-contacts button{white-space:nowrap}
 .chat-composer button{padding:.55rem .65rem}
}

.chat-identity,#member-chat-contacts button{display:flex;align-items:center;gap:.55rem}
.chat-avatar{position:relative;flex:none;display:grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:50%;overflow:hidden;background:#ede3f2;color:var(--ink);font-size:.78rem;font-weight:700}
.chat-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.chat-message-row{display:flex;align-items:flex-end;gap:.45rem;min-width:0}
.chat-message-row .chat-avatar{width:1.65rem;height:1.65rem;font-size:.65rem}
.chat-message-row .chat-bubble{min-width:0}

@font-face{
  font-family:'Dancing Script';src:url('/fonts/DancingScript.ttf') format('truetype');
  font-weight:400 700;font-display:swap;
}
.journal-card{
  display:grid;place-items:center;min-height:23rem;
  background:radial-gradient(ellipse at 48% 20%,#f3dfc6,#e4c7ac 65%,#d4b39a);
}
.journal-cover{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;
  width:min(100%,16rem);min-height:19rem;padding:2.1rem 1.3rem 2rem 1.75rem;
  border:1px solid #49231d;border-radius:.45rem 1rem 1rem .45rem;
  background:
    linear-gradient(90deg,#1d0c0899,transparent 6%,#230c0855 9%,transparent 13%),
    radial-gradient(ellipse at 29% 16%,#ad633f66,transparent 70%),
    repeating-linear-gradient(137deg,#e7b3800d 0 1px,transparent 1px 4px),
    repeating-linear-gradient(46deg,#1c0d1033 0 1px,transparent 1px 5px),#603626;
  color:#f6d698;box-shadow:inset 0 0 1.15rem #28140c88,.33rem .27rem 0 #dec09a,.54rem .45rem 0 #573022,.6rem .8rem 1.4rem #53311b55;
}
.journal-cover::before{content:'';position:absolute;inset:.65rem .65rem .65rem 1rem;border:1px dashed #ecc49390;border-radius:.4rem .7rem .7rem .4rem;pointer-events:none}
.journal-cover-title{font:650 2.4rem/1.05 'Dancing Script',cursive;text-shadow:0 2px #391c14}
.journal-inscription{
  max-width:100%;overflow-wrap:anywhere;color:#f3c999;
  font:600 clamp(1.15rem,3.5vw,1.45rem)/1.12 'Dancing Script',cursive;
  text-shadow:0 -1px #2e140e,0 1px #402017;
}
.journal-cover-action{margin-top:.65rem;font-size:.82rem}
.journal-book{
  width:min(94vw,68rem);max-width:none;max-height:calc(100dvh - 2rem);padding:0;
  border:5px solid #573022;border-radius:1rem;background:#e9c790;color:#45291c;overflow:auto;
  box-shadow:0 1.4rem 4rem #110901b0;
}
.journal-book::backdrop{background:radial-gradient(ellipse at 37% 26%,#784222ad,#190e0af2 78%)}
.journal-spread{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)}
.journal-page{
  min-width:0;padding:clamp(1rem,3vw,2.3rem);
  background:
    radial-gradient(ellipse at 37% 14%,#fff2c8 0%,#ffebbc55 46%,#a35d232e 100%),
    repeating-linear-gradient(91deg,#754a140b 0 1px,transparent 1px 5px),#eed1a0;
}
.journal-editor{box-shadow:inset -1.05rem 0 1.3rem -1.1rem #673815}
.journal-history{border-left:1px solid #ae8159;box-shadow:inset .95rem 0 1.3rem -1.1rem #673815}
.journal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.65rem;margin-bottom:1.2rem}
.journal-heading h2{margin:0;font:700 clamp(2.2rem,5vw,3.6rem)/1 'Dancing Script',cursive}
.journal-book button{background:#fff0cd;border-color:#b7895e;color:#4a2a1a}
.journal-book button.primary{background:#613724;border-color:#613724;color:#fff3d6}
.journal-book .form{width:100%}
.journal-book label,.journal-book p,.journal-book time{color:#563320}
.journal-book textarea,.journal-book .post-body{
  color:#263851;font:600 clamp(1.55rem,3vw,1.95rem)/1.4 'Dancing Script',cursive;
}
.journal-book textarea{
  padding:.4rem .55rem;border-color:#be9c6d;border-radius:.35rem;min-height:11rem;
  background:repeating-linear-gradient(transparent 0 calc(1.4em - 1px),#a7784738 calc(1.4em - 1px) 1.4em) 0 .3rem/100% auto,#fff2cf55;
}
.journal-book .post-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:.2rem 0 .55rem}
.journal-history h3{margin-top:0}
#member-journal-list{max-height:23rem;overflow:auto;padding:.25rem .4rem .25rem 0}
#member-journal-list article{border-bottom:1px solid #bc946a;padding:.65rem 0}
#member-journal-list article button+button{margin-left:.45rem}
#member-journal-list time{font-size:.83rem}
#member-journal-quote{margin-top:.65rem}
#member-journal-status{margin-top:.65rem}
#member-journal-status:empty,#member-journal-quote-status:empty{display:none}
@media(max-width:700px){
  .journal-spread{grid-template-columns:minmax(0,1fr)}
  .journal-history{box-shadow:none;border-left:0;border-top:1px solid #ae8159}
  .journal-editor{box-shadow:none}
}
@media(prefers-reduced-motion:no-preference){
  .journal-book[open]{animation:journal-open 520ms cubic-bezier(.2,.7,.22,1) both;transform-origin:left center}
  .journal-cover:hover{transform:translateY(-3px) rotate(-1deg)}
  .journal-cover{transition:transform 180ms ease-out}
  @keyframes journal-open{
    from{opacity:0;transform:perspective(1100px) rotateY(-29deg) scale(.95)}
    to{opacity:1;transform:none}
  }
}

.growth-priority{
  display:inline-block;margin:0 0 .75rem;padding:.3rem .62rem;
  border-radius:.65rem;background:#4e3165;color:#fff;font-size:.77rem;font-weight:700;
}
.growth-note{margin-top:.85rem}
.growth-note h4,.assessment-recommendation .growth-note h4{margin:0 0 .24rem;font-size:.87rem;color:var(--ink)}
.growth-note p,.assessment-recommendation .growth-note p{margin:0;line-height:1.5}
.assessment-recommendation>h4{margin:.25rem 0 .45rem}

.member-notice{max-width:73rem;margin:1rem auto 0;padding-inline:1rem}
.member-notice:empty{display:none}
.member-header-account{display:flex;align-items:center;gap:.55rem;min-width:0}
.member-header-account #journey-account{
  max-width:12rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:.86rem;font-weight:600;
}
.member-header-account #member-logout{white-space:nowrap;font-size:.83rem;padding:.5rem .65rem}
#journey-profile-photo{flex:none;border-radius:50%}
#journey-profile-photo .member-avatar{width:2.25rem;height:2.25rem;font-size:.8rem}
.club-home-hero{
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;
  overflow:hidden;border-radius:1.6rem;background:#302336;color:white;
}
.club-home-intro{padding:clamp(1.6rem,4.5vw,4.2rem)}
.club-home-intro .eyebrow{color:#ffdb57}
.club-home-intro h1{max-width:11ch;font-size:clamp(2.8rem,6.5vw,5.9rem);line-height:.98;margin:0 0 1.15rem}
.club-home-intro p:not(.eyebrow){max-width:42ch;margin-bottom:1.4rem;color:#eee6ef}
.club-home-hero>img{display:block;width:100%;height:auto;padding:1rem 1rem 1rem 0;object-fit:contain}
.club-home-section{margin-top:clamp(2rem,5vw,4rem)}
.club-home-section h2{margin:0 0 1.1rem}
.club-home-section .member-profile-header h2{margin:0}
.club-home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.club-home-card{
  display:flex;flex-direction:column;align-items:flex-start;padding:clamp(1.1rem,2.6vw,1.7rem);
  border:1px solid var(--line);border-radius:1.15rem;background:#fff;overflow-wrap:anywhere;
}
.club-home-card:nth-child(2){background:#efe5f7}
.club-home-card:nth-child(3){background:#fff3cd}
.club-home-card h3{font-size:clamp(1.15rem,2vw,1.4rem);line-height:1.25;margin:0 0 .65rem}
.club-home-card a,.club-home-card button,.club-home-section header a{color:#533367;font-weight:650}
.club-home-card a,.club-home-card button{margin-top:auto}
.club-home-card button{padding:0;border:0;background:transparent;text-align:left;text-decoration:underline}
.club-home-card button:disabled{opacity:.5;cursor:default}
#journey-library h1{margin-bottom:1.25rem}
@media(max-width:960px){
  .journey-header{flex-wrap:wrap}
  .journey-header nav{order:2;width:100%;border-top:1px solid var(--line);padding-top:.6rem;flex-wrap:wrap}
}
@media(max-width:700px){
  .club-home-hero,.club-home-cards{grid-template-columns:minmax(0,1fr)}
  .club-home-hero>img{max-height:19rem;padding:0 1rem 1rem}
  .member-header-account #journey-account{max-width:min(32vw,10rem)}
  .journey-header nav{gap:.6rem 1rem}
}

.member-account-settings .form [role=status]:empty{display:none}
.member-account-settings .form button{justify-self:start}

.member-profile-card{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1.25rem;
  padding:clamp(1.35rem,4vw,3rem);margin-bottom:1.25rem;border-radius:1.6rem;
  background:radial-gradient(ellipse at 15% 30%,#674875,#34243e 72%);color:white;
}
.member-profile-identity{display:flex;align-items:center;gap:clamp(.8rem,3vw,1.6rem);min-width:0}
.member-profile-identity>div{min-width:0}
.member-profile-identity .member-avatar{flex:none;width:clamp(4rem,11vw,7rem);height:clamp(4rem,11vw,7rem)}
.member-profile-card h1{margin:0;overflow-wrap:anywhere}
.member-profile-card .eyebrow{color:#ffdb57;margin-bottom:.35rem}
#member-profile-visibility{margin:.45rem 0 0;color:#f1e4f3;font-size:.87rem}
#member-profile-visibility:empty{display:none}
.member-profile-card .cta{background:#fff;color:var(--ink)}
#member-profile-nickname{margin:.45rem 0 0;color:#ffdb83;font-weight:600;overflow-wrap:anywhere}
.private-label{font-size:.9rem;color:#62526d;margin-bottom:.35rem}
.chat-profile-actions{display:flex;flex-wrap:wrap;gap:.35rem}
#member-peer-profile{max-width:calc(100vw - 2rem)}
#member-peer-profile .chat-avatar{width:4.5rem;height:4.5rem;font-size:1.35rem}
#member-peer-profile form{margin-top:1rem}

.studio-section{margin-top:2rem}
.studio-file{display:flex;align-items:flex-start;flex-wrap:wrap;gap:1rem}
.studio-file>div{flex:1 1 18rem;min-width:0}
.studio-file img{width:min(14rem,100%);aspect-ratio:16/9;object-fit:contain;border-radius:.6rem;background:#f5f1f7}
.studio-file h3{overflow-wrap:anywhere;margin:.1rem 0 .35rem}
.studio-file dl{display:grid;grid-template-columns:minmax(8rem,.7fr) minmax(0,1.5fr);gap:.42rem .75rem}
.studio-file dt{font-weight:650}
.studio-file dd{margin:0;overflow-wrap:anywhere}
.studio-file label{margin-top:.65rem}
#studio-upload-progress{width:100%;accent-color:#674875}
#studio-list-status:empty,#studio-upload-status:empty{display:none}
#studio-search{align-items:end;margin-bottom:.8rem}
#studio-search-results ul{padding-inline-start:1.3rem}

.studio-player-cover{display:block;width:min(18rem,100%);height:auto;border-radius:.65rem;margin-bottom:.7rem}

#activity-events td:nth-child(4){white-space:normal;overflow-wrap:anywhere;min-width:12rem}
#activity-events td:nth-child(5){white-space:nowrap}

.discover-heading{margin-bottom:1.35rem}
.discover-heading h1{margin:.4rem 0 .55rem}
.discover-heading p{max-width:50ch;margin:0}
.discover-back,#discover-lesson-back,.discover-other{color:#5e3970;font-weight:700}
#discover-sections{display:grid;grid-template-columns:1.35fr 1fr;gap:1rem}
.discover-section-tile{
  position:relative;isolation:isolate;display:flex;align-items:flex-end;min-width:0;min-height:13.5rem;
  padding:clamp(1.1rem,3vw,2.2rem);overflow:hidden;border-radius:1.45rem;color:#261d2a;background:#f2e4fa;
  text-decoration:none;border:1px solid #e5d8eb;
}
.discover-section-tile>div{position:relative;max-width:25ch;margin-right:2rem}
.discover-section-tile h2{font-size:clamp(1.55rem,3.2vw,3.1rem);margin:0 0 .55rem}
.discover-section-tile p{color:inherit;margin:0;opacity:.9}
.discover-rozvoj{grid-row:span 2;min-height:28rem;background:radial-gradient(ellipse at 86% 22%,#6a4b7c,#34243e 71%);color:#fff}
.discover-filozofie{background:#fff0b4}
.discover-tile-icon{position:absolute;z-index:-1;top:-.3em;right:.13em;font:700 clamp(5rem,15vw,12rem)/1.3 system-ui;opacity:.2}
.discover-rozvoj .discover-tile-icon{color:#ffdc63;opacity:.8}
.discover-tile-arrow{position:absolute;bottom:1.3rem;right:1.3rem;font-size:1.35rem}
.discover-section-tile:hover .discover-tile-arrow{transform:translateX(.2rem)}
.discover-topic-grid,.discover-lesson-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.discover-orbit{
  display:grid;grid-template-columns:1fr minmax(0,1.5fr) 1fr;grid-template-rows:repeat(3,minmax(5rem,auto));
  gap:.85rem;align-items:center;padding:clamp(1rem,4vw,3rem);
  border-radius:1.5rem;background:radial-gradient(ellipse at 50% 50%,#765891,#392747 65%,#291e31);isolation:isolate;
}
.discover-orbit img{grid-area:1/2/4/3;width:100%;height:auto;align-self:center;filter:drop-shadow(0 1rem 1rem #211528a0)}
.discover-topic{
  display:flex;flex-direction:column;gap:.32rem;padding:.85rem 1rem;border-radius:1rem;
  border:1px solid #dccae7;background:#fff;color:#35253d;text-decoration:none;
}
.discover-topic span{font-size:.82rem;color:#655670}
.discover-topic strong{font-size:1.07rem}
.discover-orbit .discover-topic{margin-inline:.3rem;background:#efe0fa;border-color:#c5a7d2;box-shadow:0 .4rem 1rem #26183380}
.discover-orbit .discover-topic:first-of-type{grid-area:1/1;background:#ffeb97;border-color:#ffe47e}
.discover-orbit .discover-topic:nth-of-type(2){grid-area:1/3}
.discover-orbit .discover-topic:nth-of-type(3){grid-area:2/1}
.discover-orbit .discover-topic:nth-of-type(4){grid-area:2/3}
.discover-orbit .discover-topic:nth-of-type(5){grid-area:3/3}
.discover-topic:hover{border-color:#a57bb5;background:#fff5cf}
.discover-lesson-card{display:block;overflow:hidden;border-radius:1.05rem;border:1px solid var(--line);background:#fff;color:var(--ink);text-decoration:none}
.discover-lesson-preview{position:relative;display:grid;place-items:center;aspect-ratio:16/9;background:#483151;color:#ffe477;font-size:2rem}
.discover-lesson-preview img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.discover-lesson-preview .discover-duration{position:absolute;right:.55rem;bottom:.5rem;padding:.22rem .45rem;border-radius:.35rem;background:#261c2ce6;color:#fff;font-size:.8rem}
.discover-lesson-card>div:last-child{padding:.8rem 1rem}
.discover-lesson-card h2{font-size:1.1rem;line-height:1.3}
.discover-lesson-card p{margin:0;font-size:.85rem}
.discover-lesson-card:hover{border-color:#9e7aad}
.discover-lesson-grid:has(> :only-child){grid-template-columns:minmax(0,24rem)}
#discover-search{margin-top:1.2rem}
@media(max-width:710px){
  #discover-sections{grid-template-columns:minmax(0,1fr)}
  .discover-rozvoj{grid-row:auto;min-height:16rem}
  .discover-orbit{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:.65rem}
  .discover-orbit img{grid-area:1/1/2/3;width:min(100%,18rem);justify-self:center}
  .discover-orbit .discover-topic:nth-of-type(n){grid-area:auto;margin:0;height:100%}
  .discover-orbit .discover-topic{padding:.7rem .6rem}
}
@media(prefers-reduced-motion:no-preference){
  .discover-topic,.discover-tile-arrow{transition:background-color 180ms,border-color 180ms,transform 180ms}
  .discover-orbit .discover-topic:hover{transform:translateY(-3px)}
}
.journey-today #journey-resume{margin-bottom:1rem}
.discover-orbit-expanded{grid-auto-rows:auto}
#transcript-editor,#member-view-preview{width:min(92vw,52rem);max-height:90dvh;overflow:auto}
#transcript-editor .form{width:100%}
#transcript-editor textarea{font-family:ui-monospace,monospace;min-height:15rem}
#platform-support{max-width:73rem;margin:1rem auto;padding:0 1rem}

.club-home-intro .club-home-secondary{color:white;border:1px solid #a990b3}
#member-feed{max-width:61rem}
.feed-hero{
  display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;
  border-radius:1.45rem;padding:clamp(1.2rem,4vw,2.5rem);background:#392745;color:#fff;
}
.feed-hero h1{margin:0;color:#ffdd6a}
.feed-hero p{margin:.4rem 0 0;color:#f3eaf6}
.feed-filters,.feed-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin:1rem 0}
.feed-filters [aria-pressed=true],.feed-actions [aria-pressed=true]{color:#341f3c;background:#ffed9e;border-color:#eed77b}
#feed-items{display:grid;gap:1.1rem}
.feed-card{min-width:0;border-radius:1.25rem;background:#fff;border:1px solid var(--line);padding:clamp(.85rem,3vw,1.65rem)}
.feed-card h2{font-size:clamp(1.35rem,4vw,2rem)}
.feed-card h2 a{color:var(--ink);text-decoration:none}
.feed-card h2 a:hover{text-decoration:underline}
.feed-card .eyebrow{margin-bottom:.35rem}
.feed-card .feed-reason{font-size:.86rem;color:#674875}
.feed-card .club-player{max-width:100%}
.feed-card [role=status]:empty,#feed-status:empty{display:none}
.feed-card .feed-body{white-space:pre-wrap;overflow-wrap:anywhere}
.feed-comments{padding:.8rem .85rem;border-radius:.8rem;background:#f5eff8}
.feed-comments summary{cursor:pointer;font-weight:650}
.feed-comments form{margin-top:.7rem}
.feed-comment{padding:.65rem 0;border-bottom:1px solid #e3d8eb}
.feed-comment p{margin:0 0 .3rem}
.feed-comment time{font-size:.8rem}
#feed-more{margin-top:1rem}
.club-author{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem;align-items:center;background:#fff0be;border-radius:1.4rem;overflow:hidden}
.club-author img{width:100%;height:auto;display:block}
.club-author>div{padding:clamp(1rem,3vw,2.2rem)}
.club-author a{color:#593069;font-weight:650}
@media(max-width:710px){.club-author{grid-template-columns:minmax(0,1fr)}.club-author img{max-height:16rem;object-fit:contain}}

.chat-window-actions{display:flex;flex-wrap:wrap;justify-content:end;gap:.35rem}
.chat-window-actions [aria-pressed=true]{background:#ffed9e;border-color:#eed77b}
#member-chat-dialog.chat-fullscreen[open]{
  display:flex;flex-direction:column;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;
  border:0;border-radius:0;overflow:hidden;
}
#member-chat-dialog.chat-fullscreen .member-chat{flex:1;min-height:0}
#member-chat-dialog.chat-fullscreen .chat-sidebar,
#member-chat-dialog.chat-fullscreen .chat-thread{min-height:0}
#member-chat-dialog.chat-fullscreen .chat-sidebar{overflow:auto}
#member-chat-dialog.chat-fullscreen #member-chat-contacts{max-height:none}
#member-chat-dialog.chat-fullscreen .chat-messages{max-height:none;min-height:0;overflow:auto}
@media(max-width:600px){
  .chat-window-actions button{padding:.4rem .56rem;font-size:.8rem}
  #member-chat-dialog.chat-fullscreen{padding:.65rem}
  #member-chat-dialog.chat-fullscreen .chat-sidebar{max-height:32dvh}
}

#member{
  --member-sidebar:14rem;
  padding-inline-start:var(--member-sidebar);
}
#member.member-nav-collapsed{--member-sidebar:4.6rem}
.journey-header{
  position:fixed;inset:0 auto 0 0;width:var(--member-sidebar);z-index:10;
  box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:1rem;
  padding:1rem .72rem;background:#f9f2fb;border:0;border-right:1px solid var(--line);
}
.member-brand-row{display:flex;align-items:center;justify-content:space-between;gap:.25rem;min-width:0}
.member-brand-row .journey-brand{min-width:0;gap:.4rem;font-size:.93rem}
.member-brand-row .journey-mark{flex:none}
.member-brand-name{overflow:hidden;text-overflow:ellipsis}
#member-nav-toggle{padding:.32rem;display:grid;place-items:center;background:transparent;border-color:transparent}
#member-nav-toggle svg{width:1.24rem;height:1.24rem}
.journey-header #journey-nav{display:grid;gap:.32rem;width:100%;padding:0;border:0;order:0}
#journey-nav a,#journey-nav button{
  position:relative;display:flex;align-items:center;gap:.66rem;text-align:left;
  min-width:0;padding:.57rem .62rem;border:1px solid transparent;border-radius:.74rem;
  background:transparent;color:#42294f;text-decoration:none;font-weight:650;
}
#journey-nav svg{flex:none;width:1.35rem;height:1.35rem}
#journey-nav [aria-current=page],#journey-nav [aria-expanded=true]{background:#ffea92;color:#301d3a}
#journey-nav a:hover,#journey-nav button:hover{border-color:#ddcbe5}
.journey-header .member-header-account{
  display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.55rem;
  margin-top:auto;padding-top:.75rem;border-top:1px solid var(--line)
}
.member-account-label{display:grid;gap:.12rem;min-width:0}
.member-account-label a{font-size:.88rem}
.member-header-account #journey-account{max-width:100%;font-size:.76rem;color:#655571}
.member-header-account #member-logout{grid-column:1/-1;justify-self:start}
.member-nav-count,.member-nav-dot{
  position:absolute;right:.42rem;top:.39rem;border-radius:999px;background:#80264e;color:#fff;
}
.member-nav-count{padding:.05rem .25rem;min-width:1rem;font-size:.65rem;text-align:center}
.member-nav-dot{width:.55rem;height:.55rem}
.member-nav-collapsed .member-brand-row{flex-direction:column}
.member-nav-collapsed .member-brand-name,.member-nav-collapsed .member-nav-label,
.member-nav-collapsed .member-account-label{display:none}
.member-nav-collapsed .journey-header .member-header-account{display:flex;flex-direction:column}
.member-nav-collapsed .member-header-account #member-logout{font-size:.62rem;padding:.32rem .18rem}
.member-nav-collapsed #journey-nav a,.member-nav-collapsed #journey-nav button{justify-content:center}
#member-notifications-list{display:grid;gap:.55rem;margin-top:.9rem}
.member-notification{padding:1rem 1.2rem;background:#fff;border:1px solid var(--line);border-radius:.95rem}
.member-notification.notification-unread{border-left:4px solid #d58d00;background:#fff9dd}
.member-notification a{color:#42294f;font-weight:700}
.member-notification p{margin:.28rem 0}
.member-notification time{font-size:.8rem;color:#655571}
#member-notifications-status:empty{display:none}
#feed-back{display:inline-block;margin:1rem 0;color:#5e3970;font-weight:650}
@media(max-width:760px){
  #member,#member.member-nav-collapsed{padding:0 0 calc(4.25rem + env(safe-area-inset-bottom))}
  .journey-header{position:relative;inset:auto;width:100%;padding:.64rem .85rem;flex-direction:row;align-items:center;
    justify-content:space-between;gap:.45rem;flex-wrap:nowrap;border:0;border-bottom:1px solid var(--line)}
  #member-nav-toggle{display:none}
  .member-nav-collapsed .member-brand-name{display:inline}
  .journey-header .member-header-account,.member-nav-collapsed .journey-header .member-header-account{
    display:flex;flex-direction:row;margin:0;padding:0;border:0;gap:.48rem
  }
  .member-header-account #journey-profile-photo{order:2}
  .journey-header .member-header-account #member-logout{font-size:.72rem;padding:.35rem .38rem}
  .member-header-account .member-account-label{display:none}
  .journey-header #journey-nav{position:fixed;z-index:12;inset:auto 0 0;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
    padding:.25rem .2rem max(.34rem,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
  #journey-nav a,#journey-nav button{flex-direction:column;justify-content:center;align-items:center;gap:.16rem;min-height:3.15rem;min-width:0;
    padding:.26rem .08rem;font-size:clamp(.58rem,2.1vw,.74rem);border-radius:.62rem;text-align:center}
  #journey-nav .member-nav-label{display:block;line-height:1.25}
  #journey-nav .member-nav-count,#journey-nav .member-nav-dot{right:calc(50% - 1.08rem);top:.15rem}
  #member-chat-expand{display:none}
}

.appearance-settings{margin:1.1rem 0}
.appearance-settings label{max-width:19rem}
#member-theme-status{margin:.6rem 0 0}
#member-theme-status:empty{display:none}

:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{
  color-scheme:dark;
  --ink:#f6edf9;
  --line:#51415a;
  --yellow:#ffdb63;
  --dark-page:#1d1722;
  --dark-surface:#2a2031;
  --dark-raised:#35273e;
  --dark-muted:#d8c8de;
  --dark-link:#e6baf8;
  --dark-accent-ink:#271c2c;
  --field-bg:#35273e;
  --field-border:#8e7899;
  --field-placeholder:#d2bed9;
  --action-fill:#f1d280;
  color:var(--ink);
  background:var(--dark-page);
}
:root[data-theme=dark] p,:root[data-theme=dark] td small{color:var(--dark-muted)}
:root[data-theme=dark] a{color:var(--dark-link)}
:root[data-theme=dark] .eyebrow{color:#e5bdf5}
:root[data-theme=dark] :where(button,input,select,textarea){
  background:var(--field-bg);color:var(--ink);border-color:var(--field-border);
}
:root[data-theme=dark] :where(.quiet){background:transparent}
:root[data-theme=dark] :where(.primary),:root[data-theme=dark] aside button[aria-current=page]{
  background:var(--action-fill);border-color:var(--action-fill);color:var(--dark-accent-ink);
}
:root[data-theme=dark] a.primary{color:var(--dark-accent-ink)}
:root[data-theme=dark] :focus-visible{outline-color:#f0befe}
:root[data-theme=dark] :where(.hero,.owner-hero,aside){background:#241a2b}
:root[data-theme=dark] :where(.site-header,.benefits,.membership,.panel,dialog,.owner-card){background:var(--dark-surface)}
:root[data-theme=dark] .site-brand span{color:var(--yellow)}
:root[data-theme=dark] #member{background:var(--dark-page)}
:root[data-theme=dark] .journey-header,
:root[data-theme=dark] .journey-header #journey-nav{background:var(--dark-surface)}
:root[data-theme=dark] #journey-nav :is(a,button){color:var(--ink)}
:root[data-theme=dark] #journey-nav :is([aria-current=page],[aria-expanded=true]){
  background:var(--yellow);color:var(--dark-accent-ink);
}
:root[data-theme=dark] .member-header-account #journey-account{color:var(--dark-muted)}
:root[data-theme=dark] :where(.journey-card,.journey-tile-next,.club-home-card,.feed-card,.discover-lesson-card,.growth-explorer,.chat-thread,.assessment-recommendation,.member-notification){
  background:var(--dark-surface);color:var(--ink);border-color:var(--line);
}
:root[data-theme=dark] :is(.journey-tile-discover,.journey-practice,.feed-comments,.club-home-card:nth-child(2)){
  background:#3c2b49;
}
:root[data-theme=dark] :is(.journey-tile-win,.journey-guide,.growth-first-step,.club-author,.club-home-card:nth-child(3),.notification-unread){
  background:#49391e;
}
:root[data-theme=dark] :is(.journey-tile,.member-profile-header,.member-profile-card) .cta:not(.primary){
  background:#4b3757;color:var(--ink);
}
:root[data-theme=dark] :is(.club-home-card,.club-author,.club-home-section) :is(a,button){color:var(--dark-link)}
:root[data-theme=dark] .club-home-intro .eyebrow{color:var(--yellow)}
:root[data-theme=dark] .club-home-intro p:not(.eyebrow),:root[data-theme=dark] .feed-hero p{color:#f3eaf6}
:root[data-theme=dark] :is(.feed-reason,.growth-detail .growth-domain,.private-label,.member-notification time){color:var(--dark-muted)}
:root[data-theme=dark] .feed-comment{border-color:var(--line)}
:root[data-theme=dark] :is(.feed-filters,.feed-actions,.chat-window-actions) [aria-pressed=true],
:root[data-theme=dark] #member-chat-contacts [aria-pressed=true]{color:var(--dark-accent-ink)}
:root[data-theme=dark] :is(.discover-section-tile:not(.discover-rozvoj),.discover-topic,.discover-orbit .discover-topic){
  background:#402f4b;color:var(--ink);border-color:#634d6e;
}
:root[data-theme=dark] .discover-rozvoj{color:#fff}
:root[data-theme=dark] :is(.discover-filozofie,.discover-orbit .discover-topic:first-of-type){background:#51401f;color:#fff0b7}
:root[data-theme=dark] .discover-topic span,:root[data-theme=dark] .discover-section-tile p{color:var(--dark-muted)}
:root[data-theme=dark] #member-personal .growth-relations button{background:#42324d;color:var(--ink);border-color:#665071}
:root[data-theme=dark] .growth-instruction,:root[data-theme=dark] .growth-key{color:#f1e2f4}
:root[data-theme=dark] #member-chat-dialog{background:var(--dark-page);color:var(--ink)}
:root[data-theme=dark] .chat-launcher{background:#543762;color:#fff;border-color:#745688}
:root[data-theme=dark] .chat-received{background:#463650}
:root[data-theme=dark] .chat-sent{background:#554621}
:root[data-theme=dark] .chat-bubble time{color:#e1d2e6}
:root[data-theme=dark] :is(.chat-avatar,.member-avatar-initials){background:#503d5b;color:var(--ink)}
:root[data-theme=dark] .club-player video{background:#100e12}
:root[data-theme=dark] .journal-card{background:radial-gradient(ellipse at 48% 20%,#684631,#36251f)}
:root[data-theme=dark] .journal-book{color-scheme:light;background:#e9c790;color:#45291c}
:root[data-theme=dark] .journal-book :is(label,p,time){color:#563320}
:root[data-theme=dark] .journal-book .post-body{color:#263851}
:root[data-theme=dark] .growth-stage .growth-area{color:#36243e}
:root[data-theme=dark] .growth-stage .growth-area:not([aria-pressed=true]){background:#efe3f4}


/* Keep the ink and paper paired when a dark-mode control is inside the journal. */
:root[data-theme=dark] .journal-book textarea{color:#263851;background:repeating-linear-gradient(transparent 0 calc(1.4em - 1px),#a7784738 calc(1.4em - 1px) 1.4em) 0 .3rem/100% auto,#fff2cf55;border-color:#8a6745}
.journal-book textarea::placeholder{color:#604733;opacity:1}
.appearance-settings,.feed-card,.journey-card{box-shadow:0 2px 12px #301a3710}
.feed-actions,.chat-window-actions,.member-map-actions{gap:.48rem}
.feed-actions button,.feed-filters button{font-size:.82rem}
.journey-card h2{margin-bottom:.7rem}
.discover-lesson-card,.feed-card,.member-notification{border-radius:1.05rem}
:root[data-theme=dark] .journey-history time{color:var(--dark-muted)}

.feed-hero button{background:#f4e9f7;color:#432b50;border-color:#f4e9f7}
:root[data-theme=dark] .journey-brand .journey-mark{color:var(--dark-accent-ink)}
:root[data-theme=dark] :is(.discover-back,#discover-lesson-back,.discover-other,#feed-back){color:var(--dark-link)}
:root[data-theme=dark] :is(.feed-filters,.feed-actions,.chat-window-actions) [aria-pressed=true]{
  background:var(--action-fill);border-color:var(--action-fill);
}

#member-profile-overview #member-growth-map{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#member-growth-title{font-size:clamp(1.3rem,3vw,1.75rem);margin-bottom:.55rem}
.profile-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem 1.4rem;margin-top:1rem}
.profile-shortcuts>a,.profile-shortcuts .profile-journal-link,.growth-step-actions>a,.growth-step-actions button{font-size:.88rem;font-weight:650;color:#5b3d69}
.profile-shortcuts .profile-journal-link,.growth-step-actions button{background:transparent;border:0;padding:.15rem .15rem;text-decoration:underline}
.profile-journal-link .journal-inscription{
  display:inline-block;margin-inline-start:.5rem;font-size:1rem;color:#76563e;text-shadow:none;max-width:22ch;
  text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle
}
.growth-step-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .85rem;margin-top:.45rem}
:root[data-theme=dark] :is(.profile-shortcuts>a,.growth-step-actions>a ),
:root[data-theme=dark] #member-personal :is(.profile-journal-link,.growth-step-actions button){color:var(--dark-link)}
:root[data-theme=dark] .profile-journal-link .journal-inscription{color:#f0d49d}
#member-renewal-state:empty{display:none}
:root[data-theme=dark] #member-personal :is(.profile-journal-link,.growth-step-actions button){background:transparent}


#growth-practice-status:empty{display:none}
#growth-practice-status{font-size:.83rem;margin:.3rem 0 0}

.profile-milestone{
  margin:1rem 0 1.55rem;padding:clamp(1rem,3vw,1.55rem) clamp(1.05rem,3.2vw,1.8rem);
  border:1px solid #e8d7ac;border-radius:1rem;background:#fff5da;
}
.profile-milestone .eyebrow{margin:0 0 .35rem;color:#78541f;font-size:.7rem}
.profile-milestone h2{margin:0 0 .42rem;font-size:clamp(1.38rem,3vw,2.15rem);letter-spacing:-.03em}
.profile-milestone p:last-child{margin:0;max-width:60ch}
:root[data-theme=dark] .profile-milestone{background:#44341f;border-color:#79653c}
:root[data-theme=dark] .profile-milestone .eyebrow{color:#f4d58b}
#journey-review{max-width:42rem}
#journey-review>div{border-bottom:1px solid var(--line);padding:.75rem 0}
.member-header-account #back-to-admin{grid-column:1/-1;justify-self:start}
@media(max-width:760px){.member-header-account #back-to-admin{font-size:.72rem;padding:.35rem .38rem}}
