/* Display Properties (desk.cpl) */
.app-display .tab-panel { padding: 8px 10px; }
.app-display label { user-select: none; }
.app-display .dp-label { margin: 8px 0 3px; }

/* mini windows (theme / appearance previews) */
.app-display .dp-mw { position: absolute; padding: 0 3px 3px; box-shadow: 1px 1px 3px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.app-display .dp-mw.classic { padding: 2px; border: 1px solid; border-color: #fff #404040 #404040 #fff; box-shadow: inset -1px -1px #808080; }
.app-display .dp-mw-title { flex: none; height: 18px; display: flex; align-items: center; justify-content: space-between; padding: 0 3px 0 5px;
  font: bold 11px var(--font-title); white-space: nowrap; overflow: hidden; margin: 0 -3px; }
.app-display .dp-mw.classic .dp-mw-title { margin: 0; height: 16px; font-family: var(--font-ui); }
.app-display .dp-mw-btns { display: flex; gap: 2px; flex: none; }
.app-display .dp-mw-btns i { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(255,255,255,.8); display: block; }
.app-display .dp-mw.classic .dp-mw-btns i { border-radius: 0; border-color: #fff #404040 #404040 #fff; }
.app-display .dp-mw-body { flex: 1; min-height: 0; position: relative; }
.app-display .dp-wtext { position: absolute; inset: 4px; background: #fff; border: 1px solid #7F9DB9; padding: 2px 4px; }
.app-display .dp-mw.classic .dp-wtext { border-color: #808080 #fff #fff #808080; }
.app-display .dp-fake-scroll { position: absolute; right: 0; top: 0; bottom: 0; width: 13px; background: linear-gradient(to right, #F3F1EC, #FEFEFB); border-left: 1px solid #EEE; }
.app-display .dp-fake-scroll::after { content: ''; position: absolute; left: 1px; right: 1px; top: 2px; height: 22px; border-radius: 2px; background: #C8D6FB; border: 1px solid #fff; }
.app-display .dp-mbox-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.app-display .dp-mbox-body .xp-btn { min-width: 52px; height: 19px; pointer-events: none; }

/* Themes tab */
.app-display .dp-theme-row { flex-wrap: nowrap; }
.app-display .dp-theme-sel { flex: 1; min-width: 0; }
.app-display .dp-sample { position: relative; height: 205px; border: 1px solid; border-color: #ACA899 #fff #fff #ACA899; box-shadow: inset 1px 1px #716F64; overflow: hidden; }
.app-display .dp-sw-in { left: 22px; top: 16px; width: 62%; height: 110px; }
.app-display .dp-sw-act { left: 44px; top: 50px; width: 66%; height: 118px; }
.app-display .dp-sample-icon { position: absolute; right: 10px; bottom: 6px; display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 1px 1px 1px #000; font-size: 11px; }

/* Desktop tab */
.app-display .dp-mon-desk { position: absolute; inset: 0; }
.app-display .dp-bg-area { display: flex; gap: 8px; align-items: stretch; }
.app-display .dp-bg-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app-display .dp-bglist { height: 112px; }
.app-display .dp-bglist .row { cursor: var(--cur-arrow); }
.app-display .dp-bglist:focus .row.sel { outline: 1px dotted #fff; outline-offset: -1px; }
.app-display .dp-bg-right { width: 96px; flex: none; display: flex; flex-direction: column; gap: 3px; padding-top: 16px; position: relative; }
.app-display .dp-bg-right .xp-btn, .app-display .dp-bg-right .xp-select { width: 100%; min-width: 0; }
.app-display .dp-bg-right label { margin-top: 6px; }
.app-display .dp-custom-row { margin-top: 10px; }
.app-display .dp-colorbtn { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; min-width: 60px; }
.app-display .dp-colorbtn-sw { width: 28px; height: 13px; border: 1px solid #000; flex: none; }
.app-display .dp-colorbtn-arrow { border: 4px solid transparent; border-top: 4px solid #000; border-bottom: 0; margin-left: auto; }
.dp-palette { position: absolute; z-index: 30; width: 116px; padding: 4px; background: var(--xp-face); border: 1px solid #716F64;
  box-shadow: 2px 2px 4px rgba(0,0,0,.3); display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.dp-palette .dp-other { grid-column: 1 / -1; min-width: 0; margin-top: 3px; }
.app-display .dp-swatch, .dp-palette .dp-swatch { width: 100%; aspect-ratio: 1.3; min-height: 16px; border: 1px solid; border-color: #808080 #fff #fff #808080; padding: 0; cursor: var(--cur-arrow); }
.app-display .dp-swatch:hover, .app-display .dp-swatch.sel, .dp-palette .dp-swatch:hover { outline: 2px solid #000; outline-offset: 0; }
.app-display .dp-basic-colors { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 4px 0 8px; }
.app-display .dp-colordlg .dp-wide { width: 100%; margin-top: 8px; }
.app-display .dp-color-input { width: 60px; height: 24px; padding: 0; border: 1px solid #7F9DB9; }

/* Desktop Items dialog */
.app-display .dp-subtabs .tab-strip { flex-wrap: wrap; }
.app-display .dp-subtabs .tab-panel { padding: 8px; }
.app-display .dp-icon-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-bottom: 8px; }
.app-display .dp-icon-strip { display: flex; gap: 2px; background: #fff; border: 1px solid #7F9DB9; padding: 4px; overflow-x: auto; }
.app-display .dp-icon-cell { width: 66px; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 2px; font-size: 11px; }
.app-display .dp-icon-cell.sel span { background: var(--xp-hilite); color: #fff; }
.app-display .dp-weblist { height: 80px; }
.app-display .dp-icongrid { display: grid; grid-template-columns: repeat(auto-fill, 44px); gap: 2px; height: 130px; padding: 4px; }
.app-display .dp-icon-pick { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid transparent; }
.app-display .dp-icon-pick.sel { background: #C1D2EE; border: 1px dotted #316AC5; }
.app-display .dp-changeicon { display: flex; flex-direction: column; gap: 4px; }

/* Desktop Cleanup wizard */
.dp-wiz-win .custom-dlg { height: 100%; }
.app-display .dp-wizard { display: flex; flex-direction: column; height: 100%; min-height: 300px; }
.app-display .dp-wiz-body { flex: 1; min-height: 0; background: #fff; display: flex; flex-direction: column; overflow: auto; }
.app-display .dp-wiz-btns { display: flex; justify-content: flex-end; gap: 4px; padding: 10px; border-top: 1px solid #ACA899; box-shadow: inset 0 1px #fff; }
.app-display .dp-wiz-btns .xp-btn:last-child { margin-left: 8px; }
.app-display .dp-wiz-welcome { display: flex; flex: 1; }
.app-display .dp-wiz-side { width: 120px; flex: none; background: linear-gradient(160deg, #5A7EDC, #1C3EA3 60%, #0A246A); position: relative; }
.app-display .dp-wiz-side::after { content: ''; position: absolute; left: 24px; top: 24px; width: 72px; height: 60px; border-radius: 6px; background:
  linear-gradient(135deg, #F35325 0 48%, transparent 48%) 0 0/50% 50% no-repeat, linear-gradient(135deg, #81BC06 0 100%) 100% 0/46% 46% no-repeat,
  linear-gradient(#05A6F0, #05A6F0) 0 100%/46% 46% no-repeat, linear-gradient(#FFBA08, #FFBA08) 100% 100%/46% 46% no-repeat; opacity: .85; }
.app-display .dp-wiz-text { padding: 14px 16px; }
.app-display .dp-wiz-text h2 { font: bold 16px var(--font-title); margin: 0 0 14px; }
.app-display .dp-wiz-text p { margin: 0 0 10px; line-height: 14px; }
.app-display .dp-wiz-inner { padding: 0 0 10px; display: flex; flex-direction: column; flex: 1; }
.app-display .dp-wiz-header { padding: 10px 16px 12px; border-bottom: 1px solid #ACA899; margin-bottom: 10px; }
.app-display .dp-wiz-header div { padding: 4px 0 0 14px; }
.app-display .dp-wiz-list { margin: 0 16px; height: 140px; }
.app-display .dp-wiz-list.short { margin: 0 0 10px; height: 80px; }
.app-display .dp-wiz-list .row { justify-content: space-between; }
.app-display .dp-wiz-head { background: var(--xp-face); border-bottom: 1px solid #ACA899; }

/* Screen Saver tab */
.app-display .dp-ss .xp-group .cpl-row { flex-wrap: wrap; }
.app-display .dp-ss-sel { flex: 1; min-width: 120px; }
.app-display .dp-ss .xp-btn { min-width: 64px; }
.app-display .dp-power { flex-wrap: nowrap !important; align-items: center; }
.app-display .dp-power-text { flex: 1; line-height: 14px; }
.app-display .dp-ssdlg { display: flex; flex-direction: column; gap: 6px; }
.app-display .dp-ssdlg .xp-slider { flex: 1; }
.app-display .dp-ssfield .xp-input { width: 100%; margin-top: 3px; }

/* Appearance tab */
.app-display .dp-appear-pv { position: relative; height: 170px; background: #fff; border: 1px solid; border-color: #ACA899 #fff #fff #ACA899; box-shadow: inset 1px 1px #716F64; overflow: hidden; margin-bottom: 10px; }
.app-display .dp-appear-pv .dp-aw-in { left: 10px; top: 10px; width: 70%; height: 100px; }
.app-display .dp-appear-pv .dp-aw-act { left: 22px; top: 36px; width: 74%; height: 104px; }
.app-display .dp-appear-pv .dp-aw-msg { left: 36%; top: 96px; width: 46%; height: 64px; }
.app-display .dp-appear-pv[data-font="large"] .dp-mw-title, .app-display .dp-appear-pv[data-font="large"] .dp-wtext { font-size: 13px; }
.app-display .dp-appear-pv[data-font="xlarge"] .dp-mw-title, .app-display .dp-appear-pv[data-font="xlarge"] .dp-wtext { font-size: 15px; }
.app-display .dp-appear-grid { display: grid; grid-template-columns: 1fr; gap: 3px; }
.app-display .dp-appear-grid > .xp-select { width: 60%; min-width: 180px; max-width: 100%; margin-bottom: 4px; }
.app-display .dp-appear-btns { justify-content: space-between; margin: 0; flex-wrap: wrap; }
.app-display .dp-appear-btns > .xp-select { width: 60%; min-width: 150px; }
.app-display .dp-appear-side { display: flex; flex-direction: column; gap: 5px; margin-top: -40px; }
.app-display .dp-fx { display: flex; flex-direction: column; gap: 6px; }
.app-display .dp-fx-sel { padding: 3px 0 2px 19px; }
.app-display .dp-fx-sel .xp-select { width: 180px; }
.app-display .dp-fx .xp-check { align-items: flex-start; }
.app-display .dp-adv .dp-appear-pv { height: 150px; }
.app-display .dp-adv-row { align-items: flex-end; }
.app-display .dp-adv-row .cpl-col:first-child { flex: 1; min-width: 140px; }

/* Settings tab */
.app-display .dp-drag-hint { color: #444; }
.app-display .dp-settings .cpl-monitor { margin-bottom: 4px; }
.app-display .dp-display-line { margin-bottom: 8px; }
.app-display .dp-settings-groups { display: flex; gap: 8px; }
.app-display .dp-settings-groups .xp-group { flex: 1; min-width: 0; }
.app-display .dp-res-row { flex-wrap: nowrap; }
.app-display .dp-res { flex: 1; min-width: 0; }
.app-display .dp-res-text { text-align: center; }
.app-display .dp-settings-groups .xp-select { width: 100%; }
.app-display .dp-colorbar { height: 16px; margin-top: 6px; border: 1px solid #808080;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.app-display .dp-colorbar.banded { background: linear-gradient(to right, #f00 0 14%, #ff0 14% 28%, #0f0 28% 42%, #0ff 42% 57%, #00f 57% 71%, #f0f 71% 85%, #f00 85%); }
.app-display .dp-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }

/* Monitor Settings countdown */
.dp-monset .dp-monset-body { display: flex; gap: 12px; align-items: flex-start; padding: 4px 4px 0; }
.dp-monset .dp-countdown { margin-top: 10px; }
.dp-modeswitch { position: fixed; inset: 0; background: #000; z-index: 99999; }

@media (max-width: 420px) {
  .app-display .dp-settings-groups { flex-direction: column; gap: 0; }
  .app-display .dp-bg-right { width: 88px; }
  .app-display .dp-appear-side { margin-top: 4px; flex-direction: row; }
  .app-display .dp-sample { height: 170px; }
  .cpl-mon-bezel { width: 160px; height: 130px; }
}
