/* Shared workspace surfaces. Profile, administration, and bubble skins keep their own styles. */
.app-shell.workspace-view {
  color-scheme: light;
  --bg: #f3f4f5;
  --surface: #ffffff;
  --surface-soft: #f6f7f8;
  --surface-hover: #edf0f2;
  --text: #252b30;
  --muted: #68737c;
  --subtle: #8a959e;
  --line: #dfe4e8;
  --green: #247c5d;
  --green-dark: #19674c;
  --green-soft: #e5f0ea;
  --coral: #d9615c;
  --coral-soft: #faecea;
  --gold: #a78332;
  --blue: #477dab;
  --blue-soft: #edf3f8;
  --danger: #c95151;
  --shadow: 0 8px 24px rgba(26, 34, 40, .08);
  --shadow-soft: none;
  --workspace-nav: #eceff1;
  --workspace-side: #fafbfc;
  --workspace-active: #e5ece8;
  --workspace-accent: #247c5d;
  --nav-width: 70px;
  --side-width: 310px;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}
[data-theme="dark"] .app-shell.workspace-view {
  color-scheme: dark;
  --bg: #1e2226;
  --surface: #262b30;
  --surface-soft: #2d3339;
  --surface-hover: #353c43;
  --text: #e8ecef;
  --muted: #abb5be;
  --subtle: #89959f;
  --line: #3a434b;
  --green: #257d5e;
  --green-dark: #2b8d6b;
  --green-soft: #2c4036;
  --coral: #ee8a80;
  --coral-soft: #493431;
  --gold: #d5b76d;
  --blue: #98bfe0;
  --blue-soft: #303e4a;
  --danger: #f08c86;
  --shadow: 0 8px 24px rgba(0, 0, 0, .18);
  --workspace-nav: #24292e;
  --workspace-side: #23282d;
  --workspace-active: #33443c;
  --workspace-accent: #81cbaa;
}

