/* Customer dashboard (/dashboard). */

.dash { min-height: 60vh; }
.avatar.xs { width: 24px; height: 24px; }
.avatar.xl { width: 84px; height: 84px; }
.avatar.xxl { width: 112px; height: 112px; }
.avatar.ph .ico { width: 55%; height: 55%; }

.dash-hero { display: flex; align-items: center; gap: 20px; margin: 10px 0 30px; flex-wrap: wrap; }
.dh-av { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--line2); box-shadow: 0 16px 40px -14px rgba(96, 96, 99, 0.7); }
.dash-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.dash-hero p { margin: 4px 0 0; }
.dash-hero .kick-label { margin-bottom: 4px; }
.dh-admin { margin-inline-start: auto; }

/* bot cards: the vice live card, clickable */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dcard { width: auto; display: block; color: var(--text); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.dcard:hover { transform: translateY(-4px) rotate(-0.4deg); border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8), 0 0 40px -14px color-mix(in srgb, var(--tc) 45%, transparent); }
.dcard.is-ended { opacity: 0.6; }
.dc-av { width: 42px; height: 42px; border-radius: 13px; }
.dc-inner { gap: 6px; }
.dc-guild { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dc-guild .avatar { width: 24px; height: 24px; border-radius: 7px; }
.dc-left { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dc-left .ico { width: 14px; height: 14px; }
.dc-left.soon { color: var(--warn); }
.lc-tag.s-ok { color: var(--mint); }
.lc-tag.s-bad { color: var(--bad); }
.lc-tag.s-warn { color: var(--warn); }
.lc-tag.s-off, .lc-tag.s-end { color: var(--muted); }

/* servers */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.srv { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; transition: transform 0.25s, border-color 0.25s; }
.srv:hover { transform: translateY(-3px); border-color: var(--line2); }
.srv .avatar.lg { width: 52px; height: 52px; border-radius: 16px; }
.srv > .ellipsis { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srv b { font-size: 15.5px; }
.srv .dim { font-size: 12.5px; }
.srv-bots { display: flex; }
.srv-bots .avatar { border: 2px solid var(--bg2); margin-inline-start: -8px; }

/* bot page */
.bot-hero { border-radius: 26px; padding: 26px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.bot-hero::after { content: ""; position: absolute; inset: -120px -100px auto auto; width: 340px; height: 340px; border-radius: 50%; background: var(--tc, var(--aqua)); opacity: 0.12; filter: blur(50px); pointer-events: none; }
.bh-av { position: relative; flex-shrink: 0; }
.bh-av .avatar { border-radius: 30px; }
.bh-dot { position: absolute; bottom: 4px; inset-inline-end: 4px; width: 20px; height: 20px; border-radius: 50%; border: 4px solid #1b1b1e; background: var(--off); }
.bh-dot.s-ok { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.bh-dot.s-bad { background: var(--bad); }
.bh-dot.s-warn { background: var(--warn); }
.bh-dot.s-end { background: #4c4c4f; }
.bh-main { flex: 1; min-width: 220px; position: relative; z-index: 1; }
.bh-main h1 { margin: 4px 0 10px; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.bh-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 6px; padding-inline: 6px 12px; border-radius: 999px; background: rgba(12, 12, 15, 0.55); border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.chip .ico { width: 14px; height: 14px; color: var(--muted); }
.chip .avatar { border-radius: 7px; }
a.chip:hover { border-color: var(--line2); }
.bh-time { text-align: end; min-width: 200px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.bh-time b { font-size: 24px; }
.bh-time .timebar { margin-top: 10px; }
@media (max-width: 700px) { .bh-time { text-align: start; width: 100%; } }
.srv-hero .avatar.xxl { border-radius: 30px; }

.ctl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 860px) { .ctl-grid { grid-template-columns: minmax(0, 1fr); } }
.ctl-grid.is-locked .ctl button, .ctl-grid.is-locked .ctl input, .ctl-grid.is-locked .av-drop { pointer-events: none; opacity: 0.45; }
.ctl { border-radius: 22px; padding: 20px; }
.ctl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ctl-head .tile { --tc: var(--aqua); }
.ctl-head b { display: block; font-size: 17px; }
.ctl p { margin: 0 0 10px; }
.ctl-danger { border-color: rgba(255, 107, 107, 0.22); }
.ctl-danger .tile { --tc: var(--bad); }

.av-edit { display: flex; align-items: center; gap: 18px; }
.av-drop { position: relative; cursor: pointer; border-radius: 26px; flex-shrink: 0; }
.av-drop .avatar { border-radius: 26px; display: block; }
.av-drop span { position: absolute; inset: 0; border-radius: 26px; display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 600; background: rgba(10, 10, 13, 0.6); opacity: 0; transition: opacity 0.2s; }
.av-drop span .ico { width: 20px; height: 20px; display: block; margin: 0 auto 2px; }
.av-drop:hover span { opacity: 1; }
.av-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.row-in { display: flex; gap: 8px; }
.row-in .input { flex: 1; }
.pw-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.mv-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; padding: 2px; }
.mv-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.45); color: var(--text); cursor: pointer; text-align: start; font: inherit; }
.mv-opt .ellipsis { flex: 1; }
.mv-opt:hover { border-color: var(--line2); }
.mv-opt.on { border-color: var(--mint); background: rgba(213, 213, 216, 0.08); box-shadow: 0 0 0 3px rgba(213, 213, 216, 0.12); }

.links { display: flex; flex-direction: column; gap: 6px; }
.lnk { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(12, 12, 15, 0.45); border: 1px solid var(--line); }
.lnk > span { flex: 1; font-size: 14px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.pager:empty { display: none; }
.pager .btn[disabled] { opacity: 0.35; pointer-events: none; }
.flip { display: inline-flex; transform: scaleX(-1); }
.flip .ico { width: 14px; height: 14px; }
.wallet-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wallet-card .mono-s { direction: inherit; }
.wallet-bal { display: flex; align-items: center; gap: 10px; }
.wallet-bal .coin { width: 34px; height: 34px; }
.wallet-bal b { font-size: 44px; line-height: 1.1; }
.wallet-card p { margin: 0 0 6px; }
.lnk .price b { font-size: 15px; }
.topup { border-radius: 24px; padding: 24px; max-width: 720px; }
.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (max-width: 640px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pack { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(12, 12, 15, 0.55); color: var(--text); cursor: pointer; font: inherit; transition: all 0.2s; }
.pack:hover { border-color: var(--aqua); transform: translateY(-2px); }
.pack.on { border-color: var(--mint); background: rgba(213, 213, 216, 0.09); box-shadow: 0 0 0 3px rgba(213, 213, 216, 0.14); }
.pack-c { display: flex; align-items: center; gap: 6px; }
.pack-c .coin { width: 22px; height: 22px; }
.pack-c b { font-size: 24px; }
.pack-p { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.topup-sum { display: grid; place-items: center; min-width: 110px; padding: 0 16px; border-radius: 14px; background: rgba(213, 213, 216, 0.08); border: 1px solid var(--line2); font-family: var(--mono); font-size: 18px; color: var(--mint); }
.paypal-btn { width: 100%; height: 54px; border: 0; border-radius: 999px; background: #ffc439; color: #111; font-size: 16px; gap: 8px; }
.paypal-btn:hover { background: #f2ba36; filter: none; }
.paypal-btn b { font-size: 20px; font-style: italic; font-weight: 800; color: #003087; letter-spacing: -0.3px; direction: ltr; }
.paypal-btn b i { color: #009cde; }
.alert.ok { margin-top: 14px; }
.alert.bad { margin-top: 14px; }
/* payment methods */
.methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(12, 12, 15, 0.45); color: var(--text); cursor: pointer; font: inherit; text-align: start; transition: all 0.2s; }
.method:hover { border-color: var(--aqua); }
.method.on { border-color: var(--mint); background: rgba(213, 213, 216, 0.07); box-shadow: 0 0 0 3px rgba(213, 213, 216, 0.1); }
.method b { font-size: 15.5px; }
.method .dim { font-size: 12.5px; }
.method > .ico { margin-inline-start: auto; width: 20px; height: 20px; color: var(--muted); }
.m-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); flex-shrink: 0; display: grid; place-items: center; }
.method.on .m-dot { border-color: var(--mint); }
.method.on .m-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.bank-box { border-radius: 18px; padding: 16px; background: rgba(12, 12, 15, 0.4); border: 1px solid var(--line); }
.bb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bb-head .ico { color: var(--mint); }
.bb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .bb-grid { grid-template-columns: 1fr; } }
.bb-f { display: flex; flex-direction: column; gap: 5px; }
.bb-f > span { font-size: 12.5px; }
.bb-v { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(10, 10, 13, 0.75); border: 1px solid var(--line); }
.bb-v b { flex: 1; font-family: var(--mono); font-weight: 500; font-size: 13.5px; letter-spacing: 0.3px; overflow-wrap: anywhere; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 18px; border-radius: 18px; border: 2px dashed var(--line2); background: rgba(12, 12, 15, 0.35); cursor: pointer; text-align: center; transition: all 0.2s; }
.drop:hover, .drop.over { border-color: var(--mint); background: rgba(213, 213, 216, 0.06); }
.drop.has { border-style: solid; border-color: rgba(213, 213, 216, 0.4); }
.drop-ic .ico { width: 30px; height: 30px; color: var(--muted); }
.drop b { font-size: 15px; }
.drop img { max-height: 160px; max-width: 100%; border-radius: 12px; margin-top: 10px; border: 1px solid var(--line); }
.drop-file { font-size: 12.5px; font-family: var(--mono); }
.small { font-size: 12px; }

/* renew */
.renew-btn { margin-top: 12px; align-self: flex-end; }
@media (max-width: 700px) { .renew-btn { align-self: flex-start; } }
.alert [data-renew] { margin-inline-start: auto; }
.rn-m { margin-bottom: 14px; }
.rn-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rn-sum > div { padding: 12px 14px; border-radius: 14px; background: rgba(12, 12, 15, 0.5); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.rn-sum span { font-size: 12.5px; }
.rn-sum b { font-size: 18px; }
.rn-sum small { font-size: 12px; }

/* receipt */
.receipt { max-width: 560px; margin: 10px auto 0; border-radius: 28px; padding: 40px 30px 30px; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.receipt::before { content: ""; position: absolute; inset: -160px auto auto 50%; translate: -50% 0; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(213, 213, 216, 0.22), transparent 62%); pointer-events: none; }
.receipt.is-pending::before { background: radial-gradient(circle, rgba(255, 210, 122, 0.2), transparent 62%); }
.receipt > * { position: relative; }
.rc-check { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint), var(--aqua)); color: #141417; box-shadow: 0 0 0 10px rgba(213, 213, 216, 0.12), 0 20px 50px -10px rgba(213, 213, 216, 0.6); animation: rc-pop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.is-pending .rc-check { background: linear-gradient(135deg, #ffe2a8, var(--warn)); box-shadow: 0 0 0 10px rgba(255, 210, 122, 0.12); }
.rc-check .ico { width: 46px; height: 46px; stroke-width: 2.6; }
.rc-check .ico path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: rc-draw 0.5s 0.35s ease-out forwards; }
@keyframes rc-pop { from { transform: scale(0.3); opacity: 0; } }
@keyframes rc-draw { to { stroke-dashoffset: 0; } }
.rc-burst { position: absolute; top: 82px; left: 50%; width: 0; height: 0; }
.rc-burst i { position: absolute; width: 8px; height: 8px; transform: rotate(var(--a)) translateY(0) rotate(45deg); background: var(--coral); opacity: 0; animation: rc-fly 0.9s 0.25s ease-out forwards; }
.rc-burst i:nth-child(3n) { background: var(--mint); }
.rc-burst i:nth-child(3n + 1) { background: var(--coral2); width: 6px; height: 6px; }
.is-pending .rc-burst { display: none; }
@keyframes rc-fly { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) rotate(45deg); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-120px) rotate(45deg); } }
.receipt .kick-label { margin: 22px 0 6px; }
.receipt h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); }
.receipt > p { margin: 6px 0 0; }
.rc-amount { font-size: clamp(44px, 8vw, 60px); font-weight: 700; margin: 14px 0 18px; direction: ltr; background: linear-gradient(100deg, var(--cream), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-rows { width: 100%; border-top: 2px dashed var(--line2); border-bottom: 2px dashed var(--line2); padding: 8px 0; }
.rc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 4px; font-size: 14px; text-align: start; }
.rc-row + .rc-row { border-top: 1px solid var(--line); }
.rc-row .mono { font-size: 12.5px; word-break: break-all; }
.rc-bal { width: 100%; display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; padding: 14px 16px; border-radius: 16px; background: rgba(213, 213, 216, 0.08); border: 1px solid rgba(213, 213, 216, 0.22); }
.rc-bal b { font-size: 22px; font-family: var(--mono); font-weight: 500; direction: ltr; }
.pp-mark { font-weight: 800; font-style: italic; color: #4b8bff; direction: ltr; display: inline-block; }
.pp-mark i { color: #36c3ff; }

/* wallet */
.wallet-hero { border-radius: 26px; padding: 28px; display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.wallet-hero::after { content: ""; position: absolute; inset: -140px auto auto -100px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(213, 213, 216, 0.18), transparent 65%); pointer-events: none; }
.wh-main { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
.wh-main .kick-label { margin-bottom: 8px; }
.wh-bal { font-size: clamp(42px, 7vw, 68px); font-weight: 700; line-height: 1.05; font-family: var(--font); direction: ltr; text-align: start; background: linear-gradient(100deg, var(--cream), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.wh-stats { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; position: relative; z-index: 1; }
.wh-stats div { padding: 14px 16px; border-radius: 16px; background: rgba(12, 12, 15, 0.5); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.wh-stats span { font-size: 12.5px; }
.wh-stats b { font-size: 20px; font-family: var(--mono); font-weight: 500; direction: ltr; text-align: start; }
@media (max-width: 700px) { .wh-stats { grid-template-columns: 1fr 1fr; width: 100%; } }

.tx-list { display: flex; flex-direction: column; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 6px; }
.tx + .tx { border-top: 1px solid var(--line); }
.tx-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(161, 161, 164, 0.1); }
.tx-ic.s-ok { background: rgba(213, 213, 216, 0.1); }
.tx-ic.s-bad { background: rgba(219, 219, 222, 0.1); color: var(--coral2); }
.tx-ic.s-warn { background: rgba(255, 210, 122, 0.1); }
.tx-ic .ico { width: 18px; height: 18px; }
.tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tx-main b { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-main span { font-size: 12.5px; }
.tx-amt { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.tx-amt b { font-family: var(--mono); font-weight: 500; font-size: 15px; direction: ltr; }
.tx-amt span { font-size: 12px; }
.tx-amt b.s-bad { color: var(--coral2); }

.orders { display: flex; flex-direction: column; gap: 12px; }
.order { border-radius: 18px; padding: 16px; }
.or-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.or-head .price { margin-inline-start: auto; }
.or-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.or-item + .or-item { border-top: 1px solid var(--line); }
.or-item .grow { flex: 1; min-width: 0; font-size: 14px; }
.soon-card { display: flex; gap: 16px; align-items: center; margin-top: 18px; border-style: dashed; }
.soon-card .tile { --tc: var(--coral2); }
.soon-card p { margin: 2px 0 0; }

/* AI assistant page */
.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; align-items: center; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(12, 12, 15, 0.5); font-size: 13.5px; }
.ai-tag button { border: 0; background: rgba(161, 161, 164, 0.14); color: inherit; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 15px; }
.ai-tag button:hover { background: rgba(219, 219, 222, 0.3); }
.ai-ta { min-height: 110px; resize: vertical; line-height: 1.7; font-family: inherit; }
.ai-ta.big { min-height: 260px; }
.ai-top { display: grid; grid-template-columns: 1fr minmax(160px, 260px) auto; gap: 14px; align-items: center; margin-bottom: 14px; }
.ai-top .timebar { margin-top: 8px; }
.ai-top .timebar > i { background: linear-gradient(90deg, #a78bfa, var(--mint)); }
.ai-list { display: flex; flex-direction: column; }
.ai-entry { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; }
.ai-entry + .ai-entry { border-top: 1px solid var(--line); }
.ai-n { color: #a78bfa; padding-top: 2px; }
.ai-body { flex: 1; min-width: 0; }
.ai-body b { display: block; font-weight: 500; font-size: 15px; }
.ai-body p { margin: 4px 0; font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; max-height: 4.9em; overflow: hidden; }
.ai-act { display: flex; gap: 6px; flex-shrink: 0; }
.ai-cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ai-cmds > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ai-file { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; color: var(--muted); font-size: 13.5px; }
.ai-file:hover { color: inherit; }
.ai-link { text-decoration: none; color: inherit; border-style: solid; }
.ai-link .tile, .ctl-ai .tile { --tc: #a78bfa; }
.empty-s { padding: 26px 8px; text-align: center; }
@media (max-width: 700px) {
  .ai-top { grid-template-columns: 1fr; }
  .ai-entry { flex-wrap: wrap; }
  .ai-act { width: 100%; justify-content: flex-end; }
}

/* AI auto-discovery */
.ai-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-scan { border-radius: 18px; padding: 16px; margin-bottom: 16px; border: 1px solid color-mix(in srgb, #a78bfa 40%, transparent); }
.sc-head { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.sc-head b { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.sc-head p { margin: 4px 0 0; }
.sc-tools { display: flex; gap: 6px; }
.sc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sc-item { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.sc-item.on { opacity: 1; border-color: color-mix(in srgb, #a78bfa 45%, transparent); }
.sc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-chk { display: inline-flex; cursor: pointer; }
.sc-chk input { position: absolute; opacity: 0; pointer-events: none; }
.sc-chk input:checked + .ag-box { background: #a78bfa; border-color: #a78bfa; }
.sc-chk input:checked + .ag-box .ico { opacity: 1; transform: none; }
.sc-chk input:focus-visible + .ag-box { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.4); }
.sc-kind { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: #a78bfa; min-width: 108px; }
.sc-kind .ico { width: 15px; height: 15px; }
.sc-title { flex: 1; min-width: 180px; padding: 6px 10px; }
.sc-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sc-body { margin-top: 10px; }
.sc-live { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13.5px; cursor: pointer; }
.sc-foot { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.sc-foot #scSum { margin-inline-end: auto; }
.sc-wait { display: flex; gap: 14px; align-items: center; }
.sc-wait p { margin: 4px 0 0; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(167, 139, 250, 0.25); border-top-color: #a78bfa; animation: scspin 0.8s linear infinite; flex-shrink: 0; }
@keyframes scspin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .sc-kind { min-width: 0; } .sc-title { min-width: 100%; order: 5; } }

/* bot page: content + side menu (the menu sits on the left in RTL) */
.bp-hero { padding: 22px 26px; }
.bp-hero .avatar.xxl { width: 96px; height: 96px; }
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-top: 18px; align-items: start; }
.bp-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; animation: bpIn 0.25s ease; }
.bp-main.is-locked button:not([data-renew]), .bp-main.is-locked input, .bp-main.is-locked .av-drop, .bp-main.is-locked select, .bp-main.is-locked textarea { pointer-events: none; opacity: 0.45; }
@keyframes bpIn { from { opacity: 0; transform: translateY(6px); } }
.bp-side { position: sticky; top: 86px; border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.bp-group { display: flex; flex-direction: column; gap: 4px; }
.bp-group + .bp-group { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.bp-glabel { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 10px 6px; }
.bp-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--text); text-decoration: none; border: 1px solid transparent; position: relative; transition: background 0.18s, border-color 0.18s; }
.bp-item:hover { background: rgba(213, 213, 216, 0.05); }
.bp-item.on { background: linear-gradient(90deg, rgba(213, 213, 216, 0.03), rgba(213, 213, 216, 0.1)); border-color: rgba(213, 213, 216, 0.28); }
.bp-item.on::before { content: ""; position: absolute; inset-inline-start: -1px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.bp-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: rgba(12, 12, 15, 0.55); border: 1px solid var(--line); color: var(--muted); transition: color 0.18s; }
.bp-item.on .bp-ic { color: var(--mint); border-color: rgba(213, 213, 216, 0.3); }
.bp-ic .ico { width: 18px; height: 18px; }
.bp-tx { display: flex; flex-direction: column; min-width: 0; }
.bp-tx b { font-weight: 600; font-size: 14.5px; }
.bp-tx small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-mini { margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(12, 12, 15, 0.5); border: 1px dashed var(--line2); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; }
.bp-mini span { font-size: 12px; grid-column: 1; }
.bp-mini b { grid-column: 1; font-size: 15px; }
.bp-mini .btn { grid-column: 2; grid-row: 1 / 3; }

.bp-card { border-radius: 22px; padding: 20px; }
.bp-card > p { margin: 0 0 10px; }
.bp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.bp-two:empty { display: none; }
.pf-in { max-width: 120px; flex: 0 1 120px !important; font-family: var(--mono); font-size: 16px; text-align: center; }
.srv-now, .own-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(12, 12, 15, 0.45); border: 1px solid var(--line); }
.srv-now b, .own-row b { display: block; font-weight: 500; }
.own-list { display: flex; flex-direction: column; gap: 6px; }
.own-row .pill .ico { width: 13px; height: 13px; vertical-align: -2px; }
.own-row .icon-btn { font-size: 18px; line-height: 1; }
.danger-zone { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; padding: 14px; border-radius: 14px; border: 1px solid rgba(255, 107, 107, 0.25); background: rgba(255, 107, 107, 0.04); }
.danger-zone p { margin: 2px 0 0; }

.pw-state { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(12, 12, 15, 0.5); border: 1px solid var(--line); margin-bottom: 14px; }
.pw-state > div { flex: 1; display: flex; flex-direction: column; }
.pw-state span.dim { font-size: 12px; }
.pw-state b { font-size: 20px; }
.pw-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--off); }
.pw-state.s-ok .pw-dot { background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.pw-state.s-bad .pw-dot { background: var(--bad); }
.pw-state.s-warn .pw-dot { background: var(--warn); }
.pw-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pw-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.5); color: var(--text); font: inherit; cursor: pointer; text-align: start; transition: border-color 0.18s, transform 0.18s; }
.pw-btn:hover { transform: translateY(-2px); border-color: var(--line2); }
.pw-btn .ico { width: 22px; height: 22px; margin-bottom: 4px; color: var(--muted); }
.pw-btn small { color: var(--muted); font-size: 12px; }
.pw-btn.mint .ico { color: var(--mint); }
.pw-btn.danger .ico { color: var(--coral2); }
.pw-btn.busy { opacity: 0.6; pointer-events: none; }
.pw-upd { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(209, 209, 212, 0.06); border: 1px solid rgba(209, 209, 212, 0.28); }
.pw-upd .grow { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pw-upd small { color: var(--muted); font-size: 12px; }
.pw-upd-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: rgba(209, 209, 212, 0.12); color: var(--mint); }
.pw-upd-ic .ico { width: 20px; height: 20px; }
.bp-item .upd-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); margin-inline-start: auto; }

.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.plan-grid > div { padding: 12px 14px; border-radius: 14px; background: rgba(12, 12, 15, 0.5); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.plan-grid span { font-size: 12px; }
.plan-grid b { font-size: 16px; }

@media (max-width: 900px) {
  .bp-layout { grid-template-columns: minmax(0, 1fr); }
  .bp-side { order: -1; position: sticky; top: 64px; z-index: 5; flex-direction: row; overflow-x: auto; padding: 8px; gap: 6px; border-radius: 16px; scrollbar-width: none; }
  .bp-side::-webkit-scrollbar { display: none; }
  .bp-group { flex-direction: row; gap: 6px; }
  .bp-group + .bp-group { margin: 0; padding: 0; border: 0; }
  .bp-glabel, .bp-tx small, .bp-mini { display: none; }
  .bp-item { padding: 6px 12px 6px 8px; white-space: nowrap; }
  .bp-item.on::before { display: none; }
  .bp-ic { width: 30px; height: 30px; }
  .pw-big, .plan-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 520px) { .av-edit { flex-direction: column; align-items: stretch; } .pw-big { grid-template-columns: minmax(0, 1fr); } .pw-upd { flex-wrap: wrap; } .pw-upd .btn { width: 100%; justify-content: center; } }
#bpMain .ctl-grid { margin-top: 0; }
#bpMain .input.ltr::placeholder { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; letter-spacing: 0; direction: rtl; }
[dir="ltr"] #bpMain .input.ltr::placeholder { direction: ltr; }

/* protection settings tab */
.g-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.g-acts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.g-act { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.5); color: var(--text); font: inherit; cursor: pointer; transition: border-color 0.18s, background 0.18s; }
.g-act b { font-size: 15px; font-weight: 600; }
.g-act small { font-size: 12px; color: var(--muted); }
.g-act:hover { border-color: var(--line2); }
.g-act.on { border-color: var(--mint); background: rgba(213, 213, 216, 0.08); box-shadow: 0 0 0 3px rgba(213, 213, 216, 0.12); }
.g-sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(12, 12, 15, 0.45); border: 1px solid var(--line); cursor: pointer; margin-top: 10px; }
.g-txt { display: flex; flex-direction: column; gap: 2px; }
.g-txt b { font-size: 15px; font-weight: 600; }
.g-txt small { font-size: 12.5px; color: var(--muted); }
.g-lims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g-lim { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(12, 12, 15, 0.45); border: 1px solid var(--line); font-size: 14px; }
.g-lim .input { width: 76px; text-align: center; padding: 6px 8px; font-family: var(--mono); font-size: 16px; }
.g-win { margin-top: 10px; }
.g-sub.off, .g-win.off { opacity: 0.45; pointer-events: none; }
@media (max-width: 700px) { .g-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-lims { grid-template-columns: minmax(0, 1fr); } }

/* ── tickets + transcripts tab ─────────────────────────────────── */
.tk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 14px; }
.tk-bar .input { padding: 8px 12px; font-size: 14px; }
.tk-bar .grow { flex: 1 1 220px; min-width: 180px; }
.tk-bar .chip.mono { margin-inline-start: auto; }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-row { display: grid; grid-template-columns: 48px minmax(150px, 1.4fr) minmax(0, 2fr) minmax(130px, auto) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(12, 12, 15, 0.45); border: 1px solid var(--line); }
.tk-row:hover { border-color: var(--line2); }
.tk-num { font-family: var(--mono); font-size: 14px; color: var(--muted); text-align: center; }
.tk-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tk-who .ellipsis { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tk-who b { font-size: 14px; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tk-meta .chip.xs { font-size: 12px; padding: 2px 9px 2px 7px; }
.tk-when { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.tk-act { justify-self: end; }
.pill.tk-open { background: rgba(144, 144, 147, 0.16); color: #b3b3b6; border-color: rgba(144, 144, 147, 0.4); }
.pill.tk-closed { background: rgba(230, 170, 40, 0.14); color: #e7b84d; border-color: rgba(230, 170, 40, 0.38); }
.pill.tk-del { background: rgba(120, 140, 160, 0.14); color: var(--muted); border-color: var(--line); }
.tk-more { text-align: center; padding: 10px; font-size: 13px; }
.empty.pad { padding: 34px 14px; text-align: center; }
@media (max-width: 760px) {
  .tk-row { grid-template-columns: 40px 1fr; grid-auto-rows: auto; row-gap: 8px; }
  .tk-meta, .tk-when, .tk-act { grid-column: 1 / -1; }
  .tk-act { justify-self: start; }
}

/* ── ticket panel editor ───────────────────────────────────────── */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pf-block { padding: 12px; border-radius: 14px; background: rgba(12, 12, 15, 0.4); border: 1px solid var(--line); margin-top: 10px; }
.pf-block > b { font-size: 14px; }
.pf-block .muted { margin: 2px 0 8px; font-size: 13px; }
.pf-lbl { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.pf-lbl.mt { margin-top: 12px; }
.input.sm, .btn.sm { padding: 6px 10px; font-size: 13px; }
.pf-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(12, 12, 15, 0.5); border: 1px solid var(--line); margin-top: 6px; }
.pf-opt .grow { min-width: 0; }
.pf-save { margin-top: 16px; }
.btn.danger { border-color: rgba(255, 107, 107, 0.4); color: var(--coral2, #ff8a8a); }
.btn.danger:hover { background: rgba(255, 107, 107, 0.1); }
.pf-modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: 24px 14px; overflow-y: auto; backdrop-filter: blur(3px); }
.pf-modal-box { width: min(560px, 100%); padding: 18px; border-radius: 18px; }
.pf-modal-box .field { margin-top: 8px; }
@media (max-width: 760px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── dark native dropdowns + editor controls ───────────────────── */
.input, select.input, textarea.textarea { color-scheme: dark; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* on/off switch */
.switch { display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .sw-track { width: 42px; height: 24px; border-radius: 999px; background: rgba(120, 140, 160, 0.25); border: 1px solid var(--line); position: relative; transition: background 0.18s; }
.switch .sw-thumb { position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #c6d2d8; transition: inset-inline-start 0.18s, background 0.18s; }
.switch input:checked + .sw-track { background: var(--brand, #acacaf); border-color: transparent; }
.switch input:checked + .sw-track .sw-thumb { inset-inline-start: 20px; background: #fff; }

/* segmented control */
.seg { display: inline-flex; background: rgba(12, 12, 15, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 7px 14px; border: 0; background: transparent; color: var(--muted); border-radius: 9px; font: inherit; cursor: pointer; transition: all 0.15s; }
.seg button.on { background: var(--brand, #acacaf); color: #101013; font-weight: 600; }

/* searchable combo */
.combo { display: block; }
.combo-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: rgba(12, 12, 15, 0.55); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; text-align: start; }
.combo-trigger:hover { border-color: var(--line2); }
.combo-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-val.ph { color: var(--muted); }
.combo-caret { color: var(--muted); font-size: 11px; }
.combo.mt { margin-top: 8px; }
.combo-pop { padding: 8px; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); border: 1px solid var(--line2); max-height: 300px; display: flex; flex-direction: column; }
.combo-search { width: 100%; margin-bottom: 6px; }
.combo-list { overflow-y: auto; }
.combo-grp { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 8px 4px; position: sticky; top: 0; background: inherit; }
.combo-item { padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-item:hover { background: rgba(160, 160, 163, 0.12); }
.combo-item.on { background: var(--brand, #acacaf); color: #101013; }
.combo-empty { padding: 14px; text-align: center; font-size: 13px; }

/* ── ticket editor: unsaved-changes bar ────────────────────────── */
.save-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 140; display: flex; justify-content: center; padding: 0 12px 16px; pointer-events: none; transform: translateY(130%); transition: transform 0.25s ease; }
.save-bar.show { transform: translateY(0); }
.save-bar-in { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(860px, 100%); padding: 12px 14px; border-radius: 16px; background: rgba(18, 18, 21, 0.97); border: 1px solid var(--line2); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); }
.save-bar .sb-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(230, 170, 40, 0.14); color: #e7b84d; flex: none; }
.save-bar .sb-ic .ico { width: 18px; height: 18px; }
.save-bar .sb-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.save-bar .sb-tx small { color: var(--muted); font-size: 12.5px; }
.save-bar.nudge .save-bar-in { animation: sbNudge 0.5s; border-color: rgba(255, 107, 107, 0.75); }
@keyframes sbNudge { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
body.has-save-bar .bp-main { padding-bottom: 96px; }
@media (max-width: 600px) { .save-bar-in { flex-wrap: wrap; } .save-bar .sb-tx { flex-basis: calc(100% - 50px); } .save-bar-in .btn { flex: 1; justify-content: center; } }

/* panel picker on top of every panel tab */
.tk-pbar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.tk-pbar .grow { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.tk-pbar select.input { padding: 7px 10px; }
.field > small.dim, .field > small { line-height: 1.5; }
.pf-grid + .img-pick, .field + .img-pick { margin-top: 12px; }

/* picture picker */
.img-pick { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(12, 12, 15, 0.4); border: 1px dashed var(--line2); }
.ip-prev { width: 160px; height: 100px; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, 0.35); display: grid; place-items: center; flex: none; }
.ip-prev img { width: 100%; height: 100%; object-fit: contain; }
.ip-prev.empty { color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.ip-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ip-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .img-pick { flex-direction: column; align-items: stretch; } .ip-prev { width: 100%; height: 150px; } }

/* message composer */
.composer { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.seg-wide { display: flex; width: 100%; flex-wrap: wrap; }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cmp-ed { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cmp-prev { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (max-width: 1000px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); } .cmp-prev { position: static; } }
.emb-ed { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); border-inline-start: 4px solid var(--ec); background: rgba(12, 12, 15, 0.35); }
.emb-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.emb-field .textarea { min-height: 42px; }
.ef-inl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .emb-field { grid-template-columns: 1fr; } }
.color-in { width: 46px; height: 38px; padding: 2px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; flex: none; }
.textarea.tk-ta { font-family: inherit; font-size: 14px; direction: rtl; unicode-bidi: plaintext; min-height: 64px; line-height: 1.6; }
.input[dir="auto"] { unicode-bidi: plaintext; }

/* Discord-like preview */
.dc-msg { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #313338; color: #dbdee1; direction: ltr; text-align: left; font-family: "gg sans", "Noto Sans", "Segoe UI", Tahoma, sans-serif; font-size: 15px; line-height: 1.4; }
.dcp-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; color: #fff; }
.dcp-av.ph { background: #5865f2; } /* Discord's default avatar, only when there's no picture */
.dcp-av img { width: 100%; height: 100%; object-fit: cover; }

/* bot / user / server pictures: transparent parts stay transparent, like Discord */
img.avatar { background: transparent; border-color: transparent; }
.dcard img.dc-av { border-radius: 50%; }
.dc-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dc-head { display: flex; align-items: center; gap: 6px; }
.dc-head b { color: #f2f3f5; font-weight: 600; }
.dc-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dc-time { color: #949ba4; font-size: 12px; }
.dc-text { word-wrap: break-word; }
.dc-msg code { background: #2b2d31; padding: 0 4px; border-radius: 4px; font-size: 85%; }
.dc-msg pre { background: #2b2d31; padding: 8px; border-radius: 6px; white-space: pre-wrap; margin: 4px 0; font-size: 13px; }
.dc-ment { background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.dc-att { max-width: 100%; max-height: 300px; border-radius: 8px; margin-top: 4px; align-self: flex-start; }
.dc-embed { display: flex; gap: 14px; max-width: 520px; background: #2b2d31; border-radius: 4px; border-left: 4px solid var(--ec, #1e1f22); padding: 10px 14px 14px 12px; margin-top: 4px; }
.dc-e-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.dc-e-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #f2f3f5; }
.dc-e-author img, .dc-e-foot img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dc-e-title { font-weight: 700; color: #f2f3f5; }
.dc-e-title.link { color: #00a8fc; }
.dc-e-desc { font-size: 14px; }
.dc-e-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dc-e-f { flex-basis: 100%; font-size: 14px; }
.dc-e-f.inl { flex-basis: calc(33% - 12px); min-width: 110px; }
.dc-e-f b { display: block; font-size: 13px; color: #f2f3f5; margin-bottom: 2px; }
.dc-e-img { max-width: 100%; border-radius: 4px; margin-top: 4px; }
.dc-e-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; flex: none; }
.dc-e-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b5bac1; }
.dc-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dc-btn { background: #4e5058; color: #fff; padding: 6px 16px; border-radius: 4px; font-size: 14px; font-weight: 500; }
.dc-select { display: flex; justify-content: space-between; align-items: center; max-width: 420px; background: #1e1f22; color: #949ba4; padding: 9px 12px; border-radius: 4px; margin-top: 6px; font-size: 14px; }
.dc-empty { color: #949ba4; font-style: italic; font-size: 13px; padding: 6px 0; }

/* live panel status */
.tk-live { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(12, 12, 15, 0.45); border: 1px solid var(--line); font-size: 14px; margin-top: 10px; }
.tk-live.ok { border-color: rgba(144, 144, 147, 0.4); }
.tk-live .ico { width: 16px; height: 16px; }
.tk-post { margin-top: 18px; }

/* panels + options as cards */
.tk-pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.tk-pcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(12, 12, 15, 0.45); border: 1px solid var(--line); }
.tk-pcard.on { border-color: var(--brand, #acacaf); box-shadow: inset 0 0 0 1px var(--brand, #acacaf); }
.tkp-top { display: flex; align-items: center; gap: 10px; }
.tkp-top .grow { display: flex; flex-direction: column; min-width: 0; }
.tkp-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.tkp-meta .ico { width: 13px; height: 13px; vertical-align: -2px; }
.tkp-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.tk-cards2 > .bp-card { margin: 0; }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.opt-card { padding: 12px; border-radius: 14px; background: rgba(12, 12, 15, 0.45); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.oc-head { display: flex; align-items: center; gap: 8px; }
.oc-emoji { width: 32px; height: 32px; border-radius: 10px; background: rgba(160, 160, 163, 0.12); display: grid; place-items: center; font-size: 16px; flex: none; overflow: hidden; }
.oc-rows { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.oc-rows > div { display: flex; justify-content: space-between; gap: 10px; }
.oc-rows span { color: var(--muted); flex: none; }
.oc-rows b { font-weight: 500; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pfm-head .grow { display: flex; flex-direction: column; }
.pf-modal-box { display: flex; flex-direction: column; gap: 12px; }
.q-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(12, 12, 15, 0.5); margin-top: 6px; font-size: 13px; }

/* responsibility bot: messages board, list, editor (prefix rs-) */
.rs-grid .hide, .rs-save.hide { display: none; }
.rs-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.35); margin-bottom: 12px; }
.rs-status .pw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.rs-status.on .pw-dot { background: var(--mint); box-shadow: 0 0 0 4px rgba(213, 213, 216, 0.15); }
.rs-status b { display: block; font-size: 14px; }
.rs-status small { color: var(--muted); font-size: 12.5px; }
.rs-order { display: flex; flex-direction: column; gap: 6px; }
.rs-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.35); cursor: grab; user-select: none; }
.rs-row:hover { border-color: var(--line2); }
.rs-row.drag { opacity: 0.45; border-style: dashed; }
.rs-row b { display: block; font-size: 14px; }
.rs-row small { font-size: 12px; }
.rs-grip { color: var(--muted); letter-spacing: -2px; font-size: 13px; }
.rs-n { color: var(--coral); }
.rs-vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rs-vars .chip { font-size: 12.5px; }
.textarea.rs-ta { min-height: 170px; font-family: var(--mono), monospace; font-size: 13px; direction: ltr; }
.rs-save { position: sticky; bottom: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(20, 20, 23, 0.97); border: 1px solid var(--line2); z-index: 5; }
.rs-prev-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.rs-prev-head b { display: inline-flex; align-items: center; gap: 6px; }
.rs-prev-head .ico { width: 16px; height: 16px; }
.rs-dc { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #313338; max-height: 75vh; overflow-y: auto; }
.rs-dc .rs-msg { border-radius: 0; padding: 2px 16px; }
.rs-dc .rs-msg:first-child { padding-top: 14px; }
.rs-dc .rs-msg:last-child { padding-bottom: 14px; }
.rs-dc .rs-msg.cont { padding-top: 6px; }
.rs-msg:hover { background: #2e3035; }
.rs-gutter { width: 40px; flex: none; }
.rs-msg .dc-text { display: flex; flex-direction: column; }
.rs-h { font-weight: 700; color: #f2f3f5; line-height: 1.3; margin: 6px 0 2px; }
.rs-h1 { font-size: 24px; }
.rs-h2 { font-size: 20px; }
.rs-h3 { font-size: 16px; }
.rs-sub { font-size: 12px; color: #949ba4; }
.rs-p { min-height: 1.35em; }
.rs-gap { height: 0.6em; }
.rs-li { display: flex; gap: 8px; align-items: baseline; padding-inline-start: 6px; }
.rs-li.lv2 { padding-inline-start: 28px; }
.rs-li.lv3 { padding-inline-start: 50px; }
.rs-li > i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #dbdee1; transform: translateY(-2px); }
.rs-li.lv2 > i { background: transparent; border: 1.5px solid #dbdee1; }
.rs-li.num > i { width: auto; height: auto; background: none; border: 0; font-style: normal; transform: none; color: #b5bac1; }
.rs-quote { border-inline-start: 4px solid #4e5058; padding-inline-start: 12px; margin: 2px 0; }
.rs-emo { width: 22px; height: 22px; vertical-align: -5px; object-fit: contain; }
.rs-link { color: #00a8fc; }
.rs-spoil { background: #1e1f22; color: transparent; border-radius: 3px; }
.rs-spoil:hover { color: inherit; }
.dc-ment.rs-rment { color: var(--rc, #c9cdfb); background: color-mix(in srgb, var(--rc, #5865f2) 18%, transparent); }
.rs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .rs-two { grid-template-columns: 1fr; } }
.rs-people { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-person { display: inline-flex; align-items: center; gap: 7px; padding: 4px 6px 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.35); font-size: 13px; max-width: 220px; }
.rs-person img, .rs-person > i { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.rs-person > i .ico { width: 13px; height: 13px; color: var(--muted); }
.rs-person b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-person.left { opacity: 0.6; }
.rs-person small { color: var(--coral); font-size: 11px; }
.rs-person button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.rs-person button:hover { color: #ffb4b4; }
.rs-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.rs-top .input { flex: 1; }
.rs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rs-card { text-align: start; display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.35); color: var(--text); font-family: inherit; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.rs-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.rs-card[hidden] { display: none; }
.rs-c-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rs-c-top b { font-size: 15px; }
.rs-c-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.rs-c-meta .chip { font-size: 11.5px; padding: 3px 8px; }
.rs-c-meta .ico { width: 12px; height: 12px; }
.rs-c-avs { display: flex; align-items: center; min-height: 26px; }
.rs-c-avs img, .rs-c-avs > i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #18181b; margin-inline-end: -7px; display: grid; place-items: center; background: #27272a; }
.rs-c-avs > i .ico { width: 13px; height: 13px; color: var(--muted); }
.rs-c-avs em { font-style: normal; font-size: 12px; color: var(--muted); margin-inline-start: 12px; }
.rs-c-avs .dim { font-size: 12.5px; }
.rs-lims { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rs-lim { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }
.rs-lim .input { width: 80px; }

/* bot page side menu stays on the left in English too */
@media (min-width: 901px) {
  [dir="ltr"] .bp-layout { grid-template-columns: 280px minmax(0, 1fr); }
  [dir="ltr"] .bp-side { order: -1; }
}

/* temp-room bot (prefix tp-) */
.tp-srcs { display: flex; flex-direction: column; gap: 6px; }
.tp-src { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.35); }
.tp-src b { display: block; font-size: 14px; }
.tp-src small { font-size: 12px; }
.tp-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .tp-btns { grid-template-columns: 1fr; } }
.tp-btn { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line); opacity: 0.55; transition: opacity 0.15s; }
.tp-btn.on { opacity: 1; border-color: var(--line2); }
.tp-btn .input { flex: 1; }
.dc-btn.ok { background: #248046; }
.dc-btn.no { background: #da373c; }
.tp-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 12px; }
.tp-room { display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.35); }
.tp-r-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tp-r-top b { font-size: 15px; }
.tp-r-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tp-r-meta .chip { font-size: 11.5px; padding: 3px 8px; }
.tp-r-meta .ico { width: 12px; height: 12px; }
.tp-room .pw-btns { margin-top: 2px; }


/* ── system bot settings (prefix sy-) ─────────────────────────────── */
.sy-head { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; justify-content: space-between; padding: 20px 22px; border-radius: 22px; margin-bottom: 14px; }
.sy-head h2 { font-size: 22px; margin: 2px 0 4px; }
.sy-head .muted { font-size: 13.5px; }
.sy-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.sy-search .ico { position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); }
.sy-search .input { padding-inline-start: 36px; }
.sy-pills { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.sy-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.4); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: all 0.15s; }
.sy-pill span { font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, 0.06); padding: 1px 7px; border-radius: 999px; }
.sy-pill:hover { border-color: var(--line2); }
.sy-pill.on { background: linear-gradient(90deg, rgba(213, 213, 216, 0.18), rgba(96, 96, 99, 0.12)); border-color: rgba(213, 213, 216, 0.45); color: #f5f5f8; }
.sy-pill.on span { color: var(--mint); }
.sy-pill.ghost { color: var(--muted); }
.sy-pill .ico { width: 14px; height: 14px; }

/* command cards */
.sy-ccs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: row dense; gap: 12px; }
.sy-cc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(34, 34, 37, 0.65), rgba(20, 20, 23, 0.8)); transition: border-color 0.15s, opacity 0.15s; }
.sy-cc:hover { border-color: var(--line2); }
.sy-cc.off { opacity: 0.55; }
.sy-cc.off .sy-cc-h b { text-decoration: line-through; }
.sy-cc.open { grid-column: 1 / -1; border-color: rgba(213, 213, 216, 0.4); box-shadow: 0 18px 40px -24px rgba(213, 213, 216, 0.35); opacity: 1; }
.sy-cc-h { display: flex; align-items: center; gap: 10px; }
.sy-cc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(96, 96, 99, 0.14); border: 1px solid rgba(213, 213, 216, 0.2); color: var(--mint); }
.sy-cc-ic .ico { width: 18px; height: 18px; }
.sy-cc-h b { display: block; font-size: 15px; color: #f5f5f8; }
.sy-cc-h small { font-size: 11.5px; color: var(--muted); }
.sy-cc-d { font-size: 13px; color: #c3c3c6; line-height: 1.55; min-height: 40px; }
.sy-cc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sy-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); }
.sy-tag .ico { width: 12px; height: 12px; }
.sy-tag.good { color: var(--mint); border-color: rgba(213, 213, 216, 0.3); background: rgba(213, 213, 216, 0.08); }
.sy-tag.warn { color: #ffcf9e; border-color: rgba(219, 219, 222, 0.35); background: rgba(219, 219, 222, 0.08); }
.sy-cc-body { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sy-cc-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.45); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.sy-cc-more:hover { border-color: rgba(213, 213, 216, 0.4); color: var(--mint); }
.sy-cc-more .ico { width: 14px; height: 14px; }

/* chips, adders, steppers, segments */
.sy-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.45); }
.sy-chip { --rc: var(--mint); display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 4px 6px 4px 11px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line2); }
.sy-chip.role { color: var(--rc); border-color: color-mix(in srgb, var(--rc) 45%, transparent); background: color-mix(in srgb, var(--rc) 12%, transparent); }
.sy-chip.word { background: rgba(219, 219, 222, 0.1); border-color: rgba(219, 219, 222, 0.35); }
.sy-chip.user img, .sy-chip.user > i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.sy-chip.user > i .ico { width: 12px; height: 12px; color: var(--muted); }
.sy-chip b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-chip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.25); color: inherit; cursor: pointer; font-size: 14px; line-height: 1; display: grid; place-items: center; opacity: 0.7; }
.sy-chip button:hover { opacity: 1; background: rgba(255, 90, 90, 0.35); color: #fff; }
.sy-chip-add { min-width: 140px; flex: 1; }
.sy-chip-add .combo-trigger { border-style: dashed; height: 32px; }
.sy-adder { display: inline-flex; align-items: center; gap: 4px; flex: 1; min-width: 180px; }
.sy-adder .input { height: 34px; border-style: dashed; }
.sy-adder.wide { display: flex; width: 100%; margin-bottom: 8px; }
.sy-adder.wide .input { height: 42px; border-style: solid; }
.sy-adder-b { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(213, 213, 216, 0.35); background: rgba(213, 213, 216, 0.1); color: var(--mint); display: grid; place-items: center; cursor: pointer; flex: none; }
.sy-adder-b .ico { width: 16px; height: 16px; }
.sy-words .sy-chips { min-height: 56px; }
.sy-step { display: flex; align-items: stretch; border-radius: 12px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.45); overflow: hidden; }
.sy-step .input { border: 0; background: none; text-align: center; border-radius: 0; flex: 1; min-width: 0; -moz-appearance: textfield; }
.sy-step .input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sy-step-b { width: 40px; border: 0; background: rgba(255, 255, 255, 0.04); color: var(--text); font-size: 18px; cursor: pointer; }
.sy-step-b:hover { background: rgba(213, 213, 216, 0.12); color: var(--mint); }
.sy-seg { display: flex; padding: 4px; gap: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.45); }
.sy-seg button { flex: 1; padding: 8px 10px; border-radius: 9px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: all 0.15s; }
.sy-seg button.on { background: linear-gradient(90deg, #d5d5d8, #606063); color: #1a1a1d; font-weight: 600; box-shadow: 0 6px 16px -8px rgba(213, 213, 216, 0.7); }
.sy-color { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.45); cursor: pointer; }
.sy-color input { width: 54px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.sy-color input::-webkit-color-swatch-wrapper { padding: 0; }
.sy-color input::-webkit-color-swatch { border: 0; border-radius: 8px; }

/* toggle tiles */
.sy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 6px; }
.g-sw.sy-tile { margin: 0; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; }
.sy-tile-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(213, 213, 216, 0.08); color: var(--mint); }
.sy-tile-ic .ico { width: 16px; height: 16px; }
.sy-tile .g-txt b { font-size: 13.5px; }

/* punishment types */
.sy-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.sy-type { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(20, 20, 23, 0.7); color: var(--text); font: inherit; cursor: pointer; text-align: start; transition: all 0.15s; }
.sy-type:hover { border-color: var(--line2); transform: translateY(-1px); }
.sy-type.on { border-color: rgba(213, 213, 216, 0.5); background: linear-gradient(160deg, rgba(213, 213, 216, 0.14), rgba(20, 20, 23, 0.8)); box-shadow: 0 14px 30px -20px rgba(213, 213, 216, 0.6); }
.sy-type-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--mint); margin-bottom: 4px; }
.sy-type-ic .ico { width: 16px; height: 16px; }
.sy-type b { font-size: 14.5px; }
.sy-type small { font-size: 11.5px; color: var(--muted); }
.sy-rsns { display: flex; flex-direction: column; gap: 8px; }
.sy-rsn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.4); }
.sy-rsn > .input { flex: 1; min-width: 160px; }
.sy-rsn > select.input { flex: 0 0 110px; min-width: 0; }
.sy-rsn-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(213, 213, 216, 0.1); color: var(--mint); font-size: 12px; font-family: var(--mono); flex: none; }
.sy-rsn-d { display: flex; align-items: center; gap: 6px; }
.sy-rsn-d .input, .sy-num { width: 76px; text-align: center; }
.sy-mini { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); cursor: pointer; font-size: 17px; }
.sy-mini.on { border-color: rgba(219, 219, 222, 0.5); color: #ffcf9e; background: rgba(219, 219, 222, 0.12); }
.sy-empty { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line2); color: var(--muted); font-size: 13px; }
.sy-empty .ico { width: 18px; height: 18px; }
.sy-adv { border-radius: 18px; padding: 4px 16px; margin-top: 4px; }
.sy-adv summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.sy-adv summary::-webkit-details-marker { display: none; }
.sy-adv summary .ico { width: 16px; height: 16px; }
.sy-adv[open] summary { color: var(--text); }
.sy-adv-in { padding-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }

/* welcome editor */
.sy-hint { text-align: end; }
.sy-canvas-wrap { margin-top: 12px; padding: 14px; border-radius: 16px; background: repeating-conic-gradient(#1b1d22 0% 25%, #23262c 0% 50%) 50% / 22px 22px; display: grid; place-items: center; }
.sy-wc { max-width: 100%; height: auto; border-radius: 10px; touch-action: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.sy-wtabs { display: flex; gap: 6px; margin: 14px 0 6px; padding: 5px; border-radius: 14px; background: rgba(12, 12, 15, 0.5); border: 1px solid var(--line); flex-wrap: wrap; }
.sy-wtabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.sy-wtabs button .ico { width: 16px; height: 16px; }
.sy-wtabs button.on { background: linear-gradient(90deg, #d5d5d8, #606063); color: #1a1a1d; font-weight: 600; }
.sy-wpane { display: flex; flex-direction: column; gap: 4px; padding: 6px 2px 2px; }
.sy-wbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.sy-xy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .sy-xy { grid-template-columns: 1fr 1fr; } }
.sy-wm { margin-top: 8px; }
.sy-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sy-tplc { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; border: 2px solid var(--line); background: rgba(12, 12, 15, 0.5); color: var(--text); font: inherit; cursor: pointer; }
.sy-tplc img { width: 100%; border-radius: 9px; aspect-ratio: 5 / 2; object-fit: cover; }
.sy-tplc.on { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(213, 213, 216, 0.18); }

/* colors */
.sy-sw { display: flex; flex-wrap: wrap; gap: 10px; }
.sy-swc { position: relative; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); display: grid; place-items: center; background: rgba(12, 12, 15, 0.5); }
.sy-swc input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); border: 0; padding: 0; cursor: pointer; }
.sy-swc-n { position: relative; font: 700 18px/1 var(--mono); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); pointer-events: none; }
.sy-swc button { position: absolute; top: 3px; inset-inline-end: 3px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.sy-swc:hover button { opacity: 1; }
.sy-swc.add { border: 2px dashed var(--line2); box-shadow: none; color: var(--mint); }
.sy-swc.add input { opacity: 0; }
.sy-swc.add .ico { width: 22px; height: 22px; pointer-events: none; }
.sy-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sy-set { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.5); color: var(--text); font: inherit; text-align: start; cursor: pointer; transition: all 0.15s; }
.sy-set:hover { border-color: var(--line2); transform: translateY(-2px); }
.sy-set b { font-size: 14px; }
.sy-set small { font-size: 12px; color: var(--muted); }
.sy-set-dots { display: flex; align-items: center; margin-top: 8px; }
.sy-set-dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); margin-inline-end: -6px; box-shadow: 0 0 0 2px #18181b; }
.sy-set-dots em { margin-inline-start: 12px; font-style: normal; font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 2px 7px; }
.sy-cimg { margin-top: 6px; border-radius: 8px; overflow: hidden; min-height: 80px; display: grid; place-items: center; }
.sy-cimg img { width: 100%; display: block; }

/* role cards, rate cards, protection */
.sy-rcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.sy-rcs.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.sy-rc, .sy-rate { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; }
.sy-rc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sy-rc-h b { font-size: 15px; display: block; }
.sy-rc-h small { font-size: 12px; color: var(--muted); }
.sy-lims { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sy-lim { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: rgba(20, 20, 23, 0.7); opacity: 0.7; transition: all 0.15s; }
.sy-lim.on { opacity: 1; border-color: rgba(213, 213, 216, 0.35); background: linear-gradient(160deg, rgba(213, 213, 216, 0.1), rgba(20, 20, 23, 0.8)); }
.sy-col { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(12, 12, 15, 0.35); margin-top: 6px; }
.sy-col-t { display: flex; align-items: center; gap: 6px; font-size: 13.5px; margin-bottom: 4px; }
.sy-col-t .ico { width: 15px; height: 15px; color: var(--mint); }

/* voice card */
.sy-vc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
@media (max-width: 1000px) { .sy-vc { grid-template-columns: 1fr; } }
.sy-vc-prev { position: sticky; top: 84px; min-height: 160px; border-radius: 14px; background: #1e1f22; display: grid; place-items: center; overflow: hidden; transition: opacity 0.2s; }
.sy-vc-prev.busy { opacity: 0.6; }
.sy-vc-prev img { width: 100%; display: block; }
.sy-vc-f { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 10px; }
.sy-vc-f .field { margin-bottom: 4px; }
.sy-vc-pos { grid-column: 1 / -1; display: grid; grid-template-columns: 120px 1fr 1fr; gap: 10px; align-items: end; padding: 6px 0; border-top: 1px solid var(--line); }
.sy-vc-pos > b { font-size: 13px; padding-bottom: 16px; }

/* logs grid */
.sy-logs2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 14px; }
.sy-lc { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: #262629; border: 1px solid transparent; transition: border-color 0.15s, background 0.15s; }
.sy-lc.on { border-color: rgba(213, 213, 216, 0.3); background: linear-gradient(180deg, #28282b, #1f1f22); }
.sy-lc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.sy-lc-h b { font-size: 16px; font-weight: 600; }
.sy-lc-l { font-size: 11px; letter-spacing: 1px; color: var(--muted); margin-top: 2px; }
.sy-lc-c { position: relative; display: block; height: 42px; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.sy-lc-c input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); border: 0; padding: 0; cursor: pointer; }
.sy-lc-c .mono-s { position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -50%; font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); pointer-events: none; }

.sy-pmsg { padding: 20px; text-align: center; line-height: 1.6; }
.sy-cimg { background: repeating-conic-gradient(#2b2d31 0% 25%, #313338 0% 50%) 50% / 16px 16px; }

/* invite links with bot avatar / status */
.lk-row { gap: 10px; }
.lk-av { width: 34px; height: 34px; border-radius: 50%; flex: none; background: rgba(255,255,255,.06); object-fit: cover; }
.lk-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.lk-who b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-who small { font-size: 11.5px; }
.lnk > .lk-st { flex: none; }
.lk-st { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted, #9aa); white-space: nowrap; }
.lk-st.ok { background: rgba(35,165,90,.15); color: #3ddc84; }
.lk-st.off { background: rgba(240,178,50,.14); color: #f0b232; }
.lk-st.bad { background: rgba(237,66,69,.15); color: #ff6b6e; }
.lk-st.wait { opacity: .7; }
.lk-out .lk-av { filter: grayscale(.7); opacity: .75; }
@media (max-width: 560px) { .lk-who small { display: none; } }
