/* أوبتس — «التطبيقات» v2 (mcp-full-web 2026-11-13) فوق «التطبيقات مثل Claude». حبر وورق وفضي (ألوان الثيم ورموز polish بس، بلا ذهبي)،
   منطقي RTL/LTR، 44px للمس، ونفس الزجاج الأسود مال polish/ui-loop للأوراق والقوائم. */
.cx-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cx-top .cx-q { flex: 1 1 220px; margin-top: 0; min-height: 44px; }
.cx-top .cx-add { flex: none; }
.cx-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.cx-chips::-webkit-scrollbar { display: none; }
.cx-chip { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--silver); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.cx-chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cx-chip:focus-visible, .cx-opt:focus-visible, .cx-sw:focus-visible { outline: 2px solid var(--silver); outline-offset: 2px; }
.cx-h { font-size: 13px; font-weight: 600; color: var(--mute); margin: 18px 0 8px; letter-spacing: 0; }
.cx-rows .cx-row { gap: 12px; }
.cx-row .lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-row .sub, .cx-card .sub { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cx-n { font-weight: 600; }
.cx-logo { flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--panel2);
  border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 15px; }
.cx-row.is-linked .cx-logo { border-color: var(--line2); }
.cx-badge { display: inline-block; align-self: flex-start; margin-inline-start: 0; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line2);
  color: var(--silver); font-size: 11.5px; font-weight: 500; vertical-align: middle; }
.cx-soon { font-size: 13px; }
.cx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cx-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg); min-height: 150px; }
.cx-card .cx-logo { width: 40px; height: 40px; }
.cx-card .btn, .cx-card .cx-soon { margin-top: auto; align-self: flex-start; }
.cx-empty { padding: 18px 0; text-align: center; color: var(--mute); }
.cx-foot { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cx-foot .lnk, .cx-pfoot .lnk { min-height: 44px; padding: 0; background: none; border: 0; color: var(--text); text-decoration: underline;
  text-underline-offset: 3px; font: inherit; cursor: pointer; }

/* الأوراق */
.cx-ov { position: fixed; inset: 0; z-index: 80; background: #0009; display: grid; place-items: center; padding: 16px; animation: fadeIn .16s ease-out both; }
.cx-sheet { width: min(560px, 100%); max-height: calc(100dvh - 32px); }
.cx-sheet .sheet-head { padding: 14px 14px 8px 18px; }
.cx-sheet .cx-x { width: 44px; height: 44px; margin-inline-start: auto; }
.cx-body { padding: 4px 18px 16px; overflow: auto; flex: 1; }
.cx-ft { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.cx-ft:empty { display: none; }
.cx-ft .btn, .cx-acts .btn { width: auto; margin-top: 0; min-height: 44px; }
.cx-mhead { display: flex; gap: 12px; align-items: center; padding: 6px 0 4px; }
.cx-mhead > div { display: flex; flex-direction: column; gap: 2px; }
.cx-allbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 0 0; }
.cx-allbar .lbl { flex: 1 1 140px; color: var(--silver); font-size: 14px; }
.cx-allbar select { min-height: 44px; padding: 7px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; }
.cx-allbar .btn { width: auto; margin-top: 0; }
.cx-tool .sub { color: var(--mute); font-size: 13px; }
.cx-tn { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.cx-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cx-opt { min-height: 40px; padding: 6px 8px; border: 0; background: transparent; color: var(--silver); font: inherit; font-size: 13.5px; cursor: pointer; }
.cx-opt + .cx-opt { border-inline-start: 1px solid var(--line); }
.cx-opt.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.cx-opt.never.on { background: var(--panel2); color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.cx-opt:disabled { opacity: .38; cursor: not-allowed; }
.cx-danger { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.cx-danger .btn { width: auto; }
.cx-sure { margin: 0 0 8px; }
.cx-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 10px; }
.cx-form .cx-lab, .cx-found .cx-lab { display: block; margin-top: 12px; font-size: 14px; color: var(--silver); }
.cx-found .card-set { margin-top: 12px; }
.cx-adv { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px 12px; }
.cx-adv summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: var(--silver); }
.cx-code1 { display: block; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--code); font-size: 12.5px; overflow-wrap: anywhere; }
.cx-warn { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--danger); background: var(--panel2); }
.cx-warn p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; }
.cx-check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.cx-check input { width: 20px; height: 20px; accent-color: var(--text); }
.cx-err { color: var(--danger); margin: 10px 0 0; }
.cx-note { padding: 10px 12px; border-radius: 12px; background: var(--panel2); color: var(--silver); font-size: 14px; }
.cx-client .cx-steps { margin: 0; padding-inline-start: 22px; line-height: 1.9; font-size: 14.5px; }
.cx-code { margin: 12px 0 0; padding: 12px; border-radius: 12px; background: var(--code); border: 1px solid var(--line); font-size: 12.5px;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; text-align: left; }

