/* ==========================================================================
   Control Panel applets — shared helpers (XP.cpl.*) + one section per applet.
   Each applet's rules are prefixed .app-<id>. Keep edits inside your section.
   ========================================================================== */

/* ---------- shared: XP.cpl helpers ---------- */
.cpl-sheet .tab-panel { padding: 10px 8px; }
.cpl-sheet .xp-tabs .tab-strip { flex-wrap: wrap; row-gap: 0; }
.cpl-sheet p, .cpl-dlg p { margin: 0 0 8px; line-height: 14px; }
.cpl-row { display: flex; align-items: center; gap: 6px; margin: 4px 0; flex-wrap: wrap; }
.cpl-row.right { justify-content: flex-end; }
.cpl-row.top { align-items: flex-start; }
.cpl-col { display: flex; flex-direction: column; gap: 5px; }
.cpl-sheet .xp-check.disabled, .cpl-sheet .xp-radio.disabled, .cpl-dlg .xp-check.disabled, .cpl-dlg .xp-radio.disabled { color: #A19F92; }
.cpl-sheet .xp-group, .cpl-dlg .xp-group { min-width: 0; }
.cpl-sheet select.xp-select, .cpl-dlg select.xp-select { max-width: 100%; min-width: 0; }
.cpl-note { color: #444; line-height: 14px; }
.cpl-link { color: #0000EE; text-decoration: underline; cursor: var(--cur-hand); background: none; border: 0; padding: 0; font: inherit; text-align: left; }
.cpl-link:hover { color: #3366FF; }
.cpl-bigicon { flex: none; }

/* spinner */
.cpl-spinner { display: inline-flex; align-items: stretch; height: 21px; }
.cpl-spinner .xp-input { border-right: 0; text-align: left; }
.cpl-spin-btns { display: flex; flex-direction: column; width: 16px; border: 1px solid var(--xp-border-blue); border-left: 0; background: #fff; padding: 1px; gap: 1px; }
.cpl-spin-btn { flex: 1; min-height: 0; border: 0; border-radius: 2px; background: #C3D3FD; position: relative; padding: 0; cursor: var(--cur-arrow); }
.cpl-spin-btn:hover { background: #D8E4FE; }
.cpl-spin-btn:active { background: #9DB5F4; }
.cpl-spin-btn::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 3px solid transparent; }
.cpl-spin-btn.up::after { border-bottom: 3px solid #4D6185; border-top: 0; }
.cpl-spin-btn.down::after { border-top: 3px solid #4D6185; border-bottom: 0; }

/* monitor preview */
.cpl-monitor { display: flex; flex-direction: column; align-items: center; margin: 2px auto 8px; user-select: none; }
.cpl-mon-bezel { position: relative; width: 184px; height: 150px; padding: 12px 13px 22px; border-radius: 7px 7px 4px 4px;
  background: linear-gradient(135deg, #F4F3EE 0%, #DAD7CB 50%, #BDB9A9 100%); border: 1px solid #8B887A;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #A5A294; }
.cpl-mon-screen { position: relative; width: 100%; height: 100%; background: #000; border: 1px solid; border-color: #6E6C60 #fff #fff #6E6C60; overflow: hidden; }
.cpl-mon-led { position: absolute; right: 16px; bottom: 8px; width: 5px; height: 5px; border-radius: 50%; background: #3FD13F; box-shadow: 0 0 2px #3FD13F; }
.cpl-mon-neck { width: 40px; height: 8px; background: linear-gradient(to right, #B7B3A3, #E1DED3, #B7B3A3); border-left: 1px solid #8B887A; border-right: 1px solid #8B887A; }
.cpl-mon-foot { width: 104px; height: 9px; border-radius: 5px 5px 2px 2px; background: linear-gradient(to bottom, #EDEBE3, #BAB6A6); border: 1px solid #8B887A; }
.cpl-mon-screen canvas { display: block; width: 100%; height: 100%; }

/* small dialogs */
.cpl-dlg .custom-dlg { gap: 0; }
.cpl-dlg .xp-list { min-height: 60px; }

/* ================================================================ display */
/* (Display Properties styles live in css/apps/display.css) */

/* ===== cpl-taskbarprops ===== */
.cpl-dlg .xp-tabs .tab-strip { flex-wrap: wrap; }
.cpl-dlg .xp-tabs .tab-panel { padding: 8px; }
.app-taskbarprops .tb-pv { display: flex; align-items: center; gap: 4px; height: 30px; margin: 2px 0 8px; padding-right: 0; overflow: hidden;
  background: linear-gradient(#3168D5, #4993E6 8%, #2157D7 40%, #2663E0 88%, #1941A5); border: 1px solid #808080; }
.app-taskbarprops .tb-pv.hidden-bar { height: 8px; }
.app-taskbarprops .tb-pv.hidden-bar > * { display: none; }
.app-taskbarprops .tb-pv.unlocked { box-shadow: inset 0 2px 0 #9DB9EB; }
.app-taskbarprops .tb-pv i { font-style: normal; }
.app-taskbarprops .tb-pv-start { height: 100%; display: flex; align-items: center; gap: 3px; padding: 0 12px 0 6px; border-radius: 0 10px 10px 0;
  background: linear-gradient(#3C9A3C, #53B04D 20%, #3D9B3A 70%, #2F862D); color: #fff; font: italic bold 14px var(--font-title); text-shadow: 1px 1px 1px #1A4D1A; }
.app-taskbarprops .tb-pv-ql { display: flex; gap: 2px; padding: 0 4px; border-right: 1px solid #1941A5; }
.app-taskbarprops .tb-pv-btns { flex: 1; display: flex; gap: 2px; min-width: 0; }
.app-taskbarprops .tb-pv-btn { display: flex; align-items: center; gap: 3px; height: 22px; padding: 0 6px; border-radius: 3px; color: #fff; background: #3C81F3;
  border: 1px solid #1C4EB8; white-space: nowrap; overflow: hidden; min-width: 0; font-size: 11px; }
.app-taskbarprops .tb-pv-btn.small { flex: 1; }
.app-taskbarprops .tb-pv-btn b { font-weight: normal; margin-left: 4px; }
.app-taskbarprops .tb-pv-tray { height: 100%; display: flex; align-items: center; gap: 3px; padding: 0 8px; color: #fff; background: linear-gradient(#0C59B9, #139EE9 10%, #18B5F2 20%, #139BEB 50%, #1290E8 90%, #0D8DEA); border-left: 1px solid #092E96; margin-left: auto; }
.app-taskbarprops .tb-pv.tray-only { justify-content: flex-end; background: #fff; border-color: #7F9DB9; }
.app-taskbarprops .tb-pv-tray .chev { font-weight: bold; font-size: 13px; padding: 0 2px; }
.app-taskbarprops .tb-hide-row { justify-content: space-between; flex-wrap: nowrap; }
.app-taskbarprops .tb-traylist { height: 150px; }
.app-taskbarprops .tb-traylist .row { justify-content: space-between; gap: 6px; }
.app-taskbarprops .tb-traylist .row .xp-select { width: 130px; flex: none; height: 19px; }
.app-taskbarprops .tb-name { display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
.app-taskbarprops .tb-head { background: var(--xp-face); border-bottom: 1px solid #ACA899; }
.app-taskbarprops .tb-sect { font-weight: bold; color: #555; }
.app-taskbarprops .tb-adv { height: 130px; margin-bottom: 8px; }
.app-taskbarprops .sm-pv-wrap { height: 160px; display: flex; align-items: flex-start; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.app-taskbarprops .sm-pv { width: 230px; border: 1px solid #1C4EB8; border-radius: 6px 6px 0 0; font-size: 10px; background: #fff; overflow: hidden; box-shadow: 2px 2px 4px rgba(0,0,0,.3); }
.app-taskbarprops .sm-pv-head { display: flex; align-items: center; gap: 5px; padding: 4px 6px; color: #fff; font: bold 11px var(--font-title); background: linear-gradient(#1868CE, #0E60CB 20%, #0E60CB 80%, #0A4FB5); }
.app-taskbarprops .sm-pv-head .ico { border: 1px solid #fff; border-radius: 2px; }
.app-taskbarprops .sm-pv-body { display: flex; }
.app-taskbarprops .sm-pv-l { flex: 1; padding: 3px; }
.app-taskbarprops .sm-pv-l div { display: flex; align-items: center; gap: 3px; padding: 1px 0; }
.app-taskbarprops .sm-pv-r { flex: 1; padding: 3px; background: #D3E5FA; border-left: 1px solid #95BDEE; color: #0A246A; font-weight: bold; }
.app-taskbarprops .sm-pv-r div { padding: 2px 0; }
.app-taskbarprops .sm-pv-foot { display: flex; justify-content: flex-end; align-items: center; gap: 3px; padding: 3px 6px; color: #fff; background: linear-gradient(#1868CE, #0A4FB5); }
.app-taskbarprops .sm-pv.classic { display: flex; width: 170px; border-radius: 0; border: 2px outset #D4D0C8; background: #D4D0C8; }
.app-taskbarprops .sm-pv-band { writing-mode: vertical-rl; transform: rotate(180deg); background: linear-gradient(#0A246A, #A6CAF0); color: #fff; font-weight: bold; padding: 4px 3px; }
.app-taskbarprops .sm-pv-items { flex: 1; }
.app-taskbarprops .sm-pv-items div { display: flex; align-items: center; gap: 4px; padding: 2px 4px; }
.app-taskbarprops .sm-opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-taskbarprops .sm-desc { padding: 2px 0 10px 19px; margin: 0; }
/* ===== end cpl-taskbarprops ===== */

/* ===== cpl-timedate ===== */
.app-timedate .td-cols { display: flex; gap: 8px; flex-wrap: wrap; }
.app-timedate .td-cols .xp-group:first-child { flex: 1 1 200px; }
.app-timedate .td-cols .xp-group:last-child { flex: 0 1 150px; display: flex; flex-direction: column; align-items: center; }
.app-timedate .td-cols .xp-select { flex: 1; }
.app-timedate .td-cal { display: grid; grid-template-columns: repeat(7, 1fr); background: #fff; border: 1px solid #7F9DB9; margin-top: 6px; text-align: center; }
.app-timedate .td-dow { background: #7A96DF; color: #fff; padding: 2px 0; }
.app-timedate .td-day { padding: 2px 0; cursor: var(--cur-arrow); }
.app-timedate .td-day.sel { background: var(--xp-hilite); color: #fff; }
.app-timedate .td-clock { width: 120px; height: 120px; margin: 4px auto 8px; display: block; }
.app-timedate .td-time { display: flex; justify-content: center; }
.app-timedate .td-zone { margin-top: 8px; }
.app-timedate .td-tz .td-zone-sel { width: 100%; margin-bottom: 8px; }
.app-timedate .td-map-wrap { border: 1px solid; border-color: #ACA899 #fff #fff #ACA899; margin-bottom: 8px; }
.app-timedate .td-map { display: block; width: 100%; height: auto; }
.app-timedate .td-inet .cpl-row { margin: 10px 0; }
.app-timedate .td-server { flex: 1; min-width: 120px; }
.app-timedate .td-inet-status { min-height: 30px; }
.app-timedate .td-inet-status.err { color: #000; }
.app-timedate .td-inet-foot { margin-top: 40px; }
/* ===== end cpl-timedate ===== */

/* ===== cpl-powercfg ===== */
.app-powercfg .xp-group .xp-select, .app-powercfg .pw-wide { width: 100%; }
.app-powercfg .cpl-row.top p { flex: 1; margin: 0; line-height: 14px; }
.app-powercfg .pw-field { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 6px; margin: 5px 0; }
.app-powercfg .pw-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; }
.app-powercfg .pw-apc { color: #444; margin-top: 20px; }
/* ===== end cpl-powercfg ===== */

/* ===== cpl-mouse ===== */
.app-mouse .ms-grow { flex: 1; min-width: 0; }
.app-mouse .ms-split { flex-wrap: nowrap; justify-content: space-between; }
.app-mouse .ms-desc { color: #333; margin: 6px 0 0; line-height: 14px; }
.app-mouse .ms-ind { padding-left: 38px; }
.app-mouse .ms-artwrap { width: 70px; flex: none; display: flex; justify-content: center; }
.app-mouse .ms-body { position: relative; width: 44px; height: 70px; border-radius: 22px 22px 20px 20px; background: linear-gradient(to right, #E8E8E8, #fff 40%, #CFCFCF); border: 1px solid #777; overflow: hidden; }
.app-mouse .ms-body i { position: absolute; top: 0; width: 50%; height: 30px; border-bottom: 1px solid #777; }
.app-mouse .ms-body i.l { left: 0; border-right: 1px solid #777; background: #316AC5; }
.app-mouse .ms-body i.r { right: 0; }
.app-mouse .ms-art.swapped i.l { background: none; }
.app-mouse .ms-art.swapped i.r { background: #316AC5; }
.app-mouse .ms-wheel { position: absolute; left: 50%; top: 8px; width: 6px; height: 14px; margin-left: -3px; border-radius: 3px; background: #888; }
.app-mouse .ms-test { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border: 1px solid; border-color: #ACA899 #fff #fff #ACA899; background: #fff; cursor: var(--cur-arrow); }
.app-mouse .ms-bigcur { width: 64px; height: 64px; flex: none; margin: 8px 0 0 8px; background: #fff; border: 1px solid #7F9DB9; display: grid; place-items: center; }
.app-mouse .ms-cur { display: inline-block; width: 32px; height: 32px; background: center / contain no-repeat; flex: none; }
.app-mouse .ms-cur.big { width: 48px; height: 48px; }
.app-mouse .ms-curlist { height: 150px; margin: 3px 0 6px; }
.app-mouse .ms-curlist .row { justify-content: space-between; height: 34px; }
.app-mouse .ms-curlist .row.sel .ms-cur { background-color: #fff; border-radius: 2px; }
.app-mouse .ms-hw { height: 60px; margin-bottom: 8px; }
.app-mouse .ms-hw .row { justify-content: space-between; }
.app-mouse .xp-group p { margin: 0 0 4px; }
/* ===== end cpl-mouse ===== */

/* ===== cpl-sysdm ===== */
.app-sysdm .sd-general { display: flex; gap: 10px; padding-top: 10px; flex-wrap: wrap; }
.app-sysdm .sd-logo { width: 150px; flex: none; display: flex; flex-direction: column; align-items: center; }
.app-sysdm .sd-word { font: 22px var(--font-title); color: #1A3E98; display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; justify-content: center; }
.app-sysdm .sd-word small { font-size: 10px; width: 100%; text-align: center; color: #444; }
.app-sysdm .sd-word b { font-weight: bold; letter-spacing: -.5px; }
.app-sysdm .sd-word .xp { color: #E8641B; font-weight: bold; font-size: 15px; font-style: italic; }
.app-sysdm .sd-text { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.app-sysdm .sd-ind { padding-left: 18px; min-height: 13px; }
.app-sysdm .sd-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin: 10px 0; }
.app-sysdm .sd-wide { width: 100%; min-width: 0; }
.app-sysdm .sd-cn-row { flex-wrap: nowrap; align-items: flex-start; margin-top: 14px; }
.app-sysdm .sd-cn-row p { flex: 1; }
.app-sysdm .sd-cn-row .xp-btn { flex: none; }
.app-sysdm .sd-rename .xp-input { width: 100%; }
.app-sysdm .sd-rename > .xp-input { margin: 3px 0 10px; }
.app-sysdm .xp-group .cpl-row.top p { flex: 1; }
.app-sysdm.window .window-body { display: flex; flex-direction: column; }
.app-sysdm .sd-tree { flex: 1; margin: 0; border: 0; border-top: 1px solid #ACA899; padding: 2px; }
.app-sysdm .sd-tree .row { cursor: var(--cur-arrow); gap: 3px; width: max-content; }
.app-sysdm .sd-kids { padding-left: 18px; }
.app-sysdm .sd-node:not(.open) > .sd-kids { display: none; }
.app-sysdm .sd-tog { width: 9px; height: 9px; border: 1px solid #919B9C; font-size: 9px; line-height: 7px; text-align: center; background: #fff; }
.app-sysdm .sd-tree .row.sel { background: var(--xp-hilite); color: #fff; }
.app-sysdm .sd-status { white-space: pre-wrap; padding: 4px; height: 80px; margin-bottom: 6px; }
.app-sysdm .sd-fxlist { height: 120px; margin-top: 4px; }
.app-sysdm .sd-env { height: 100px; margin-bottom: 6px; }
.app-sysdm .sd-env .row { display: grid; grid-template-columns: 45% 55%; }
.app-sysdm .sd-env .row span { overflow: hidden; text-overflow: ellipsis; }
.app-sysdm .sd-envh { background: var(--xp-face); border-bottom: 1px solid #ACA899; }
.app-sysdm .sd-disk .xp-slider { flex: 1; }
.app-sysdm .sd-drive { display: flex; align-items: center; gap: 8px; }
.app-sysdm .sd-au .xp-radio { margin-top: 6px; align-items: flex-start; }
.app-sysdm .sd-au-warn { display: flex; gap: 4px; align-items: center; margin: 6px 0 0 18px; }
/* ===== end cpl-sysdm ===== */

/* ===== cpl-useraccounts ===== */
.app-useraccounts .ua-root { display: flex; flex-direction: column; height: 100%; }
.app-useraccounts .ua-cols { flex: 1; min-height: 0; display: flex; background: #fff; }
.app-useraccounts .ua-leftwrap { width: 190px; flex: none; background: linear-gradient(to bottom, #7BA2E7, #6375D6); padding: 12px 10px; overflow: auto; }
.app-useraccounts .ua-box { background: #D6DFF7; border-radius: 3px 3px 0 0; margin-bottom: 12px; padding-bottom: 6px; }
.app-useraccounts .ua-box-h { font-weight: bold; color: #215DC6; background: linear-gradient(to right, #fff, #C6D3F7); padding: 5px 10px; border-radius: 3px 3px 0 0; margin-bottom: 4px; }
.app-useraccounts .ua-box .ua-link { padding: 3px 10px; color: #215DC6; }
.app-useraccounts .ua-main { flex: 1; min-width: 0; overflow: auto; padding: 18px 26px; }
.app-useraccounts .ua-page h1 { font: bold 18px var(--font-title); color: #1E4DB7; margin: 0 0 14px; }
.app-useraccounts .ua-page h1 + .ua-tiles { margin-top: 4px; }
.app-useraccounts .ua-tasks { display: flex; flex-direction: column; gap: 6px; margin: 0 0 22px 10px; }
.app-useraccounts .ua-link { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 0; font: inherit; color: #0033CC; text-align: left; cursor: var(--cur-hand); }
.app-useraccounts .ua-link:hover span:last-child { text-decoration: underline; }
.app-useraccounts .ua-arrow { width: 16px; height: 16px; border-radius: 50%; background: #2F8D2F; position: relative; flex: none; }
.app-useraccounts .ua-arrow::after { content: ''; position: absolute; left: 6px; top: 4px; border: 4px solid transparent; border-left: 5px solid #fff; border-right: 0; }
.app-useraccounts .ua-tiles { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.app-useraccounts .ua-tile { display: flex; align-items: center; gap: 8px; width: 210px; padding: 4px; background: none; border: 1px solid transparent; border-radius: 3px; text-align: left; font: inherit; cursor: var(--cur-hand); }
.app-useraccounts .ua-tile:hover:not(:disabled) { border-color: #C3D3FD; background: #EEF3FF; }
.app-useraccounts .ua-tile:disabled { cursor: default; color: #000; }
.app-useraccounts .ua-pic { border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px #7F9DB9; display: grid; line-height: 0; }
.app-useraccounts .ua-tile-text { display: flex; flex-direction: column; gap: 1px; color: #555; }
.app-useraccounts .ua-tile-text b { color: #000; font-size: 12px; }
.app-useraccounts .ua-split { display: flex; gap: 20px; flex-wrap: wrap; }
.app-useraccounts .ua-split > div { flex: 1; min-width: 220px; }
.app-useraccounts .ua-in { width: 260px; max-width: 100%; margin-bottom: 8px; }
.app-useraccounts .ua-page p { margin: 0 0 5px; }
.app-useraccounts .ua-small { color: #444; font-size: 11px; }
.app-useraccounts .ua-ind { padding-left: 19px; margin-bottom: 8px; }
.app-useraccounts .ua-actions { margin-top: 18px; }
.app-useraccounts .ua-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.app-useraccounts .ua-pick { padding: 3px; border: 2px solid transparent; background: none; border-radius: 3px; line-height: 0; }
.app-useraccounts .ua-pick.sel { border-color: #316AC5; background: #C1D2EE; }
@media (max-width: 560px) { .app-useraccounts .ua-leftwrap { display: none; } .app-useraccounts .ua-main { padding: 12px; } }
/* ===== end cpl-useraccounts ===== */

/* ===== cpl-wscui ===== */
.app-wscui .wsc-root { display: flex; flex-direction: column; height: 100%; background: #fff; }
.app-wscui .wsc-header { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: #fff;
  background: linear-gradient(to bottom, #1C3B8B, #0B2A77 60%, #07205F); border-bottom: 3px solid #E88B1F; }
.app-wscui .wsc-title { font: bold 22px var(--font-title); }
.app-wscui .wsc-sub { font: 12px var(--font-title); opacity: .9; }
.app-wscui .wsc-flag { margin-left: auto; opacity: .9; }
.app-wscui .wsc-cols { flex: 1; min-height: 0; display: flex; }
.app-wscui .wsc-left { width: 180px; flex: none; background: linear-gradient(#EEF2FB, #D5DEF4); padding: 12px 10px; overflow: auto; border-right: 1px solid #B9C7E8; }
.app-wscui .wsc-left h3 { font-size: 12px; color: #1C3B8B; margin: 0 0 8px; }
.app-wscui .wsc-res { display: flex; gap: 6px; align-items: flex-start; background: none; border: 0; text-align: left; font: inherit; color: #0033CC; padding: 4px 0; cursor: var(--cur-hand); }
.app-wscui .wsc-res:hover span { text-decoration: underline; }
.app-wscui .wsc-main { flex: 1; min-width: 0; overflow: auto; padding: 12px 16px; }
.app-wscui .wsc-main h2 { font: bold 15px var(--font-title); color: #1C3B8B; margin: 0 0 6px; }
.app-wscui .wsc-ess-head p { margin: 0 0 6px; line-height: 14px; }
.app-wscui .wsc-bars { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 16px; }
.app-wscui .wsc-bar { border: 1px solid #9DB0DB; border-radius: 4px; overflow: hidden; }
.app-wscui .wsc-bar-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 0; font: bold 13px var(--font-title); text-align: left; cursor: var(--cur-hand);
  background: linear-gradient(#FFFFFF, #E1E8F7); }
.app-wscui .wsc-bar.off .wsc-bar-head { background: linear-gradient(#FFE8E8, #F5C6C6); }
.app-wscui .wsc-bar.warn .wsc-bar-head { background: linear-gradient(#FFF8DD, #F8E6A8); }
.app-wscui .wsc-bar-name { flex: 1; }
.app-wscui .wsc-state { display: flex; align-items: center; gap: 5px; font-size: 11px; font-family: var(--font-ui); }
.app-wscui .wsc-state i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.3); }
.app-wscui .wsc-state.on { color: #1B7A1B; } .app-wscui .wsc-state.on i { background: radial-gradient(circle at 35% 35%, #B8F5A8, #2FA52F); }
.app-wscui .wsc-state.off { color: #B00; } .app-wscui .wsc-state.off i { background: radial-gradient(circle at 35% 35%, #FFB0A8, #D42A1E); }
.app-wscui .wsc-state.warn { color: #8A6A00; } .app-wscui .wsc-state.warn i { background: radial-gradient(circle at 35% 35%, #FFF3A8, #E3B21E); }
.app-wscui .wsc-chev { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #9DB0DB; background: #fff; position: relative; flex: none; }
.app-wscui .wsc-chev::after { content: ''; position: absolute; left: 5px; top: 5px; width: 5px; height: 5px; border: solid #1C3B8B; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.app-wscui .wsc-bar.open .wsc-chev::after { transform: rotate(-135deg); top: 7px; }
.app-wscui .wsc-detail { display: none; padding: 8px 12px 10px 42px; background: #fff; line-height: 14px; }
.app-wscui .wsc-bar.open .wsc-detail { display: block; }
.app-wscui .wsc-detail p { margin: 0 0 6px; }
.app-wscui .wsc-manage { border-top: 1px solid #C9D5EF; padding-top: 10px; }
.app-wscui .wsc-manage-item { display: flex; align-items: center; gap: 10px; background: none; border: 0; font: 12px var(--font-ui); color: #0033CC; padding: 5px 4px; cursor: var(--cur-hand); }
.app-wscui .wsc-manage-item:hover span { text-decoration: underline; }
.app-wscui .wsc-foot { margin-top: 16px; color: #555; }
@media (max-width: 560px) { .app-wscui .wsc-left { display: none; } }
.app-firewall .fw-opt { margin: 8px 0; }
.app-firewall .fw-ind { padding-left: 19px; margin: 2px 0 4px; line-height: 14px; }
.app-firewall .fw-ind2 { padding-left: 38px; margin: 0; color: #444; line-height: 14px; }
.app-firewall .fw-list { height: 130px; margin-bottom: 6px; }
.app-firewall .fw-list.short { height: 50px; }
.app-firewall .xp-group .cpl-row.top { flex-wrap: nowrap; }
.app-firewall .xp-group .cpl-row.top p { flex: 1; }
/* ===== end cpl-wscui ===== */

/* ===== cpl-appwiz ===== */
.app-appwiz .arp-root { display: flex; height: 100%; }
.app-appwiz .arp-nav { width: 96px; flex: none; background: linear-gradient(to right, #7A8FC4, #6878B0); padding: 6px 0; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.app-appwiz .arp-navbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; background: none; border: 1px solid transparent; color: #fff; font: 11px var(--font-ui); text-align: center; cursor: var(--cur-arrow); margin: 0 3px; }
.app-appwiz .arp-navbtn:hover { border-color: #B5C4EE; }
.app-appwiz .arp-navbtn.active { background: #D6DDF5; color: #000; border-color: #fff #8B96BE #8B96BE #fff; }
.app-appwiz .arp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.app-appwiz .arp-page { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.app-appwiz .arp-pad { padding: 14px; overflow: auto; }
.app-appwiz .arp-top { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: var(--xp-face); border-bottom: 1px solid #ACA899; flex-wrap: wrap; }
.app-appwiz .arp-top > span:first-child { font-weight: bold; margin-right: auto; }
.app-appwiz .arp-sort { display: flex; align-items: center; gap: 4px; }
.app-appwiz .arp-list { flex: 1; overflow: auto; padding: 2px; }
.app-appwiz .arp-row { padding: 2px 4px; border-radius: 2px; cursor: var(--cur-arrow); }
.app-appwiz .arp-row.sel { background: #C1D2EE; border: 1px solid #316AC5; padding: 2px 3px 6px; }
.app-appwiz .arp-line { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.app-appwiz .arp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-appwiz .arp-row.sel .arp-name { font-weight: bold; }
.app-appwiz .arp-meta { display: grid; grid-template-columns: 70px 86px; text-align: right; flex: none; gap: 4px; }
.app-appwiz .arp-meta span { color: #444; }
.app-appwiz .arp-meta b { font-weight: normal; }
.app-appwiz .arp-extra { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-left: 22px; min-height: 18px; }
.app-appwiz .arp-extra .xp-btn { flex: none; margin-top: 4px; }
.app-appwiz .arp-group { font-weight: bold; padding: 4px; border-top: 1px solid #ACA899; margin-top: 4px; }
.app-appwiz .arp-upd { padding-left: 22px; }
.app-appwiz .arp-add { border-bottom: 1px solid #D0D0BF; padding: 10px 0 14px; }
.app-appwiz .arp-add-row { flex-wrap: nowrap; margin-top: 8px; }
.app-appwiz .arp-add-text { flex: 1; }
.app-appwiz .arp-cfg { margin: 6px 0 14px 10px; }
.app-appwiz .arp-progress { display: flex; flex-direction: column; gap: 8px; }
.app-appwiz .arp-wizard { display: flex; flex-direction: column; height: 100%; }
.app-appwiz .arp-wiz-body { flex: 1; min-height: 0; overflow: auto; background: #fff; }
.app-appwiz .arp-wiz-head { padding: 10px 16px; border-bottom: 1px solid #ACA899; }
.app-appwiz .arp-wiz-head div { padding: 3px 0 0 14px; }
.app-appwiz .arp-wiz-inner { padding: 10px 16px; }
.app-appwiz .arp-wiz-inner h2 { font: bold 15px var(--font-title); }
.app-appwiz .arp-wiz-inner p { margin: 0 0 6px; }
.app-appwiz .arp-comp { height: 150px; }
.app-appwiz .arp-comp .row { justify-content: space-between; }
.app-appwiz .arp-comp .row.sel { background: #C1D2EE; color: #000; }
.app-appwiz .arp-wiz-btns { display: flex; justify-content: flex-end; gap: 4px; padding: 10px; border-top: 1px solid #ACA899; }
@media (max-width: 480px) { .app-appwiz .arp-nav { width: 70px; } .app-appwiz .arp-navbtn span { font-size: 10px; } .app-appwiz .arp-meta { grid-template-columns: 34px 62px; } }
/* ===== end cpl-appwiz ===== */

/* ===== cpl-mmsys ===== */
.app-mmsys .mm-dev { margin: 4px 0 12px; }
.app-mmsys .mm-volrow { flex-wrap: nowrap; }
.app-mmsys .mm-vol { flex: 1; min-width: 0; }
.app-mmsys .xp-group p { margin: 0 0 6px; }
.app-mmsys .mm-spk { justify-content: space-between; flex-wrap: nowrap; }
.app-mmsys .mm-lbl { width: 40px; }
.app-mmsys .mm-scheme .xp-select { flex: 1; min-width: 120px; }
.app-mmsys .mm-events { height: 120px; margin: 3px 0 8px; }
.app-mmsys .mm-events .row { cursor: var(--cur-arrow); }
.app-mmsys .mm-events .mm-group { font-weight: bold; }
.app-mmsys .mm-events .row:not(.mm-group) { padding-left: 20px; }
.app-mmsys .mm-soundrow { flex-wrap: nowrap; }
.app-mmsys .mm-soundsel { flex: 1; min-width: 0; }
.app-mmsys .mm-play { min-width: 26px; width: 26px; padding: 0; font-size: 10px; color: #000; }
.app-mmsys .mm-play:disabled { color: #A19F92; }
.app-mmsys .mm-grow { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.app-mmsys .mm-grow .xp-select { width: 100%; }
.app-mmsys .mm-hw { height: 110px; margin-bottom: 8px; }
.app-mmsys .mm-hw .row { display: grid; grid-template-columns: 55% 45%; }
.app-mmsys .mm-hw .row span { overflow: hidden; text-overflow: ellipsis; display: flex; gap: 4px; align-items: center; }
.app-mmsys .mm-hwh { background: var(--xp-face); border-bottom: 1px solid #ACA899; }
/* ===== end cpl-mmsys ===== */

/* ===== cpl-sndvol ===== */
.app-sndvol .sv-mixer { display: flex; flex: 1; min-height: 0; overflow-x: auto; padding: 6px 4px; position: relative; }
.app-sndvol .sv-col { width: 84px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 6px; border-right: 1px solid #ACA899; box-shadow: 1px 0 #fff; }
.app-sndvol .sv-col:last-child { border-right: 0; box-shadow: none; }
.app-sndvol .sv-col.master { width: 104px; }
.app-sndvol .sv-col b { font-weight: normal; white-space: nowrap; align-self: flex-start; }
.app-sndvol .sv-col.master b { font-weight: bold; }
.app-sndvol .sv-lbl { align-self: flex-start; }
.app-sndvol .sv-balrow { flex-wrap: nowrap; gap: 0; margin: 0; }
.app-sndvol .sv-bal { width: 50px; }
.app-sndvol .sv-spk .ico { width: 12px; height: 12px; }
.app-sndvol .sv-spk.r { transform: scaleX(-1); }
.app-sndvol .sv-vwrap { position: relative; height: 120px; display: flex; justify-content: center; margin: 4px 0; }
.app-sndvol .sv-v { writing-mode: vertical-lr; direction: rtl; height: 120px; width: 26px; accent-color: #316AC5; margin: 0; }
.app-sndvol .sv-ticks { position: absolute; right: -12px; top: 6px; bottom: 6px; width: 6px; background: repeating-linear-gradient(to bottom, #000 0 1px, transparent 1px 18px); }
.app-sndvol .sv-advbtn { display: none; position: absolute; left: 12px; bottom: 4px; }
.app-sndvol .sv-mixer.adv .sv-advbtn { display: block; }
.app-sndvol .sv-mixer.adv .sv-col.master { padding-bottom: 30px; }
.app-sndvol .sv-props { height: 100px; }
/* ===== end cpl-sndvol ===== */

/* ===== cpl-folderoptions ===== */
.app-folderoptions .fo-grp { flex-wrap: nowrap; gap: 10px; }
.app-folderoptions .fo-grow { flex: 1; min-width: 0; }
.app-folderoptions .fo-pvwrap { width: 64px; height: 48px; flex: none; display: grid; place-items: center; }
.app-folderoptions .fo-pv { width: 62px; height: 46px; background: #fff; border: 1px solid #7F9DB9; display: flex; position: relative; }
.app-folderoptions .fo-pv-pane { width: 20px; background: linear-gradient(#7BA2E7, #6375D6); padding: 3px 2px; display: flex; flex-direction: column; gap: 3px; }
.app-folderoptions .fo-pv-pane i { height: 6px; background: #D6DFF7; border-radius: 1px; }
.app-folderoptions .fo-pv-files { display: flex; flex-wrap: wrap; gap: 1px; padding: 3px; align-content: flex-start; }
.app-folderoptions .fo-pv.win { background: none; border: 0; }
.app-folderoptions .fo-pv-w { position: absolute; width: 38px; height: 28px; border: 1px solid #0831D9; border-top-width: 5px; background: #fff; }
.app-folderoptions .fo-pv-w.a { left: 2px; top: 2px; }
.app-folderoptions .fo-pv-w.b { left: 20px; top: 14px; }
.app-folderoptions .fo-ind { padding-left: 19px; }
.app-folderoptions .xp-group p { margin: 0 0 6px; }
.app-folderoptions .fo-adv { height: 190px; margin: 3px 0 6px; }
.app-folderoptions .fo-adv .row { padding-left: 18px; white-space: nowrap; }
.app-folderoptions .fo-adv .fo-root, .app-folderoptions .fo-advgrp > .row:first-child { padding-left: 2px; gap: 4px; }
.app-folderoptions .fo-advgrp > .row:first-child { padding-left: 18px; }
.app-folderoptions .fo-adv .fo-sub { padding-left: 36px; }
.app-folderoptions .fo-types { height: 150px; margin: 3px 0 6px; }
.app-folderoptions .fo-types .row { display: grid; grid-template-columns: 90px 1fr; cursor: var(--cur-arrow); }
.app-folderoptions .fo-th { background: var(--xp-face); border-bottom: 1px solid #ACA899; }
.app-folderoptions .fo-ftdetail .xp-group p { line-height: 14px; }
.app-folderoptions .fo-offnote { color: #444; margin: 10px 0; line-height: 14px; }
/* ===== end cpl-folderoptions ===== */