.app-shell.workspace-view :is(.main-content, .content-page, .desktop-contact-canvas) { background: var(--bg); color: var(--text); }
.app-shell.workspace-view .side-panel { border-color: var(--line); background: var(--workspace-side); color: var(--text); }
.app-shell.workspace-view .side-content { background: var(--workspace-side); scrollbar-color: var(--line) transparent; }
.app-shell.workspace-view :is(.primary, .secondary, .danger-button, .desktop-contact-primary) { min-height: 38px; max-width: 100%; gap: 7px; padding: 8px 14px; border-radius: 6px; font-size: 13px; line-height: 1.4; font-weight: 600; box-shadow: none; transform: none; }
.app-shell.workspace-view :is(.primary, .desktop-contact-primary) { background: var(--green); color: #ffffff; }
.app-shell.workspace-view :is(.primary, .desktop-contact-primary):hover { background: var(--green-dark); box-shadow: none; transform: none; }
.app-shell.workspace-view .secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.app-shell.workspace-view .secondary:hover { background: var(--surface-hover); }
.app-shell.workspace-view .danger-button { background: var(--coral-soft); color: var(--danger); }
.app-shell.workspace-view .icon-button { color: var(--muted); box-shadow: none; }
.app-shell.workspace-view .icon-button:hover { border-color: var(--line); background: var(--surface-hover); color: var(--text); box-shadow: none; }
.app-shell.workspace-view :is(.primary, .secondary, .danger-button) > .lucide { width: 17px; height: 17px; flex: 0 0 17px; stroke-width: 1.9; }
.app-shell.workspace-view .search-box { border: 1px solid transparent; background: var(--surface-soft); color: var(--muted); }
.app-shell.workspace-view .search-box:focus-within { border: 1px solid var(--workspace-accent); background: var(--surface); box-shadow: none; }
.app-shell.workspace-view .search-box input { min-width: 0; background: transparent; color: var(--text); font-size: 13px; }
.app-shell.workspace-view .search-box input::placeholder { color: var(--subtle); }
.app-shell.workspace-view .desktop-new-chat { background: var(--surface-hover); color: var(--muted); }
.app-shell.workspace-view .desktop-new-chat:hover { background: var(--workspace-active); color: var(--workspace-accent); }
.app-shell.workspace-view .list-section-label { color: var(--subtle); font-size: 11px; font-weight: 500; }
.app-shell.workspace-view :is(.conversation-item, .contact-row, .desktop-contact-row) { min-width: 0; border: 0; background: transparent; color: var(--text); box-shadow: none; text-align: left; }
.app-shell.workspace-view :is(.conversation-item, .contact-row, .desktop-contact-row):hover { background: var(--surface-hover); }
.app-shell.workspace-view :is(.conversation-item.active, .contact-row.active, .desktop-contact-row.active) { background: var(--workspace-active); box-shadow: inset 2px 0 var(--workspace-accent); }
.app-shell.workspace-view .item-copy { min-width: 0; }
.app-shell.workspace-view .item-copy > :is(.item-title, .item-preview) { display: block; }
.app-shell.workspace-view .item-title, .app-shell.workspace-view .desktop-contact-row strong { color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.5; }
.app-shell.workspace-view .item-preview, .app-shell.workspace-view .desktop-contact-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.app-shell.workspace-view .item-time { color: var(--subtle); font-size: 10px; }
.app-shell.workspace-view :is(.contact-row, .desktop-contact-row) > .lucide { width: 16px; height: 16px; color: var(--subtle); }
.app-shell.workspace-view .online-dot { border-color: var(--workspace-side); background: #48a981; }
.app-shell.workspace-view .conversation-item.active .online-dot { border-color: var(--workspace-active); }
.app-shell.workspace-view .unread-badge { min-width: 19px; height: 19px; border-color: var(--workspace-side); background: var(--coral); color: #ffffff; font-size: 10px; transform: none; }
.app-shell.workspace-view .conversation-pref-icon { color: var(--subtle); }
.app-shell.workspace-view .empty-list { color: var(--muted); }
.app-shell.workspace-view .empty-list .lucide { color: var(--subtle); }

.app-shell.workspace-view .chat-pane {
  --chat-bg: var(--bg);
  --chat-surface: var(--surface);
  --chat-text: var(--text);
  --chat-muted: var(--muted);
  --chat-line: var(--line);
  --chat-own: var(--green-soft);
  --chat-own-line: var(--line);
  --chat-accent: var(--workspace-accent);
  background: var(--bg);
  color: var(--text);
}
.app-shell.workspace-view .chat-pane :is(.chat-header, .composer) { border-color: var(--line); background: var(--surface); }
.app-shell.workspace-view .chat-pane .chat-person h2 { color: var(--text); font-size: 16px; font-weight: 600; }
.app-shell.workspace-view .chat-pane .chat-person p { color: var(--muted); }
.app-shell.workspace-view .chat-pane .send-button { background: var(--green); color: #ffffff; }
.app-shell.workspace-view .chat-pane .send-button:hover { background: var(--green-dark); }
.app-shell.workspace-view .chat-pane .chat-tools .icon-button.active { background: var(--workspace-active); color: var(--workspace-accent); }
.app-shell.workspace-view .emoji-popover { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.app-shell.workspace-view .emoji-popover button:hover { background: var(--surface-hover); }

.app-shell.workspace-view :is(.welcome-pane, .workspace-empty) { display: grid; min-width: 0; height: 100%; place-items: center; padding: 28px; background: var(--bg); color: var(--text); text-align: center; }
.app-shell.workspace-view :is(.welcome-inner, .workspace-empty-inner) { width: 100%; max-width: 360px; }
.app-shell.workspace-view .welcome-art { width: 112px; height: 112px; margin: 0 auto 20px; }
.app-shell.workspace-view .welcome-art img { width: 112px; height: 112px; border-radius: 8px; object-fit: cover; box-shadow: none; }
.app-shell.workspace-view .welcome-art::after { display: none; content: none; }
.app-shell.workspace-view :is(.welcome-pane, .workspace-empty) h1 { margin: 0 0 9px; color: var(--text); font-size: 20px; font-weight: 600; line-height: 1.5; }
.app-shell.workspace-view :is(.welcome-pane, .workspace-empty) p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.app-shell.workspace-view .welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.app-shell.workspace-view .welcome-actions :is(.primary, .secondary) { min-height: 36px; font-size: 12px; }
.app-shell.workspace-view .welcome-actions .lucide { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; stroke-width: 1.9; }

.app-shell.workspace-view .page-header { min-height: 64px; gap: 12px; padding: 10px 24px; border-color: var(--line); background: var(--surface); color: var(--text); backdrop-filter: none; }
.app-shell.workspace-view .page-header > div { min-width: 0; }
.app-shell.workspace-view .page-header h1 { font-size: 17px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.app-shell.workspace-view .page-header p { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.app-shell.workspace-view .page-header > button { min-height: 36px; flex: 0 0 auto; }
.app-shell.workspace-view .contact-hero { min-height: 60px; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-shell.workspace-view .contact-hero > div { min-width: 0; }
.app-shell.workspace-view .contact-hero h2 { margin: 0 0 3px; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.5; }
.app-shell.workspace-view .contact-hero p { color: var(--muted); font-size: 12px; }
.app-shell.workspace-view .contact-hero > button { flex: 0 0 auto; }
.app-shell.workspace-view .contact-card { border-color: var(--line); background: var(--surface); box-shadow: none; }
.app-shell.workspace-view .contact-card:hover { border-color: var(--workspace-accent); transform: none; }
.app-shell.workspace-view .contact-card > div { min-width: 0; }
.app-shell.workspace-view .contact-card h3 { color: var(--text); font-size: 14px; font-weight: 600; }
.app-shell.workspace-view .contact-card p { color: var(--muted); }
.app-shell.workspace-view .friend-request-panel { padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.app-shell.workspace-view .request-heading h2 { color: var(--text); font-size: 16px; font-weight: 600; }
.app-shell.workspace-view .request-row { border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.app-shell.workspace-view .request-row > div { min-width: 0; }
.app-shell.workspace-view .request-row :is(h3, p) { overflow-wrap: anywhere; }
.app-shell.workspace-view .outgoing-requests { overflow-wrap: anywhere; }

.app-shell.workspace-view .moments-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px 40px; }
.app-shell.workspace-view .moment-composer { margin: 0 0 20px; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.app-shell.workspace-view .moment-compose-row { gap: 12px; }
.app-shell.workspace-view .moment-compose-row > img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; object-fit: cover; }
.app-shell.workspace-view .moment-compose-content textarea { min-height: 66px; color: var(--text); font-size: 14px; line-height: 1.7; }
.app-shell.workspace-view .moment-compose-content textarea::placeholder { color: var(--subtle); }
.app-shell.workspace-view .moment-compose-actions { gap: 10px; }
.app-shell.workspace-view .moment-card { margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: none; scroll-margin-top: 76px; }
.app-shell.workspace-view .moment-author { min-width: 0; gap: 10px; }
.app-shell.workspace-view .moment-author img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 8px; }
.app-shell.workspace-view .moment-author > div { min-width: 0; }
.app-shell.workspace-view .moment-author h3 { color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.app-shell.workspace-view .moment-author time { color: var(--subtle); font-size: 11px; }
.app-shell.workspace-view .moment-text { margin: 15px 0; color: var(--text); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.app-shell.workspace-view .moment-photo { width: 100%; height: auto; max-height: 520px; border-radius: 6px; background: var(--surface-soft); object-fit: contain; }
.app-shell.workspace-view .moment-actions { gap: 7px; margin-top: 14px; padding-top: 8px; border-color: var(--line); }
.app-shell.workspace-view .moment-actions button { min-height: 32px; color: var(--muted); font-size: 12px; }
.app-shell.workspace-view .moment-actions button:hover { background: var(--surface-hover); }
.app-shell.workspace-view .moment-actions button.liked { color: var(--coral); }
.app-shell.workspace-view .moment-social { border-radius: 0; background: transparent; }
.app-shell.workspace-view .moment-likes { gap: 7px; padding: 11px 0; color: var(--coral); font-size: 12px; }
.app-shell.workspace-view .moment-likes .lucide { flex: 0 0 16px; }
.app-shell.workspace-view .moment-likes span { min-width: 0; overflow-wrap: anywhere; }
.app-shell.workspace-view .comment-list { padding: 8px 0; border-color: var(--line); }
.app-shell.workspace-view .comment { color: var(--text); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.app-shell.workspace-view .comment strong { color: var(--blue); font-weight: 600; }
.app-shell.workspace-view .comment-form { gap: 8px; padding: 8px 0 0; }
.app-shell.workspace-view .comment-form input { height: 36px; border-color: var(--line); background: var(--surface-soft); color: var(--text); }
.app-shell.workspace-view .comment-form input:focus { border-color: var(--workspace-accent); }
.app-shell.workspace-view .comment-form button { flex: 0 0 auto; min-height: 36px; padding: 0 12px; background: var(--green); color: #ffffff; font-size: 12px; }

@media (min-width: 721px) {
  .app-shell.workspace-view { grid-template-columns: 70px 310px minmax(0, 1fr); grid-template-rows: 50px minmax(0, 1fr); }
  .app-shell.workspace-view .desktop-titlebar { z-index: 20; display: flex; grid-column: 1 / -1; grid-row: 1; min-width: 0; height: 50px; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text); }
  .app-shell.workspace-view .desktop-product { display: flex; width: 116px; min-width: 116px; flex: 0 0 116px; align-items: center; gap: 7px; padding: 0 11px; border-right: 1px solid var(--line); color: var(--text); }
  .app-shell.workspace-view .desktop-product img { width: 23px; height: 23px; border-radius: 5px; }
  .app-shell.workspace-view .desktop-product strong { min-width: 0; font-size: 11px; font-weight: 600; }
  .app-shell.workspace-view .desktop-account { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; padding-left: 13px; }
  .app-shell.workspace-view .desktop-account > img { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; object-fit: cover; }
  .app-shell.workspace-view .desktop-account > div { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
  .app-shell.workspace-view .desktop-account strong { min-width: 0; max-width: 180px; flex: 0 1 auto; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  .app-shell.workspace-view .desktop-account span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .app-shell.workspace-view .desktop-title-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 0 10px; }
  .app-shell.workspace-view .desktop-title-actions > button { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 5px; background: transparent; color: var(--muted); }
  .app-shell.workspace-view .desktop-title-actions > button:hover { background: var(--surface-hover); color: var(--text); }
  .app-shell.workspace-view .desktop-title-actions > button.notification-enabled { color: var(--workspace-accent); }
  .app-shell.workspace-view .desktop-title-actions > button.notification-blocked { color: var(--coral); }
  .app-shell.workspace-view .desktop-title-actions > button span { display: none; }
  .app-shell.workspace-view .desktop-title-actions .lucide { width: 17px; height: 17px; stroke-width: 1.9; }
  .app-shell.workspace-view .desktop-presence { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: var(--muted); font-size: 11px; }
  .app-shell.workspace-view .desktop-presence .lucide { width: 18px; height: 18px; color: var(--blue); }
  .app-shell.workspace-view .main-nav { z-index: 10; display: flex; grid-column: 1; grid-row: 2; flex-direction: column; align-items: center; padding: 8px 7px 12px; border-right: 1px solid var(--line); background: var(--workspace-nav); color: var(--muted); box-shadow: none; }
  .app-shell.workspace-view :is(.brand-button, .side-header, .mobile-conversation-hero, .search-box kbd) { display: none; }
  .app-shell.workspace-view .nav-center { width: 100%; flex: 1; gap: 4px; padding-top: 2px; }
  .app-shell.workspace-view .nav-bottom { width: 100%; gap: 10px; }
  .app-shell.workspace-view .nav-button { display: flex; width: 48px; height: 48px; flex: 0 0 48px; align-items: center; justify-content: center; margin: 0 auto; border-radius: 6px; background: transparent; color: var(--muted); }
  .app-shell.workspace-view .nav-button > span { display: none; }
  .app-shell.workspace-view .nav-button .lucide { width: 23px; height: 23px; flex: 0 0 23px; stroke-width: 1.9; }
  .app-shell.workspace-view .nav-button:hover { background: var(--surface-hover); color: var(--text); }
  .app-shell.workspace-view .nav-button.active { background: var(--workspace-active); color: var(--workspace-accent); }
  .app-shell.workspace-view .nav-button.active::before { top: 11px; bottom: 11px; left: -7px; width: 3px; border-radius: 0 2px 2px 0; background: var(--workspace-accent); }
  .app-shell.workspace-view .nav-badge { top: 1px; right: -2px; border-color: var(--workspace-nav); background: var(--coral); }
  .app-shell.workspace-view .avatar-button, .app-shell.workspace-view .avatar-button img { width: 40px; height: 40px; border-radius: 8px; }
  .app-shell.workspace-view .presence-dot { border-color: var(--workspace-nav); background: #48a981; }
  .app-shell.workspace-view .side-panel { grid-column: 2; grid-row: 2; grid-template-rows: 64px minmax(0, 1fr); border-right: 1px solid var(--line); }
  .app-shell.workspace-view .search-box { grid-row: 1; height: 36px; margin: 15px 14px 10px; padding: 0 7px 0 10px; border-radius: 6px; }
  .app-shell.workspace-view .search-box > .lucide { width: 16px; height: 16px; flex: 0 0 16px; }
  .app-shell.workspace-view .desktop-new-chat { display: grid; width: 26px; height: 26px; flex: 0 0 26px; place-items: center; border-radius: 4px; }
  .app-shell.workspace-view .desktop-new-chat .lucide { width: 17px; height: 17px; stroke-width: 1.9; }
  .app-shell.workspace-view .side-content { grid-row: 2; padding: 0 7px 18px; }
  .app-shell.workspace-view .main-content { grid-column: 3; grid-row: 2; }
  .app-shell.workspace-view :is(.conversation-item, .contact-row, .desktop-contact-row) { display: grid; min-height: 70px; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px; border-radius: 6px; }
  .app-shell.workspace-view .list-avatar img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
  .app-shell.workspace-view .desktop-contact-manager { min-height: 36px; border-color: var(--line); background: var(--surface); color: var(--text); font-size: 12px; }
  .app-shell.workspace-view .desktop-contact-manager:hover { border-color: var(--workspace-accent); background: var(--surface-hover); }
  .app-shell.workspace-view .desktop-contact-shortcut { min-height: 44px; border-color: var(--line); background: transparent; color: var(--text); font-size: 13px; font-weight: 500; }
  .app-shell.workspace-view .desktop-contact-shortcut:hover { background: var(--surface-hover); }
  .app-shell.workspace-view .desktop-contact-shortcut.active { background: var(--workspace-active); }
  .app-shell.workspace-view .desktop-contact-shortcut b { background: var(--coral); }
  .app-shell.workspace-view .desktop-contact-shortcut .lucide { color: var(--subtle); }
  .app-shell.workspace-view .desktop-contact-tabs { height: 36px; margin: 16px 10px 7px; border: 1px solid var(--line); background: var(--surface-soft); }
  .app-shell.workspace-view .desktop-contact-tabs button { background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
  .app-shell.workspace-view .desktop-contact-tabs button.active { background: var(--surface); color: var(--workspace-accent); }
  .app-shell.workspace-view .desktop-contact-section-title { min-height: 34px; color: var(--muted); font-size: 12px; }
  .app-shell.workspace-view .desktop-contact-section-title small { color: var(--subtle); font-size: 10px; }
  .app-shell.workspace-view .desktop-contact-empty { color: var(--muted); font-size: 12px; }
  .app-shell.workspace-view .desktop-contact-content { width: min(860px, calc(100% - 48px)); padding: 24px 0 48px; }
  .app-shell.workspace-view .desktop-contact-content > header { min-height: 64px; gap: 14px; padding-bottom: 16px; border-color: var(--line); }
  .app-shell.workspace-view .desktop-contact-content > header > div { min-width: 0; }
  .app-shell.workspace-view .desktop-contact-content header span { color: var(--subtle); font-size: 10px; font-weight: 500; }
  .app-shell.workspace-view .desktop-contact-content h1 { margin: 2px 0 4px; color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.5; }
  .app-shell.workspace-view .desktop-contact-content p { color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
  .app-shell.workspace-view :is(.desktop-contact-request-list, .desktop-contact-manager-grid) { gap: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
  .app-shell.workspace-view :is(.desktop-contact-request-list article, .desktop-contact-manager-grid > button) { min-width: 0; min-height: 72px; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text); }
  .app-shell.workspace-view .desktop-contact-request-list article { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
  .app-shell.workspace-view .desktop-contact-request-list article > div { min-width: 0; }
  .app-shell.workspace-view .desktop-contact-manager-grid > button { grid-template-columns: 40px minmax(0, 1fr) 20px; }
  .app-shell.workspace-view .desktop-contact-manager-grid > button > span { min-width: 0; }
  .app-shell.workspace-view .desktop-contact-manager-grid > button:hover { background: var(--surface-hover); }
  .app-shell.workspace-view :is(.desktop-contact-request-list, .desktop-contact-manager-grid) img { width: 40px; height: 40px; border-radius: 8px; }
  .app-shell.workspace-view :is(.desktop-contact-request-list, .desktop-contact-manager-grid) strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  .app-shell.workspace-view :is(.desktop-contact-request-list, .desktop-contact-manager-grid) small { color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
  .app-shell.workspace-view .desktop-contact-request-list article > button { min-height: 32px; padding: 0 9px; background: var(--surface-hover); color: var(--text); font-size: 11px; }
  .app-shell.workspace-view .desktop-contact-request-list article > button.accept { background: var(--green); color: #ffffff; }
  .app-shell.workspace-view .desktop-contact-manager-grid > button > .lucide { color: var(--subtle); }
  .app-shell.workspace-view .desktop-contact-content-empty { background: transparent; color: var(--muted); }
  .app-shell.workspace-view .desktop-contact-content-empty strong { color: var(--text); font-size: 14px; font-weight: 600; }
  .app-shell.workspace-view .desktop-contact-content-empty span { color: var(--muted); font-size: 12px; }
}

@media (max-width: 720px) {
  .app-shell.workspace-view .mobile-nav { border-color: var(--line); background: var(--surface); box-shadow: none; backdrop-filter: none; }
  .app-shell.workspace-view .mobile-nav button { color: var(--muted); font-size: 11px; font-weight: 500; }
  .app-shell.workspace-view .mobile-nav button.active { color: var(--workspace-accent); }
  .app-shell.workspace-view .mobile-nav .lucide { width: 23px; height: 23px; stroke-width: 1.9; }
  .app-shell.workspace-view .side-header { height: 66px; padding: 12px 16px; }
  .app-shell.workspace-view .side-header h2 { color: var(--text); font-size: 18px; font-weight: 600; }
  .app-shell.workspace-view .search-box { height: 42px; margin: 10px 14px 8px; padding: 0 12px; }
  .app-shell.workspace-view .search-box input { font-size: 16px; }
  .app-shell.workspace-view .search-box > .lucide { width: 18px; height: 18px; }
  .app-shell.workspace-view :is(.conversation-item, .contact-row) { min-height: 72px; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 9px; }
  .app-shell.workspace-view .list-avatar img { width: 44px; height: 44px; border-radius: 8px; }
  .app-shell.workspace-view .item-title { font-size: 14px; font-weight: 600; }
  .app-shell.workspace-view .item-preview { font-size: 12px; }
  .app-shell.workspace-view .conversation-item .unread-badge { top: 6px; left: 40px; min-width: 20px; height: 20px; }
  .app-shell.workspace-view .mobile-conversation-identity > img { border-radius: 8px; box-shadow: none; }
  .app-shell.workspace-view .mobile-conversation-identity h1 { font-weight: 600; }
  .app-shell.workspace-view .page-header { min-height: 64px; gap: 10px; padding: 10px 14px; }
  .app-shell.workspace-view .page-header h1 { font-size: 17px; }
  .app-shell.workspace-view .page-header > button { padding: 7px 10px; font-size: 12px; }
  .app-shell.workspace-view .page-body { width: calc(100% - 24px); padding: 16px 0 28px; }
  .app-shell.workspace-view .contact-hero { flex-wrap: wrap; gap: 8px 12px; }
  .app-shell.workspace-view .contact-hero h2 { font-size: 16px; }
  .app-shell.workspace-view .contact-card { grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 10px; padding: 12px; }
  .app-shell.workspace-view .contact-card img { width: 44px; height: 44px; border-radius: 8px; }
  .app-shell.workspace-view .request-row { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 10px 0; }
  .app-shell.workspace-view .request-row img { width: 38px; height: 38px; border-radius: 8px; }
  .app-shell.workspace-view .request-actions { grid-column: 2; justify-content: flex-end; }
  .app-shell.workspace-view .request-actions :is(.primary, .secondary) { padding: 6px 10px; font-size: 12px; }
  .app-shell.workspace-view .moments-wrap { padding: 0 12px 28px; }
  .app-shell.workspace-view .moment-composer { margin-bottom: 16px; padding: 18px 2px; }
  .app-shell.workspace-view .moment-compose-row { gap: 10px; }
  .app-shell.workspace-view .moment-compose-content textarea { font-size: 16px; }
  .app-shell.workspace-view .moment-card { padding: 14px; }
  .app-shell.workspace-view .moment-author time { font-size: 12px; }
  .app-shell.workspace-view :is(.comment, .moment-likes) { font-size: 13px; }
  .app-shell.workspace-view .comment-form input { font-size: 16px; }
  .app-shell.workspace-view .workspace-empty { padding: 20px; }
}