/* زر «التطبيقات» وقائمته بصندوق الكتابة */
#composer { position: relative; }
.cx-cbtn { position: relative; width: auto !important; min-width: 44px; padding-inline: 10px; gap: 6px; display: inline-flex; align-items: center; }
.cx-cbtn .cx-cl { font-size: 13.5px; }
.cx-cbtn .cx-dot { position: absolute; top: 8px; inset-inline-end: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--silver); }
.cx-pop { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; z-index: 30; width: min(340px, calc(100vw - 32px)); max-height: min(420px, 60dvh);
  overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 40px var(--shadow); padding: 10px 14px; }
.cx-ph { font-weight: 700; font-size: 15px; padding: 4px 0; }
.cx-plist .hint { margin: 2px 0 8px; font-size: 13px; color: var(--mute); }
.cx-plist .btn { width: auto; }
.cx-pop { text-align: start; }
.cx-prow { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); }
.cx-prow .cx-logo { width: 30px; height: 30px; font-size: 13px; }
.cx-prow .cx-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.cx-sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; padding: 0; }
.cx-sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mute); transition: inset-inline-start var(--dur, .18s) var(--ease, ease); }
.cx-sw[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.cx-sw[aria-checked="true"]::after { inset-inline-start: 21px; background: var(--on-accent); }
.cx-pfoot { border-top: 1px solid var(--line); margin-top: 4px; }

/* شارة نشاط الأداة */
.tool.cx-tool-chip .cx-logo { width: 18px; height: 18px; border-radius: 5px; font-size: 10.5px; border: 0; background: transparent; }
.tool.cx-tool-chip.cx-custom { border-style: dashed; }
.tool.wait { border-color: var(--line2); }
.tool.wait .td { color: var(--silver); font-size: 12px; }
.tool.cx-tool-chip[data-cx="blocked"] .td, .tool.cx-tool-chip[data-cx="off"] .td { font-size: 12px; color: var(--mute); }

.cx-toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); inset-inline-start: 50%; transform: translateX(-50%); z-index: 90;
  display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 14px; }
[dir="rtl"] .cx-toast { transform: translateX(50%); }
.cx-toast .lnk { background: none; border: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; min-height: 32px; }

