/* Seekly 0.9.32 — settings workspace only. Keep app and personal settings untouched. */
#modal.server-manager .sm-manager-shell {
  --sm-polish-radius: 9px;
  --sm-polish-input: var(--pa-n-191a20,#191a20);
  --sm-polish-hover: var(--pa-n-292832,#292832);
}
#modal.server-manager .sm-manager-shell .sm-editor-top {padding:14px 26px 15px}
#modal.server-manager .sm-manager-shell .sm-editor-top h1 {font-size:23px;line-height:1.25}
#modal.server-manager .sm-manager-shell .sm-main:not(.sm-directory)>.sm-body {padding:18px 26px;gap:14px;min-width:0}
#modal.server-manager .sm-manager-shell .sm-main:not(.sm-directory)>.sm-body> :is(.sm-card,.sm-list-search,.sc-clean,.co-settings-shell,.sb-settings,.co-card) {width:100%;max-width:1120px;margin-inline:auto;box-sizing:border-box}
#modal.server-manager .sm-manager-shell .sm-body>.sm-list-search {max-width:1120px;margin-bottom:0}
#modal.server-manager .sm-manager-shell :is(.sm-body>.sm-card,.sm-profile-layout .sm-card) {padding:16px 18px;gap:12px;border-radius:var(--sm-polish-radius)}
#modal.server-manager .sm-manager-shell .sm-card-head {display:grid;gap:4px;margin:0}
#modal.server-manager .sm-manager-shell .sm-card-head h3 {font-size:15px;line-height:1.4;margin:0}
#modal.server-manager .sm-manager-shell .sm-card-head p {font-size:12px;line-height:1.5;margin:0;color:var(--sm-muted)}
#modal.server-manager .sm-manager-shell .sm-form {gap:13px;min-width:0}
#modal.server-manager .sm-manager-shell .sm-form label {min-width:0;font-size:12px;line-height:1.45}
#modal.server-manager .sm-manager-shell .sm-form :is(input:not([type=checkbox],[type=radio],[type=color],[type=range]),select,textarea) {min-width:0;max-width:100%;font-size:13px;border-radius:7px}
#modal.server-manager .sm-manager-shell .sm-form :is(input:not([type=checkbox],[type=radio],[type=color],[type=range],[type=file]),select) {min-height:38px}
#modal.server-manager .sm-manager-shell .sm-form textarea {resize:vertical;line-height:1.55;min-height:76px}
#modal.server-manager .sm-manager-shell .sm-form input[type=file] {padding:6px}
#modal.server-manager .sm-manager-shell .sm-form input[type=file]::file-selector-button {padding:6px 10px;border:1px solid var(--sm-line);border-radius:5px;color:inherit;background:var(--sm-polish-hover);margin-right:9px;cursor:pointer}
#modal.server-manager .sm-manager-shell :is(button,input,select,textarea,summary):focus-visible {outline:2px solid var(--pa-ui-ink,#d28a51);outline-offset:2px}
#modal.server-manager .sm-manager-shell .sm-field-grid {gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
#modal.server-manager .sm-manager-shell .sm-actions {gap:7px;margin-top:2px;flex-wrap:wrap}
#modal.server-manager .sm-manager-shell :is(.sm-actions,.sm-row-actions,.sm-group-head,.sm-media-buttons) button {min-height:32px;padding:6px 11px;font-size:12px;line-height:1.35}
#modal.server-manager .sm-manager-shell .sm-inline-note {font-size:12px;line-height:1.55}
#modal.server-manager .sm-manager-shell .sm-empty {text-align:center;padding:19px 14px;margin:0;border:1px dashed var(--sm-line);border-radius:8px;color:var(--sm-muted);font-size:12px;line-height:1.5}
#modal.server-manager .sm-manager-shell .sm-row {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;min-width:0;flex-wrap:wrap}
#modal.server-manager .sm-manager-shell .sm-row-main {flex:1 1 220px;display:flex;align-items:center;gap:10px;min-width:0;text-align:left}
#modal.server-manager .sm-manager-shell .sm-row-main>div {min-width:0}
#modal.server-manager .sm-manager-shell .sm-row-main b {font-size:13px;line-height:1.45}
#modal.server-manager .sm-manager-shell .sm-row-main small {display:block;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#modal.server-manager .sm-manager-shell .sm-row-actions {display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
#modal.server-manager .sm-manager-shell .sm-row:last-child {border-bottom:0}
#modal.server-manager .sm-manager-shell :is(.sm-list,.co-items) {gap:0}

/* Profile: compact horizontal choice cards, never stacked icon/radio/copy. */
#modal.server-manager .sm-manager-shell .sm-profile-layout {gap:16px;max-width:1160px}
#modal.server-manager .sm-manager-shell .sm-visibility-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#modal.server-manager .sm-manager-shell .sm-form .sm-visibility-option {display:grid;grid-template-columns:32px minmax(0,1fr) 16px;align-items:center;justify-content:initial;text-align:left;min-height:72px;padding:11px;gap:9px;flex-direction:row;border-radius:8px;background:var(--sm-polish-input);cursor:pointer}
#modal.server-manager .sm-manager-shell .sm-visibility-option:has(input:checked) {border-color:var(--pa-ui-ink,#d28a51);background:var(--pa-ui-wash,#332a22)}
#modal.server-manager .sm-manager-shell .sm-choice-icon {display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--sm-line);border-radius:7px;color:var(--pa-ui-ink,#d28a51)}
#modal.server-manager .sm-manager-shell .sm-choice-copy {display:grid;gap:3px;min-width:0}
#modal.server-manager .sm-manager-shell .sm-choice-copy b {font-size:12px;line-height:1.4}
#modal.server-manager .sm-manager-shell .sm-choice-copy small {font-size:11px;line-height:1.4}
#modal.server-manager .sm-manager-shell .sm-visibility-option input {width:16px;height:16px;min-width:16px;margin:0}
#modal.server-manager .sm-manager-shell .sm-preview-column {gap:12px}
#modal.server-manager .sm-manager-shell .sm-preview-note {padding:12px;border-radius:8px}
#modal.server-manager .sm-manager-shell .sm-artwork-banner {min-height:110px;max-height:180px}
#modal.server-manager .sm-manager-shell .sm-artwork-row {gap:12px}
#modal.server-manager .sm-manager-shell .sm-profile-save {padding:10px 26px}

/* Summary: compact metrics with optional detailed permissions. */
#modal.server-manager .sm-manager-shell .sm-stats-wide {grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px}
#modal.server-manager .sm-manager-shell .sm-stats-wide>div {padding:14px;min-height:82px;border-radius:8px}
#modal.server-manager .sm-manager-shell .sm-stats-wide strong {font-size:25px}
#modal.server-manager .sm-manager-shell .sm-stats-wide>div>svg {top:12px;right:12px}
#modal.server-manager .sm-manager-shell .sm-shortcuts {gap:8px}
#modal.server-manager .sm-manager-shell .sm-shortcuts button {padding:10px;min-height:64px;text-align:left}
#modal.server-manager .sm-manager-shell .sm-summary-details summary {cursor:pointer;padding:10px 12px;border:1px solid var(--sm-line);border-radius:7px;font-size:13px;font-weight:600;background:var(--sm-polish-input)}
#modal.server-manager .sm-manager-shell .sm-summary-details[open] .sm-access-summary {margin-top:8px}
#modal.server-manager .sm-manager-shell .sm-access-summary>div {padding:9px 0;gap:10px}

/* Organization and people: readable rows with stable action clusters. */
#modal.server-manager .sm-manager-shell .sm-channel-group {border:1px solid var(--sm-line);border-radius:8px;padding:0 12px;margin-top:4px;overflow:hidden}
#modal.server-manager .sm-manager-shell .sm-group-head {display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px 0}
#modal.server-manager .sm-manager-shell .sm-group-head>b {flex:1;min-width:120px;font-size:13px}
#modal.server-manager .sm-manager-shell .sm-group-count {font-size:11px;color:var(--sm-muted);margin-left:4px;font-weight:400}
#modal.server-manager .sm-manager-shell .sm-channel-icon {display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:7px;background:var(--sm-polish-input);color:var(--sm-muted)}
#modal.server-manager .sm-manager-shell .sm-channel-copy {min-width:0}
#modal.server-manager .sm-manager-shell[data-sm-screen=channels] .sm-channel-group>.sm-empty {margin:8px 0}
#modal.server-manager .sm-manager-shell[data-sm-screen=members] .sm-row-main {flex-basis:230px}
#modal.server-manager .sm-manager-shell[data-sm-screen=invites] .sm-invite {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#modal.server-manager .sm-manager-shell[data-sm-screen=invites] .sm-invite input {flex:1;min-width:150px;min-height:38px}

/* Appearance and onboarding retain previews and all existing controls. */
#modal.server-manager .sm-manager-shell .sc-clean .sc-flat {padding:16px 18px;border:1px solid var(--sm-line);border-radius:9px;background:var(--sm-surface);margin:0}
#modal.server-manager .sm-manager-shell .sc-clean .sc-fieldset {display:grid;gap:14px;min-width:0}
#modal.server-manager .sm-manager-shell .sc-clean .sc-theme-grid {gap:10px}
#modal.server-manager .sm-manager-shell .sc-clean .sc-theme-choice {padding:10px;gap:7px;border-radius:8px;text-align:left}
#modal.server-manager .sm-manager-shell .sc-clean .sc-switch-row {display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;text-align:left}
#modal.server-manager .sm-manager-shell .co-settings-shell .co-form :is(.co-role-option,.ob-checkbox,.ob-recommend-option) {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:8px}
#modal.server-manager .sm-manager-shell .co-settings-shell .co-form .co-toggle {text-align:left}
#modal.server-manager .sm-manager-shell .co-settings-shell .co-form :is(input:not([type=checkbox],[type=radio]),select,textarea) {border-radius:7px;min-width:0}
#modal.server-manager .sm-manager-shell .co-settings-shell .co-form :is(.co-role-option,.ob-recommend-option) {min-height:38px;padding:8px 10px}

/* Role editor: keep hierarchy, permission switches, previews and member tools. */
#modal.server-manager .sm-manager-shell .rs-simple .rs-library {padding:14px 12px}
#modal.server-manager .sm-manager-shell .rs-simple .rs-role {padding:9px 8px;border-radius:7px;min-height:40px;text-align:left}
#modal.server-manager .sm-manager-shell .rs-simple .rs-scroll {padding:16px 22px}
#modal.server-manager .sm-manager-shell .rs-simple .rs-flat-section {padding:15px 0;gap:12px}
#modal.server-manager .sm-manager-shell .rs-simple .rs-permission-row {display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-align:left;padding:10px 0;gap:12px}
#modal.server-manager .sm-manager-shell .rs-simple .rs-permission-copy {flex:1;min-width:0}
#modal.server-manager .sm-manager-shell .rs-simple .rs-member-row {padding:10px 0;gap:8px}
#modal.server-manager .sm-manager-shell .rs-simple .rs-perm-heading {padding:10px 0}
#modal.server-manager .sm-manager-shell .rs-simple .rs-group-icon-option {padding:8px;border-radius:7px}

/* Media: collection tiles, compact uploader, consistent action controls. */
#modal.server-manager .sm-manager-shell[data-sm-screen=emojis] .sm-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:8px}
#modal.server-manager .sm-manager-shell[data-sm-screen=emojis] .sm-list>.sm-row {border:1px solid var(--sm-line);border-radius:8px;padding:10px;gap:8px}
#modal.server-manager .sm-manager-shell[data-sm-screen=emojis] .sm-list>.sm-row .sm-row-main {flex:1 1 105px}
#modal.server-manager .sm-manager-shell[data-sm-screen=emojis] .sm-custom-img {width:32px;height:32px;object-fit:contain}
#modal.server-manager .sm-manager-shell[data-sm-screen=emojis] .sm-list>.sm-empty {grid-column:1/-1}
#modal.server-manager .sm-manager-shell .sc-sticker-grid {grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
#modal.server-manager .sm-manager-shell .sc-sticker {padding:11px;gap:8px;border-radius:8px}
#modal.server-manager .sm-manager-shell .sc-sticker-grid>.sm-empty {grid-column:1/-1}
#modal.server-manager .sm-manager-shell .sb-settings .sb-upload {padding:14px;gap:10px;border-radius:8px}
#modal.server-manager .sm-manager-shell .sb-settings .sb-row {padding:10px;gap:10px;border-radius:8px}

/* Safety, records and ownership: clear labels, compact settings and quiet danger boundaries. */
#modal.server-manager .sm-manager-shell .sm-permissions label {display:flex;flex-direction:row;justify-content:space-between;align-items:center;text-align:left;padding:10px 0;gap:14px}
#modal.server-manager .sm-manager-shell .sm-permissions label>div {flex:1;min-width:0}
#modal.server-manager .sm-manager-shell .sm-safety-fields label {display:flex;flex-direction:column;justify-content:flex-end;gap:5px}
#modal.server-manager .sm-manager-shell[data-sm-screen=automod] .sm-form h3 {margin:6px 0 0;font-size:14px;padding-top:12px;border-top:1px solid var(--sm-line)}
#modal.server-manager .sm-manager-shell[data-sm-screen=automod] [data-sm-form=automod-lockdown] {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
#modal.server-manager .sm-manager-shell[data-sm-screen=ownership] .sm-card:has([data-sm-form=delete-server]) {border-color:var(--pa-n-70404a,#70404a)}
#modal.server-manager .sm-manager-shell[data-sm-screen=ownership] .sm-card:has([data-sm-form=delete-server]) h3 {color:var(--pa-n-f19ba7,#f19ba7)}
#modal.server-manager .sm-manager-shell[data-sm-screen=ownership] .sm-form {max-width:620px}
#modal.server-manager .sm-manager-shell[data-sm-screen=ownership] .sm-actions {justify-content:flex-start}

/* Keep settings usable in a small desktop window or narrow browser. */
@media(max-width:1050px) {
 #modal.server-manager .sm-manager-shell .sm-visibility-options {grid-template-columns:1fr}
}
@media(max-width:760px) {
 #modal.server-manager .sm-manager-shell .sm-main:not(.sm-directory)>.sm-body {padding:12px;gap:11px}
 #modal.server-manager .sm-manager-shell .sm-editor-top {padding:12px}
 #modal.server-manager .sm-manager-shell :is(.sm-body>.sm-card,.sm-profile-layout .sm-card) {padding:13px}
 #modal.server-manager .sm-manager-shell .sm-profile-save {padding:10px 12px}
 #modal.server-manager .sm-manager-shell .sm-field-grid {grid-template-columns:1fr}
 #modal.server-manager .sm-manager-shell .sm-row-main {flex-basis:100%}
 #modal.server-manager .sm-manager-shell .sm-row-actions {justify-content:flex-start}
 #modal.server-manager .sm-manager-shell[data-sm-screen=automod] [data-sm-form=automod-lockdown] {grid-template-columns:1fr}
 #modal.server-manager .sm-manager-shell .rs-simple .rs-scroll {padding:12px}
 #modal.server-manager .sm-manager-shell .sb-settings .sb-upload {grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce) {
 #modal.server-manager .sm-manager-shell * {scroll-behavior:auto;transition-duration:0s!important;animation-duration:0s!important}
}
#modal.server-manager .sm-manager-shell .co-settings-shell :is(.co-panel,.co-side-card) {padding:15px 17px;border-radius:9px;border-color:var(--sm-line);background:var(--sm-surface)}
#modal.server-manager .sm-manager-shell .co-settings-shell .co-panel-head {margin-bottom:12px;gap:10px}
#modal.server-manager .sm-manager-shell .co-settings-shell .co-panel-fields {gap:11px}
#modal.server-manager .sm-manager-shell .co-settings-shell .co-panel-head h3 {font-size:15px}
#modal.server-manager .sm-manager-shell .co-items>.co-card {padding:12px}
#modal.server-manager .sm-manager-shell :is(.sm-row-actions time,.sm-row-main small) {color:var(--sm-muted);font-size:11px}
