/* One persistent community shell, with the original workshop palette and windows. */
.community-view{display:none;min-width:0;width:100%}
html[data-community-view="profile"] .community-view[data-view="profile"],html[data-community-view="workshops"] .community-view[data-view="workshops"],html[data-community-view="forum"] .community-view[data-view="forum"],html[data-community-view="messages"] .community-view[data-view="messages"],html[data-community-view="library"] .community-view[data-view="library"]{display:block}
.community-view[hidden]{display:none!important}.community-view.community-outgoing{display:block!important;position:absolute;inset:0 auto auto 0;width:100%;pointer-events:none}
#community-deck{position:relative;min-width:0;isolation:isolate}#community-deck.is-sliding{overflow:hidden}
.community-body .panel.focused{width:100%;height:auto;min-height:260px;order:initial;z-index:auto}
.community-body .panel.focused[data-panel="user"]{min-height:520px;max-width:none}
.community-body .panel.focused[data-panel="calendar"]{min-height:360px}
.community-body .panel.focused[data-panel="library"]{height:74dvh;min-height:440px}
.community-body .quote-panel{margin-top:20px;min-height:120px}
.community-body .panel-title{text-transform:lowercase}
.community-body .community-view .panel.focused>.panel-chrome .tl-max{display:none}
.community-body .community-view .panel.focused>.panel-chrome .tl-min{display:flex}
.community-body .panel-chrome{cursor:default}
.community-forum-content>.bbp-breadcrumb{margin-bottom:20px}
.community-forum-content #panel-grid{display:flex;flex-direction:column;gap:20px}
.community-forum-content .forum-card{width:100%;min-height:170px}
.community-forum-content .forum-card h2{margin-bottom:8px}
.community-forum-content .forum-card .space-role{margin-bottom:20px}
.community-forum-content .forum-card-foot{align-items:center}
.community-forum-content .forum-window{width:100%}
.community-body .forum-tools{align-items:center;margin-bottom:24px}
.community-signin .ws-btn{width:max-content;max-width:100%;margin-top:24px}
.community-body .space-breadcrumb{margin-bottom:12px}
.community-body #community-view-title:focus{outline:none}
.community-body .community-signin h2{text-transform:lowercase;font-size:20px}
.community-body .forum-expanded{min-height:unset}
.community-body .page-sub{max-width:85ch}
.community-body .bbp-breadcrumb{text-transform:lowercase}
.community-body .community-view.is-loading{opacity:.55;pointer-events:none}
@media(max-width:700px){.community-forum-content .forum-card{min-height:200px}.community-body .panel.focused[data-panel="library"]{height:78dvh}.community-forum-content .forum-card-foot{gap:12px}.community-body #stage{width:100%}}
@media(prefers-reduced-motion:reduce){.community-view{animation:none!important;transition:none!important}}

/* Forum window chrome is a drag handle, with no close/minimise/maximise controls. */
.community-forum-content .forum-card > .panel-chrome{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.community-forum-content .forum-card > .panel-chrome:active{cursor:grabbing}
.community-forum-content .forum-card > .panel-chrome:focus-visible{outline:2px solid var(--mauve);outline-offset:-3px}
.community-forum-content .forum-drag-placeholder{opacity:.28}
.community-body .forum-drag-preview{position:fixed;z-index:1000;pointer-events:none;margin:0;opacity:.96;box-shadow:var(--shadow-hover)}
.community-body .forum-drag-preview .panel-chrome{cursor:grabbing}

/* Contrast follows the surface: pale lavender on the scene, deep ink on light glass. */
:root{
 --scene-text:#f2e9ff;
 --scene-title-start:#ece0ff;
 --scene-title-end:#fff5ff;
 --scene-shadow:rgba(12,16,48,.48);
 --scrim:rgba(9,12,46,.16);
 --ink-soft:#30234f;
 --ink-faint:#625580;
 --violet:#49369f;
 --button-bg:#534ab7;
 --button-hover:#3c3489;
 --button-ink:#ffffff;
 --nav-ink:#3f267d;
 --search-bg:rgba(255,255,255,.94);
}
[data-theme="dark"]{
 --scene-text:#f2e9ff;
 --scene-title-start:#e1d0ff;
 --scene-title-end:#fff1ff;
 --scrim:rgba(8,5,28,.62);
 --ink-soft:#d0c7eb;
 --ink-faint:#b6acd7;
 --violet:#c3b2f2;
 --button-bg:#6855bd;
 --button-hover:#55439f;
 --button-ink:#ffffff;
 --nav-ink:#ddceff;
 --search-bg:rgba(8,5,28,.94);
}
.community-body .page-head .page-title{
 background-image:linear-gradient(118deg,var(--scene-title-start),var(--scene-title-end));
 text-shadow:0 2px 8px var(--scene-shadow);
}
.community-body .page-head .page-sub,
.community-body .page-head .space-breadcrumb,
.community-body .page-head .space-breadcrumb a,
.community-body .community-forum-content>.bbp-breadcrumb,
.community-body .community-forum-content>.bbp-breadcrumb a,
.community-body .community-forum-content>.space-links,
.community-body .community-forum-content>.space-links a{
 color:var(--scene-text);
 text-shadow:0 1px 3px var(--scene-shadow);
}
.community-body .page-head a:hover,
.community-body .community-forum-content>.space-links a:hover{color:#fff}
.community-body .page-head :focus-visible{outline-color:var(--scene-text)}
.community-body .rail-item,.community-body .oc-item,
.community-body .rail-item.active,.community-body .oc-item.active,
.community-body .theme-toggle{color:var(--nav-ink)}
.community-body .forum-tools input{background:var(--search-bg);color:var(--ink)}
.community-body input::placeholder,.community-body textarea::placeholder{color:var(--ink-faint);opacity:1}
.community-body .ws-btn-solid,
.community-body a.ws-btn-solid,
.community-body .msubmit,
#bbpress-forums button[type="submit"],
#bbpress-forums input[type="submit"]{
 background:var(--button-bg);
 color:var(--button-ink);
 border-color:var(--button-bg);
 text-shadow:none;
}
.community-body .ws-btn-solid:hover,
.community-body a.ws-btn-solid:hover,
.community-body .msubmit:hover,
#bbpress-forums button[type="submit"]:hover,
#bbpress-forums input[type="submit"]:hover{background:var(--button-hover);color:var(--button-ink)}

/* Full-width single-line descriptions and mauve relief on the main view titles. */
.community-body .page-head{width:100%;max-width:none;min-width:0}
.community-body .page-head .page-sub{
 width:100%;max-width:none;white-space:nowrap;
 overflow-x:auto;overflow-y:hidden;text-overflow:clip;
 scrollbar-width:thin;
}
.community-body .page-head .page-title{
 background:none;
 -webkit-background-clip:border-box;background-clip:border-box;
 color:#e2afff;-webkit-text-fill-color:#e2afff;
 -webkit-text-stroke:.45px rgba(53,22,82,.75);
 paint-order:stroke fill;
 text-shadow:
  0 -1px 0 rgba(255,236,255,.8),
  0 1px 0 #aa69d3,
  0 2px 0 #764293,
  0 3px 0 #4a285d,
  0 6px 10px rgba(9,18,45,.65);
}

/* Profile photo crop: the saved square is shared by community and the forum. */
#mpanel-avatar .avatar-preview{width:224px;height:224px;max-width:100%;overflow:hidden;touch-action:none;cursor:default}
#mpanel-avatar .avatar-preview.is-cropping{cursor:grab}
#mpanel-avatar .avatar-preview.is-dragging{cursor:grabbing}
#mpanel-avatar .avatar-preview img{user-select:none;-webkit-user-select:none;pointer-events:none}
#mpanel-avatar .avatar-choose{width:max-content;max-width:100%;margin:16px auto}
.avatar-zoom-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin:16px auto;max-width:360px}
.avatar-zoom-controls input[type=range]{flex:1;min-width:0;accent-color:var(--violet);cursor:pointer}
.avatar-zoom-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border:1px solid var(--hairline-strong);border-radius:var(--radius-sm);background:var(--chip);color:var(--violet);font:700 20px var(--font-mono);cursor:pointer}
.avatar-zoom-button:disabled{opacity:.45;cursor:default}
#avatar-zoom-value{min-width:4ch;color:var(--ink-soft);font-size:12px;text-align:right}
#avatar-form .avatar-hint{text-transform:lowercase;color:var(--ink-soft)}
.avatar-feedback{margin-top:12px;color:var(--error-ink);font-size:12px}
.avatar-feedback:empty{display:none}
#avatar-save:disabled{opacity:.5;cursor:default}
#avatar-form .screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#bbpress-forums #bbp-user-avatar img{border-radius:50%;object-fit:cover}

