/* Orate — settings overlay and pages */
.settings { position: fixed; inset: 0; z-index: 50; padding: var(--gap); display: flex; gap: var(--gap); animation: settings-in var(--t-slow) var(--ease); }
.settings.closing { animation: settings-out 200ms ease both; }
@keyframes settings-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes settings-out { to { opacity: 0; transform: scale(1.02); } }
.settings-nav { width: 290px; flex: none; border-radius: var(--radius-lg); display: flex; flex-direction: column; min-height: 0; animation: slide-right var(--t-slow) var(--ease) both; }
.sn-scroll { flex: 1; overflow-y: auto; padding: 18px 12px 12px; display: flex; flex-direction: column; }
.sn-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.sn-group h5 { margin: 4px 12px 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
.sn-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); text-align: left; width: 100%; position: relative; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease); }
.sn-item:hover { background: var(--hover); color: var(--text); transform: translateX(2px); }
.sn-item.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.sn-item.on .icon { color: var(--accent); } .sn-item.danger { color: #ff7b93; } .sn-item.danger:hover { background: rgb(240 77 106 / .16); }
.sn-foot { margin-top: auto; padding: 12px; display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.settings-body { flex: 1; min-width: 0; border-radius: var(--radius-lg); display: flex; flex-direction: column; animation: slide-up var(--t-slow) var(--ease) both; }
.sb-title { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px 12px; flex: none; }
.sb-title h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; animation: slide-right var(--t-med) var(--ease) both; }
.settings-close { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-3); } .settings-close span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border-strong); display: flex; align-items: center; justify-content: center; transition: all var(--t-med) var(--ease-spring); } .settings-close:hover span { background: var(--active); color: var(--text); transform: rotate(90deg) scale(1.08); } .settings-close small { font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.settings-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 28px 60px; }
.s-wrap { max-width: 780px; animation: view-in var(--t-med) var(--ease) both; }
.s-page { display: flex; flex-direction: column; gap: 26px; position: relative; }
.s-section { display: flex; flex-direction: column; gap: 4px; }
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.s-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; } .s-head p { color: var(--text-3); font-size: 13.5px; margin-top: 3px; max-width: 560px; line-height: 1.45; }
.s-sub { margin: 16px 0 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.s-label { margin: 0 0 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.reset-row { display: flex; justify-content: flex-end; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.note-chip { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 11px; background: var(--hover); color: var(--text-2); font-size: 13px; line-height: 1.4; }
.dim { opacity: .45; pointer-events: none; transition: opacity var(--t-med); }
.two-col-set { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 14px; }
.two-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings .setting-row + .setting-row { border-top-color: var(--border); }

/* theme preview */
.tpv { display: flex; height: 178px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 36px -12px rgb(0 0 0 / .5); pointer-events: none; user-select: none; }
.tpv-rail { width: 52px; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; border-right: 1px solid var(--border); } .tpv-rail i { width: 30px; height: 30px; border-radius: 50%; background: var(--hover); } .tpv-rail i.a { background: var(--accent-grad); border-radius: 10px; }
.tpv-side { width: 140px; padding: 12px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--border); font-size: 13px; color: var(--text-3); } .tpv-side b { color: var(--text); font-size: 13px; margin-bottom: 2px; } .tpv-side span { padding: 4px 8px; border-radius: 7px; } .tpv-side .sel { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.tpv-main { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tpv-msg { display: flex; gap: 12px; } .tpv-msg b { font-size: 14px; } .tpv-msg small { color: var(--text-3); font-size: 11.5px; margin-left: 4px; } .tpv-msg p { font-family: var(--font-chat); font-size: calc(var(--font-size) * .9); margin: 3px 0 6px; line-height: 1.4; }
.tpv-bar { display: flex; gap: 8px; margin-top: auto; }
.tpv-bar .btn { pointer-events: none; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mode-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border-radius: 16px; background: var(--input-bg); border: 2px solid transparent; text-align: center; font-size: 13.5px; transition: all var(--t-med) var(--ease); } .mode-card:hover { transform: translateY(-3px); background: var(--active); } .mode-card.sel { border-color: var(--accent); background: var(--accent-soft); }
.mode-prev { height: 70px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 12px; box-shadow: inset 0 0 0 1px rgb(128 128 128 / .3); } .mode-prev i { display: block; height: 7px; border-radius: 4px; background: currentColor; opacity: .5; width: 70%; } .mode-prev i + i { width: 45%; }
.mode-check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; animation: bounce-in .3s var(--ease-spring); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.grad-swatch, .panel-swatch { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .18), 0 3px 10px rgb(0 0 0 / .3); transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast); } .panel-swatch { border-radius: 12px; }
.grad-swatch:hover, .panel-swatch:hover { transform: scale(1.14); } .grad-swatch.sel, .panel-swatch.sel { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .3), 0 0 0 3px rgb(var(--panel-rgb)), 0 0 0 5px var(--accent); }
.color-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 4px 0 6px; } .cr-item { display: flex; align-items: center; gap: 12px; } .cr-item span { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; } .cr-item small { font-family: var(--font-code); color: var(--text-3); font-weight: 400; font-size: 12px; text-transform: uppercase; }
.grad-preview { margin-left: auto; padding: 10px 22px; border-radius: 12px; font-weight: 800; color: var(--on-accent); box-shadow: 0 8px 22px -8px rgb(var(--accent-rgb) / .8); } .grow { flex: 1; min-width: 220px; }

