/* Server Settings / Channel Settings: the classic full-screen settings layout (measured from the live client). */
.ss-layer { position: fixed; inset: 0; z-index: 76; display: flex; background: var(--bg-base-lowest); animation: ss-in 0.2s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes ss-in { from { opacity: 0; transform: scale(1.04); } }
.ss-side { flex: 1 0 264px; display: flex; justify-content: flex-end; min-width: 0; background: var(--bg-base-lowest); }
.ss-side-scroll { height: 100%; display: flex; justify-content: flex-end; align-items: flex-start; overflow-y: auto; }
.ss-nav { flex: none; width: 264px; padding: 60px 6px 60px 20px; }
.ss-tabs { display: flex; flex-direction: column; }
.ss-header { height: 30px; padding: 6px 10px; overflow: hidden; }
.ss-header.first { height: 24px; padding: 0 10px 6px; }
.ss-eyebrow { color: var(--text-channels); font-size: 14px; font-weight: 500; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-header.ch { display: flex; align-items: center; min-width: 0; }
.ss-h-ch { display: flex; align-items: center; gap: 2px; min-width: 0; color: var(--text-channels); font-size: 14px; font-weight: 500; line-height: 18px; }
.ss-h-ch .ch-ic, .ss-h-ch .ch-ic > svg { width: 16px; height: 16px; }
.ss-h-ch > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-h-cat { flex: none; margin-left: 4px; color: var(--text-default); font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.ss-item { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 2px; padding: 6px 10px; border-radius: 4px; color: var(--text-subtle); font-size: 16px; font-weight: 500; line-height: 20px; cursor: pointer; user-select: none; }
.ss-item-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-item:hover { background: var(--interactive-bg-hover); color: var(--text-default); }
.ss-item.selected { background: var(--interactive-bg-selected); color: var(--text-strong); cursor: default; }
.ss-item.danger { color: #f87e7a; }
.ss-item.danger:hover { background: rgba(210, 45, 57, 0.08); }
.ss-item .ic { flex: none; }
.ss-sep { flex: none; height: 1px; margin: 8px 10px; background: var(--border-subtle); }

.ss-content { position: relative; flex: 1 1 800px; min-width: 0; display: flex; background: var(--bg-base-low); }
.ss-scroll { flex: 1; min-width: 0; display: flex; align-items: flex-start; overflow-y: scroll; }
.ss-column { flex: 0 1 740px; max-width: 740px; min-width: 460px; padding: 60px 40px 80px; }
.ss-column.minimal { padding: 0 40px 0 0; }
.ss-column.role-edit { padding: 0; }
.ss-tools { flex: none; align-self: stretch; width: 36px; margin-right: 21px; }
.ss-tools-in { position: sticky; top: 60px; display: flex; flex-direction: column; align-items: center; margin-top: 60px; }
.ss-close { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--icon-subtle); border-radius: 50%; color: var(--icon-subtle); }
.ss-close:hover { background: var(--interactive-bg-hover); border-color: var(--text-strong); color: var(--text-strong); }
.ss-keybind { margin-top: 6px; color: var(--icon-subtle); font-size: 12px; font-weight: 600; line-height: 16px; }
.pe-savebar.ss-savebar { top: auto; bottom: 20px; left: 40px; width: 660px; margin: 0; z-index: 3; }

/* shared form pieces */
.ss-h2 { color: var(--text-strong); font-size: 20px; font-weight: 600; line-height: 24px; }
.ss-h2.m500 { margin-bottom: 24px; font-weight: 500; }
.ss-head { margin-bottom: 20px; }
.ss-head.tight { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ss-sub { margin-top: 8px; color: var(--text-default); font-size: 14px; font-weight: 400; line-height: 18px; }
.ss-body { color: var(--text-default); font-size: 16px; font-weight: 400; line-height: 20px; }
.ss-h3 { color: var(--text-strong); font-size: 16px; font-weight: 600; line-height: 20px; }
.ss-hint { color: var(--text-subtle); font-size: 14px; font-weight: 400; line-height: 18px; }
.ss-hint.xs { margin: -20px 0 16px; font-size: 12px; line-height: 16px; }
.ss-stack { display: flex; flex-direction: column; gap: 24px; }
.ss-stack.gap20 { gap: 20px; }
.ss-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ss-field { display: grid; }
.ss-label-box { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ss-label { display: flex; align-items: center; color: var(--text-strong); font-size: 16px; font-weight: 500; line-height: 20px; }
.ss-label .ic { margin-right: 4px; }
.ss-label .req { margin-left: 4px; color: #f87e7a; font-weight: 400; }
.ss-desc { color: var(--text-subtle); font-size: 14px; font-weight: 400; line-height: 18px; }
.ss-field.inline { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; }
.ss-field.inline .ss-label-box { margin: 0; }
.ss-inline-control { display: flex; justify-content: flex-end; }
.ss-input-wrap { display: flex; align-items: center; gap: 4px; min-width: 0; height: 40px; border: 1px solid var(--border-normal); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.122); }
.ss-input-wrap:focus-within { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -2px; }
.ss-input-wrap.lead { padding-left: 4px; }
.ss-input-wrap.trail { padding-right: 4px; }
.ss-input-wrap.area { height: auto; }
.ss-input-wrap.sm { width: 250px; height: 32px; }
.ss-input-lead { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: var(--text-default); }
.ss-input-lead[role="button"] { color: var(--icon-subtle); cursor: pointer; }
.ss-input-lead[role="button"]:hover { color: var(--text-strong); }
.ss-input-lead .emoji { width: 18px; height: 18px; margin: 0; vertical-align: 0; }
.ss-input-wrap.sm .ss-input-lead { width: 22px; height: 22px; }
.ss-input-trail { flex: none; display: grid; place-items: center; width: 32px; height: 30px; color: var(--icon-subtle); cursor: pointer; }
.ss-input-trail:hover { color: var(--text-strong); }
.ss-input { flex: 1; width: 100%; min-width: 0; height: 38px; padding: 1px 12px; border: 0; background: none; color: var(--text-default); font: 400 16px/20px var(--font); outline: none; }
.ss-input::placeholder, .ss-textarea::placeholder { color: var(--text-input-placeholder); }
.ss-input-wrap.lead .ss-input { padding-left: 0; }
.ss-input-wrap.sm .ss-input { height: 30px; font-size: 14px; line-height: 18px; }
.ss-input.sm { height: 32px; border: 1px solid var(--border-normal); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.122); font-size: 14px; }
.ss-textarea { display: block; width: 100%; min-height: 87px; padding: 12px 10px; border: 0; background: none; color: var(--text-default); font: 400 16px/20px var(--font); resize: none; outline: none; }
.ss-divider { flex: none; height: 1px; background: rgba(151, 151, 159, 0.439); }
.ss-divider.wide { margin: 32px 0; background: var(--border-subtle); }
.ss-divider.s24, .ss-divider.flat { margin: 24px 0; background: var(--border-subtle); }
.ss-select { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-normal); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.122); color: var(--text-strong); font: 400 16px/20px var(--font); text-align: left; }
.ss-select-v { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-select .ic { flex: none; margin-right: -4px; transition: transform 0.15s ease-out; }
.ss-select.open { border-color: var(--brand); }
.ss-select.open .ic { transform: rotate(180deg); }
.ss-select-pop .st-select-opt { justify-content: space-between; }
.ss-opt-check { display: flex; margin-left: auto; color: var(--brand); }
.ss-game-ic { width: 24px; height: 32px; border-radius: 4px; object-fit: cover; }
.ss-pop-empty { padding: 12px; color: var(--text-muted); font-size: 14px; }
.ss-link-btn { color: var(--text-link); font-size: 14px; font-weight: 500; line-height: 18px; }
.ss-link-btn:hover { text-decoration: underline; }
.ss-link-btn.danger { color: #f87e7a; }
.ss-file { position: relative; overflow: hidden; cursor: pointer; }
.ss-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ss-buttons { display: flex; align-items: center; gap: 16px; }
.pf-btn.danger { border-color: rgba(255, 255, 255, 0.08); background: var(--badge-red); color: #fff; }
.pf-btn.danger:hover { background: #b3242f; }
.pf-btn.danger-text { color: #f87e7a; }
.ss-cb { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(151, 151, 159, 0.64); border-radius: 4px; background: rgba(0, 0, 0, 0.08); color: #fff; cursor: pointer; }
.ss-cb.on { border-color: var(--brand); background: var(--brand); }
.ss-x, .ss-circle { flex: none; display: grid; place-items: center; color: var(--icon-subtle); }
.ss-x:hover, .ss-circle:hover { color: var(--text-strong); }
.ss-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-surface-high); }
.ss-empty-note { margin-top: 20px; color: var(--text-muted); font-size: 16px; line-height: 20px; }
.ss-empty-note h2 { margin-bottom: 8px; font-size: 20px; font-weight: 600; line-height: 24px; }
.ss-empty-note.center { padding: 40px 0; text-align: center; }
.ss-empty-note a { color: var(--text-link); text-decoration: none; }
.ss-eyebrow-sm { color: var(--text-muted); font-size: 14px; font-weight: 500; line-height: 18.67px; }

/* Server Profile */
.ss-profile { flex: none; display: flex; gap: 40px; padding: 60px 40px 100px; }
.ss-left { width: 560px; display: flex; flex-direction: column; gap: 40px; }
.ss-right { flex: none; width: 300px; align-self: stretch; }
.ss-preview-wrap { position: sticky; top: 60px; }
.ss-profile-desc { margin-top: 8px; color: var(--text-default); font-size: 14px; font-weight: 500; line-height: 18px; }
.ss-banners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ss-banner { position: relative; height: 64px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background-size: cover; cursor: pointer; }
.ss-banner-ring { position: absolute; inset: -4px; border: 1px solid #7487f8; border-radius: 10px; pointer-events: none; }
.ss-traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-legend { margin-bottom: 4px; color: var(--text-strong); font-size: 20px; font-weight: 500; line-height: 24px; }
.ss-games-desc { margin-bottom: 16px; color: var(--text-default); font-size: 14px; font-weight: 400; line-height: 18px; }
.ss-chev { flex: none; display: grid; place-items: center; width: 36px; color: var(--text-strong); }
.ss-game-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ss-game-chips:empty { display: none; }
.ss-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 4px; border-radius: var(--radius-sm); background: var(--bg-mod-subtle); color: var(--text-strong); font-size: 14px; font-weight: 500; }
.ss-chip img { width: 18px; height: 24px; border-radius: 3px; object-fit: cover; }
.ss-chip button { display: flex; color: var(--icon-subtle); }
.ss-chip button:hover { color: var(--text-strong); }
.ss-two { display: flex; gap: 32px; }
.ss-col { width: 264px; }
.ss-col .ss-field.inline .ss-label-box { width: 192px; }
.ss-card { display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 16px; background: #2c2d32; }
.ss-card.preview { width: 300px; }
.ss-card.mini { width: 264px; }
.ss-card-banner { width: 100%; height: 120px; background-size: cover; }
.ss-card-av { height: 70px; margin-top: -34px; padding: 0 16px; }
.ss-pv-icon { display: grid; place-items: center; width: 70px; height: 70px; border: 4px solid #2c2d32; border-radius: 22px; object-fit: cover; background: #2c2d32; }
.ss-pv-icon.acronym { background: var(--bg-base-lowest); color: var(--text-strong); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.ss-card-head { width: 100%; margin: 8px 0; padding: 0 16px; }
.ss-card-head h2 { color: var(--text-strong); font-size: 16px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-card-head h2.lg { font-size: 20px; font-weight: 500; line-height: 24px; }
.ss-card-members { display: flex; gap: 0 8px; color: var(--text-subtle); font-size: 14px; line-height: 18px; }
.ss-card-members span { display: flex; align-items: center; gap: 4px; }
.ss-card-members .dot { width: 8px; height: 8px; border-radius: 50%; background: #9d9ea5; }
.ss-card-members .dot.on { background: #3d9e60; }
.ss-card-est { color: var(--text-subtle); font-size: 14px; line-height: 18px; }
.ss-card-body { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-bottom: 16px; padding: 0 16px; color: var(--text-subtle); font-size: 14px; line-height: 18px; }
.ss-card-desc { color: var(--text-default); white-space: pre-wrap; overflow-wrap: anywhere; }
.ss-card-traits { display: flex; flex-wrap: wrap; gap: 4px; }
.ss-card-traits span { padding: 2px 8px; border-radius: 12px; background: var(--bg-mod-subtle); color: var(--text-strong); font-size: 12px; font-weight: 500; line-height: 16px; }
.ss-card-empty { height: 8px; }

/* Emoji */
.ss-uploader { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 4px; padding-bottom: 24px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04); }
.ss-req { color: var(--text-default); font-size: 12px; line-height: 16px; }
.ss-eyebrow-row { margin-bottom: 8px; color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; text-transform: uppercase; }
.ss-emoji-head, .ss-emoji-row { display: grid; grid-template-columns: 64px 1fr 200px 24px; align-items: center; gap: 16px; }
.ss-emoji-head { padding: 0 8px 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 12px; font-weight: 600; line-height: 16px; text-transform: uppercase; }
.ss-emoji-row { height: 56px; padding: 0 8px; border-bottom: 1px solid var(--border-subtle); }
.ss-emoji-row img { width: 32px; height: 32px; object-fit: contain; }
.ss-emoji-by { display: flex; align-items: center; gap: 8px; color: var(--text-default); font-size: 14px; }
.ss-emoji-row .ss-x { opacity: 0; }
.ss-emoji-row:hover .ss-x { opacity: 1; }

/* Members */
.ss-members { flex: 0 1 1200px; min-width: 700px; padding: 60px 0 60px 40px; }
.ss-mhead { padding: 8px; }
.ss-table-wrap { display: flex; flex-direction: column; gap: 24px; padding: 8px; }
.ss-table-wrap > .ss-field { margin-top: 16px; }
.ss-table-wrap > .ss-field .ss-desc { max-width: 572px; }
.ss-mtable { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--bg-base-lower); }
.ss-mtable-top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 8px 12px; }
.ss-mtable-title { flex: 1; color: var(--text-strong); font-size: 16px; font-weight: 500; line-height: 20px; }
.ss-table { width: 100%; padding: 0 8px 8px; border-top: 1px solid var(--border-subtle); border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ss-table th { padding: 8px 8px 16px; color: var(--text-default); font-size: 14px; font-weight: 500; line-height: 18px; text-align: left; vertical-align: middle; }
.ss-table th .ss-cb, .ss-table td .ss-cb { opacity: 0.5; }
.ss-table .xs { width: 36px; }
.ss-table .name { width: 239.6px; }
.ss-table .act { width: auto; }
.ss-th { display: flex; align-items: center; gap: 4px; }
.ss-th-f { flex: none; display: flex; padding: 2px; color: var(--icon-subtle); }
.ss-th-f .ic { transform: rotate(90deg); }
.ss-table td.strong { color: var(--text-strong); font-weight: 500; }
.ss-row-acts { display: flex; justify-content: flex-end; gap: 4px; }
.ss-mtable-foot { padding: 12px 16px; border-top: 1px solid var(--border-subtle); color: var(--text-subtle); font-size: 14px; line-height: 18px; }
.ss-mtable-foot strong { color: var(--text-strong); font-weight: 600; }
.ss-table .sm { width: 122px; }
.ss-table .md { width: 238px; }
.ss-table td { padding: 8px; color: var(--text-default); font-size: 14px; line-height: 18px; vertical-align: middle; }
.ss-mrow:hover td { background: rgba(151, 151, 159, 0.06); }
.ss-mrow td:first-child { border-radius: 8px 0 0 8px; }
.ss-mrow td:last-child { border-radius: 0 8px 8px 0; }
.ss-mname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ss-mname .n { display: flex; align-items: center; color: var(--text-strong); font-size: 16px; font-weight: 500; line-height: 20px; }
.ss-mname .u { color: var(--text-subtle); font-size: 12px; line-height: 16px; }
.ss-join { color: var(--text-muted); }
.ss-role-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ss-role-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px; border-radius: 4px; background: var(--bg-mod-subtle); color: var(--text-strong); font-size: 12px; font-weight: 500; }
.ss-role-chip i { width: 10px; height: 10px; border-radius: 50%; }
.ss-role-chip button { display: none; color: var(--icon-subtle); }
.ss-role-chip:hover button { display: flex; }
.ss-role-add { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; background: var(--bg-mod-subtle); color: var(--icon-subtle); }
.ss-role-add:hover { color: var(--text-strong); }
.ss-more { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--icon-subtle); }
.ss-more:hover { background: var(--bg-mod-subtle); color: var(--text-strong); }
.ss-table td.ss-td-empty { padding: 24px 8px; color: var(--text-muted); text-align: center; }

/* Roles */
.ss-roles-intro { width: 563px; margin: 60px 97px 0 40px; padding-bottom: 80px; }
.ss-roles-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ss-hero-art { width: 288px; height: 192px; margin: 12px 0 32px; }
.ss-hero-t { color: var(--text-strong); font-size: 24px; font-weight: 600; line-height: 32px; }
.ss-hero-b { margin: 8px 0 16px; color: var(--text-default); font-size: 16px; line-height: 20px; }
.ss-default-perms { display: flex; align-items: center; height: 74px; padding: 16px 24px 16px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--bg-surface-high); color: var(--text-subtle); cursor: pointer; }
.ss-default-perms:hover { background: #2a2a30; }
.ss-default-perms > .ic { flex: none; }
.ss-default-perms > div.ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-base-low); }
.ss-default-perms .t { flex: 1; min-width: 0; margin-left: 16px; }
.ss-default-perms .l { margin-bottom: 4px; font-size: 16px; font-weight: 600; line-height: 20px; }
.ss-default-perms .d { font-size: 12px; line-height: 16px; }
.ss-roles-bar { display: flex; gap: 16px; margin: 24px 0 8px; }
.ss-roles-bar .ss-input-wrap { flex: 1; }
.ss-roles-hint { margin-bottom: 16px; color: var(--text-subtle); font-size: 14px; line-height: 18px; }
.ss-roles-th { display: flex; justify-content: space-between; padding: 0 140px 8px 8px; border-bottom: 1px solid var(--border-subtle); color: var(--text-subtle); font-size: 12px; font-weight: 600; line-height: 16px; text-transform: uppercase; }
.ss-role-row { display: flex; align-items: center; height: 60px; padding: 0 8px; border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
.ss-role-row:hover { background: rgba(151, 151, 159, 0.06); }
.ss-role-shield { flex: none; display: flex; }
.ss-role-name { flex: 1; min-width: 0; margin-left: 12px; color: var(--text-strong); font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-role-count { display: flex; align-items: center; gap: 4px; width: 60px; margin-right: 24px; color: var(--text-subtle); font-size: 14px; }
.ss-role-acts { display: flex; gap: 8px; }
.ss-role-page { display: flex; width: 700px; min-height: 100%; }
.ss-role-side { position: sticky; top: 0; flex: none; display: flex; flex-direction: column; width: 232px; height: 100vh; border-right: 1px solid var(--border-subtle); }
.ss-role-side-top { display: flex; align-items: center; justify-content: space-between; margin: 0 8px 8px 16px; padding: 60px 8px 16px; }
.ss-back { display: flex; align-items: center; gap: 8px; color: var(--text-default); font-size: 16px; font-weight: 600; line-height: 20px; cursor: pointer; }
.ss-back:hover { color: var(--text-strong); }
.ss-add-role { display: flex; color: var(--text-strong); cursor: pointer; }
.ss-role-list { flex: 1; min-height: 0; padding: 0 16px 96px 40px; overflow-y: auto; }
.ss-role-item { display: flex; align-items: center; gap: 4px; height: 34px; margin: 0 0 2px -6px; padding: 6px 10px; border-radius: 4px; color: var(--text-strong); cursor: pointer; }
.ss-role-item:hover { background: var(--interactive-bg-hover); }
.ss-role-item.selected { background: var(--interactive-bg-selected); }
.ss-role-dot { flex: none; display: inline-block; width: 12px; height: 12px; margin: 0 4px; border-radius: 50%; }
.ss-role-dot.menu { margin: 4px; align-self: center; }
.ss-role-item-t { min-width: 0; font-size: 14px; font-weight: 500; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-role-main { flex: none; width: 468px; padding: 0 42px 60px 24px; }
.ss-role-sticky { position: sticky; top: 0; z-index: 2; margin: 0 -8px 16px; padding: 60px 8px 16px; background: var(--bg-base-low); }
.ss-role-title { display: flex; justify-content: space-between; margin-bottom: 24px; }
.ss-role-title h2 { min-width: 0; color: var(--text-strong); font-size: 16px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-role-menu { flex: none; display: flex; margin: -2px 0 0 16px; color: var(--text-strong); cursor: pointer; }
.ss-tabbar { display: flex; margin-top: 22px; border-bottom: 2px solid var(--border-subtle); }
.ss-tab { margin: 0 32px -2px 0; padding: 0 0 16px; border-bottom: 2px solid transparent; color: var(--text-subtle); font-size: 14px; font-weight: 600; line-height: 14px; white-space: nowrap; cursor: pointer; }
.ss-tab + .ss-tab { margin-left: 24px; }
.ss-tab:hover { color: var(--text-default); }
.ss-tab.selected { border-bottom-color: #798df9; color: #798df9; }
.ss-swatches { display: flex; gap: 10px; }
.ss-swatch { position: relative; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid transparent; border-radius: 8px; color: #fff; cursor: pointer; }
.ss-swatch.big { width: 66px; height: 50px; }
.ss-swatch.custom { border-color: rgba(255, 255, 255, 0.08); }
.ss-swatch.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ss-dropper { position: absolute; right: 5px; top: 5px; display: flex; color: var(--text-strong); }
.ss-swatch-grid { display: grid; grid-template-columns: repeat(10, 20px); gap: 10px; }
.ss-perm-search { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.ss-perm-search .ss-input-wrap { flex: 1; }
.ss-perm-group { margin: 24px 0 16px; color: var(--text-subtle); font-size: 12px; font-weight: 700; line-height: 16px; text-transform: uppercase; }
.ss-perm .ss-label-box { max-width: 370px; }
.ss-rm-list { display: flex; flex-direction: column; margin-top: 8px; }
.ss-rm-row { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px; border-radius: 4px; }
.ss-rm-row:hover { background: var(--interactive-bg-hover); }
.ss-rm-row .n { color: var(--text-strong); font-size: 14px; font-weight: 500; }
.ss-rm-row .u { flex: 1; color: var(--text-subtle); font-size: 12px; }
.ss-am-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.ss-am-row { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; border-radius: 4px; cursor: pointer; }
.ss-am-row:hover { background: var(--interactive-bg-hover); }
.ss-am-row .n { color: var(--text-strong); font-size: 16px; font-weight: 500; }
.ss-am-row .u { flex: 1; color: var(--text-subtle); font-size: 12px; }
.pfm-sub .ss-role-dot { margin: 0 2px 0 0; }

/* Invites */
.ss-inv-head { padding-bottom: 40px; }
.ss-subhead { margin-top: 8px; color: var(--text-default); font-size: 16px; font-weight: 500; line-height: 20px; }
.ss-inv-actions { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; }
.ss-btn-row { display: flex; gap: 8px; }
.ss-inv-th, .ss-inv-tr { display: flex; align-items: center; }
.ss-inv-th { color: var(--text-default); font-size: 16px; font-weight: 500; line-height: 20px; }
.ss-inv-tr { position: relative; height: 62px; box-shadow: 0 1px 0 var(--border-subtle); color: var(--text-default); font-size: 14px; line-height: 18px; }
.ss-inv-th .c1, .ss-inv-tr .c1 { width: 203px; margin-right: 10px; }
.ss-inv-th .c2, .ss-inv-tr .c2 { width: 152px; margin-right: 10px; }
.ss-inv-th .c3, .ss-inv-tr .c3 { width: 51px; margin: 0 10px; }
.ss-inv-th .c4, .ss-inv-tr .c4 { width: 102px; margin: 0 10px; font-variant-numeric: tabular-nums; }
.ss-inv-th .c5, .ss-inv-tr .c5 { flex: 1; margin-left: 10px; }
.ss-inv-tr .c1 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ss-inv-tr .c1 .n { font-size: 16px; line-height: 20px; }
.ss-inv-tr .c1 .ch { font-size: 12px; line-height: 16px; }
.ss-revoke { position: absolute; right: -24px; top: 50%; display: flex; color: var(--icon-subtle); opacity: 0; transform: translateY(-50%); }
.ss-inv-tr:hover .ss-revoke { opacity: 1; }
.ss-revoke:hover { color: #f87e7a; }

/* Audit log */
.ss-audit-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ss-audit-filter .ss-select { width: 220px; height: 32px; font-size: 14px; }
.ss-audit { display: flex; flex-direction: column; gap: 8px; }
.ss-audit-row { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--bg-surface-high); }
.ss-audit-row .t { min-width: 0; }
.ss-audit-row .l { color: var(--text-default); font-size: 16px; line-height: 20px; }
.ss-audit-row .l strong { color: var(--text-strong); font-weight: 600; }
.ss-audit-row .w { margin-top: 2px; color: var(--text-subtle); font-size: 12px; line-height: 16px; }

/* Bans */
.ss-bans { display: flex; flex-direction: column; gap: 12px; padding: 56px 24px 24px; }
.ss-bans-desc { margin-bottom: 20px; color: var(--text-default); font-size: 14px; line-height: 18px; }
.ss-bans-desc a { color: var(--text-link); text-decoration: none; }
.ss-bans-search { display: flex; align-items: center; gap: 8px; }
.ss-bans-search .ss-input-wrap { flex: 1; }
.ss-bans-list { height: 760px; padding: 8px; overflow-y: auto; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface-high); }
.ss-bans-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); text-align: center; }
.ss-bans-art { width: 256px; height: 212px; margin-bottom: 40px; }
.ss-bans-empty h2 { font-size: 20px; font-weight: 600; line-height: 24px; }
.ss-bans-empty div { width: 300px; margin-top: 8px; font-size: 16px; line-height: 20px; }
.ss-ban-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; }
.ss-ban-row:hover { background: var(--interactive-bg-hover); }
.ss-ban-row .n { color: var(--text-strong); font-size: 16px; font-weight: 500; }
.ss-ban-row .u { color: var(--text-subtle); font-size: 12px; }

/* Channel settings */
.ss-topic { position: relative; border: 1px solid var(--border-normal); border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.122); }
.ss-topic:focus-within { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -2px; }
.ss-topic .ss-textarea { min-height: 200px; padding: 17px 16px 28px; line-height: 22px; }
.ss-topic-bar { display: flex; align-items: center; height: 32px; border-radius: 7px 7px 0 0; background: rgba(151, 151, 159, 0.12); }
.ss-fmt { display: grid; place-items: center; width: 32px; height: 32px; color: var(--text-default); }
.ss-fmt .ic { width: 20px; height: 20px; }
.ss-fmt:first-child { border-radius: 4px 0 0; }
.ss-fmt:hover { color: var(--text-strong); }
.ss-fmt-div { width: 1px; height: 20px; margin: 6px; border-left: 1px solid var(--border-subtle); }
.ss-fmt-gap { flex: 1; }
.ss-radios { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; padding: 8px 0 4px; }
.ss-radio { position: relative; display: flex; flex-direction: column; min-height: 42px; padding-left: 32px; border-radius: var(--radius-sm); cursor: pointer; }
.ss-radio-dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border: 1.5px solid var(--text-default); border-radius: 50%; }
.ss-radio.on .ss-radio-dot { border-color: var(--brand); background: var(--brand); }
.ss-radio.on .ss-radio-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; }
.ss-radio-l { color: var(--text-default); font-size: 16px; font-weight: 400; line-height: 20px; }
.ss-radio-d { margin-top: 4px; color: var(--text-subtle); font-size: 14px; font-weight: 400; line-height: 18px; }
.ss-count { position: absolute; right: 12px; bottom: 8px; color: var(--text-default); font-size: 14px; font-weight: 600; line-height: 18px; font-variant-numeric: tabular-nums; }
.ss-perm-card { padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--bg-surface-high); }
.ss-access { margin-top: 24px; }
.ss-access-list { display: flex; flex-direction: column; margin-top: 8px; }
.ss-access-row { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px; border-bottom: 1px solid var(--border-subtle); }
.ss-access-row .n { flex: 1; min-width: 0; color: var(--text-strong); font-size: 16px; font-weight: 500; }
.ss-access-row .k { color: var(--text-subtle); font-size: 12px; }
.ss-access-row.owner { padding-left: 40px; opacity: 0.6; }
.ss-int-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--bg-surface-high); }
.ss-int-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; }
.ss-int-card .t { flex: 1; min-width: 0; }
.ss-int-card .l { color: var(--text-strong); font-size: 16px; font-weight: 600; line-height: 20px; }
.ss-int-card .d { color: var(--text-subtle); font-size: 14px; line-height: 18px; }
.ss-hook { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-surface-high); }
.ss-hook img { width: 40px; height: 40px; border-radius: 50%; }
.ss-hook .ss-input-wrap { flex: 1; }
.pfm.sv-dialog.sm { width: 400px; }