/* Crop controls appear only while a new, unsaved photo is selected. */
.avatar-zoom-controls[hidden],#avatar-crop-hint[hidden]{display:none}
#mpanel-avatar .avatar-preview:not(.is-cropping){width:64px;height:64px}

/* The same basic visual editor is available to every forum participant. */
.community-forum-content .mce-tinymce{width:100%!important;box-sizing:border-box;border:1px solid var(--hairline-strong);border-radius:var(--radius-sm);overflow:hidden;box-shadow:none}
.community-forum-content .mce-panel,.community-forum-content .mce-toolbar-grp,.community-forum-content .mce-btn-group{background:var(--soft-fill);border-color:var(--hairline)}
.community-forum-content .mce-toolbar-grp{padding:6px 4px}
.community-forum-content .mce-btn{background:transparent;border-radius:5px;border-color:transparent}
.community-forum-content .mce-btn:hover,.community-forum-content .mce-btn:focus,.community-forum-content .mce-btn.mce-active{background:var(--chip);border-color:var(--hairline-strong)}
.community-forum-content .mce-btn button,.community-forum-content .mce-btn .mce-txt,.community-forum-content .mce-ico{color:var(--ink);text-shadow:none}
.community-forum-content .mce-btn .mce-txt{font-family:var(--font-mono);text-transform:lowercase}
.community-forum-content .mce-caret{border-top-color:var(--ink)}
.community-body .mce-menu,.community-body .mce-window,.community-body .mce-window-head,.community-body .mce-foot{background:var(--modal-bg);border-color:var(--hairline-strong)}
.community-body .mce-window .mce-title,.community-body .mce-window .mce-label,.community-body .mce-menu .mce-text,.community-body .mce-menu .mce-ico,.community-body .mce-window .mce-close{font-family:var(--font-mono);color:var(--ink);text-transform:lowercase;text-shadow:none}
.community-body .mce-menu-item:hover,.community-body .mce-menu-item.mce-selected{background:var(--chip-hover)}
.community-body .mce-window .mce-btn{border-radius:6px;background:var(--chip);border-color:var(--hairline-strong);text-shadow:none}
.community-body .mce-window .mce-btn .mce-txt{color:var(--violet);font-family:var(--font-mono);text-transform:lowercase}
.community-body .mce-window .mce-primary{background:var(--button-bg);border-color:var(--button-bg)}
.community-body .mce-window .mce-primary .mce-txt{color:var(--button-ink)}
.community-body .mce-window .mce-textbox{background:var(--field-bg);color:var(--ink);font-family:var(--font-mono);border-color:var(--hairline-strong)}
#bbpress-forums .bbp-reply-content h1,#bbpress-forums .bbp-topic-content h1{font-size:1.8em}
#bbpress-forums .bbp-reply-content h2,#bbpress-forums .bbp-topic-content h2{font-size:1.45em}
#bbpress-forums .bbp-reply-content h3,#bbpress-forums .bbp-topic-content h3{font-size:1.2em}
#bbpress-forums .bbp-reply-content h1,#bbpress-forums .bbp-topic-content h1,#bbpress-forums .bbp-reply-content h2,#bbpress-forums .bbp-topic-content h2,#bbpress-forums .bbp-reply-content h3,#bbpress-forums .bbp-topic-content h3{line-height:1.35;margin:1em 0 .5em;text-transform:none;color:var(--ink)}
#bbpress-forums .bbp-reply-content hr,#bbpress-forums .bbp-topic-content hr{border:0;border-top:1px solid var(--hairline-strong);margin:1.2em 0}
@media(max-width:700px){.community-body .mce-window{max-width:calc(100vw - 24px)}.community-forum-content .mce-toolbar .mce-container-body{white-space:normal}}
/* TinyMCE 4's link form uses fixed inline widths; reflow its fields on phones. */
@media(max-width:700px){
 .community-body .mce-window{left:12px!important;width:calc(100vw - 24px)!important;box-sizing:border-box}
 .community-body .mce-window .mce-container-body,.community-body .mce-window .mce-form,.community-body .mce-window .mce-foot{width:100%!important;box-sizing:border-box}
 .community-body .mce-window .mce-formitem{width:calc(100% - 30px)!important}
 .community-body .mce-window .mce-formitem .mce-label{width:120px!important;font-size:12px!important}
 .community-body .mce-window .mce-formitem .mce-combobox{left:120px!important;width:calc(100% - 120px)!important}
 .community-body .mce-window .mce-formitem>.mce-container-body>.mce-textbox{left:120px!important;width:calc(100% - 120px)!important;box-sizing:border-box;height:30px!important}
 .community-body .mce-window .mce-combobox .mce-textbox{width:100%!important;box-sizing:border-box;height:30px}
 .community-body .mce-window .mce-foot>.mce-container-body{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:10px 12px}
 .community-body .mce-window .mce-foot .mce-btn{position:static!important;flex:none}
}

