/* Podcast and community screens. Builds on site.css. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.narrow { max-width: 820px; }
.note { font-size: .88rem; color: var(--muted); max-width: 62ch; }
.btn.small { padding: 9px 14px; font-size: .68rem; }
.btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge { background: var(--ink); color: #fff; border-radius: 100px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .68rem; letter-spacing: 0; }
.community input, .community textarea, .community select { font: 400 1rem/1.5 var(--body); color: var(--ink); width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 0; background: #fff; }
.community input:focus, .community textarea:focus, .community select:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: var(--ink); }
.community input:disabled { background: var(--grey); border-color: var(--line); }
.community label, .community legend { font: 800 .7rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: block; margin: 18px 0 6px; }
.form-note { font-size: .9rem; margin: 12px 0 0; }
.hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.hint.bad { color: #b3261e; }
.card { border: 1px solid var(--line); background: #fff; padding: 26px; }
.card h2 { font-size: 1rem; letter-spacing: .04em; margin: 0 0 14px; }

.preview-bar { background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.45; padding: 9px var(--gut); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: center; text-align: center; }
.preview-bar b { font: 800 .66rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }

/* avatars: initials on a brand tile until members upload a photo */
.av { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 800 1.3rem var(--head); border: 4px solid #fff; flex: none; }
.av.tone0 { background: var(--yellow); color: var(--ink); }
.av.tone1 { background: var(--ink); color: var(--yellow); }
.av.tone2 { background: #e9e9e9; color: var(--ink); }
.av.sm { width: 44px; height: 44px; font-size: .86rem; border-width: 0; }
.av.big { width: clamp(104px, 14vw, 156px); height: clamp(104px, 14vw, 156px); font-size: clamp(2rem, 4.4vw, 3.2rem); border-width: 6px; }
.handle-line { font: 700 .86rem var(--head); color: var(--muted); margin: 2px 0 8px; }
.found { font: 800 .58rem var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 3px 7px; margin-left: 6px; white-space: nowrap; }
.chips.tiny span { font-size: .68rem; padding: 3px 9px; border-width: 1px; }
.chips.filter button, .chips.pick button { font: 700 .76rem var(--head); padding: 9px 15px; border: 1px solid #cfcfcf; border-radius: 100px; background: #fff; color: var(--ink); cursor: pointer; }
.chips.filter button:hover, .chips.pick button:hover { background: var(--yellow); }
.chips.filter button.on, .chips.pick button.on { background: var(--ink); color: #fff; }

/* ---------- podcast */
.pod-hero h1, .join-hero h1 { font-size: clamp(1.9rem, 4.4vw, 4rem); max-width: none; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pod-cover { aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: end; background: var(--yellow); color: var(--ink); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; font: 900 clamp(1.2rem, 2.4vw, 2rem)/.95 var(--head); text-transform: uppercase; position: relative; }
.pod-cover span:first-child { color: #fff; }
.pod-cover b { margin-top: auto; font-size: .8rem; letter-spacing: .16em; }
.pod-cover i { position: absolute; right: clamp(22px, 3vw, 36px); bottom: clamp(22px, 3vw, 36px); width: 64px; height: 64px; border-radius: 50%; background: var(--ink); }
.pod-cover i::after { content: ""; position: absolute; left: 26px; top: 20px; border: 12px solid transparent; border-left: 18px solid var(--yellow); }
.platforms span { color: var(--muted); border-style: dashed; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px; margin-top: 2em; }
.ep { display: grid; grid-template-columns: 140px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); }
.ep-art { position: relative; background: #111; min-height: 150px; }
.ep-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .75; }
.ep-art span { position: absolute; left: 12px; bottom: 6px; font: 900 2.6rem/1 var(--head); color: var(--yellow); }
.ep-body { padding: 20px 22px; }
.ep-body .eyebrow { font-size: .62rem; margin-bottom: 8px; color: var(--muted); }
.ep-body h3 { margin: 0 0 6px; text-transform: uppercase; font-size: 1.15rem; }
.ep-body p { font-size: .9rem; line-height: 1.5; margin: 0 0 14px; }
.ep-play { display: flex; align-items: center; gap: 12px; opacity: .45; }
.ep-play i { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.ep-play i::after { content: ""; position: absolute; left: 13px; top: 10px; border: 7px solid transparent; border-left: 11px solid #fff; }
.ep-play .bar { flex: 1; height: 4px; background: var(--line); }
.ep-play em { font: 700 .72rem var(--head); font-style: normal; }
.notify { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.notify input { flex: 1 1 240px; width: auto; }
.notify .form-note { flex-basis: 100%; }

/* ---------- join */
.signin { justify-self: end; width: 100%; max-width: 420px; }
.signin h2 { font-size: 1.5rem; }
.signin .btn { width: 100%; justify-content: center; margin-top: 20px; }
.signin .small { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 22px; }
.perks > div { border-top: 4px solid var(--yellow); padding-top: 16px; }
.perks h3 { margin: 6px 0; text-transform: uppercase; font-size: 1.1rem; }
.perks p { font-size: .92rem; line-height: 1.55; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 22px; margin: 2em 0 1.4em; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.best { }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--ink); color: var(--yellow); font: 800 .62rem var(--head); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; }
.plan h3 { margin: 0; text-transform: uppercase; }
.plan .price { margin: 14px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .price b { font: 900 2.4rem/1 var(--head); color: var(--ink); }
.plan .price span { font-size: .84rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.45; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; background: var(--yellow); }
.plan .btn { justify-content: center; }

/* ---------- directory */
.dir-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dir-tools input { flex: 1 1 280px; width: auto; max-width: 560px; }
.dir { padding-top: 34px; padding-bottom: clamp(56px, 8vw, 110px); }
.count { font: 800 .7rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.member { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
.member:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(0,0,0,.4); }
.member-top { display: block; position: relative; height: 96px; background: #111; }
.member-top img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.member-top .av { position: absolute; left: 20px; bottom: -32px; }
.member-body { padding: 42px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.member h3 { margin: 0; font-size: 1.12rem; text-transform: uppercase; }
.member h3 a { text-decoration: none; }
.member .headline { font-size: .92rem; line-height: 1.45; margin: 0 0 8px; color: var(--ink); font-weight: 400; }
.member .where { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.member .chips { margin: 0 0 18px; gap: 6px; }
.member-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.none { color: var(--muted); }

/* ---------- profile */
.pf-cover { height: clamp(140px, 20vw, 280px); background: #111; overflow: hidden; }
.pf-cover img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pf-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px clamp(18px, 3vw, 32px); align-items: end; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.pf-id .av { margin-top: calc(clamp(104px, 14vw, 156px) / -2); }
.pf-id .av { align-self: start; }
.pf-name { padding-top: 18px; }
.pf-name h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.pf-name .handle-line { font-size: 1rem; margin-top: 8px; }
.pf-name .headline { font-size: 1.12rem; line-height: 1.45; color: var(--ink); font-weight: 400; margin: 0 0 4px; max-width: 60ch; }
.pf-name .where, .pf-name .stat { font-size: .88rem; color: var(--muted); margin: 0; }
.pf-name .stat b { color: var(--ink); font-weight: 600; }
.pf-act { display: flex; flex-wrap: wrap; gap: 10px; align-self: end; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; padding-top: 30px; padding-bottom: clamp(56px, 8vw, 110px); align-items: start; }
.pf-main, .pf-side { display: grid; gap: 22px; }
.pf-grid .card p { margin: 0; white-space: pre-line; }
.pf-grid .empty { color: var(--muted); font-size: .92rem; }
.jobs, .links, .mini { list-style: none; margin: 0; padding: 0; }
.jobs li { display: grid; gap: 0; padding: 12px 0 12px 18px; border-left: 4px solid var(--yellow); margin-bottom: 12px; }
.jobs li:last-child { margin-bottom: 0; }
.jobs b { font: 800 .98rem var(--head); color: var(--ink); }
.jobs span { font-size: .92rem; }
.jobs em { font-style: normal; font-size: .8rem; color: var(--muted); }
.links li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.links li:first-child { border-top: 0; padding-top: 0; }
.links span { font: 800 .64rem/1.9 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); flex: none; }
.links a, .links b { text-align: right; min-width: 0; overflow-wrap: anywhere; font-weight: 400; }
.mini a { display: flex; gap: 12px; align-items: center; padding: 9px 0; text-decoration: none; }
.mini span { display: grid; font-size: .8rem; line-height: 1.4; color: var(--muted); min-width: 0; }
.mini b { font: 800 .88rem var(--head); color: var(--ink); }
.missing { padding: 80px var(--gut); }

/* ---------- edit profile */
.page-hero.slim { padding: clamp(24px, 4vw, 48px) 0; }
.page-hero.slim h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); padding-top: 30px; padding-bottom: clamp(56px, 8vw, 110px); align-items: start; }
.edit-form fieldset { border: 0; border-top: 1px solid var(--line); padding: 22px 0 30px; margin: 0; min-width: 0; }
.edit-form legend { font-size: .9rem; padding: 0 14px 0 0; margin: 0; float: left; width: 100%; margin-bottom: 4px; }
.edit-form legend + * { clear: both; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 18px; }
.handle { display: flex; }
.handle span { display: grid; place-items: center; padding: 0 14px; background: var(--ink); color: var(--yellow); font: 800 1rem var(--head); }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.covers button { padding: 0; border: 3px solid transparent; background: #111; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.covers button.on { border-color: var(--yellow); outline: 2px solid var(--ink); }
.covers img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.chips.pick { margin-top: 12px; }
.job-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) 42px; gap: 8px; margin-bottom: 10px; align-items: center; }
.save-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; position: sticky; bottom: 0; background: #fff; padding-bottom: 16px; }
.save-bar .form-note { margin: 0; }
.edit-preview { position: sticky; top: calc(var(--header) + 24px); }
.edit-preview .member:hover { transform: none; box-shadow: none; }

/* ---------- messages */
.app .cta { display: none; }
.chat-log { flex: 1; overflow: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-start { margin: auto; color: var(--muted); font-size: .88rem; text-align: center; }
.msg { max-width: min(78%, 560px); display: grid; gap: 3px; }
.msg p { margin: 0; padding: 11px 15px; font-size: .94rem; line-height: 1.5; background: #fff; border-radius: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.msg time { font-size: .66rem; color: var(--muted); }
.msg.mine { align-self: flex-end; }
.msg.mine p { background: var(--yellow); }
.msg.mine time { text-align: right; }
.composer { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff; align-items: stretch; }
.composer textarea { resize: none; min-height: 48px; max-height: 140px; }
.composer .btn { flex: none; }


@media (max-width: 1100px) {
  .pf-grid, .edit { grid-template-columns: minmax(0, 1fr); }
  .pf-id { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .pf-name { grid-column: 1 / -1; padding-top: 6px; }
  .pf-act { grid-column: 1 / -1; }
  .edit-preview { position: static; order: -1; max-width: 360px; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .pod-cover, .signin { justify-self: start; }
  .pod-cover { max-width: 300px; }
}
@media (max-width: 560px) {
  .ep { grid-template-columns: 96px minmax(0, 1fr); }
  .ep-art span { font-size: 2rem; }
  .ep-body { padding: 16px; }
  .ep-body h3 { font-size: .95rem; }
  .job-row { grid-template-columns: minmax(0, 1fr) 42px; }
  .job-row input { grid-column: 1; }
  .job-row button { grid-column: 2; grid-row: 1; }
  .pf-act .btn, .dir-tools .btn { flex: 1 1 auto; justify-content: center; }
  .preview-bar span { font-size: .74rem; }
}

/* ---------- demo: account bar, sign-up, tabs */
.preview-bar { gap: 6px 18px; align-items: center; min-height: 40px; }
.preview-bar a, .preview-bar button { color: #fff; font: 700 .74rem var(--head); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.preview-bar a:hover, .preview-bar button:hover { color: var(--yellow); }
.preview-bar i { font-style: normal; background: var(--yellow); color: var(--ink); border-radius: 100px; padding: 1px 7px; margin-left: 3px; font-size: .68rem; display: inline-block; text-decoration: none; }
.auth { justify-self: end; width: 100%; max-width: 440px; padding: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { font: 800 .74rem var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 16px 8px; background: var(--grey); border: 0; cursor: pointer; color: var(--muted); }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: inset 0 -4px 0 var(--yellow); }
.auth form { padding: 8px 26px 26px; }
.auth .btn { width: 100%; justify-content: center; margin-top: 20px; }
.auth .small { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.signed { margin-top: 18px; padding: 12px 16px; background: var(--yellow); color: var(--ink); font-size: .95rem; }
.welcome { margin: 14px 0 0; font-size: 1.05rem; max-width: 60ch; }
.demo-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 1.6em; }
.demo-accounts button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; transition: transform .2s, box-shadow .2s; }
.demo-accounts button:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(0,0,0,.4); }
.demo-accounts span { display: grid; font-size: .78rem; line-height: 1.4; color: var(--muted); min-width: 0; }
.demo-accounts b { font: 800 .9rem var(--head); color: var(--ink); }
.dir-tabs { display: flex; flex-wrap: wrap; gap: 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.dir-tabs button { font: 800 .78rem var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 12px 0; background: none; border: 0; border-bottom: 5px solid transparent; margin-bottom: -2px; cursor: pointer; color: var(--muted); }
.dir-tabs button.on { color: var(--ink); border-bottom-color: var(--yellow); }
.dir-tabs i, .card h2 i { font-style: normal; font-size: .7rem; background: var(--grey); color: var(--ink); border-radius: 100px; padding: 2px 8px; margin-left: 4px; letter-spacing: 0; }
.dir-tabs button.on i { background: var(--ink); color: #fff; }
.member h3 em { font: 800 .58rem var(--head); font-style: normal; letter-spacing: .1em; background: var(--ink); color: #fff; padding: 3px 7px; vertical-align: middle; margin-left: 4px; }
.btn:disabled { cursor: default; transform: none; }
.btn.on:disabled:hover { background: var(--ink); color: #fff; }
.text-btn { background: none; border: 0; padding: 0; font: 400 .8rem var(--body); color: var(--muted); text-decoration: underline; cursor: pointer; align-self: center; }
.text-btn:hover { color: var(--ink); }
@media (max-width: 860px) { .auth { justify-self: start; } }

/* ---------- the community as one page: bar, rail, view, docked chats */
.app main { background: var(--grey); min-height: 80vh; padding-bottom: 90px; }
.app-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header); z-index: 40; }
.app-nav .wrap { display: flex; align-items: stretch; gap: clamp(14px, 3vw, 34px); }
.app-nav a, .app-nav > .wrap > button, .me-menu > button { font: 800 .74rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; background: none; border: 0; border-bottom: 5px solid transparent; padding: 15px 0 10px; cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.app-nav a:hover, .app-nav button:hover { color: var(--ink); }
.app-nav .on { color: var(--ink); border-bottom-color: var(--yellow); }
.app-nav i, .dock-bar i, .cw-title i, .view h2 i { font-style: normal; font: 800 .66rem var(--head); letter-spacing: 0; background: var(--yellow); color: var(--ink); border-radius: 100px; padding: 2px 7px; }
.view h2 i, .view .card h2 i { background: #e9e9e9; margin-left: 6px; }
.me-menu { margin-left: auto; position: relative; display: flex; }
.me-menu svg { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.me-drop { display: none; position: absolute; right: 0; top: 100%; width: 280px; background: #fff; border: 1px solid var(--line); padding: 8px; z-index: 5; }
.me-menu.open .me-drop { display: block; }
.me-drop a, .me-drop button { display: flex; width: 100%; text-align: left; padding: 11px 10px; border: 0; border-bottom: 0; letter-spacing: .06em; color: var(--ink); }
.me-drop a:hover, .me-drop button:hover { background: var(--grey); }
.me-drop .me-card { gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 6px; text-transform: none; letter-spacing: 0; }
.me-card span { display: grid; font: 400 .8rem/1.4 var(--body); color: var(--muted); min-width: 0; white-space: normal; }
.me-card b { font: 800 .92rem var(--head); color: var(--ink); }
.av.xs { width: 28px; height: 28px; font-size: .62rem; border-width: 0; }

.app-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; padding-top: 24px; align-items: start; }
.rail { display: grid; gap: 18px; position: sticky; top: calc(var(--header) + 74px); }
.rail-card { background: #fff; border: 1px solid var(--line); }
.rail-card.pad { padding: 18px; }
.rail-card h2 { font-size: .95rem; letter-spacing: .02em; }
.rail-card.pad h2 { font-size: .8rem; letter-spacing: .1em; margin-bottom: 10px; }
.rail-card .member-top { height: 74px; }
.rail-body { padding: 40px 18px 14px; }
.rail-body h2 a { text-decoration: none; }
.rail-body .headline { font-size: .84rem; line-height: 1.45; margin: 0; color: var(--text); }
.rail-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--line); text-decoration: none; font-size: .84rem; }
.rail-row:hover { background: var(--grey); }
.rail-row b { font-weight: 600; color: var(--ink); }
.mini li { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.mini li a { flex: 1 1 150px; min-width: 0; }
.view { min-width: 0; display: grid; gap: 22px; align-content: start; }
.view > * { min-width: 0; }
.view-head h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.view-head .dir-tools { margin-top: 20px; }
.view-head .dir-tools input { max-width: none; }
.view .chips.filter { margin: 0; }
.view .count { margin: 0; }
.view .members { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.view h2.sub { font-size: 1.1rem; margin: 10px 0 -6px; }
.invites { list-style: none; margin: 0; padding: 0; }
.invites li { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.invites li:first-child { border-top: 0; padding-top: 0; }
.invites a { display: flex; gap: 12px; align-items: center; text-decoration: none; flex: 1 1 220px; min-width: 0; }
.invites span { display: grid; font-size: .8rem; line-height: 1.4; color: var(--muted); min-width: 0; }
.invites b { font: 800 .9rem var(--head); color: var(--ink); }
.invites div { display: flex; gap: 8px; }
.view .empty { color: var(--muted); font-size: .92rem; margin: 0; }
.pf-head { background: #fff; border: 1px solid var(--line); }
.view .pf-id { padding: 0 clamp(16px, 2.4vw, 28px) 24px; border-bottom: 0; }
.view .pf-grid { padding: 0; grid-template-columns: minmax(0, 1fr) 300px; }
.view .edit { padding: 0; background: #fff; border: 1px solid var(--line); padding: 6px clamp(16px, 2.4vw, 28px) 0; grid-template-columns: minmax(0, 1fr) 280px; }
.view .edit-form fieldset:first-child { border-top: 0; }
.view .edit-preview { top: calc(var(--header) + 80px); padding: 22px 0; }
.acct { margin-top: 12px; }
.view .missing { padding: 40px 0; }

.dock { position: fixed; right: clamp(8px, 2vw, 28px); bottom: 0; z-index: 90; display: flex; align-items: flex-end; gap: 12px; pointer-events: none; max-width: calc(100vw - 16px); }
.dock > * { pointer-events: auto; }
.dock-chats { display: flex; align-items: flex-end; gap: 12px; }
.dock-list { width: 300px; background: #fff; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -6px 30px -12px rgba(0,0,0,.35); }
.dock-bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: var(--ink); color: #fff; border: 0; cursor: pointer; font: 800 .78rem var(--head); letter-spacing: .08em; text-transform: uppercase; }
.dock-bar b { flex: 1; text-align: left; color: #fff; }
.dock-bar svg { width: 11px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.dock-list.open .dock-bar svg { transform: rotate(180deg); }
.dock-threads { max-height: min(420px, 60vh); overflow: auto; }
.dock-threads .thread { padding: 12px 14px; }
.chatwin { width: 330px; background: #fff; border: 1px solid var(--line); border-bottom: 0; display: flex; flex-direction: column; box-shadow: 0 -6px 30px -12px rgba(0,0,0,.35); }
.chatwin.min { width: 230px; }
.chatwin header { display: flex; align-items: center; background: var(--yellow); border-bottom: 1px solid var(--line); }
.chatwin.min header { border-bottom: 0; }
.cw-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); }
.cw-title span { display: grid; min-width: 0; }
.cw-title b { font: 800 .84rem var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-title em { font: 400 .68rem var(--body); font-style: normal; }
.chatwin header a, .chatwin header > button:not(.cw-title) { width: 34px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink); text-decoration: none; font-size: .95rem; }
.chatwin header a:hover, .chatwin header > button:not(.cw-title):hover { background: rgba(0,0,0,.12); }
.chatwin .chat-log { height: min(340px, 46vh); flex: none; background: var(--grey); padding: 14px 12px; }
.chatwin .msg { max-width: 86%; }
.chatwin .msg p { font-size: .88rem; padding: 9px 12px; }
.chatwin .composer { padding: 8px; }
.chatwin .composer textarea { min-height: 42px; padding: 9px 11px; font-size: .9rem; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .view .pf-grid, .view .edit { grid-template-columns: minmax(0, 1fr); }
  .view .edit-preview { padding: 16px 0 0; }
  .view .pf-id { padding-bottom: 22px; }
}
@media (max-width: 700px) {
  .app-nav .wrap { gap: 16px; overflow-x: auto; }
  .app-nav a, .app-nav > .wrap > button, .me-menu > button { font-size: .68rem; letter-spacing: .06em; }
  .me-menu { position: static; }
  .me-drop { left: 8px; right: 8px; width: auto; }
  .app-nav { position: sticky; }
  .dock { right: 0; left: 0; max-width: none; justify-content: flex-end; }
  .dock-list { width: auto; border: 0; box-shadow: none; background: none; margin: 0 12px 12px 0; }
  .dock-bar { border-radius: 100px; padding: 12px 18px; border: 2px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
  .dock-bar svg { display: none; }
  .dock-list.open { position: fixed; inset: var(--header) 0 0 0; margin: 0; background: #fff; display: flex; flex-direction: column; z-index: 95; }
  .dock-list.open .dock-bar { border-radius: 0; border: 0; box-shadow: none; padding: 16px; }
  .dock-list.open .dock-bar svg { display: block; }
  .dock-list.open .dock-threads { max-height: none; flex: 1; }
  .chatwin.min { display: none; }
  .chatwin:not(.min) { position: fixed; inset: var(--header) 0 0 0; width: auto; border: 0; z-index: 96; }
  .chatwin .chat-log { flex: 1; height: auto; min-height: 0; }
  .chat-open { overflow: hidden; }
  .chat-open .dock-list:not(.open) { display: none; }
}

.thread { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 18px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; }
.thread:hover { background: var(--grey); }
.thread span { display: grid; min-width: 0; }
.thread b { font: 800 .88rem var(--head); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread em { font-style: normal; font-size: .78rem; line-height: 1.4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread > i { font-style: normal; font-size: .66rem; color: var(--muted); align-self: start; white-space: nowrap; text-align: right; }
.thread.unread em { color: var(--ink); font-weight: 600; }
.thread.unread > i::after { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 1px solid var(--line); margin: 6px 0 0 auto; }
.dock-threads .none { padding: 16px; font-size: .88rem; margin: 0; }
/* profile header inside the view: avatar over the cover, then name, then actions (as LinkedIn stacks it) */
.view .pf-id { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 6px; }
.view .pf-name, .view .pf-act { grid-column: auto; }
.view .pf-name { padding-top: 6px; }
.view .pf-name h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.view .pf-act { margin-top: 12px; }


/* ---------- network: profile first, feed, groups, notifications. Light lines, no black boxes. */
.app-nav { border-bottom: 1px solid var(--line); }
.app-nav .wrap { gap: clamp(14px, 2.4vw, 30px); }
.gsearch { flex: 1 1 260px; max-width: 420px; align-self: center; }
.community .gsearch input { padding: 9px 14px; font-size: .9rem; background: var(--grey); border-color: transparent; border-radius: 100px; }
.community .gsearch input:focus { background: #fff; }
.app-links { display: flex; align-items: stretch; gap: clamp(14px, 2.2vw, 28px); margin-left: auto; }
.app-links a, .app-links > button, .me-menu > button { font: 800 .74rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; background: none; border: 0; border-bottom: 4px solid transparent; padding: 15px 0 11px; cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.app-links .bell svg { width: 15px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.me-menu { margin-left: 0; }
.me-drop { border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }

.app-shell { grid-template-columns: minmax(0, 1fr); }
.app-shell .rail, .app-shell .aside { display: none; }
.app-shell.has-rail { grid-template-columns: 320px minmax(0, 1fr); }
.app-shell.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
.app-shell.has-rail .rail, .app-shell.has-aside .aside { display: grid; }
.app-shell.has-aside .view { max-width: 760px; width: 100%; justify-self: center; }
.rail, .aside { gap: 16px; align-content: start; min-width: 0; }
.aside { position: sticky; top: calc(var(--header) + 74px); }
.rail { position: static; }
.rail-card, .view .card, .post, .share, .gcard, .g-head { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.view .card { padding: 22px 24px; }
.rail-card.pad { padding: 18px 20px; }
.rail-card.pad h2 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.rail-card.pad h2 i { font-style: normal; font-size: .68rem; background: var(--grey); border-radius: 100px; padding: 2px 8px; margin-left: 4px; letter-spacing: 0; }
.rail-card.id .member-top { height: 110px; }
.rail-card.id .av.big { width: 104px; height: 104px; font-size: 2rem; border-width: 5px; position: absolute; left: 20px; bottom: -52px; }
.rail-card.id .rail-body { padding: 64px 22px 22px; }
.rail-card.id h1 { font-size: 1.5rem; line-height: 1.1; margin: 0; text-transform: uppercase; }
.rail-card.id h1 em { font: 800 .58rem var(--head); font-style: normal; letter-spacing: .1em; background: var(--ink); color: #fff; padding: 3px 7px; vertical-align: middle; }
.rail-card.id .headline { font-size: 1rem; line-height: 1.45; color: var(--ink); margin: 0 0 8px; }
.rail-card.id .where, .rail-card.id .stat { font-size: .84rem; line-height: 1.5; color: var(--muted); margin: 0 0 6px; }
.rail-card.id .stat b { color: var(--ink); font-weight: 600; }
.rail-card.id .pf-act { margin-top: 16px; gap: 8px; }
.rail-card .chips { margin: 0; gap: 6px; }
.rail-card .chips a { text-decoration: none; }
.rail-card .chips a:hover { background: var(--yellow); border-color: var(--yellow); }
.rail-card .empty { font-size: .86rem; color: var(--muted); margin: 0; }
.rail-card .links li { font-size: .86rem; }
.glist, .tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.glist a, .tags a { font: 700 .88rem var(--head); color: var(--ink); text-decoration: none; }
.glist a:hover, .tags a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.glist span, .tags span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.more { display: inline-block; margin-top: 14px; font: 700 .78rem var(--head); color: var(--ink); }
.view h2.sub { font-size: 1.05rem; margin: 8px 0 -8px; }
.view h2.sub i { font-size: .7rem; }
.view .card p { margin: 0; }
.view .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.view .member, .member { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.member:hover { box-shadow: 0 16px 34px -20px rgba(0,0,0,.4); transform: translateY(-3px); }
.jobs li a { font-size: .84rem; }
.backlink { margin: 0; font: 700 .8rem var(--head); }
.backlink a { text-decoration: none; }

/* composer */
.share { padding: 16px 18px; }
.share-top { display: flex; gap: 12px; align-items: flex-start; }
.community .share textarea { border: 0; padding: 10px 0; resize: vertical; min-height: 54px; font-size: 1.02rem; }
.community .share textarea:focus { outline: 0; }
.share-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.chips.kinds { margin: 0; gap: 6px; flex: 1 1 auto; }
.chips.kinds button { font: 700 .72rem var(--head); padding: 7px 12px; border: 1px solid #cfcfcf; border-radius: 100px; background: #fff; color: var(--ink); cursor: pointer; }
.chips.kinds button:hover { border-color: var(--ink); }
.chips.kinds button.on { background: var(--yellow); border-color: var(--yellow); }
.community .share select { width: auto; padding: 7px 10px; font-size: .82rem; border-radius: 100px; }

/* feed */
.feed-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--line); }
.feed-tabs button { font: 800 .74rem var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 10px 0; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -1px; cursor: pointer; color: var(--muted); }
.feed-tabs button:hover { color: var(--ink); }
.feed-tabs button.on { color: var(--ink); border-bottom-color: var(--yellow); }
.feed-tabs i { font-style: normal; font-size: .68rem; background: #e9e9e9; color: var(--ink); border-radius: 100px; padding: 2px 7px; letter-spacing: 0; }
.posts { display: grid; gap: 16px; }
.post { padding: 18px 20px 6px; }
.post .reposted { font-size: .78rem; color: var(--muted); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.post .reposted a { font-weight: 600; color: var(--ink); text-decoration: none; }
.post header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.post header h3 { font-size: .98rem; margin: 0; line-height: 1.25; }
.post header h3 a { text-decoration: none; }
.post header p { font-size: .8rem; line-height: 1.4; color: var(--muted); margin: 0; }
.post header .meta a { color: inherit; text-decoration: none; }
.post header .meta a:hover { color: var(--ink); text-decoration: underline; }
.kind { font: 800 .58rem var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; background: var(--grey); color: var(--ink); white-space: nowrap; border-radius: 4px; }
.kind.k-question { background: var(--ink); color: #fff; }
.kind.k-experiment, .kind.k-work { background: var(--yellow); }
.post-text { font-size: 1rem; line-height: 1.6; color: var(--ink); margin: 14px 0; white-space: pre-line; overflow-wrap: anywhere; }
.post-text a, .comment a { font-weight: 600; text-decoration: none; box-shadow: inset 0 -3px 0 var(--yellow); }
.post footer { display: flex; flex-wrap: wrap; gap: 2px; border-top: 1px solid var(--line); padding: 6px 0; margin: 0 -8px; }
.post footer button { font: 700 .76rem var(--head); color: var(--muted); background: none; border: 0; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.post footer button:hover { background: var(--grey); color: var(--ink); }
.post footer button.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); }
.post footer b { font-weight: 800; color: var(--ink); }
.post footer .del { margin-left: auto; font-weight: 400; }
.comments { border-top: 1px solid var(--line); padding: 14px 0 12px; display: grid; gap: 12px; }
.comment { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.comment > div { background: var(--grey); border-radius: 10px; padding: 9px 13px; }
.comment p { margin: 0; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.comment .c-by { font-size: .8rem; display: flex; gap: 8px; align-items: baseline; }
.comment .c-by a { font: 800 .82rem var(--head); box-shadow: none; }
.comment time { font-size: .7rem; color: var(--muted); }
.c-form { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.community .c-form input { padding: 9px 14px; font-size: .9rem; border-radius: 100px; }
.posts .none, .view > .none { color: var(--muted); font-size: .92rem; margin: 0; }
.view > .none.card, .posts .none.card { padding: 22px 24px; }

/* groups */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; }
.g-top { display: block; height: 96px; background: #111; }
.g-top img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.gcard > div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; align-items: flex-start; }
.gcard h3 { font-size: 1.05rem; margin: 0; text-transform: uppercase; }
.gcard h3 a { text-decoration: none; }
.gcard p { margin: 0; font-size: .9rem; line-height: 1.5; }
.gcard .meta, .g-id .meta { font-size: .78rem; color: var(--muted); }
.gcard .btn { margin-top: 10px; }
.g-head .pf-cover { height: clamp(110px, 14vw, 180px); }
.g-id { padding: 22px 24px 24px; }
.g-id h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.g-id p { margin: 8px 0 0; }
.g-id .btn { margin-top: 16px; }

/* notifications */
.view .notes { padding: 6px 0; }
.notes ul { list-style: none; margin: 0; padding: 0; }
.notes li + li { border-top: 1px solid var(--line); }
.notes a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 22px; text-decoration: none; font-size: .9rem; line-height: 1.45; }
.notes a:hover { background: var(--grey); }
.notes li.new a { background: #fffbe6; box-shadow: inset 4px 0 0 var(--yellow); }
.notes b { font-weight: 700; color: var(--ink); }
.notes em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notes time { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.notes .empty { padding: 16px 22px; }
.check { display: flex !important; gap: 10px; align-items: center; margin: 10px 0 0 !important; font: 400 .95rem var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.community .check input { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--ink); }

/* settings, chat and dock without the black frames */
.view .edit { border: 1px solid var(--line); border-radius: 10px; }
.edit-form fieldset { border-top: 1px solid var(--line); }
.save-bar { border-top: 1px solid var(--line); }
.auth, .plan, .ep, .demo-accounts button { border: 1px solid var(--line); }
.chatwin, .dock-list { border: 1px solid #d9d9d9; border-bottom: 0; border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 -8px 34px -12px rgba(0,0,0,.35); }
.chatwin header { border-bottom: 0; }
.chatwin .composer, .composer { border-top: 1px solid var(--line); }
.community .composer textarea { border-radius: 20px; }
.msg.theirs p { background: #fff; }
.chat-log { background: var(--grey); }
.dock-search { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.community .dock-search input { padding: 8px 14px; font-size: .86rem; border-radius: 100px; background: var(--grey); border-color: transparent; }
.x-search { display: none; }
.price-one { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.price-one .big { font: 900 clamp(4rem, 12vw, 9rem)/.9 var(--head); color: var(--ink); margin: 0; }
.price-one .big span { display: block; font: 800 .8rem var(--head); letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; }
.price-one ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price-one li { padding: 10px 0 10px 24px; border-top: 1px solid var(--line); position: relative; }
.price-one li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; background: var(--yellow); }

@media (max-width: 1100px) {
  .app-shell.has-rail, .app-shell.has-aside { grid-template-columns: minmax(0, 1fr); }
  .app-shell.has-aside .aside { display: none; }
  .app-shell.has-rail .rail { display: grid; }
  .gsearch { max-width: none; }
}
@media (max-width: 860px) { .price-one { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .app-nav .wrap { overflow: visible; gap: 0; }
  .gsearch, .app-links .msg-link, .app-links .bell span { display: none; }
  .x-search { display: flex; }
  .app-links { margin: 0; width: 100%; justify-content: space-between; gap: 10px; }
  .app-links a, .app-links > button, .me-menu > button { font-size: .68rem; letter-spacing: .05em; }
  .post { padding: 16px 16px 4px; }
  .post header { grid-template-columns: auto minmax(0, 1fr); }
  .post header .kind { grid-column: 2; justify-self: start; }
  .view .card { padding: 18px; }
  .notes a { padding: 12px 16px; grid-template-columns: 44px minmax(0, 1fr); }
  .notes time { grid-column: 2; }
  .chatwin, .dock-list { border-radius: 0; }
}
@media (max-width: 400px) { .me-menu > button > span:not(.av) { display: none; } }

/* photo, pickers, onboarding steps, collaboration */
.av.photo { padding: 0; overflow: hidden; background: #ddd; }
.av.photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.photo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; clear: both; }
.photo-row > div:first-child { display: grid; gap: 6px; justify-items: center; }
.photo-row .av { width: 84px; height: 84px; font-size: 1.6rem; border-width: 0; }
.photo-row > div:last-child { flex: 1 1 220px; }
.community input[type="file"] { padding: 9px; font-size: .86rem; }
.pick-h { font: 800 .7rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 0; clear: both; }
.chips.pick { clear: both; }
.chips.filter button, .chips.pick button { border: 1px solid #cfcfcf; }
.chips.filter button.on, .chips.pick button.on { border-color: var(--ink); }
.edit-form.wizard fieldset { border-top: 0; padding-top: 6px; }
.edit-form fieldset[hidden], .save-bar[hidden] { display: none; }
.wiz-head { padding: 22px 0 6px; }
.wiz-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 14px; }
.wiz-bar, .complete i { display: block; height: 6px; background: #e9e9e9; border-radius: 100px; overflow: hidden; }
.wiz-bar u, .complete u { display: block; height: 100%; background: var(--yellow); border-radius: 100px; }
.complete { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-decoration: none; font-size: .82rem; color: var(--muted); }
.complete span { display: flex; justify-content: space-between; gap: 10px; }
.complete b { font: 800 .82rem var(--head); color: var(--ink); }
.open-to .chips span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; }
.collab h3 { font: 800 .7rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.collab h3:first-of-type { margin-top: 0; }
.collab .chips { margin: 0; }

/* settings: sections on the left, one section open on the right */
.settings { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.set-nav { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.set-nav a { display: grid; gap: 2px; padding: 14px 18px; text-decoration: none; border-left: 4px solid transparent; }
.set-nav a + a { border-top: 1px solid var(--line); }
.set-nav a:hover { background: var(--grey); }
.set-nav a.on { border-left-color: var(--yellow); background: var(--grey); }
.set-nav b { font: 800 .86rem var(--head); color: var(--ink); }
.set-nav span { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.set-body { position: relative; }
.set-body h2 { font-size: 1.3rem; margin-bottom: 8px; }
.set-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-row > div { flex: 1 1 260px; min-width: 0; }
.set-row label { margin: 0 0 2px; }
.set-row b { font: 800 .9rem var(--head); color: var(--ink); }
.set-row .hint { margin: 2px 0 0; }
.community .set-row select { width: auto; max-width: 100%; flex: 0 1 auto; padding: 10px 12px; font-size: .92rem; }
.btn.danger { color: #b3261e; border-color: #b3261e; }
.btn.danger:hover { background: #b3261e; color: #fff; }
.flash { position: absolute; top: 22px; right: 24px; margin: 0; font: 800 .68rem var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 5px 10px; border-radius: 4px; }
.flash[hidden] { display: none; }
.rail-card.id .stat.net { color: var(--ink); font-weight: 600; }
.me-drop button[data-dock-toggle] { font: 800 .74rem var(--head); text-transform: uppercase; }
@media (max-width: 860px) { .settings { grid-template-columns: minmax(0, 1fr); } }
.aside .mini li a { flex: 1 1 100%; }
.aside .mini li .btn { margin: 0 0 8px 56px; }
@media (max-width: 700px) { .community .share textarea { min-height: 84px; } }

/* headers stay plain grey for now: no book murals behind profiles, cards or groups */
.member-top img, .g-top img, .pf-cover img { display: none; }
.member-top, .g-top, .pf-cover { background: #e6e6e6; }

/* member photos and cover images, and the editor for them */
.member-top img.cov, .cov-prev img.cov { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.rail-card.id .member-top { height: auto; aspect-ratio: 3 / 1; }
.cov-prev { position: relative; aspect-ratio: 3 / 1; background: #e6e6e6; border-radius: 8px; overflow: hidden; max-width: 360px; margin-top: 10px; }
.cov-edit { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px; font: 700 .68rem var(--head); color: var(--ink); background: rgba(255,255,255,.92); border: 0; border-radius: 100px; padding: 7px 11px; cursor: pointer; }
.cov-edit:hover, .cov-edit:focus-visible { background: var(--yellow); }
.cov-edit svg, .av-edit svg { width: 15px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.av-edit { position: absolute; left: 20px; bottom: -52px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.rail-card.id .av-edit .av.big { position: static; }
.av-edit span { position: absolute; inset: 5px; border-radius: 50%; background: rgba(17,17,17,.62); color: #fff; display: grid; place-items: center; align-content: center; gap: 4px; font: 700 .6rem/1.2 var(--head); text-align: center; opacity: 0; transition: opacity .15s; }
.av-edit:hover span, .av-edit:focus-visible span { opacity: 1; }
@media (hover: none) { .av-edit span { opacity: 1; inset: auto 0 0 auto; width: 34px; height: 34px; font-size: 0; gap: 0; background: var(--ink); border: 3px solid #fff; } }
.photo-row .lab { font: 800 .7rem var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.photo-row .btns { margin: 0; }
.with-av { display: flex; gap: 12px; align-items: center; }
.modal-open { overflow: hidden; }
.media-modal { position: fixed; inset: 0; z-index: 200; background: rgba(17,17,17,.6); display: grid; place-items: center; padding: 16px; overflow: auto; }
.media-modal[hidden] { display: none; }
.mm-box { background: #fff; border-radius: 14px; width: min(100%, 620px); padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.mm-box h2 { font-size: 1.3rem; margin: 0 0 16px; }
.mm-current { display: grid; justify-items: center; margin-bottom: 6px; }
.mm-current .av.big { width: 140px; height: 140px; font-size: 2.6rem; border-width: 0; }
.mm-current .cov-prev { width: 100%; max-width: none; margin: 0; }
.crop { position: relative; margin: 0 auto; background: #111; border-radius: 8px; overflow: hidden; touch-action: none; }
.crop.avatar { width: min(100%, 280px); aspect-ratio: 1; }
.crop.cover { width: 100%; aspect-ratio: 3 / 1; }
.crop canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.crop canvas:active { cursor: grabbing; }
.crop canvas:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.crop.avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 200px rgba(17,17,17,.55); pointer-events: none; }
.mm-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; }
.community .mm-tools label { margin: 0; }
.community .mm-tools input[type="range"] { flex: 1 1 160px; width: auto; padding: 0; border: 0; accent-color: var(--ink); }
.mm-prev { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mm-prev span { font: 800 .66rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mm-prev canvas { border-radius: 50%; background: #eee; }
.mm-prev .p96 { width: 96px; height: 96px; }
.mm-prev .p48 { width: 48px; height: 48px; }
.mm-prev .pm { width: 180px; height: 60px; border-radius: 6px; }
.mm-err { color: #b3261e; font-size: .88rem; margin: 10px 0 0; min-height: 1.2em; }
.mm-err:empty { min-height: 0; margin: 0; }
.mm-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.contact { justify-self: end; width: 100%; max-width: 520px; padding: 10px 26px 26px; border: 1px solid var(--line); border-radius: 10px; }
.contact .btn { margin-top: 14px; }
.contact .small { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 860px) { .contact { justify-self: start; } }

/* sign-in messages, saving states, notices */
.auth-msg { margin: 0 26px 26px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; background: #fdecea; color: #8c1d18; border-radius: 8px; }
.auth-msg.good { background: #fff7d1; color: var(--ink); }
.auth-msg[hidden] { display: none; }
.auth .lead { margin: 18px 0 0; font-size: .95rem; line-height: 1.5; }
.auth .text-btn { font-size: .82rem; }
.btn.loading, .btn:disabled { opacity: .6; cursor: default; }
.set-msg { margin: 14px 0 0; font-size: .9rem; color: var(--ink); min-height: 1.2em; }
.set-msg.bad { color: #b3261e; }
.set-msg:empty { min-height: 0; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 210; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 100px; font-size: .88rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }

.auth .pay { padding: 26px; }
.auth .pay h2 { font-size: 1.4rem; margin: 0 0 10px; }
.auth .pay p { margin: 0 0 4px; }
.auth-tabs[hidden] { display: none; }

/* download page */
.dl { text-align: center; }
.dl .eyebrow { justify-content: center; }
.dl-book { display: grid; justify-items: center; gap: 18px; margin: 28px auto 0; max-width: 620px; text-decoration: none; }
.dl-book img { width: 100%; height: auto; border-radius: 10px; transition: transform .25s; }
.dl-book:hover img, .dl-book:focus-visible img { transform: translateY(-4px) scale(1.01); }
.dl-book.busy { opacity: .6; pointer-events: none; }
.dl-msg { min-height: 1.5em; margin: 14px 0 0; font-size: .95rem; }
.dl-msg.bad { color: #b3261e; }
.dl .note { margin: 6px auto 0; }

/* moderation: held-back posts, report box, admin list */
.post.is-held, .comment.is-held > div { background: #fff8e1; }
.held { margin: 0 0 12px; padding: 10px 14px; background: #fff3cd; border-radius: 8px; font-size: .86rem; line-height: 1.5; color: var(--ink); }
.comment .held { margin: 8px 0 0; }
.post footer .del { margin-left: auto; display: flex; }
.post footer .del button { font-weight: 400; }
.post footer button:disabled { cursor: default; opacity: .6; }
.c-del { margin-left: auto; background: none; border: 0; padding: 0; font: 400 .72rem var(--body); color: var(--muted); cursor: pointer; text-decoration: underline; }
.c-del:hover { color: var(--ink); }
.comment .c-by { align-items: center; }
.r-form { border-top: 1px solid var(--line); padding: 12px 0 14px; }
.community .r-form label { margin-top: 0; }
.community .r-form textarea { font-size: .92rem; }
.r-form .btns { margin: 10px 0 0; }
.share-rule { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }
.mod ul { list-style: none; margin: 0; padding: 0; }
.mod > ul > li { padding: 16px 0; border-top: 1px solid var(--line); }
.mod > ul > li:first-child { border-top: 0; padding-top: 0; }
.mod-who { display: flex; gap: 12px; align-items: center; }
.mod-who span { display: grid; font-size: .78rem; color: var(--muted); }
.mod-who b a { font: 800 .9rem var(--head); color: var(--ink); text-decoration: none; }
.mod blockquote { margin: 12px 0; padding: 10px 14px; background: var(--grey); border-left: 4px solid var(--yellow); font-size: .94rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.mod .why, .mod .why-list { font-size: .86rem; color: var(--ink); margin: 0 0 12px; }
.mod .why-list li { padding: 2px 0; }
.mod .btns { margin: 0; }
.me-drop i { font-style: normal; font: 800 .66rem var(--head); background: var(--yellow); border-radius: 100px; padding: 2px 7px; margin-left: 6px; }

/* role in Augmented Collaboration: yellow when given by the team, grey when self-chosen */
.found.open { background: #ececec; }
.role-set { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line, #e3e3e3); font: 700 .72rem var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.community .role-set select { margin-top: 6px; padding: 10px 12px; font-size: .92rem; text-transform: none; letter-spacing: 0; }
.role-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; text-transform: none; letter-spacing: 0; font: 400 .9rem var(--body); color: var(--ink); }

/* messaging: receipts, online dot, typing hint */
.ticks { margin-left: 4px; color: var(--muted); white-space: nowrap; }
.ticks i { font-style: normal; letter-spacing: -.18em; margin-right: .22em; }
.ticks.read { color: var(--ink); font-weight: 700; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.av-wrap.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #1faa55; border: 2px solid #fff; }
.typing { margin: 0; padding: 4px 14px 8px; font-size: .74rem; color: var(--muted); background: var(--grey); }
.typing[hidden] { display: none; }
.toast.link { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
