/* HiSierra — стиль, вдохновлённый macOS High Sierra: плоские окна, светлые панели, стеклянный Dock. */
:root {
  --accent: #0a7bff;
  --accent-dark: #0663d1;
  --text: #1d1d1f;
  --muted: #86868b;
  --line: #d9d9de;
  --wall: url('/assets/wall-sierra.svg');
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font: 13px/1.35 var(--font); color: var(--text); background: #1c2a44 var(--wall) center / cover no-repeat fixed; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: default; }
.hidden { display: none !important; }
.noscript { color: #fff; padding: 40px; }

/* ---------- вход ---------- */
#login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 200000; }
#login::before { content: ''; position: absolute; inset: 0; background: rgba(10, 18, 40, .28); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }
.login-card { position: relative; width: 310px; max-width: 92vw; display: flex; flex-direction: column; gap: 10px; align-items: stretch; color: #fff; text-align: center; }
.login-logo { width: 84px; height: 84px; margin: 0 auto 4px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }
.login-logo svg { width: 100%; height: 100%; }
.login-title { font-size: 22px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.login-sub { font-size: 13px; opacity: .85; margin-bottom: 6px; }
.login-field { height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .22); color: #fff; text-align: center; outline: none; backdrop-filter: blur(8px); }
.login-field::placeholder { color: rgba(255, 255, 255, .7); }
.login-field:focus { background: rgba(255, 255, 255, .32); border-color: rgba(255, 255, 255, .8); }
.login-err { min-height: 18px; font-size: 12.5px; color: #ffd0cc; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.login-actions { display: flex; justify-content: center; }
.login-go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .25); color: #fff; font-size: 20px; line-height: 1; }
.login-go:hover { background: rgba(255, 255, 255, .4); }
.login-go:disabled { opacity: .5; }

/* ---------- меню-бар ---------- */
#menubar { position: fixed; top: 0; left: 0; right: 0; height: 24px; display: flex; align-items: center; padding: 0 4px; z-index: 100000;
  background: rgba(246, 246, 248, .74); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: .5px solid rgba(0, 0, 0, .22); font-size: 13px; }
.mb-item { height: 24px; padding: 0 10px; border: 0; background: none; color: #1d1d1f; white-space: nowrap; display: inline-flex; align-items: center; border-radius: 4px; }
.mb-item:hover, .mb-item:focus-visible { background: rgba(0, 0, 0, .1); outline: none; }
.mb-item.bold { font-weight: 600; }
.mb-item.logo { padding: 0 12px; }
.mb-spacer { flex: 1; }
.mb-unread { font-size: 12px; }
.clock { font-variant-numeric: tabular-nums; }

/* ---------- окна ---------- */
#desktop { position: fixed; inset: 0; }
#windows { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.window { position: absolute; pointer-events: auto; display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .38), 0 6px 18px rgba(0, 0, 0, .22); transition: transform .24s ease, opacity .24s ease; outline: none; }
.window.focused { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .42), 0 22px 60px rgba(0, 0, 0, .42); }
.window.minimized { transform: translateY(46vh) scale(.12); opacity: 0; pointer-events: none; }
.window.zoomed { border-radius: 0; }
.titlebar { height: 52px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px; user-select: none; -webkit-user-select: none; touch-action: none;
  background: linear-gradient(#f3f3f4, #e4e4e6); border-bottom: 1px solid #c4c4c8; }
.window.focused .titlebar { background: linear-gradient(#ebebed, #d3d3d6); border-bottom-color: #b2b2b6; }
.window.compact .titlebar { height: 28px; gap: 8px; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 6px; flex: none; }
.tb-right { margin-left: auto; }
.tb-title { flex: 1; min-width: 0; text-align: center; font-weight: 600; color: #4a4a4d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window:not(.focused) .tb-title { color: #9a9a9e; }
.lights { display: flex; gap: 8px; flex: none; }
.light { position: relative; width: 12px; height: 12px; padding: 0; border-radius: 50%; border: .5px solid rgba(0, 0, 0, .18); background: #cfcfd2; }
.window.focused .light.close, .lights:hover .light.close { background: #ff5f57; border-color: #e0443e; }
.window.focused .light.min, .lights:hover .light.min { background: #febc2e; border-color: #dea123; }
.window.focused .light.zoom, .lights:hover .light.zoom { background: #28c840; border-color: #1aab29; }
.lights:hover .light::after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: rgba(0, 0, 0, .55); line-height: 1; }
.lights:hover .close::after { content: '✕'; } .lights:hover .min::after { content: '–'; } .lights:hover .zoom::after { content: '+'; }
.window-body { flex: 1; min-height: 0; position: relative; display: flex; overflow: hidden; background: #fff; }
.window-body.col { flex-direction: column; }
.resize { position: absolute; z-index: 3; }
.resize.r { top: 0; right: -3px; width: 8px; height: 100%; cursor: ew-resize; }
.resize.b { left: 0; bottom: -3px; width: 100%; height: 8px; cursor: ns-resize; }
.resize.br { right: -3px; bottom: -3px; width: 16px; height: 16px; cursor: nwse-resize; }

/* ---------- элементы управления ---------- */
.tbtn { height: 24px; min-width: 28px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; color: #55555a;
  background: linear-gradient(#fff, #f1f1f2); border: 1px solid #bcbcc1; border-radius: 4px; }
.tbtn:active:not(:disabled), .tbtn.on { background: #cfcfd3; }
.tbtn:disabled { opacity: .4; }
.tbtn.light { background: transparent; border-color: transparent; color: #fff; }
.btn { padding: 4px 14px; border-radius: 5px; border: 1px solid #b9b9be; background: linear-gradient(#fff, #f0f0f1); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.btn:active:not(:disabled) { background: #dcdce0; }
.btn:disabled { opacity: .45; }
.btn.small { padding: 2px 10px; font-size: 12px; }
.btn.primary { color: #fff; border-color: var(--accent-dark); background: linear-gradient(#5aa9ff, var(--accent)); }
.btn.primary.danger, .btn.danger { color: #fff; border-color: #c1281f; background: linear-gradient(#ff7a70, #ff3b30); }
.field, .select { width: 100%; padding: 5px 9px; border: 1px solid #bcbcc2; border-radius: 5px; background: #fff; outline: none; }
.select { width: auto; padding: 2px 6px; }
.field:focus, .select:focus, .search:focus, .m-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 123, 255, .3); }
.search { width: 150px; height: 24px; padding: 0 8px; border: 1px solid #bcbcc1; border-radius: 5px; outline: none; font-size: 12px; }
.segmented { display: inline-flex; }
.seg { padding: 2px 14px; height: 24px; background: linear-gradient(#fff, #f1f1f2); border: 1px solid #bcbcc1; margin-left: -1px; }
.seg:first-child { border-radius: 4px 0 0 4px; margin-left: 0; } .seg:last-child { border-radius: 0 4px 4px 0; }
.seg.on { background: #8e8e93; color: #fff; border-color: #7a7a80; }
.mini { flex: none; }
.empty { margin: auto; padding: 40px 20px; color: #9a9aa0; text-align: center; font-size: 14px; max-width: 360px; }
.empty.small { padding: 14px; font-size: 12.5px; }
.avatar { flex: none; border-radius: 50%; color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.avatar.room { background: #8e8e93; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- боковая панель ---------- */
.sidebar { width: 172px; flex: none; overflow: auto; padding: 6px 0; background: #ececef; border-right: 1px solid #d3d3d8; }
.side-head { padding: 12px 14px 4px; font-size: 11px; font-weight: 600; color: #8a8a90; }
.side-item { display: flex; align-items: center; gap: 8px; margin: 1px 6px; padding: 5px 8px; border-radius: 5px; color: #333; cursor: default; }
.side-item .mini { color: var(--accent); }
.side-item.active { background: rgba(0, 0, 0, .12); }

/* ---------- Finder ---------- */
.f-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.f-content { flex: 1; min-height: 0; overflow: auto; padding: 12px; outline: none; }
.f-content.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); align-content: start; gap: 6px; }
.f-content .empty { grid-column: 1 / -1; }
.f-item { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 6px; text-align: center; min-width: 0; }
.f-icon svg { width: 58px; height: 58px; display: block; }
.f-name { font-size: 12px; max-width: 100%; margin-top: 3px; padding: 1px 5px; border-radius: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.f-meta { display: none; }
.f-item.selected .f-name { background: var(--accent); color: #fff; }
.f-item.drop { outline: 2px solid var(--accent); }
.f-content.list .f-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) 120px 100px 120px; align-items: center; gap: 8px; text-align: left; padding: 3px 8px; border-radius: 0; }
.f-content.list .f-item:nth-child(even) { background: #f5f5f7; }
.f-content.list .f-icon svg { width: 20px; height: 20px; }
.f-content.list .f-name { display: block; white-space: nowrap; text-overflow: ellipsis; margin: 0; font-size: 13px; background: none; }
.f-content.list .f-meta { display: block; font-size: 12px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-content.list .f-item.head { color: #8a8a90; font-size: 11px; background: #fff !important; border-bottom: 1px solid var(--line); position: sticky; top: -12px; }
.f-content.list .f-item.head .f-meta { font-size: 11px; color: #8a8a90; }
.f-content.list .f-item.selected { background: var(--accent) !important; color: #fff; }
.f-content.list .f-item.selected .f-meta { color: #e8f1ff; }
.f-content.list .f-item.selected .f-name { background: none; }
.f-status { height: 28px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-top: 1px solid #e2e2e6; background: #f7f7f9; font-size: 11.5px; color: #6e6e73; }
.crumb { cursor: default; } .crumb:hover { text-decoration: underline; }
.f-count { margin-left: auto; }

/* ---------- TextEdit ---------- */
.te-bar { flex: none; height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #f6f6f8; border-bottom: 1px solid #e2e2e6; font-size: 12px; }
.te-status { margin-left: auto; color: var(--muted); }
.te-owner { color: #6e6e73; }
.te-area { flex: 1; min-height: 0; width: 100%; border: 0; resize: none; outline: none; padding: 18px 24px; font: 15px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif; background: #fff; }

/* ---------- Фото ---------- */
.photos-body { flex-direction: column; background: #fff; }
.p-grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); grid-auto-rows: max-content; gap: 2px; padding: 2px; align-content: start; }
.p-grid .empty { grid-column: 1 / -1; }
.p-cell { aspect-ratio: 1; padding: 0; border: 0; background: #eee; overflow: hidden; }
.p-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-cell:hover img { filter: brightness(1.06); }
.p-status { flex: none; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-top: 1px solid #e2e2e6; background: #f7f7f9; font-size: 11.5px; color: #6e6e73; }
.quota { display: flex; align-items: center; gap: 8px; }
.bar { width: 90px; height: 6px; background: #dcdce0; border-radius: 3px; overflow: hidden; display: inline-block; }
.fill { display: block; height: 100%; background: var(--accent); }
.photos-body.dropping .p-grid { outline: 3px dashed var(--accent); outline-offset: -8px; }
.p-viewer { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: rgba(18, 18, 20, .97); color: #fff; }
.v-bar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 12px; }
.v-title { flex: 1; min-width: 0; font-size: 12.5px; color: #d0d0d5; }
.v-title b { color: #fff; }
.v-share { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.v-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 6px; padding: 0 6px 10px; }
.v-stage img { flex: 1; min-width: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.v-nav { flex: none; width: 36px; height: 60px; border: 0; background: none; color: #fff; opacity: .7; } .v-nav:hover { opacity: 1; }

/* ---------- Сообщения ---------- */
.messages-body { flex-direction: row; }
.m-side { width: 244px; padding: 6px 0; }
.thread { display: flex; align-items: center; gap: 10px; margin: 1px 6px; padding: 7px 8px; border-radius: 8px; }
.thread.active { background: var(--accent); color: #fff; }
.thread.active .th-last { color: #d9e9ff; }
.th-text { flex: 1; min-width: 0; }
.th-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-last { font-size: 12px; color: #7b7b82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.m-head { flex: none; padding: 9px 16px; text-align: center; border-bottom: 1px solid #e2e2e6; background: #f9f9fa; min-height: 36px; }
.m-feed { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 5px; }
.row { display: flex; } .row.mine { justify-content: flex-end; }
.bubble { max-width: 72%; padding: 7px 12px 5px; border-radius: 18px; background: #e9e9eb; word-break: break-word; }
.row.mine .bubble { background: var(--accent); color: #fff; }
.b-text { white-space: pre-wrap; }
.b-from { font-size: 11px; font-weight: 600; color: #6b6b72; margin-bottom: 1px; }
.b-del { align-self: center; width: 22px; height: 22px; margin: 0 4px; padding: 0; border: 0; border-radius: 50%; background: #e5e5ea; color: #666; font-size: 10px; display: none; align-items: center; justify-content: center; }
.row:hover .b-del { display: inline-flex; }
.b-del:hover { background: #ffd4d0; color: #c5281c; }
@media (hover: none) { .b-del { display: inline-flex; opacity: .55; } }
.b-time { font-size: 10px; opacity: .6; text-align: right; margin-top: 1px; }
.has-voice { min-width: 210px; }
.voice { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.v-play { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .13); display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.row.mine .v-play { background: rgba(255, 255, 255, .3); }
.v-track { flex: 1; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, .18); overflow: hidden; }
.row.mine .v-track { background: rgba(255, 255, 255, .35); }
.v-fill { display: block; height: 100%; width: 0; background: currentColor; }
.v-time { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.m-composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #e2e2e6; background: #f9f9fa; }
.m-input { flex: 1; height: 32px; padding: 0 14px; border: 1px solid #c8c8cd; border-radius: 16px; outline: none; background: #fff; }
.round { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #e5e5ea; color: #444; display: inline-flex; align-items: center; justify-content: center; }
.round.send { background: var(--accent); color: #fff; }
.round.cancel:hover { background: #ffd4d0; }
.rec-pill { flex: 1; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px; background: #fdecea; color: #c5281c; font-weight: 500; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.rec-time { font-variant-numeric: tabular-nums; }
.back-btn { display: none; }

/* ---------- Настройки ---------- */
.s-main { flex: 1; min-width: 0; overflow: auto; padding: 20px 22px; }
.s-main h3 { margin: 0 0 10px; font-size: 14px; }
.s-user { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.s-name { font-size: 18px; font-weight: 600; } .s-sub { font-size: 12px; color: var(--muted); }
.s-form { display: flex; flex-direction: column; gap: 8px; max-width: 340px; align-items: flex-start; }
.s-form .btn { margin-top: 4px; }
.form-msg { min-height: 18px; font-size: 12.5px; } .form-msg.err { color: #d70015; } .form-msg.ok { color: #1a8a2e; }
.s-walls { display: flex; gap: 14px; flex-wrap: wrap; }
.wall { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 5px; border: 2px solid transparent; border-radius: 9px; background: none; }
.wall.on { border-color: var(--accent); }
.wall img { width: 150px; height: 94px; object-fit: cover; border-radius: 5px; }
.s-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .s-row h3 { margin: 0; }
.table { border: 1px solid var(--line); border-radius: 8px; margin: 6px 0 20px; overflow: hidden; }
.trow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #ececf0; } .trow:last-child { border-bottom: 0; }
.trow.off { opacity: .5; }
.grow { flex: 1; min-width: 0; }
.invite-out { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 10px 12px; margin-bottom: 14px; background: #f1f7ff; border: 1px solid #bcd8ff; border-radius: 8px; font-size: 12.5px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* ---------- Dock ---------- */
#dock { position: fixed; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 99990; display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px 7px;
  background: rgba(255, 255, 255, .27); backdrop-filter: blur(20px) saturate(1.7); -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .42); border-radius: 17px; box-shadow: 0 10px 34px rgba(0, 0, 0, .28), inset 0 0 0 .5px rgba(255, 255, 255, .25); }
.dock-item { position: relative; width: 52px; height: 52px; padding: 0; border: 0; background: none; transform-origin: 50% 100%; transition: transform .09s ease-out; }
.dock-item svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.dock-item::after { content: attr(data-label); position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 6px;
  background: rgba(50, 50, 54, .88); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.dock-item:hover::after { opacity: 1; }
.dock-item .dot { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(20, 20, 24, .75); display: none; }
.dock-item .dot.on { display: block; }
.dock-item .badge { position: absolute; top: -4px; right: -4px; }
.dock-sep { width: 1px; height: 46px; align-self: center; background: rgba(255, 255, 255, .55); margin: 0 2px; }

/* ---------- меню и диалоги ---------- */
.menu { position: fixed; z-index: 100010; min-width: 196px; padding: 4px; border-radius: 7px; background: rgba(248, 248, 250, .94); backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .25); }
.menu-item { padding: 4px 18px; border-radius: 4px; white-space: nowrap; }
.menu-item:hover:not(.disabled) { background: var(--accent); color: #fff; }
.menu-item.disabled { opacity: .4; }
.menu-sep { height: 1px; margin: 4px 8px; background: #d4d4d8; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 100020; display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; background: rgba(0, 0, 0, .22); }
.sheet { width: 350px; max-width: 92vw; padding: 18px; border-radius: 11px; background: rgba(248, 248, 250, .97); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .4); display: flex; flex-direction: column; }
.sheet-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.sheet-msg { font-size: 12.5px; color: #55555a; white-space: pre-wrap; margin-bottom: 10px; }
.sheet-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* ---------- телефон / узкий экран ---------- */
@media (max-width: 720px) {
  .window { left: 0 !important; top: 24px !important; width: 100% !important; height: calc(100% - 24px - 74px) !important; border-radius: 0; }
  .resize { display: none; }
  .window.minimized { transform: translateY(40vh) scale(.1); }
  #dock { gap: 4px; padding: 5px 7px 6px; max-width: 98vw; }
  .dock-item { width: 44px; height: 44px; }
  .finder-body .sidebar, .settings-body .sidebar { width: 112px; }
  .f-content.list .f-item { grid-template-columns: 26px minmax(0, 1fr); }
  .f-content.list .f-meta { display: none; }
  .search { width: 90px; }
  .mb-item.bold, #menubar .mb-item:nth-child(3), #menubar .mb-item:nth-child(4) { display: none; }
  .m-side { width: 100%; }
  .m-pane { display: none; }
  .messages-body.chat-open .m-side { display: none; }
  .messages-body.chat-open .m-pane { display: flex; }
  .back-btn { display: inline-flex; }
  .bubble { max-width: 86%; }
}
@media (prefers-reduced-motion: reduce) { .window, .dock-item { transition: none; } .rec-dot { animation: none; } }