/* bbPress pins topics with a hard-coded yellow background, including in dark mode. */
#bbpress-forums .bbp-topics ul.sticky,
#bbpress-forums .bbp-topics ul.super-sticky,
#bbpress-forums .bbp-topics-front ul.super-sticky,
#bbpress-forums .bbp-forum-content ul.sticky{background-color:var(--soft-fill)!important;color:var(--ink)}
.forum-recent-topics{list-style:none;margin:0 0 16px;padding:0;border-top:1px solid var(--hairline)}
.forum-recent-topics li{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--hairline);font-size:13px}
.forum-recent-topics a{min-width:0;overflow-wrap:anywhere;color:var(--violet);text-underline-offset:3px}
.forum-recent-time{flex:0 0 auto;font-size:11px;color:var(--ink-soft)}
.forum-card-foot{justify-content:flex-end}
@media(max-width:700px){.forum-recent-topics li{gap:4px;flex-direction:column}}

/* Topic editing shows the message and its save action, without surrounding metadata. */
html[data-community-editing="topic"] .community-body .page-head{display:none}
.topic-content-editor #new-post{margin:0}
.topic-content-editor .bbp-submit-wrapper{margin-top:16px}
.topic-content-editor:after{content:"";display:block;clear:both}
.topic-content-editor .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* Workshop booking uses the same glass windows and typography as community. */
.ws-event-select{display:block;width:100%;border:0;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer;padding:0}
.ws-event-select:focus-visible{outline:2px solid var(--violet);outline-offset:8px;border-radius:4px}
.ws-event-summary,.ws-event-meta,.ws-help,.ws-participant-count,.ws-initial-reminder{font:12px/1.7 var(--font-mono);color:var(--ink-soft)}
.ws-event-summary{margin:10px 0 6px;max-width:80ch}.ws-event-meta{margin-top:8px;color:var(--violet)}
.ws-registration{margin-top:20px;border-top:1px solid var(--hairline);padding-top:16px;font:13px/1.8 var(--font-mono);overflow-wrap:anywhere}
.ws-participant-count{margin:0 0 16px}.ws-booking-status{font-weight:bold;color:var(--violet)}
.ws-registration .ws-btn{width:auto;display:inline-flex;align-items:center;justify-content:center;font:700 12px/1.5 var(--font-mono);text-decoration:none;cursor:pointer}
.ws-workshop-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0}
.ws-registration form{margin:0}.ws-registration .ws-help{margin:12px 0}.ws-registration-brief{max-width:90ch}
.ws-preparation,.ws-manage-registration{margin-top:18px;border-top:1px solid var(--hairline);padding-top:14px}
.ws-registration summary{color:var(--violet);cursor:pointer}.ws-registration fieldset{margin:16px 0 0;border:0;padding:0}
.ws-registration legend{font-size:12px;color:var(--ink-soft);margin-bottom:10px}.ws-registration label{display:block;font-size:12px;color:var(--ink-soft);margin:8px 0}
.ws-registration input[type=checkbox]{accent-color:var(--violet);margin-right:6px}.ws-registration .ws-cancel-form{border-top:1px solid var(--hairline);padding-top:16px;margin-top:20px}
.ws-workshop-notice{border:1px solid var(--hairline-strong);background:var(--soft-fill);padding:10px 14px;border-radius:var(--radius-sm);color:var(--ink)}
.ws-register-form button:disabled,.ws-cancel-form button:disabled{opacity:.6;cursor:wait}
@media(max-width:700px){.ws-workshop-actions{align-items:stretch;flex-direction:column}.ws-registration .ws-btn{white-space:normal;max-width:100%}}

.ws-availability{margin-top:18px;border-top:1px solid var(--hairline);padding-top:14px}.ws-availability select,.ws-availability textarea{font:13px/1.7 var(--font-mono);color:var(--ink);background:var(--field-bg);border:1px solid var(--hairline-strong);border-radius:6px;padding:8px;max-width:100%}.ws-availability textarea{display:block;width:100%;box-sizing:border-box}.ws-availability select{display:block;margin:6px 0 16px}.ws-availability fieldset label{display:flex;align-items:baseline;gap:6px}.ws-availability input[type=checkbox]{flex:none}.ws-availability [data-poll-slot]{overflow-wrap:anywhere}