/* wallpaper */
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wp-tile-wrap { position: relative; }
.wp-tile { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 6px 18px -8px rgb(0 0 0 / .6); transition: transform var(--t-med) var(--ease), border-color var(--t-fast), box-shadow var(--t-med); }
.wp-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px -10px rgb(0 0 0 / .7); } .wp-tile.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .35), 0 12px 28px -10px rgb(var(--accent-rgb) / .7); }
.wp-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 12px; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
.wp-check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; z-index: 2; animation: bounce-in .3s var(--ease-spring); }
.wp-tile.add { flex-direction: column; gap: 6px; background: var(--input-bg); border: 2px dashed var(--border-strong); color: var(--text-2); font-size: 13px; font-weight: 700; } .wp-tile.add:hover { border-color: var(--accent); color: var(--accent); }
.wp-x { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgb(0 0 0 / .7); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; z-index: 3; transition: opacity var(--t-fast), background var(--t-fast); } .wp-tile-wrap:hover .wp-x { opacity: 1; } .wp-x:hover { background: #e5314f; }
.url-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }

/* effects */
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.preset-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; background: var(--input-bg); font-weight: 700; font-size: 13.5px; transition: all var(--t-fast) var(--ease-spring); } .preset-chip:hover { background: var(--accent-grad); color: var(--on-accent); transform: translateY(-2px); }
.preset-chip.on { background: var(--accent-grad); color: var(--on-accent); box-shadow: 0 8px 20px -8px rgb(var(--accent-rgb) / .9); }
.glass-demo { display: flex; align-items: center; gap: 14px; padding: 26px; border-radius: 18px; margin-bottom: 8px; background: linear-gradient(120deg, var(--accent), var(--accent-2), #06b6d4); background-size: 200% 200%; animation: gradient-pan 8s ease infinite; position: relative; overflow: hidden; }
.glass-demo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgb(255 255 255 / .35) 0 3px, transparent 4px), radial-gradient(circle at 70% 60%, rgb(255 255 255 / .3) 0 5px, transparent 6px), repeating-linear-gradient(90deg, transparent 0 30px, rgb(255 255 255 / .06) 30px 31px); }
.glass-demo > * { position: relative; }
@keyframes gradient-pan { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
.glass-demo .rail-btn { --s: 46px; }

/* fonts */
.font-field { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--input-bg); text-align: left; transition: background var(--t-fast), box-shadow var(--t-fast); } .font-field:hover { background: var(--active); } .font-field:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ff-preview { flex: 1; font-size: 20px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ff-sample { color: var(--text-3); font-size: 17px; } .font-pair { display: flex; align-items: center; gap: 10px; width: 100%; } .font-pair .font-field { flex: 1; }
.fp-pop { width: 400px; padding: 0; } .fp { display: flex; flex-direction: column; }
.fp-cats { display: flex; gap: 6px; padding: 4px 12px 8px; flex-wrap: wrap; } .fp-cats button { padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--input-bg); color: var(--text-2); transition: all var(--t-fast); } .fp-cats button:hover { background: var(--active); } .fp-cats button.on { background: var(--accent-grad); color: var(--on-accent); }
.fp-scroll { overflow-y: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fp-row { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px; text-align: left; transition: background var(--t-fast); } .fp-row:hover { background: var(--hover); } .fp-row.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.fp-name { flex: 1; font-size: 21px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fp-row small { color: var(--text-3); font-size: 11.5px; font-weight: 600; white-space: nowrap; } .fp-row .icon { color: var(--accent); }
.fp-sample { padding: 12px 16px; font-size: 18px; line-height: 1.35; min-height: 62px; color: var(--text-2); transition: font-family .1s; } .fp-foot { display: flex; justify-content: space-between; padding: 8px 16px 12px; font-size: 12px; color: var(--text-3); }
.font-preview { padding: 18px; border-radius: 16px; background: var(--input-bg); display: flex; flex-direction: column; gap: 12px; } .fpv-ui { font-size: 18px; font-weight: 600; } .fpv-code { margin: 0; padding: 12px 14px; font-family: var(--font-code); font-size: .9em; }
.s-preview { margin-top: 6px; padding: 8px 0; border-radius: var(--radius); }

/* account + profile */
.acct-card { border-radius: 20px; overflow: hidden; } .acct-head { display: flex; align-items: flex-end; gap: 16px; padding: 0 20px 16px; margin-top: -34px; position: relative; } .acct-av { box-shadow: 0 0 0 6px rgb(var(--panel-rgb) / .97); flex: none; } .acct-name { flex: 1; display: flex; flex-direction: column; padding-bottom: 6px; } .acct-name b { font-size: 22px; font-weight: 800; } .acct-name span { color: var(--text-3); }
.acct-rows { margin: 0 16px 16px; padding: 10px 16px; border-radius: 14px; background: rgb(0 0 0 / .18); display: flex; flex-direction: column; } .acct-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; } .acct-row + .acct-row { border-top: 1px solid var(--border); } .acct-row small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 2px; } .acct-row b { font-weight: 600; font-size: 15px; } .reveal { align-self: flex-start; font-size: 13px; padding-bottom: 4px; }
.session-list { display: flex; flex-direction: column; gap: 8px; } .session-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--input-bg); } .session-row b { display: flex; align-items: center; gap: 10px; font-size: 14.5px; } .session-row small { color: var(--text-3); font-size: 12.5px; } .session-row .btn { margin-left: auto; } .ss-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--hover); display: flex; align-items: center; justify-content: center; color: var(--text-2); } .here { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgb(59 165 93 / .22); color: #6fe3a0; }
.danger-zone { padding: 16px; border-radius: 14px; border: 1px solid rgb(240 77 106 / .4); background: rgb(240 77 106 / .07); }
.profile-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; } .pe-form { display: flex; flex-direction: column; gap: 26px; min-width: 0; } .pe-preview { position: sticky; top: 4px; } .pe-preview .profile-pop { width: 100%; }
.pe-media { display: flex; align-items: center; gap: 18px; } .pe-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .pe-banner { border-radius: 14px; overflow: hidden; margin-bottom: 12px; } .pe-color { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; } .pe-color small { color: var(--text-3); font-weight: 600; }
.tag-edit { display: flex; gap: 12px; align-items: center; max-width: 280px; } .tag-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; } .tag-icons button { width: 38px; height: 38px; border-radius: 10px; background: var(--input-bg); display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: all var(--t-fast) var(--ease-spring); } .tag-icons button:hover { background: var(--active); transform: scale(1.1); } .tag-icons button.sel { background: var(--accent-grad); color: var(--on-accent); }
.save-bar { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-radius: 18px; background: rgb(var(--panel-rgb) / .96); backdrop-filter: blur(24px); border: 1px solid var(--border); box-shadow: var(--shadow-pop), 0 0 0 2px rgb(240 178 50 / .3); font-size: 14px; font-weight: 600; white-space: nowrap; animation: save-in var(--t-med) var(--ease-spring) both; } .save-bar > span { display: flex; align-items: center; gap: 8px; color: #ffd27a; }
@keyframes save-in { from { opacity: 0; transform: translate(-50%, 30px); } to { opacity: 1; transform: translate(-50%, 0); } }
.about { display: flex; align-items: center; gap: 14px; } .about small { display: block; color: var(--text-3); }
.code-area { font-family: var(--font-code); font-size: 12.5px; white-space: pre; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; } .lang-card { position: relative; padding: 14px 16px; border-radius: 14px; background: var(--input-bg); text-align: left; border: 2px solid transparent; display: flex; flex-direction: column; transition: all var(--t-med) var(--ease); } .lang-card:hover { transform: translateY(-2px); background: var(--active); } .lang-card.sel { border-color: var(--accent); background: var(--accent-soft); } .lang-card b { font-size: 16px; } .lang-card small { color: var(--text-3); } .lang-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.shortcut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; } .sc-row { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 10px; background: var(--input-bg); font-size: 13.5px; } .keys { display: inline-flex; gap: 4px; min-width: 120px; flex: none; }
.vol-row { display: flex; align-items: center; gap: 14px; } .vol-row .slider { flex: 1; }
.perm-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgb(var(--accent-rgb) / .5); } .perm-banner > div { flex: 1; } .perm-banner b { display: block; } .perm-banner small { color: var(--text-2); }
.mic-test { margin-top: 6px; padding: 16px; border-radius: 16px; background: var(--input-bg); } .mt-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .mt-head b { font-size: 15px; } .mt-head span { color: var(--text-3); font-size: 13px; flex: 1; min-width: 160px; }
.meter { position: relative; margin-top: 14px; height: 10px; border-radius: 10px; background: var(--hover); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #3ba55d, #f0b232 70%, #f04d6a); transition: width .06s linear; } .meter-th { position: absolute; top: -2px; bottom: -2px; width: 3px; background: #fff; border-radius: 2px; opacity: .8; }
.keybind { min-width: 110px; padding: 8px 16px; border-radius: 10px; background: var(--input-bg); border: 1.5px solid var(--border-strong); font-weight: 800; font-size: 13px; letter-spacing: .04em; transition: all var(--t-fast); } .keybind:hover { background: var(--active); } .keybind.rec { border-color: #f04d6a; color: #ff9db0; animation: pulse 1s infinite; }
.cam-preview { position: relative; margin-top: 10px; aspect-ratio: 16 / 9; max-width: 520px; border-radius: 18px; overflow: hidden; background: rgb(0 0 0 / .35); display: flex; align-items: center; justify-content: center; } .cam-preview video { width: 100%; height: 100%; object-fit: cover; } .cam-preview video.mirror { transform: scaleX(-1); } .cam-off { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); } .cam-btn { position: absolute; right: 12px; bottom: 12px; }
.vol-ctx { min-width: 200px; padding: 6px 8px; } .vol-ctx small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 6px; }
.vc-chat { width: 380px; flex: none; border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; } .vc-chat .chat-col { height: 100%; }
.stage-grid.focus { grid-template-columns: 1fr; } .stage-grid.focus .tile:not(.expand) { aspect-ratio: 16/6; }
.vc-faces { display: flex; gap: 6px; margin: 6px 0; }
.bot-tag + .bot-tag { display: none; }
@media (max-width: 900px) {
  .settings { flex-direction: column; } .settings-nav { width: 100%; flex: none; max-height: 48px; } .sn-scroll { flex-direction: row; padding: 6px; gap: 4px; overflow-x: auto; overflow-y: hidden; } .sn-group { flex-direction: row; margin: 0; } .sn-group h5, .sn-foot { display: none; } .sn-item { white-space: nowrap; padding: 8px 12px; }
  .profile-edit { grid-template-columns: 1fr; } .two-col-set, .shortcut-grid, .two-sliders, .mode-grid { grid-template-columns: 1fr 1fr; } .settings-scroll { padding: 4px 16px 70px; }
}

