/* The left navigation stays available as the page and utilities scroll. */
.stage-participant #mast:has(.participant-mast) { border:0; z-index:8; }
#mast .participant-mast {
  --pill-height:52px; --target:44px; --mast-edge:clamp(8px,1.8vw,28px); --mast-top:10px;
  display:flex; align-items:center; justify-content:flex-end;
  min-height:calc(var(--pill-height) + 2 * var(--mast-top)); padding:0 var(--mast-edge);
}
#mast .participant-pills {
  position:fixed; top:var(--mast-top); left:var(--mast-edge); display:flex; align-items:center; gap:7px;
  max-width:calc(100% - var(--mast-edge) - var(--mast-edge) - 148px);
}
#mast .participant-pills .symbol-brand,#mast .participant-pills .symbol-brand img {
  display:block; flex:none; width:var(--pill-height); height:var(--pill-height);
  padding:0; border:0; border-radius:50%;
}
#mast .participant-nav {
  display:flex; align-items:center; flex-wrap:nowrap; min-width:0; height:var(--pill-height); gap:2px;
  padding:4px; overflow:auto hidden; scrollbar-width:none; scroll-padding-inline:4px; border-radius:999px;
  background:#f9f4eb; box-shadow:inset 0 0 0 1px #d4c2b0,0 2px 8px #42271d12;
}
#mast .participant-nav::-webkit-scrollbar {display:none}
#mast .participant-nav .participant-link {
  position:relative; isolation:isolate; display:grid; place-items:center; overflow:hidden;
  flex:0 0 var(--target); width:var(--target); min-width:var(--target); height:var(--target); min-height:var(--target);
  padding:0; border:0; border-radius:999px; color:#5d4238; background:transparent;
}
#mast .participant-mast :is(.participant-link,.member-action,.participant-exit) svg {
  width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round;
}
#mast .participant-link::before {
  position:absolute; z-index:-1; content:""; left:-30%; top:100%; width:160%; height:160%;
  border-radius:50%; background:#540c17; transform:translateY(-50%) scale(0);
}
#mast .participant-link .pill-icon,#mast .participant-link .pill-icon-hover {
  position:absolute; inset:0; display:grid; place-items:center;
}
#mast .participant-link .pill-icon-hover { transform:translateY(110%); color:#fff7eb; }
#mast .participant-link:is([aria-current],:focus-visible)::before {transform:translateY(-68%) scale(1.5)}
#mast .participant-link:is([aria-current],:focus-visible) .pill-icon {transform:translateY(-110%)}
#mast .participant-link:is([aria-current],:focus-visible) .pill-icon-hover {transform:translateY(0)}
@media(hover:hover) {
  #mast .participant-link:hover::before {transform:translateY(-68%) scale(1.5)}
  #mast .participant-link:hover .pill-icon {transform:translateY(-110%)}
  #mast .participant-link:hover .pill-icon-hover {transform:translateY(0)}
}
@media(prefers-reduced-motion:no-preference) {
  #mast .participant-link::before,#mast .participant-link .pill-icon,#mast .participant-link .pill-icon-hover {
    transition:transform .32s cubic-bezier(.22,1,.36,1);
  }
}
#mast .participant-mast .member-actions { display:flex; align-items:center; flex:none; gap:4px; margin-inline-start:auto; }
#mast .member-actions :is(.member-action,.participant-exit) {
  display:grid; place-items:center; flex:none; width:44px; height:44px; margin:0; padding:0;
  color:#625447; background:transparent; border:0; border-radius:0; box-shadow:none;
}
#mast .member-actions :is(.member-action,.participant-exit):is(:hover,:focus-visible) {color:#650d21;background:transparent}
#mast .participant-mast :is(.participant-link,.member-action,.participant-exit):focus-visible {
  outline:2px solid #a06b42; outline-offset:-3px;
}
html:has(.participant-pills) {scroll-padding-top:76px}
@media(max-width:720px),(max-height:430px) {
  #mast .participant-mast {--pill-height:50px;--mast-top:6px}
  #mast .participant-nav {padding:3px}
  #mast .participant-pills {gap:4px;max-width:calc(100% - var(--mast-edge) - var(--mast-edge) - 140px)}
}
.member-action svg,.member-chat button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.member-profile { max-width: 720px; margin: clamp(15px,4vw,45px) auto; padding: clamp(22px,5vw,45px); border: 1px solid #d8c7b1; border-radius: 18px; background: #fffcf5; color: #442821; }
.member-profile-head { display: flex; align-items: center; gap: clamp(12px,3vw,24px); }
.member-profile-head p,.member-chat header p { margin: 0 0 5px; color: #765d48; font: 650 12px/1.3 var(--sans,Arial,sans-serif); }
.member-profile-head h1 { margin: 0 0 6px; color: #440709; font: 500 clamp(32px,5vw,53px)/1 var(--serif,Georgia,serif); }
.member-profile-head>div>span { font: 500 14px/1.35 var(--sans,Arial,sans-serif); color: #745c48; }
.member-portrait { display: grid; flex: none; place-items: center; width: clamp(60px,10vw,86px); height: clamp(60px,10vw,86px); border-radius: 50%; border: 1px solid #c6a77e; color: #582523; background: #eedec5; font: 600 clamp(20px,3vw,30px)/1 var(--sans,Arial,sans-serif); }
.member-profile dl { margin: 25px 0; }
.member-profile dl>div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5d8c7; font: 500 14px/1.4 var(--sans,Arial,sans-serif); }
.member-profile dt { color: #725d4c; }
.member-profile dd { margin: 0; text-align: end; font-weight: 650; }
.member-profile-links { display: flex; gap: 9px; flex-wrap: wrap; }
.member-profile-links a { color: #440709; padding: 8px 12px; border: 1px solid #cbb8a2; border-radius: 8px; text-decoration: none; font: 600 13px/1.2 var(--sans,Arial,sans-serif); }
.member-chat { position: fixed; inset: 76px 22px auto auto; width: min(375px,calc(100% - 28px)); box-sizing: border-box; max-width: none; max-height: calc(100dvh - 95px); overflow: hidden; margin: 0; padding: 0; border: 1px solid #bda386; border-radius: 15px; color: #402b23; background: #fffcf5; box-shadow: 0 10px 45px #321e1a32; font: 500 14px/1.45 var(--sans,Arial,sans-serif); }
.member-chat[open] { display: flex; flex-direction: column; }
.member-chat::backdrop { background: #25181020; }
.member-chat header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 17px; border-bottom: 1px solid #ddcbb4; }
.member-chat header p { font-size: 11px; margin-bottom: 3px; }
.member-chat h2 { margin: 0; color: #440709; font: 600 24px/1.1 var(--serif,Georgia,serif); }
.member-chat button,.member-chat input { font: inherit; }
.member-chat .member-close,.member-chat form button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; color: #440709; border: 1px solid #d8c7b1; border-radius: 50%; background: #fff9ee; cursor: pointer; }
.member-chat-body { min-height: 0; overflow: auto; overscroll-behavior: contain; max-height: min(460px,57dvh); padding: 14px 16px 10px; }
.member-messages { display: flex; flex-direction: column; gap: 8px; }
.member-message { box-sizing: border-box; margin: 0; padding: 8px 11px; max-width: 94%; border-radius: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-bot { align-self: flex-start; background: #f2eadc; }
.member-user { align-self: flex-end; color: #fffbf2; background: #561719; }
.member-message a { display: block; margin-top: 6px; color: #640f14; font-weight: 650; text-underline-offset: 2px; }
.member-suggestions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.member-suggestions button { padding: 5px 8px; min-height: 30px; background: #fffbf4; color: #5c332b; border: 1px solid #d3bd9f; border-radius: 7px; font-size: 12px; cursor: pointer; }
.member-chat form { display: flex; gap: 8px; align-items: center; padding: 10px 15px; border-top: 1px solid #dfceb8; }
.member-chat input { flex: 1; min-width: 0; font-size: 16px; color: #442821; padding: 8px; border: 1px solid #cbb9a2; border-radius: 7px; background: #fffdf8; }
.member-chat form button { color: #fff8eb; border-color: #440709; background: #440709; }
.member-chat :is(button,a,input):focus-visible,.member-profile a:focus-visible { outline: 2px solid #875334; outline-offset: 2px; }
.member-sr { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 720px) {
  #mast .participant-mast .member-actions { gap: 2px; }
  .member-chat { inset: 60px 7px auto auto; width: min(380px,calc(100% - 14px)); max-height: calc(100dvh - 71px); }
}
@media (max-height: 430px) { .member-chat { inset: 4px 8px auto auto; max-height: calc(100dvh - 8px); } }
.member-settings { padding:18px 0 22px; margin-bottom:18px; border-bottom:1px solid #ddcdb8; }
.member-settings h2 { color:#440709; font:600 27px/1.06 var(--serif,Georgia,serif); margin:0 0 14px; }
.member-settings>div { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:0 0 14px; }
.member-settings label { display:grid; gap:5px; color:#655042; font:600 13px/1.35 var(--sans,Arial,sans-serif); }
.member-settings select { min-width:0; width:100%; padding:8px; border:1px solid #ccb89e; border-radius:6px; background:#fffaf1; }
.member-settings [role=status] { display:inline-block; margin-inline-start:8px; font:600 13px/1.3 var(--sans,Arial,sans-serif); }
.member-overview-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:4px 0 clamp(18px,3vw,32px); }
.member-overview-head p,.member-week>div>span { color:#705d4c; font:600 13px/1.4 var(--sans,Arial,sans-serif); }
.member-overview-head h1 { color:#440709; font:550 clamp(40px,5.4vw,68px)/.98 var(--serif,Georgia,serif); letter-spacing:-.045em; margin:5px 0 0; }
.member-settings-link,.member-week>a { display:inline-flex; align-items:center; justify-content:center; gap:12px; padding:8px 13px; min-height:38px; border:1px solid #ccb89e; border-radius:999px; color:#55191a; font:650 13px/1.2 var(--sans,Arial,sans-serif); }
.member-settings-link:hover,.member-week>a:hover { background:#eee3d2; }
.member-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(7px,1.4vw,16px); margin-bottom:14px; }
.member-stats>div { position:relative; display:grid; gap:2px; min-width:0; padding:clamp(10px,1.8vw,21px); background:#fffaf2; border:1px solid #d6c6ae; border-radius:11px; }
.member-stats>div::before { content:""; position:absolute; width:7px; height:7px; border-radius:50%; background:#440709; right:14px; top:16px; }
.member-stats>div:nth-child(2)::before { background:#9b784c; }
.member-stats>div:nth-child(3)::before { background:#687a61; }
.member-stats>div>span { font:650 13px/1.35 var(--sans,Arial,sans-serif); color:#5b4034; padding-inline-end:14px; }
.member-stats b { font:600 clamp(30px,3.5vw,48px)/1.05 var(--serif,Georgia,serif); color:#440709; font-variant-numeric:tabular-nums; }
.member-stats>div>small { color:#705d4c; font-size:12px; }
.member-overview-row { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(260px,.9fr); gap:14px; }
.member-next,.member-week,.member-activity { min-width:0; border:1px solid #d8c7b1; border-radius:12px; padding:clamp(16px,2.3vw,27px); background:#fffbf2; }
.member-next { background:#440709; color:#fff7ea; border-color:#440709; }
.member-next-top { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font:600 12px/1.3 var(--sans,Arial,sans-serif); color:#e8caa5; }
.member-next h2 { color:#fff8eb; font:500 clamp(33px,4.6vw,58px)/1.03 var(--serif,Georgia,serif); margin:15px 0 10px; }
.member-next-meta { display:flex; flex-wrap:wrap; gap:5px 16px; color:#f6e7d3; font:500 14px/1.3 var(--sans,Arial,sans-serif); }
.member-next .role-text { color:#fff8e9; margin-top:13px; border-color:#bd9d70; }
.member-next .role-text span { color:#e9ca97; }
.member-week>div { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; justify-content:space-between; }
.member-week h2,.member-activity h2 { color:#440709; font:600 clamp(24px,2.8vw,34px)/1.06 var(--serif,Georgia,serif); margin:0; }
.member-week ol,.member-activity ol { padding:0; list-style:none; }
.member-week ol { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; margin:17px 0 13px; }
.member-week li { display:grid; justify-items:center; gap:3px; min-width:0; padding:5px 0; color:#604d40; border-radius:7px; }
.member-week li b { font:650 17px/1.25 var(--sans,Arial,sans-serif); }
.member-week li small { font:600 10px/1.2 var(--sans,Arial,sans-serif); }
.member-week li.has-lesson { background:#f2e2ca; color:#440709; }
.member-week li i { height:4px; width:4px; border-radius:100%; }
.member-week li.has-lesson i { background:#713333; }
.member-week>a { min-height:31px; padding:4px 9px; font-size:12px; }
.member-activity { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,1.3fr); align-items:center; gap:14px; margin-top:14px; }
.member-activity p { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; margin-top:7px; color:#685444; font:600 12px/1.35 var(--sans,Arial,sans-serif); }
.member-activity p i { width:8px; height:8px; border-radius:2px; background:#6b3031; }
.member-activity p i:nth-of-type(2) { margin-inline-start:4px; background:#b29159; }
.member-activity ol { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; margin:0; }
.member-activity li { min-width:0; text-align:center; }
.member-activity li>span { display:block; margin-top:4px; font:550 11px/1.25 var(--sans,Arial,sans-serif); color:#745747; }
.member-bars { height:55px; display:flex; gap:3px; align-items:flex-end; justify-content:center; border-bottom:1px solid #d9c9b0; }
.member-bars>span { display:block; position:relative; width:15px; max-width:28%; border-radius:3px 3px 0 0; }
.member-bars small { position:absolute; left:50%; bottom:100%; transform:translateX(-50%); font:650 10px/1.2 var(--sans,Arial,sans-serif); color:#604c3e; }
.member-bar-0 { background:#6b3031; }.member-bar-1 { background:#b29159; }
@media (max-width:700px) { .member-overview-row{grid-template-columns:1fr 1fr}.member-week>div>span{font-size:11px}.member-week ol{margin:13px 0} }
@media (max-width:560px) { .member-overview-head h1{font-size:40px}.member-overview-head{gap:8px}.member-settings-link{padding:6px 9px;font-size:12px}.member-stats>div{padding:9px 8px}.member-stats>div>span,.member-stats>div>small{font-size:10px;line-height:1.3}.member-stats>div::before{right:6px;top:10px;width:4px;height:4px}.member-stats>div>span{padding-inline-end:4px}.member-overview-row,.member-activity{grid-template-columns:1fr;gap:10px}.member-activity ol{margin-top:2px}.member-settings>div{grid-template-columns:1fr}.member-stats{gap:5px}.member-next h2{font-size:38px} }