@media (max-width: 899px) {
  .cx-cbtn .cx-cl { display: none; }
  .cx-ov { padding: 0; place-items: end stretch; }
  .cx-sheet { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .cx-ft { position: sticky; bottom: 0; background: var(--panel); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .cx-ft .btn { flex: 1; }
  .cx-cards { grid-template-columns: repeat(2, 1fr); }
  .cx-top .cx-add { flex: 1 1 100%; }
}

/* ===================== v2 (mcp-full-web 2026-11-13) ===================== */
/* صف التطبيق: الأزرار والسويچ، المطفي، نقطة الحالة */
.cx-ra { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.cx-ra .btn { width: auto; margin-top: 0; white-space: nowrap; }
.cx-dis { color: var(--mute) !important; border-style: dashed !important; opacity: 1 !important; cursor: not-allowed !important; font-size: 13px !important; }
.cx-card .cx-ra { margin-top: auto; align-self: flex-start; }
.cx-row.is-off .cx-logo, .cx-row.is-off .cx-n { opacity: .55; }
.cx-dotst { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-inline-end: 6px; vertical-align: 1px; background: var(--mute); }
.cx-dotst.cx-st-connected { background: var(--ok); }
.cx-dotst.cx-st-failed { background: var(--danger); }
.cx-dotst.cx-st-needs_auth { background: transparent; box-shadow: inset 0 0 0 1.5px var(--silver); }
.cx-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--op-r-pill, 999px); border: 1px solid var(--line2);
  font-size: 12.5px; color: var(--silver); white-space: nowrap; }
.cx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cx-pill.cx-st-connected { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.cx-pill.cx-st-failed { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.cx-pill.cx-st-needs_auth { border-style: dashed; }
.cx-pill.cx-st-disabled, .cx-pill.cx-st-unknown, .cx-pill.cx-st-connecting { color: var(--mute); }
.cx-badge-ws { border-style: solid; border-color: var(--line); }
.cx-bw { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-tbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cx-tbar .btn { width: auto; margin-top: 0; min-height: 40px; }
.cx-limit { margin: 8px 0 0; font-size: 12.5px; }
.cx-foot .cx-rules { min-height: 40px; }

/* الأوراق: نفس زجاج polish */
.cx-ov { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.cx-sheet { background: var(--panel); background-image: var(--op-sheen, none); border-color: var(--op-glass-line, var(--line)); }
.cx-sheet .sheet-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-mhead .cx-pill { margin-inline-start: auto; }
.cx-mhead > div { min-width: 0; }
.cx-ctl { margin-top: 10px; padding: 4px 14px 12px; border: 1px solid var(--line); border-radius: var(--op-r-md, 14px); background: var(--bg); }
.cx-swrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; }
.cx-swhint { margin: 0 0 4px; }
.cx-mact { margin-top: 6px; justify-content: flex-start; }
.cx-cinfo { margin-top: 12px; }
.cx-kv .row { flex-wrap: wrap; min-height: 44px; padding: 8px 0; }
.cx-kv .val { min-width: 0; overflow-wrap: anywhere; text-align: start; }
.cx-url, .cx-hn, .cx-tcode, .cx-code0, .cx-ltool, .cx-lcode, .cx-mcmd, .cx-rule bdi { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.cx-url { overflow-wrap: anywhere; }
.cx-sv.ok { color: var(--ok); }
.cx-cacts { justify-content: flex-start; }
.cx-sform { margin-top: 10px; padding: 4px 14px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cx-sform[hidden] { display: none; }
.cx-fld .cx-lab { display: block; margin-top: 12px; font-size: 14px; color: var(--silver); }
.cx-fld .field { margin-top: 6px; min-height: 44px; }
.cx-secret { letter-spacing: .08em; }
.cx-th { margin-top: 22px; }
.cx-tqw .cx-tq { margin-top: 0; min-height: 44px; }
.cx-tool .row-in { flex-wrap: wrap; align-items: baseline; justify-content: flex-start; }
.cx-tcode { color: var(--mute); }

/* قواعد السماح والمنع */
.cx-perms { margin-top: 22px; padding-top: 4px; border-top: 1px solid var(--line); }
.cx-rg { margin-top: 10px; }
.cx-rgl { display: block; font-size: 13px; color: var(--silver); margin-bottom: 6px; font-weight: 600; }
.cx-rchipset { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-rule { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding-inline: 12px 0; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); max-width: 100%; }
.cx-rule bdi { overflow-wrap: anywhere; }
.cx-rule-deny { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.cx-rx { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--mute); cursor: pointer; font: inherit; font-size: 13px; }
.cx-rx:hover { color: var(--text); }
.cx-rx:focus-visible, .cx-mi:focus-visible, .cx-aopt:focus-visible { outline: 2px solid var(--silver); outline-offset: 1px; }
.cx-radd { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; align-items: center; }
.cx-radd .field { margin-top: 0; min-height: 44px; }
.cx-radd select { min-height: 44px; padding: 7px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; max-width: 100%; }
.cx-radd .btn { width: auto; margin-top: 0; min-height: 44px; }

/* الإضافة: طريقة الدخول */
.cx-authbox { margin-top: 14px; }
.cx-authbox > .cx-lab { display: block; font-size: 14px; color: var(--silver); margin-bottom: 8px; }
.cx-aseg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cx-aopt { min-height: 44px; padding: 6px 8px; border: 0; background: transparent; color: var(--silver); font: inherit; font-size: 13.5px; cursor: pointer; line-height: 1.3; }
.cx-aopt + .cx-aopt { border-inline-start: 1px solid var(--line); }
.cx-aopt.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.cx-authf .cx-adv { margin-top: 10px; }
.cx-adv .field { margin-top: 8px; min-height: 44px; }
.cx-tw { color: var(--silver); }
.cx-tr { font-size: 13px; }

/* الاستيراد والتصدير */
.cx-ta { min-height: 190px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; tab-size: 2; white-space: pre; overflow: auto; }
.cx-improw { justify-content: flex-start; margin-top: 8px; }
.cx-impres { margin-top: 10px; }
.cx-imp .lbl { flex: 1; }
.cx-impmsg { font-size: 13px; color: var(--ok); }
.cx-imp.bad .cx-impmsg { color: var(--danger); }
.cx-imp.local .cx-impmsg { color: var(--silver); }
.cx-mark { flex: none; width: 28px; text-align: center; font-weight: 700; color: var(--ok); }
.cx-imp.bad .cx-mark { color: var(--danger); }
.cx-badge-code { flex: none; border-style: solid; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }

/* لوحة الحالة والسجل */
.cx-stset .row.col { gap: 6px; }
.cx-sttop { display: flex; align-items: center; gap: 10px; }
.cx-sttop .cx-logo { width: 32px; height: 32px; }
.cx-stx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-stn { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cx-stx .sub { color: var(--mute); font-size: 12.5px; }
.cx-sterr { margin: 0; font-size: 13px; color: var(--danger); line-height: 1.6; overflow-wrap: anywhere; }
.cx-at { color: var(--mute); margin-inline-end: 8px; font-variant-numeric: tabular-nums; }
.cx-code0 { color: var(--mute); margin-inline-start: 8px; }
.cx-stacts { margin-top: 2px; justify-content: flex-start; }
.cx-hhead { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cx-hhead .cx-n { flex: 1; min-width: 0; }
.cx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; margin-top: 10px; }
.cx-tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.cx-tk { font-size: 12px; color: var(--mute); }
.cx-tv { font-size: 17px; font-variant-numeric: tabular-nums; }
.cx-lerr { margin-top: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent); border-radius: 12px; }
.cx-lerr p { margin: 4px 0; font-size: 14px; overflow-wrap: anywhere; }
.cx-log { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--op-r-md, 14px); background: var(--bg); }
.cx-li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 22px; gap: 4px 10px; align-items: center; padding: 8px 12px; min-height: 40px;
  border-top: 1px solid var(--line); font-size: 13px; }
.cx-li:first-child { border-top: 0; }
.cx-lt { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.cx-lw { min-width: 0; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.cx-lop { color: var(--silver); }
.cx-ltool { overflow-wrap: anywhere; }
.cx-lms { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.cx-lok { text-align: center; color: var(--ok); font-weight: 700; }
.cx-li.bad .cx-lok { color: var(--danger); }
.cx-lcode { grid-column: 2 / -1; color: var(--danger); font-size: 12px; }

/* لمساحة العمل */
.cx-wsbox[hidden] { display: none; }
.cx-wsbox { margin-top: 4px; }
.cx-ws { margin-top: 10px; padding: 10px 14px 4px; border: 1px solid var(--line); border-radius: var(--op-r-md, 14px); }
.cx-wsh { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-height: 44px; }
.cx-wsh .cx-n { flex: 1 1 auto; }
.cx-wsh .btn { width: auto; margin-top: 0; }
.cx-ws .card-set { margin: 6px 0 10px; }
.cx-okl { color: var(--ok); font-size: 13px; white-space: nowrap; }

/* صندوق الكتابة: قائمة «/» و«@» والموارد المرفقة */
.cx-menu { position: absolute; bottom: calc(100% + 8px); inset-inline-start: 0; z-index: 31; width: min(460px, 100%); max-height: min(360px, 52dvh); overflow: auto;
  padding: 6px; border-radius: 16px; border: 1px solid var(--op-glass-line, var(--line)); background: var(--op-glass, var(--panel)); background-image: var(--op-sheen, none);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--op-e3, 0 14px 40px var(--shadow)); text-align: start; scrollbar-width: thin; }
.cx-mh { font-size: 12px; color: var(--mute); padding: 6px 10px 4px; font-weight: 600; }
.cx-mi { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 7px 10px; border-radius: 10px; cursor: pointer; }
.cx-mi.on { background: rgba(127, 127, 127, .16); }
.cx-mi1 { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.cx-mcmd { font-weight: 600; flex: none; }
.cx-mtitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-msub { color: var(--mute); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#composer.cx-menu-open #ftAt { display: none !important; }
.cx-rchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px 0; }
.cx-rchips[hidden] { display: none; }
.cx-rc { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: 100%; padding-inline: 10px 0; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--text); font-size: 13px; }
.cx-rc svg { flex: none; color: var(--silver); }
.cx-rct { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-pop { background: var(--op-glass, var(--panel)); background-image: var(--op-sheen, none); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-color: var(--op-glass-line, var(--line)); box-shadow: var(--op-e3, 0 14px 40px var(--shadow)); }

@media (max-width: 899px) {
  .cx-tbar .btn { flex: 1 1 auto; }
  .cx-aseg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-aopt:nth-child(3) { border-inline-start: 0; }
  .cx-aopt:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cx-radd { grid-template-columns: minmax(0, 1fr) auto; }
  .cx-radd select { grid-column: 1 / -1; }
  .cx-menu { width: 100%; }
}
@media (max-width: 480px) {
  .cx-row { flex-wrap: wrap; }
  .cx-row .lbl { flex: 1 1 60%; }
  .cx-ra { margin-inline-start: auto; }
  .cx-li { grid-template-columns: minmax(0, 1fr) auto 22px; }
  .cx-lt { grid-column: 1 / -1; }
  .cx-rct { max-width: 160px; }
}
/* السويچ: نفس الشكل (44×26) بس منطقة اللمس 52×44 */
.cx-sw { width: 52px; height: 44px; border: 0; background: transparent; border-radius: 999px; }
.cx-sw::before { content: ""; position: absolute; top: 9px; inset-inline-start: 4px; width: 44px; height: 26px; box-sizing: border-box; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--panel2); transition: background var(--dur, .18s) var(--ease, ease), border-color var(--dur, .18s) var(--ease, ease); }
.cx-sw::after { top: 13px; inset-inline-start: 8px; z-index: 1; }
.cx-sw[aria-checked="true"] { background: transparent; border-color: transparent; }
.cx-sw[aria-checked="true"]::before { background: var(--accent); border-color: var(--accent); }
.cx-sw[aria-checked="true"]::after { inset-inline-start: 26px; }
.cx-sw:disabled { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .cx-sw::after, .cx-sw::before { transition: none; } }
.cx-code0i { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
