#sharedFolderTabs[hidden], #sharedFoldersPanel[hidden], #remoteMountsPanel[hidden], .shared-folder-modal [hidden] { display: none !important; }
.shared-folder-tabs { flex: 0 0 auto; margin: 10px 12px 0; align-self: flex-start; }
.shared-folders-panel { min-height: 0; flex: 1; }
.shared-folder-status { margin: 8px 12px; font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.shared-folder-status.is-error { color: var(--error); }
.shared-folder-card { min-height: 68px; }
.shared-folder-card-actions { width: 78px; min-width: 78px; }
.shared-folder-card-actions .remote-mount-card-actions-row { grid-template-columns: repeat(3, 24px); width: 78px; }
.shared-folder-card-actions .remote-mount-card-actions-primary { min-height: 24px; }
.shared-folder-card-actions .remote-mount-card-actions-secondary { min-height: 24px; }
.shared-folder-card-actions .remote-mount-card-new-session { grid-column: 2; }
.shared-folder-card-actions .remote-mount-card-more { grid-column: 3; }
.shared-folder-state-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--control-selected-bg); color: var(--accent); font-size: 10px; }
.shared-folder-state-badge[aria-label] { cursor: help; }
.shared-folder-card .remote-mount-card-main { grid-row: 1 / span 2; }
.shared-folder-card .remote-mount-tree[hidden], #sharedFoldersSearchClear[hidden] { display: none !important; }
#sharedFoldersSearchClear:not([hidden]) { display: inline-block; }
.shared-folder-card .remote-tree-row > span { flex: 1; min-width: 0; }
.shared-folder-modal { z-index: 1100; }
.shared-folder-content { width: 460px; max-width: calc(100vw - 24px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 0; border-radius: 8px; }
.shared-folder-wide .shared-folder-content { width: 760px; height: min(650px, calc(100vh - 32px)); }
.shared-folder-content .modal-header { flex: 0 0 auto; padding: 12px 16px; gap: 12px; }
.shared-folder-content .modal-header h2 { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; color: var(--text-primary); }
.shared-folder-content .modal-header { margin-bottom: 0; }
.shared-folder-content .remote-tools-error { margin: 12px 16px 0; }
.shared-folder-body { padding: 16px; overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; font-size: 13px; color: var(--text-primary); align-items: stretch; }
.shared-folder-body p { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.shared-folder-field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.shared-folder-content input, .shared-folder-editor { box-sizing: border-box; min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text-primary); font: inherit; letter-spacing: 0; }
.shared-folder-content input:focus, .shared-folder-editor:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px var(--accent-soft-bg); }
.shared-folder-meta { color: var(--text-muted); font-size: 12px; }
.shared-folder-presence { flex: 0 0 auto; padding: 6px 8px; border-left: 2px solid var(--warning); background: var(--warning-soft-bg); color: var(--warning); font-size: 12px; overflow-wrap: anywhere; }
.shared-folder-presence.is-unavailable { color: var(--text-secondary); border-color: var(--border); background: var(--bg-secondary); }
.shared-folder-code { font-family: var(--font-mono) !important; font-size: 13px !important; }
.shared-folder-footer { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); }
.shared-folder-footer > button { width: auto; padding: 8px 14px; font: 13px var(--font-ui); border-radius: var(--radius-sm); cursor: pointer; }
.shared-folder-secondary { border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-secondary); }
.shared-folder-footer button:disabled { opacity: .55; cursor: wait; }
.shared-folder-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); cursor: pointer; }
.shared-folder-icon:hover { background: var(--control-hover-bg); color: var(--accent); }
.shared-folder-icon:focus-visible { outline: 2px solid var(--accent); }
.shared-folder-icon:disabled { opacity: .45; cursor: default; }
.shared-folder-member { display: flex; align-items: center; gap: 8px; min-width: 0; }
.shared-folder-path { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text-secondary); font-size: 12px; }
.shared-folder-member { justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.shared-folder-editor { flex: 1 1 0; height: 0; min-height: 220px; resize: none; font: 13px/1.6 var(--font-mono); background: var(--bg-code); tab-size: 4; }
.shared-folder-body > .shared-folder-path { flex: 0 0 auto; }
.shared-folder-member .text-btn { color: var(--error); border: 0; background: transparent; cursor: pointer; }
.performance-mode .shared-folder-content input:focus, .performance-mode .shared-folder-editor:focus { box-shadow: none; }
@media (max-width: 600px) {
    .shared-folder-body { padding: 12px; }
    .shared-folder-footer > button { white-space: normal; overflow-wrap: anywhere; }
}
