:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #e1e8e3;
  color: #171b19;
  --surface: #fafbf9;
  --line: #e4e1da;
  --quiet: #71726b;
  --accent: #285e48;
  --button: #171b19;
  --radius: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button,input,select,textarea { font: inherit; }
button,input,select,textarea,audio { max-width: 100%; }
button { color: inherit; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; background: #fafbf9; padding: 9px 15px; min-height: 40px; font-weight: 550; }
button:not(:disabled):hover { background: #ece9e2; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--button); color: #3e291f; border-color: transparent; }
button.primary:not(:disabled):hover { background: #bad8c8; }
button.ghost { background: transparent; border-color: transparent; }
button.active { background: #bad8c8; border-color: transparent; }
button.small { min-height: 32px; padding: 5px 10px; font-size: 12px; }
button.danger,.error { color: #a5372c; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.drop:focus-within { outline: 2px solid #285e48; outline-offset: 3px; }
p { margin: 0; line-height: 1.5; }
h1,h2,h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(30px,5vw,46px); }
h2 { font-size: 24px; }
h3 { font-size: 17px; }
a,summary { color: var(--accent); }
.muted,.sub,.meta { color: var(--quiet); }
.meta { font-size: 12px; }
.wrap,.native .wrap { width: calc(100% - 48px); max-width: 1150px; margin: auto; }
.header { background: #e1e8e3; }
.top,.native .top { display: flex; height: 68px; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 12px; }
.mark { width: 35px; height: 35px; background: url('/slot-mark.svg') center / contain no-repeat; flex: 0 0 35px; }
.brand { font-size: 23px; letter-spacing: -.045em; font-weight: 700; }
/* Original black Neinfeld artwork, with transparent margins outside its ink bounds. */
.neinfeld-logo { display: inline-block; width: 139px; aspect-ratio:1831 / 117; overflow: hidden; position: relative; margin-left:10px; flex-shrink:0; }
.neinfeld-logo img { position:absolute; width:111.851447%; max-width:none; height:582.905983%; left:-6.007646%; top:-238.461538%; }
.account { display: flex; align-items: center; gap: 10px; }
.account-menu { position: relative; z-index: 15; }
.account-menu summary { list-style: none; color: #686a63; cursor: pointer; padding: 8px 10px; letter-spacing: 3px; border-radius: 9px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover,.account-menu[open] summary { background: #eae7e0; }
.menu-panel { position: absolute; right: 0; top: 43px; min-width: 220px; padding: 10px; display: grid; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; box-shadow: 0 12px 35px #36302318; }
.menu-panel p { padding: 10px 12px; overflow-wrap: anywhere; }
.menu-panel button { text-align: left; font-size: 13px; }
.main,.native .main { padding-bottom: 18px; }
.messenger,.native .messenger { display: grid; grid-template-columns: 205px minmax(0,1fr); height: max(350px,calc(100dvh - 86px)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fafbf9; box-shadow: 0 6px 28px #36302304; }
.friends { background: #f0efea; border-right: 1px solid var(--line); padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.friends-heading { padding: 0 5px 9px 10px; display: flex; align-items: center; justify-content: space-between; }
.friends-heading h2 { font-size: 18px; }
.add-chat { font-size: 24px; font-weight: 400; padding: 0; width: 32px; min-height: 32px; }
.friend-list { flex: 1; min-height: 0; overflow-y: auto; }
.friend { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 9px; text-align: left; margin-bottom: 4px; }
.friend.active { background: #fafbf9; box-shadow: 0 2px 6px #35302606; }
.avatar { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 11px; background: #e5e5dd; color: #62675d; font-size: 13px; font-weight: 600; }
.friend.active .avatar { background: #bad8c8; color: #815638; }
.friend-content { display: grid; flex: 1; min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
.friend strong { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence { display: inline-flex; align-items: center; gap: 6px; color: var(--quiet); font-size: 11px; font-weight: 400; grid-column: 1; }
.presence i { width: 5px; height: 5px; border-radius: 50%; background: #a8aaa2; flex: 0 0 5px; }
.presence[data-status="Available"] i { background: #679070; }
.presence[data-status="Open to collab"] { color: #3c7951; }
.presence[data-status="Open to collab"] i { background: #4a8e62; box-shadow: 0 0 0 2px #d7eadb; }
.presence[data-status="Do not disturb"] i { background: #ba6358; }
.friend-role { grid-column: 1; font-size: 10px; font-weight: 400; color: #757970; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-role { margin-top: 5px; font-size: 11px; }
.chat-role:empty { display: none; }
.role-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.role-choices legend { font-size: 13px; font-weight: 550; margin-bottom: 10px; }
.form label.check-choice { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; }
.check-choice input { width: 16px; height: 16px; min-height: 16px; padding: 0; accent-color: #285e48; flex: 0 0 16px; }
.group-choices { max-height: 220px; overflow-y: auto; }
.presence[data-status="In session"] i { background: #c47c4e; }
.presence[data-status="Away"] i { background: #ae9453; }
.chat-badge { grid-row: 1 / 3; grid-column: 2; align-self: center; padding: 3px 6px; border-radius: 12px; background: #bad8c8; color: #4d3021; font-size: 10px; }
.your-status { display: flex; align-items: center; gap: 8px; padding: 10px 10px 2px; border-top: 1px solid var(--line); }
.status-label { font-size: 11px; color: var(--quiet); }
.your-status select { font-size: 12px; min-height: 34px; border: 0; background: transparent; padding: 5px; }
.conversation { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 25px; border-bottom: 1px solid #efede6; }
.chat-heading h2 { font-size: 18px; }
.chat-timeline { flex: 1; min-height: 0; overflow-y: auto; padding: 26px; display: flex; flex-direction: column; gap: 17px; overscroll-behavior: contain; }
.chat-message { max-width: 86%; align-self: flex-start; padding: 11px 15px; background: #eeeee8; border-radius: 14px 14px 14px 4px; flex-shrink: 0; }
.chat-message.mine { align-self: flex-end; background: #bad8c8; border-radius: 14px 14px 4px 14px; }
.chat-message .meta { font-size: 10px; margin-bottom: 5px; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.chat-audio { display: grid; gap: 10px; width: min(100%,420px); padding: 15px 17px 10px; border: 1px solid #e4d8cb; border-radius: 16px; background: #fcf5ec; flex-shrink: 0; }
.chat-audio h3 { font-size: 16px; }
.chat-audio .meta { font-size: 10px; }
.audio-title { display: flex; align-items: center; gap: 10px; }
.chat-audio .compact-version { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 9px; padding: 0; border: 0; background: none; }
.compact-version > div:first-child { grid-column: 1 / -1; }
.compact-version > .actions { align-self: center; }
.compact-version .actions button { font-size: 11px; background: #fffaf4; padding: 5px 9px; border-color: #e6d8c9; }
.chat-audio audio { width: 100%; height: 34px; color-scheme: light; }
.inline-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
button.play-toggle { width: 36px; min-height: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; padding: 0; background: #eeb996; border: 0; color: #533c29; font-size: 12px; }
button.play-toggle:hover { background: #e4aa82; }
.player-track { flex: 1; min-width: 0; }
.player-track input { display: block; padding: 0; margin: 0; border: 0; min-height: 15px; height: 15px; accent-color: #ad744c; background: transparent; }
.player-track input:disabled { opacity: .6; }
.player-time { font-size: 10px; color: #827465; margin-top: 1px; font-variant-numeric: tabular-nums; }
.chat-audio > button { justify-self: start; padding: 3px 0; min-height: 24px; font-size: 11px; color: #8e5a3c; }
.chat-empty { margin: auto; text-align: center; padding: 25px; }
.chat-bottom { padding: 14px 22px 11px; border-top: 1px solid #efede6; }
.chat-composer { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: center; }
.chat-composer.text-only { grid-template-columns: minmax(0,1fr) auto; }
.chat-composer textarea { height: 42px; min-height: 42px; max-height: 100px; resize: vertical; font-size: 13px; border: 0; background: #f3f2ed; padding: 12px; border-radius: 11px; }
.chat-composer .error { grid-column: 1 / -1; }
.chat-composer button.primary { font-size: 12px; min-height: 40px; padding: 8px 15px; }
label.attach-audio { display: grid; place-items: center; width: 34px; min-height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.attach-audio > span:last-child { display: none; }
.attach-audio .drop-icon { border: 0; background: none; color: #74786e; font-size: 22px; height: auto; width: auto; }
.composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; min-height: 28px; }
.drop-hint { font-size: 10px; color: #77796f; }
.capture-controls { display: grid; gap: 5px; }
.chat-bottom .capture-controls { display: flex; align-items: center; gap: 6px; }
.capture-controls p:empty { display: none; }
.chat-bottom .capture-controls .meta { font-size: 10px; }
.record-button::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c57851; margin-right: 7px; }
.capture-active::before { content: "●"; margin-right: 7px; }
.chat-bottom .record-button { min-height: 27px; padding: 3px 7px; font-size: 11px; }
.chat-connection:not(:empty) { padding: 8px 20px; color: var(--accent); }
.drop-overlay { display: none; position: absolute; inset: 8px; border: 2px dashed #b96841; border-radius: 14px; background: #fff4e8f5; color: #8d4a2b; pointer-events: none; place-items: center; text-align: center; padding: 25px; font-size: 20px; z-index: 5; }
.drop-ready .drop-overlay { display: grid; }
.chat-welcome { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 45px; gap: 18px; background: radial-gradient(ellipse at top right,#e1e8e3,transparent 65%); }
.chat-welcome h1 { font-size: clamp(28px,4vw,43px); max-width: 320px; }
.welcome-loop { font-size: 42px; color: #bd7950; }
.chat-welcome .sub { font-size: 15px; }
.feed,.stack { display: grid; gap: 10px; }
.panel,.empty { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.empty { color: var(--quiet); }
.section-head { margin: 12px 0 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.idea { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; padding: 15px; text-align: left; }
.idea-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #bad8c8; color: #a05b37; }
.idea-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea .meta { display: block; margin-top: 5px; }
.minwidth { min-width: 0; }
.tag { padding: 5px 8px; border: 1px solid #e4d3c4; border-radius: 7px; color: #8c5b3b; font-size: 11px; white-space: nowrap; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 550; }
.form.chat-composer { gap: 8px; }
.form label.attach-audio { display: grid; }
input,select,textarea { width: 100%; min-height: 42px; border-radius: 9px; border: 1px solid #dedbd3; background: #fafbf9; color: #171b19; padding: 10px 12px; font-size: 14px; }
textarea { resize: vertical; min-height: 75px; }
input[readonly] { color: var(--quiet); }
[hidden] { display: none !important; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.break { overflow-wrap: anywhere; }
.line { border-top: 1px solid var(--line); padding-top: 14px; }
.auth { width: min(480px,calc(100% - 44px)); margin: clamp(28px,9vh,100px) auto; }
.auth h1 { margin: 10px 0 12px; }
.auth .panel { margin-top: 24px; }
.startup { margin: 30px; color: var(--quiet); }
.detail { width: min(790px,100%); }
.detail .lead { margin: 14px 0 21px; }
.detail .lead h1 { margin: 9px 0; }
.detail section + section,.directory section + section { margin-top: 22px; }
.version audio { width: 100%; height: 40px; }
.thread-item { padding: 12px 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-item p + p { margin-top: 4px; }
.people-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.people-row form { display: flex; align-items: center; gap: 8px; }
.people-row form select { width: auto; }
.directory { max-width: 850px; }
.directory form.inline { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.directory form.inline label { flex: 1 1 230px; }
summary { cursor: pointer; padding: 4px 0; }
details[open]:not(.account-menu):not(.contact-category) summary { margin-bottom: 14px; }
.toast { position: fixed; z-index: 30; bottom: 16px; right: 16px; max-width: min(430px,calc(100% - 32px)); padding: 12px 16px; border: 1px solid #ddcdbd; border-radius: 12px; background: #fafbf9; box-shadow: 0 5px 20px #29231518; font-size: 13px; }
dialog { width: min(510px,calc(100% - 32px)); max-height: calc(100% - 30px); border: 1px solid #dcd6cc; border-radius: 19px; color: #171b19; background: #fafbf9; padding: 24px; box-shadow: 0 20px 80px #27221d26; }
dialog::backdrop { background: #171b193d; backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 7px; }
dialog header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
dialog fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
progress { width: 100%; accent-color: #285e48; margin: 4px 0; height: 8px; }
.action-link { display: inline-block; justify-self: start; padding: 9px 13px; border: 1px solid #d9bfaa; border-radius: 8px; text-decoration: none; }
.drop { position: relative; display: flex; align-items: center; min-height: 65px; gap: 13px; padding: 12px 15px; border: 1px dashed #cfb9a6; border-radius: 11px; background: #f5f7f4; cursor: pointer; }
.drop.dragging,.drop:hover { background: #dcebe1; }
.drop strong,.drop small { display: block; overflow-wrap: anywhere; }
.drop small { color: var(--quiet); margin-top: 4px; }
.drop small:empty { display: none; }
.drop-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--accent); font-size: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .wrap,.native .wrap { width: calc(100% - 24px); }
  .top,.native .top { height: 56px; }
  .neinfeld-logo { width: 118px; margin-left: 0; }
  .messenger,.native .messenger { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); height: max(410px,calc(100dvh - 68px)); border-radius: 13px; }
  .friends { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
  .friends-heading { padding: 0 5px; }
  .friends-heading h2 { font-size: 16px; }
  .friend-list { display: flex; overflow-x: auto; gap: 4px; grid-column: 1 / -1; grid-row: 2; }
  .friend { width: 155px; min-width: 155px; padding: 7px; margin: 0; flex-shrink: 0; }
  .your-status { grid-column: 2; grid-row: 1; border: 0; padding: 0; }
  .your-status select { width: 110px; }
  .status-label { display: none; }
  .chat-heading { padding: 14px 16px; }
  .chat-timeline { padding: 16px; }
  .chat-bottom { padding: 10px 12px 7px; }
  .chat-welcome { padding: 25px; }
  .chat-audio { padding: 12px; }
  .panel,.empty { padding: 16px; }
}
@media (max-width: 380px) {
  .neinfeld-logo { display: none; }
  .tag { display: none; }
  .idea { grid-template-columns: 35px 1fr; }
}

/* Talkback 0.4 — mint, porcelain and black. */
:root { --surface:#fafbf9; --line:#d4dcd6; --quiet:#59645e; --accent:#285e48; --button:#171b19; --radius:9px; background:#e1e8e3; color:#171b19; font-size:13px; }
button { border-radius:6px; min-height:34px; padding:7px 12px; font-weight:500; }
button.primary,button.primary:not(:disabled):hover { background:#171b19; color:#bad8c8; }
button:not(:disabled):hover { background:#e5eee8; }
button.active { background:#fafbf9; }
input,select,textarea { min-height:34px; padding:7px 9px; font-size:12px; border-radius:6px; background:#fafbf9; border-color:var(--line); color:#171b19; }
input[type=checkbox] { accent-color:#285e48; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline-color:#285e48; }
h2 { font-size:20px; } h3 { font-size:14px; }
.wrap,.native .wrap { width:100%; max-width:none; }
.header { background:#fafbf9; border-bottom:1px solid var(--line); }
.top,.native .top { height:48px; padding:0 20px; }
.wordmark { gap:9px; }
.mark { width:20px; height:24px; flex-basis:20px; }
.brand { font-size:21px; font-weight:500; letter-spacing:-.055em; }
.neinfeld-logo { margin-left:15px; opacity:1; }
.main,.native .main { padding:0; }
.main > :not(.messenger) { margin:20px; }
.messenger,.native .messenger { height:calc(100dvh - 49px); min-height:440px; grid-template-columns:270px minmax(0,1fr); border:0; border-radius:0; box-shadow:none; background:#e1e8e3; }
.friends { padding:0; gap:0; background:#f5f7f4; display:flex; flex-direction:column; overflow:hidden; }
.self-profile { background:#171b19; color:#fafbf9; padding:17px 15px; display:grid; grid-template-columns:32px minmax(0,1fr) auto; gap:10px; align-items:start; flex-shrink:0; }
.self-profile .avatar { background:#f5f7f4; color:#171b19; width:32px; height:32px; flex-basis:32px; border-radius:6px; }
.self-details { min-width:0; }
.self-details h3 { font-size:15px; letter-spacing:-.02em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.self-roles { color:#dce8df; font-size:10px; line-height:1.5; margin:4px 0 7px; overflow-wrap:anywhere; }
.self-details select { width:100%; font-size:11px; min-height:27px; padding:4px; }
.self-profile .edit-profile { color:#fafbf9; font-size:10px; min-height:24px; padding:3px 0; text-decoration:underline; }
.self-profile .edit-profile:hover { background:#35473d; }
.contacts-section { display:flex; flex-direction:column; min-height:120px; flex:1 1 auto; overflow:hidden; padding:12px 10px 6px; }
.people-search { padding:0 3px 10px; border-bottom:1px solid var(--line); }
.people-search input[type=search] { background:#e8ece8; width:100%; border:0; }
.people-filters { display:flex; gap:9px; align-items:center; margin-top:8px; }
.people-filters select { width:110px; min-width:0; font-size:10px; min-height:28px; padding:4px; }
.available-filter { display:flex; align-items:center; gap:5px; font-size:10px; white-space:nowrap; }
.available-filter input { width:13px; height:13px; min-height:13px; margin:0; }
.friends-heading { padding:8px 4px; }
.friends-heading h2 { font-size:16px; letter-spacing:-.02em; }
.friends-heading button { font-size:10px; padding:4px; min-height:25px; }
.friend-list { overflow:auto; min-height:0; }
.contact-category { border-bottom:1px solid #e1e7e1; }
.contact-category:last-child { border-bottom:0; }
.contact-category > summary { display:flex; align-items:center; gap:5px; list-style:none; cursor:pointer; color:#43544a; font-size:10px; padding:9px 5px; min-height:30px; }
.contact-category > summary::-webkit-details-marker { display:none; }
.contact-category > summary::before { content:"›"; font-size:14px; line-height:10px; width:8px; transform:rotate(0deg); }
.contact-category[open] > summary::before { transform:rotate(90deg); }
.category-count { color:#59645e; }
.category-available { margin-left:auto; color:#285e48; font-size:9px; }
.category-people { padding-bottom:4px; }
.list-label { font-size:10px; padding:8px 6px 4px; color:var(--quiet); }
.list-empty { padding:16px 6px; font-size:11px; color:var(--quiet); }
.friend { padding:8px 6px; gap:9px; min-height:48px; border-radius:6px; margin:0 0 3px; }
.friend.active { border-left:3px solid #171b19; box-shadow:none; background:#fafbf9; }
.avatar,.friend.active .avatar { width:29px; height:29px; flex-basis:29px; border-radius:6px; background:#f0f3ef; color:#171b19; border:1px solid #dce2dc; box-shadow:0 1px 2px #171b1912,inset 0 1px #fff; font-weight:500; }
.avatar { overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.friend-status { grid-column:1; font-size:10px; color:#52685b; font-style:italic; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.self-status { font-size:10px; line-height:1.4; color:#bad8c8; margin:0 0 8px; overflow-wrap:anywhere; }
.personal-status { font-size:11px; color:#42644f; margin-top:5px; overflow-wrap:anywhere; }
.personal-status:empty { display:none; }
.profile-photo-controls { display:flex; align-items:center; gap:12px; }
.profile-photo .avatar { width:64px; height:64px; border-radius:12px; font-size:24px; }
.form label.photo-choice { display:flex; align-items:center; width:auto; min-height:34px; padding:7px 12px; border:1px solid var(--line); border-radius:6px; cursor:pointer; }
.photo-choice:focus-within { outline:2px solid #285e48; outline-offset:3px; }
.friend-content { gap:3px; }
.friend strong { font-size:12px; }
.friend-role { font-size:10px; color:#59645e; }
.presence { font-size:10px; color:#59645e; }
.presence i { position:relative; width:9px; height:9px; flex-basis:9px; border:1.5px solid #7c8780; background:transparent; box-shadow:none; }
.presence[data-status="Available"] i { background:#387e59; border-color:#387e59; }
.presence[data-status="Open to collab"] i { border-color:#387e59; }
.presence[data-status="Open to collab"] i::after { content:"+"; position:absolute; inset:-1px; display:flex; align-items:center; justify-content:center; font:9px/1 sans-serif; color:#285e48; }
.presence[data-status="Open to collab"] { color:#285e48; }
.presence[data-status="Do not disturb"] i { background:#555e58; border-color:#555e58; }
.presence[data-status="Do not disturb"] i::after { content:""; position:absolute; height:1px; left:1px; right:1px; top:2.5px; background:#fff; }
.presence[data-status="In session"] i { border-radius:2px; background:#555e58; border-color:#555e58; }
.presence[data-status="Away"] i::after { content:""; position:absolute; left:2.5px; top:1px; width:2px; height:3px; border-left:1px solid #59645e; border-bottom:1px solid #59645e; }
.presence[data-status="Offline"],.presence[data-status="Invisible"] { color:#69746d; }
.presence[data-status="Private group"] i { border-radius:2px; border-color:#4e6859; }
.chat-badge { background:#171b19; color:#bad8c8; }
.groups-section { flex:0 1 auto; max-height:34%; min-height:100px; display:flex; flex-direction:column; padding:7px 10px 12px; background:#bad8c8; border-top:1px solid #adcdbc; }
.group-list { min-height:0; overflow:auto; }
.groups-section .friend .avatar { background:transparent; box-shadow:none; border:0; }
.groups-section .presence { color:#384e42; }
.conversation { background:#e1e8e3; }
.chat-heading { background:#fafbf9; padding:16px 22px; min-height:72px; border-color:var(--line); }
.chat-heading h2 { font-size:19px; letter-spacing:-.025em; }
.chat-role { font-size:11px; }
.chat-timeline { padding:24px; gap:18px; }
.chat-message,.chat-message.mine { background:#fafbf9; color:#171b19; border:1px solid #d4dcd6; border-radius:7px; padding:9px 12px; box-shadow:0 1px 2px #171b1905; max-width:80%; }
.message-body { font-size:12px; line-height:1.5; }
.chat-message .meta { font-size:9px; }
.chat-audio { width:min(100%,350px); background:#fafbf9; border-color:#d4dcd6; border-radius:9px; padding:12px; gap:8px; align-self:flex-start; }
.chat-audio.mine { align-self:flex-end; }
.chat-audio h3 { font-size:13px; }
.chat-audio .compact-version { grid-template-columns:1fr; }
.compact-version .actions button { border:0; background:transparent; font-size:10px; padding:3px 0; }
button.play-toggle,button.play-toggle:hover { background:#171b19; color:#bad8c8; width:29px; height:29px; min-height:29px; flex-basis:29px; }
.player-track input { accent-color:#285e48; }
.player-time { color:#59645e; }
.chat-audio > button { color:#285e48; font-size:10px; }
.chat-bottom { background:#fafbf9; padding:10px 16px; border-color:var(--line); }
.drop-hint { border:1px dashed #a1afa7; border-radius:5px; padding:6px 10px; margin-bottom:8px; font-size:10px; }
.chat-composer,.chat-composer.text-only { grid-template-columns:minmax(0,1fr) auto; }
.chat-composer textarea { border:1px solid var(--line); background:#f0f3ef; min-height:34px; height:34px; padding:8px 10px; border-radius:6px; font-size:12px; }
.chat-composer button.primary { min-height:34px; padding:6px 18px; }
.composer-tools { justify-content:flex-start; gap:10px; margin-top:7px; }
label.attach-audio { display:flex; gap:6px; width:auto; min-height:28px; padding:4px 8px; border:1px solid var(--line); border-radius:5px; font-size:11px; background:#fafbf9; }
.attach-audio > span:last-child { display:block; }
.attach-audio strong { font-weight:500; }
.attach-audio .drop-icon { font-size:16px; width:16px; height:16px; color:#171b19; }
.chat-bottom .record-button { border:1px solid var(--line); border-radius:5px; background:#fafbf9; }
.record-button::before { background:#171b19; }
.drop-overlay { border-color:#285e48; background:#bad8c8f5; color:#171b19; }
.chat-welcome { background:#e1e8e3; }
.chat-welcome h1 { font-size:30px; }
.welcome-loop { color:#285e48; }
.menu-panel,dialog { background:#fafbf9; color:#171b19; border-color:var(--line); }
.account-menu[open] summary { background:#e1e8e3; }
progress { accent-color:#285e48; }
@media (max-width:800px) { .messenger,.native .messenger { grid-template-columns:245px minmax(0,1fr); } .self-profile { padding:14px 10px; gap:7px; } .chat-timeline { padding:16px; } .chat-heading { padding:14px 16px; } }
@media (max-width:600px) {
 .top,.native .top { height:44px; padding:0 12px; }
 .messenger,.native .messenger { grid-template-columns:1fr; grid-template-rows:220px minmax(0,1fr); height:calc(100dvh - 45px); min-height:590px; }
 .friends { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:88px minmax(0,1fr); border:0; }
 .self-profile { grid-column:1 / -1; padding:8px 12px; grid-template-columns:28px 1fr auto; }
 .self-details { display:grid; grid-template-columns:1fr auto; gap:3px 10px; }
 .self-details select { grid-column:2; grid-row:1 / 4; width:140px; }
 .self-roles { margin:0; }
 .self-status { grid-column:1; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 .contacts-section { padding:4px 8px; min-height:0; }
 .people-search { display:none; }
 .groups-section { max-height:none; min-height:0; padding:4px 8px; }
 .friend-list { display:block; }
 .friend { width:100%; min-width:0; padding:5px; }
 .friends-heading { padding:3px; }
 .friends-heading h2 { font-size:13px; }
 .friend-role { display:none; }
 .chat-heading { min-height:54px; padding:10px 14px; }
 .chat-heading h2 { font-size:16px; }
 .chat-timeline { padding:14px; }
 .chat-bottom { padding:8px 12px; }
}
/* Compact private studio details. */
.looking-label { grid-column:1; font-size:10px; color:#285e48; white-space:normal; overflow-wrap:anywhere; }
.looking-edit { grid-column:2 / -1; justify-self:start; color:#bad8c8; font-size:10px; padding:2px 0; min-height:22px; }
.studio-card .avatar { width:64px; height:64px; border-radius:12px; }
.studio-card .looking-label { padding:10px; background:#e2eee7; border-radius:6px; font-size:12px; }
.timestamp-link { color:#285e48; background:#e2eee7; margin:6px 0; }
.self-looking { grid-column:2 / -1; color:#bad8c8; font-size:10px; }
.self-looking:empty { display:none; }
@media(max-width:600px) { .friends { grid-template-rows:118px minmax(0,1fr); } .self-looking { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }

/* A compact profile dropdown leaves chats and groups in view. */
.self-profile.profile-dropdown { display:block; padding:0; position:relative; }
.profile-dropdown > summary { display:flex; align-items:center; gap:10px; padding:12px 14px; cursor:pointer; list-style:none; }
.profile-dropdown > summary::-webkit-details-marker { display:none; }
.profile-dropdown .self-details { display:block; flex:1; }
.profile-dropdown .self-details h3 { font-size:13px; margin:0 0 3px; }
.self-availability { display:block; color:#bad8c8; font-size:10px; }
.profile-chevron { color:#bad8c8; font-size:18px; transition:transform .15s; }
.profile-dropdown[open] .profile-chevron { transform:rotate(180deg); }
.profile-dropdown-body { padding:0 14px 12px; border-top:1px solid #35473d; }
.profile-dropdown-body label { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:10px; margin:7px 0; }
.profile-dropdown-body select { min-height:28px; padding:4px 7px; width:150px; font-size:11px; }
.profile-dropdown-body .self-roles { margin:9px 0 5px; }
.profile-dropdown-body .self-looking { margin:8px 0; }
.profile-dropdown-body .actions { gap:14px; }
.profile-dropdown-body .looking-edit { color:#bad8c8; }
.contacts-section { padding:8px 9px 4px; }
.people-search { padding-bottom:6px; }
.people-search input[type=search] { min-height:30px; padding:6px 9px; font-size:11px; }
.people-filters { margin-top:5px; gap:7px; }
.friends-heading { padding:6px 4px; }
.friends-heading h2 { font-size:14px; }
.contact-category > summary { padding:5px; min-height:24px; }
.friend { min-height:40px; padding:6px; gap:8px; margin-bottom:1px; }
.friend .avatar { width:26px; height:26px; flex-basis:26px; }
.friend-content { gap:2px; }
.friend strong { font-size:12px; }
.friend .looking-label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.category-people { padding-bottom:2px; }
.groups-section { padding:4px 9px 7px; min-height:88px; max-height:38%; }
.group-list .friend { min-height:38px; }
.chat-timeline { padding:18px; gap:12px; }
.chat-message,.chat-message.mine { padding:7px 10px; }
.chat-audio { padding:9px 11px; gap:5px; }
@media(max-width:600px) {
 .friends { grid-template-rows:auto minmax(0,1fr); }
 .profile-dropdown > summary { padding:7px 12px; }
 .profile-dropdown-body { position:absolute; z-index:10; top:100%; left:0; right:0; background:#171b19; box-shadow:0 12px 24px #171b1933; }
 .groups-section { min-height:0; max-height:none; }
}

.profile-dropdown > summary { color:#fafbf9; }
.profile-dropdown-body .actions { gap:14px; flex-wrap:nowrap; }
.profile-dropdown-body .looking-edit { min-height:24px; padding:3px 0; font-size:10px; }
.chat-audio .compact-version { grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; }
.compact-version .actions { gap:9px; }
.compact-version .actions button { min-height:26px; padding:3px 0; white-space:nowrap; }
@media(max-width:800px) { .chat-audio .compact-version { grid-template-columns:1fr; } }

/* Floating panels: surface-only styling; preserve the existing geometry and type scale. */
:root {
 --surface:#fbfcfa;
 --line:#d2ded6;
 --quiet:#52635a;
 --accent:#285e48;
 background:#e0eee6;
}
.header { background:linear-gradient(120deg,#edf5ef,#e1efe7); border-color:#cadbd0; box-shadow:0 1px 0 #ffffffbd; }
.messenger,.native .messenger { background:#dfede5; }
.friends { background:#dfede5; border-color:#cbdcd1; }
.self-profile.profile-dropdown { background:linear-gradient(145deg,#26352d,#171e1a); border-radius:9px; box-shadow:inset 0 1px 0 #ffffff26,0 3px 8px #233b2c26; }
.profile-dropdown-body { border-color:#415248; }
.contacts-section { background:linear-gradient(155deg,#fcfdfb,#f4f8f4); border-radius:10px; box-shadow:inset 0 0 0 1px #ffffffc7,0 3px 10px #294c3612; }
.groups-section { background:linear-gradient(145deg,#cee6d7,#b9d9c7); border-color:#a9cbb7; border-radius:10px; box-shadow:inset 0 0 0 1px #e4f2e9b3,0 3px 10px #294c361a; }
.conversation,.chat-welcome { background:linear-gradient(145deg,#eaf3ed,#dfece4); }
.chat-heading { background:linear-gradient(155deg,#fcfdfb,#f3f8f3); border-radius:10px 10px 0 0; box-shadow:0 3px 10px #294c360d,inset 0 1px 0 #fff; }
.chat-bottom { background:linear-gradient(155deg,#fcfdfb,#f1f7f2); border-radius:10px 10px 0 0; box-shadow:0 -3px 12px #294c3612,inset 0 1px 0 #fff; }
.chat-message,.chat-message.mine,.chat-audio { background:linear-gradient(145deg,#fff,#f5f8f4); border-color:#d4dfd7; box-shadow:0 2px 3px #213d2b08,0 5px 12px #213d2b0d,inset 0 1px 0 #ffffffeb; }
.chat-message.mine { background:linear-gradient(145deg,#e2f0e7,#cee5d7); border-color:#c0d8c9; }
.friend.active { background:linear-gradient(135deg,#edf5ef,#d8eadd); box-shadow:0 2px 5px #294c3614,inset 0 1px 0 #ffffffbf; }
.friend .avatar { background:linear-gradient(145deg,#fff,#e8f0e9); border-color:#d0ddd3; box-shadow:0 2px 4px #233b2c14,inset 0 1px 0 #fff; }
.groups-section .friend .avatar { background:linear-gradient(145deg,#e3f2e8,#cae3d3); box-shadow:0 2px 4px #294c361a,inset 0 0 0 1px #eff8f1b3; }
button,label.attach-audio { background:linear-gradient(#fff,#f0f5ef); border-color:#c8d4cb; box-shadow:0 1px 1px #20372a14,0 3px 6px #20372a12,inset 0 1px 0 #fff; }
button:not(:disabled):hover { background:linear-gradient(#fafffb,#e7f1e9); border-color:#a9c4b2; }
button:not(:disabled):active,label.attach-audio:active { box-shadow:inset 0 1px 3px #20372a26; }
button.ghost,.compact-version .actions button,.chat-audio > button { background:transparent; box-shadow:none; }
button.ghost:not(:disabled):hover { background:#e0ede4; }
.profile-dropdown button.ghost:not(:disabled):hover { background:#354d3e; }
.friend.active,.friend.active:not(:disabled):hover { background:linear-gradient(135deg,#edf5ef,#d8eadd); box-shadow:0 2px 5px #294c3614,inset 0 1px 0 #ffffffbf; }
button.primary,button.primary:not(:disabled):hover,button.play-toggle,button.play-toggle:hover { background:linear-gradient(145deg,#2d4034,#141d18); color:#d0ead9; border-color:#203429; box-shadow:inset 0 1px 0 #ffffff29,0 2px 3px #172e2026,0 4px 8px #172e201a; }
button.primary:not(:disabled):active,button.play-toggle:not(:disabled):active { box-shadow:inset 0 2px 4px #0006; }
.chat-bottom .record-button { background:linear-gradient(#fff,#edf5ee); border-color:#c8d4cb; }
input:not([type=range]):not([type=checkbox]),select,textarea,.people-search input[type=search],.chat-composer textarea { background:linear-gradient(#edf3ed,#f8fbf7); border-color:#cbd8ce; box-shadow:inset 0 1px 3px #294c3612,0 1px 0 #ffffffc7; }
.drop-hint { background:#eaf3ec; border-color:#a6bdae; }
.panel,.menu-panel,dialog { background:linear-gradient(145deg,#fff,#f4f8f3); border-color:#d1ded4; box-shadow:0 3px 12px #213d2b10,inset 0 1px 0 #fff; }
.chat-audio .compact-version { background:transparent; box-shadow:none; }
.timestamp-link { background:linear-gradient(#e4f2e9,#d2e7da); color:#285e48; }
.profile-dropdown > summary:focus-visible { outline-color:#bad8c8; outline-offset:-3px; }
@media(max-width:600px) { .profile-dropdown-body { background:#1d2a22; } }

/* Conversation workspace: function pop-outs above, private profile cards at right. */
.chat-toolbar { display:flex; align-items:center; gap:8px; flex-shrink:0; padding:10px 14px; border-bottom:1px solid #cbded1; background:linear-gradient(130deg,#ecf5ee,#dceee2); position:relative; z-index:4; }
.chat-tool { position:relative; min-width:0; }
.chat-tool > summary { display:flex; align-items:center; justify-content:center; gap:7px; list-style:none; cursor:pointer; min-height:34px; padding:7px 10px; font-size:11px; font-weight:500; color:#20382a; border:1px solid #c1d4c6; border-radius:6px; background:linear-gradient(#fcfefb,#e8f2e9); box-shadow:0 2px 5px #20372a16,inset 0 1px 0 #fff; white-space:nowrap; }
.chat-tool > summary::-webkit-details-marker { display:none; }
.chat-tool > summary svg { width:17px; height:17px; flex:0 0 17px; }
.tool-chevron { color:#61776a; font-size:12px; }
.chat-tool[open] > summary { background:#d1e7d9; box-shadow:inset 0 1px 3px #20372a20; }
.chat-tool-popover { position:absolute; top:calc(100% + 7px); left:0; width:240px; max-height:320px; overflow:auto; padding:12px; border:1px solid #c8dace; border-radius:9px; background:#fafdf9; box-shadow:0 9px 26px #20372a29,inset 0 1px #fff; z-index:8; }
.chat-tool:last-child .chat-tool-popover { left:auto; right:0; }
.chat-tool-popover .meta { font-size:11px; }
.chat-tool-popover .attach-audio { justify-content:center; }
.chat-tool-popover .shared-idea { text-align:left; display:grid; gap:4px; white-space:normal; overflow-wrap:anywhere; }
.shared-idea strong { font-size:12px; font-weight:500; }
.chat-workspace { display:grid; grid-template-columns:minmax(0,1fr) 148px; flex:1; min-height:0; min-width:0; }
.chat-main { display:flex; flex-direction:column; min-height:0; min-width:0; }
.chat-main > [data-older] { align-self:center; }
.chat-main .chat-heading { border-radius:0; }
.chat-main .chat-timeline { min-width:0; }
.chat-main .chat-heading > div { min-width:0; }
.chat-main .chat-heading h2 { overflow-wrap:anywhere; }
.profile-rail { display:flex; flex-direction:column; gap:12px; min-width:0; padding:12px 10px; background:linear-gradient(150deg,#e6f1e9,#d3e7da); border-left:1px solid #c8dbcd; }
.conversation-profile { gap:8px; padding:11px 9px; background:linear-gradient(140deg,#fff,#f0f7ef); border:1px solid #d1dfd4; border-radius:9px; box-shadow:0 3px 9px #20372a14,inset 0 1px #fff; text-align:center; }
.rail-label { font-size:10px; color:#52685a; }
.conversation-profile .avatar { width:64px; height:64px; margin:0 auto; border-radius:9px; font-size:24px; }
.conversation-profile h3 { font-size:13px; letter-spacing:-.02em; }
.conversation-profile .meta,.rail-status { font-size:10px; overflow-wrap:anywhere; }
.conversation-profile .presence { justify-content:center; flex-wrap:wrap; }
.conversation-profile .looking-label { font-size:10px; padding:7px; border-radius:5px; background:#dfede3; }
.conversation-profile button.small { font-size:10px; padding:5px 7px; min-height:28px; }
.own-profile-card { margin-top:auto; min-width:0; }
.own-profile-card > .rail-label { margin:0 0 5px 3px; }
.profile-rail .profile-dropdown > summary { flex-direction:column; gap:7px; text-align:center; padding:12px 7px; }
.profile-rail .profile-dropdown .self-details { width:100%; }
.profile-rail .profile-dropdown .self-details h3 { white-space:normal; overflow-wrap:anywhere; }
.profile-rail .profile-dropdown .avatar { width:48px; height:48px; flex-basis:48px; }
.profile-rail .profile-chevron { position:absolute; right:8px; top:8px; font-size:14px; }
.profile-rail .profile-dropdown-body { position:absolute; right:0; bottom:calc(100% + 8px); top:auto; width:240px; z-index:6; border:1px solid #41574a; border-radius:9px; padding:9px 13px 12px; background:#203027; box-shadow:0 7px 22px #172e2033; text-align:left; }
.profile-rail .profile-dropdown-body select { width:150px; }
.profile-rail .profile-dropdown-body .self-status,.profile-rail .profile-dropdown-body .self-looking { white-space:normal; }
@media(max-width:800px) {
 .chat-workspace { grid-template-columns:minmax(0,1fr) 120px; }
 .profile-rail { padding:9px 7px; }
 .conversation-profile { padding:9px 7px; }
 .conversation-profile .avatar { width:48px; height:48px; }
 .chat-toolbar { gap:5px; padding:8px; }
 .chat-tool > summary { gap:4px; padding:6px 7px; font-size:10px; }
 .chat-tool > summary svg { width:15px; height:15px; flex-basis:15px; }
 .chat-tool:nth-child(n+3) .chat-tool-popover { left:auto; right:0; }
 .chat-main .chat-heading { padding:12px; flex-wrap:wrap; gap:6px; }
 .chat-main .chat-timeline { padding:12px; }
}
@media(max-width:600px) {
 .chat-workspace { grid-template-columns:minmax(0,1fr) 102px; }
 .profile-rail { gap:8px; padding:6px; }
 .conversation-profile { padding:7px 5px; }
 .profile-rail .profile-dropdown > summary { padding:9px 5px; }
 .friends { grid-template-rows:minmax(0,1fr); }
 .friends > .self-profile { grid-column:1 / -1; }
 .chat-tool-popover { max-width:210px; }
}

/* Messenger roster and two framed chat panes, following the supplied references. */
.messenger,.native .messenger { grid-template-columns:230px minmax(0,1fr); }
.friends { margin:10px 0 10px 10px; border:1px solid #bfd1c4; border-radius:8px; background:#f9fbf8; box-shadow:0 3px 9px #20372a13; }
.friends > .profile-dropdown { border-radius:7px 7px 0 0; box-shadow:inset 0 1px #ffffff25; flex-shrink:0; }
.friends .profile-dropdown > summary { padding:11px 12px; gap:10px; }
.my-status-label { font-size:10px; color:#aec8b8; margin:0 0 3px; }
.friends .profile-dropdown .avatar { width:34px; height:34px; flex-basis:34px; }
.friends .profile-dropdown-body { position:static; max-height:235px; overflow:auto; }
.contacts-section { border-radius:0; box-shadow:none; padding:9px 8px 4px; min-height:100px; }
.friends-heading { padding:5px 4px; }
.friends-heading h2 { font-size:12px; }
.friend-list { padding-top:4px; }
.contact-category { border:0; margin-bottom:8px; }
.contact-category > summary { color:#263d2e; font-size:12px; font-weight:600; padding:5px 4px; }
.category-count::before { content:"("; }
.category-count::after { content:")"; }
.category-count { color:inherit; }
.category-people { padding-left:9px; }
.friend,.group-list .friend { min-height:31px; padding:4px 5px; margin:0; gap:6px; border:0; border-radius:3px; background:transparent; box-shadow:none; }
.friend:hover { background:#e9f1eb; }
.friend.active { border:0; background:#cee5d6; box-shadow:inset 0 0 0 1px #b3d1bf; }
.friend .avatar,.friend.active .avatar { width:20px; height:22px; flex-basis:20px; font-size:11px; border-radius:4px; box-shadow:none; }
.friend-content { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:1px 5px; }
.friend strong { font-size:11px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.friend .presence { grid-column:2; grid-row:1; font-size:0; gap:0; }
.friend .presence i { width:7px; height:7px; flex-basis:7px; }
.friend-role { grid-column:1 / -1; font-size:9px; }
.friend .friend-status { display:none; }
.friend .looking-label { grid-column:1 / -1; font-size:9px; }
.groups-section { flex:0 1 auto; max-height:27%; min-height:85px; border-radius:0; box-shadow:none; padding:7px 8px; background:#e4f0e7; }
.group-list .friend .avatar { background:none; }
.group-list .friend .presence { display:none; }
.conversation { padding:0 10px 10px; }
.chat-toolbar { padding:10px 1px 9px; gap:9px; border:0; background:transparent; }
.chat-tool > summary { flex-direction:column; gap:4px; min-width:68px; height:53px; padding:6px 11px; position:relative; }
.chat-tool > summary svg { width:20px; height:20px; flex-basis:20px; }
.tool-chevron { position:absolute; right:5px; top:5px; font-size:10px; }
.chat-workspace { grid-template-columns:minmax(0,1fr) 132px; gap:10px; }
.chat-main { border:0; gap:0; }
.chat-main .chat-heading { border:1px solid #bdd0c2; border-bottom:1px solid #d8e2da; border-radius:7px 7px 0 0; min-height:47px; padding:8px 11px; background:#eef5ef; }
.chat-main .chat-heading h2 { font-size:13px; }
.chat-main .chat-heading h2::before { content:"To: "; color:#6b7f71; font-weight:400; }
.chat-main .chat-role { font-size:10px; }
.chat-main .chat-timeline { border:1px solid #bdd0c2; border-top:0; border-radius:0 0 7px 7px; background:#fff; padding:13px; gap:12px; box-shadow:inset 0 1px 4px #20372a09; }
.chat-message,.chat-message.mine { max-width:100%; width:100%; align-self:stretch; background:none; border:0; border-radius:0; padding:0; box-shadow:none; }
.chat-message.mine .meta { color:#397151; }
.chat-message .meta { margin-bottom:4px; font-size:9px; }
.chat-message .message-body { padding-left:8px; font-size:12px; }
.chat-audio,.chat-audio.mine { align-self:flex-start; width:min(100%,350px); background:#f2f7f2; box-shadow:none; border:1px solid #d6e3d9; border-radius:5px; }
.chat-connection:empty { display:none; }
.chat-bottom { flex-shrink:0; margin-top:10px; padding:0; border:1px solid #bdd0c2; border-radius:7px; overflow:hidden; background:#fff; box-shadow:0 2px 5px #20372a0a; }
.composer-caption { display:flex; justify-content:space-between; gap:8px; padding:7px 10px; background:#e5efe7; border-bottom:1px solid #d1dfd5; font-size:10px; color:#344c3d; }
.composer-caption span+span { font-size:9px; color:#6c7e71; }
.chat-composer,.form.chat-composer { padding:10px; gap:10px; align-items:stretch; }
.chat-composer textarea { height:108px; min-height:108px; max-height:150px; resize:none; border:0; border-radius:0; background:#fff; box-shadow:none; padding:0; font-size:12px; }
.chat-composer button.primary { align-self:center; min-height:48px; padding:9px 17px; }
.chat-bottom .drop-hint { margin:0; border:0; border-top:1px solid #e0e8e2; border-radius:0; padding:6px 10px; background:#f1f6f1; font-size:9px; }
.profile-rail { padding:0; border:0; background:none; gap:10px; }
.conversation-profile { padding:10px 8px; border:1px solid #bdd0c2; border-radius:7px; background:#fafcf9; }
.conversation-profile .avatar { width:86px; height:86px; border-radius:6px; font-size:30px; }
.conversation-profile h3 { font-size:12px; }
.own-profile-card { margin-top:auto; }
.self-portrait { display:flex; flex-direction:column; width:100%; gap:7px; padding:12px 8px; border:1px solid #bdd0c2; border-radius:7px; background:#fafcf9; color:#20382a; }
.self-portrait .avatar { width:86px; height:86px; font-size:30px; border-radius:6px; }
.self-portrait h3 { font-size:12px; }
.self-portrait > span:last-child { font-size:10px; color:#52685a; }
@media(max-width:800px) {
 .messenger,.native .messenger { grid-template-columns:195px minmax(0,1fr); }
 .chat-workspace { grid-template-columns:minmax(0,1fr) 100px; gap:8px; }
 .conversation-profile .avatar,.self-portrait .avatar { width:66px; height:66px; }
 .chat-tool > summary { min-width:56px; padding:6px; font-size:10px; }
 .chat-toolbar { gap:6px; }
 .composer-caption span+span { display:none; }
}
@media(max-width:600px) {
 .messenger,.native .messenger { grid-template-columns:1fr; grid-template-rows:200px minmax(0,1fr); min-height:750px; }
 .friends { margin:6px; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:auto minmax(0,1fr); }
 .friends > .profile-dropdown { grid-column:1 / -1; }
 .friends .profile-dropdown > summary { padding:6px 10px; }
 .friends .profile-dropdown-body { position:absolute; left:0; right:0; z-index:9; background:#203027; }
 .friends .my-status-label { display:none; }
 .contacts-section,.groups-section { min-height:0; max-height:none; }
 .people-search { display:none; }
 .chat-composer textarea { min-height:80px; height:80px; }
}

.self-portrait .avatar { flex:0 0 86px; }
@media(max-width:800px) { .self-portrait .avatar { flex-basis:66px; } }

/* Small, borderless function icons; presence uses green/red at a glance. */
.chat-toolbar { gap:7px; padding:8px 0; }
.chat-tool > summary { flex-direction:row; min-width:32px; width:32px; height:32px; min-height:32px; padding:7px; gap:0; border:0; border-radius:5px; background:transparent; box-shadow:none; }
.chat-tool > summary svg { width:18px; height:18px; flex-basis:18px; }
.chat-tool > summary:hover,.chat-tool[open] > summary { background:#cce3d4; box-shadow:none; }
.chat-tool > summary:focus-visible { outline:2px solid #397756; outline-offset:2px; }
.tool-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.chat-tool > summary[data-recording="true"] { color:#c43b3b; }
.chat-tool > summary[data-recording="true"]::after { content:""; position:absolute; right:1px; top:2px; width:5px; height:5px; border-radius:50%; background:#c43b3b; }
.presence[data-status="Available"] i,.presence[data-status="Open to collab"] i,.presence[data-status="In session"] i,.presence[data-status="Do not disturb"] i,.presence[data-status="Away"] i { background:#299754; border-color:#299754; box-shadow:none; }
.presence[data-status="Open to collab"] i::after,.presence[data-status="Away"] i::after { color:#fff; border-color:#fff; }
.presence[data-status="Offline"] i,.presence[data-status="Invisible"] i { background:#d34b4b; border-color:#d34b4b; box-shadow:none; }

.chat-action-icon { display:grid; place-items:center; width:32px; height:32px; min-height:32px; padding:7px; border:0; border-radius:5px; background:transparent; box-shadow:none; color:#20382a; }
.chat-action-icon svg { width:18px; height:18px; }
.chat-action-icon:hover { background:#cce3d4; }
.chat-action-card,.chat-message.chat-action-card { padding:10px 12px; border:1px solid #d1e2d7; border-radius:6px; background:#eef6f0; width:fit-content; min-width:190px; max-width:100%; }
.chat-action-card h3 { font-size:13px; margin:5px 0; }
.chat-action-card .actions { margin-top:9px; }
.action-caption { font-size:11px; color:#397151; }
@keyframes talkback-nudge { 0%,100% { transform:translateX(0); } 20%,60% { transform:translateX(-3px); } 40%,80% { transform:translateX(3px); } }
.nudged { animation:talkback-nudge .45s ease-out; }
@media(prefers-reduced-motion:reduce) { .nudged { animation:none; outline:2px solid #67a27f; outline-offset:-2px; } }
.capture-bridge { background:#e4f0e7; }
.capture-panel { padding:18px; display:flex; flex-direction:column; gap:15px; min-height:100dvh; }
.capture-panel header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.capture-panel .wordmark { gap:8px; }
.capture-panel .brand { font-size:20px; }
.capture-panel .brand-company { display:none; }
.capture-panel header button { font-size:11px; white-space:nowrap; }
.capture-eyebrow { font-size:9px; letter-spacing:.15em; color:#597361; margin-top:4px; }
.capture-panel .quick-recipient { padding:0; border:0; background:transparent; display:block; }
.capture-panel .quick-recipient label { display:grid; gap:6px; font-size:11px; }
.capture-panel select { width:100%; }
.capture-session { background:#fcfefb; border:1px solid #cbdece; border-radius:8px; padding:15px; }
.capture-session .capture-controls .actions { gap:10px; }
.capture-session .capture-controls button { min-height:38px; padding:8px 18px; }
.capture-session > .meta { margin-top:10px; font-size:11px; }
.capture-panel .drop { padding:12px; min-height:60px; }
.capture-panel .drop strong { font-size:12px; }
.capture-panel .drop small,.capture-footnote { font-size:10px; }
.capture-bridge .auth { padding:20px; min-height:100dvh; }
.capture-bridge .auth .panel { padding:18px; }
.capture-bridge .auth h1 { font-size:24px; }
.capture-bridge dialog { max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); }

/* Role folders: who's free in each role, at a glance. */
.contact-category > summary .category-name { white-space:nowrap; }
.contact-category > summary .category-count { font-weight:400; color:#59645e; }
.category-available { display:inline-flex; align-items:center; gap:4px; margin-left:auto; font-size:10px; font-weight:600; padding:1px 7px 1px 5px; border-radius:9px; background:#d7eadb; color:#285e48; white-space:nowrap; }
.category-available i { width:7px; height:7px; border-radius:50%; background:#387e59; }
.category-available[data-some="false"] { background:transparent; color:#7c8780; font-weight:400; }
.category-available[data-some="false"] i { background:transparent; border:1.5px solid #9aa39d; width:6px; height:6px; }
.category-empty { font-size:10px; color:#7c8780; padding:2px 6px 4px; margin:0; }

/* Contact requests and Instagram. */
.requests > .category-people { padding-left:0; }
.request-row { display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; padding:4px 5px 6px; }
.request-row .friend-content { flex:1 1 100%; min-width:0; display:grid; }
.request-row strong { font-size:11px; }
.request-row .friend-role { white-space:normal; }
.request-actions { display:flex; gap:4px; }
.request-actions button { min-height:24px; padding:2px 8px; font-size:10px; }
.rail-instagram { font-size:11px; color:#43544a; margin:0; }
.ig-verified { color:#285e48; font-weight:600; }
.instagram-choices { display:grid; gap:6px; border:0; padding:0; margin:0; }
.ig-result:empty { display:none; }

/* Storage prompt (0.7.1) */
.storage-banner { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin:0 0 12px; padding:10px 14px; border-radius:12px; background:#eaf4ee; border:1px solid #c5ddce; }
.storage-banner p { margin:0; }
.capture-storage { font-weight:600; }