/* ------------------------------------------------ server settings */
.so-top { display: flex; gap: 24px; align-items: flex-start; } .so-icon { display: flex; flex-direction: column; gap: 12px; align-items: center; } .so-ic { border-radius: 28px !important; font-size: 28px !important; box-shadow: 0 10px 30px -8px rgb(var(--accent-rgb) / .6); } .so-fields { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.so-banner { height: 120px; border-radius: 16px; background: var(--input-bg) center / cover; display: flex; align-items: center; justify-content: center; color: var(--text-3); margin-bottom: 12px; }
.roles-page { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.roles-list { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; } .rl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.role-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; text-align: left; transition: background var(--t-fast); } .role-item:hover { background: var(--hover); } .role-item.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); } .role-item i { width: 12px; height: 12px; border-radius: 50%; flex: none; } .role-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .role-item small { color: var(--text-3); }
.re-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } .re-head h3 { font-size: 18px; } .perm-list { display: flex; flex-direction: column; }
.chs-group { margin-bottom: 14px; } .chs-cat { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); } .chs-cat b { font-weight: 800; flex: 1; }
.chs-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 2px 0; border-radius: 12px; background: var(--input-bg); } .chs-row > span:first-of-type { font-weight: 600; } .chs-row small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.chs-acts { margin-left: auto; display: inline-flex; gap: 2px; opacity: .6; transition: opacity var(--t-fast); } .chs-row:hover .chs-acts, .mem-row:hover .chs-acts, .chs-cat:hover .chs-acts { opacity: 1; } .chs-acts button { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-2); transition: all var(--t-fast); } .chs-acts button:hover:not(:disabled) { background: var(--active); color: var(--text); } .chs-acts button.danger:hover { background: #e5314f; color: #fff; } .chs-acts button:disabled { opacity: .25; }
.mem-table { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; } .mem-row { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 14px; background: var(--input-bg); } .mem-name { min-width: 120px; display: flex; flex-direction: column; } .mem-name b { display: flex; align-items: center; gap: 6px; } .mem-name small, .mem-join { color: var(--text-3); font-size: 12.5px; } .mem-roles { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; } .crown { color: #f5b942; } .mono { font-family: var(--font-code); }
.role-chip button { display: inline-flex; margin-left: 2px; color: var(--text-3); } .role-chip button:hover { color: #ff7b93; } .role-add { width: 24px; height: 24px; border-radius: 50%; background: var(--hover); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); } .role-add:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 900px) { .roles-page { grid-template-columns: 1fr; } .so-top { flex-direction: column; } }

.note-chip.ok { background: rgb(59 165 93 / .16); color: #8be0ad; }
