/* ==========================================================================
   Windows Explorer (folder windows, task pane, views, bars, Control Panel)
   ========================================================================== */
.app-explorer .window-body { background: var(--xp-face); }
.app-explorer .ex-root { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--xp-face); }
.app-explorer .xp-statusbar .part:last-child { min-width: 140px; flex: 0 0 auto; }
.app-explorer .xp-statusbar .part:nth-child(2) { min-width: 70px; justify-content: flex-end; }

/* ---------- Standard Buttons toolbar ---------- */
.app-explorer .ex-toolbar { flex: none; height: 40px; padding: 1px 2px; gap: 0; border-bottom: 1px solid #D8D2BD; box-shadow: inset 0 1px #fff; }
.app-explorer .ex-tbtn { height: 36px; padding: 0 4px; gap: 3px; }
.app-explorer .ex-tlabel { padding-right: 2px; }
.app-explorer .ex-split { display: inline-flex; align-items: stretch; }
.app-explorer .ex-split .ex-tbtn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.app-explorer .ex-tdrop { width: 13px; min-width: 13px; height: 36px; padding: 0; justify-content: center; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.app-explorer .ex-split:hover .xp-toolbtn:not(:disabled) { border-color: #fff #CECEC3 #CECEC3 #fff; background: linear-gradient(to bottom, #fff, #F2F1EA 70%, #E7E5D9); }
.app-explorer .ex-views .drop { margin-left: 1px; }
.app-explorer .ex-toolbar .sep { margin: 4px 3px; }
.app-explorer .xp-toolbtn.pressed { background: #F4F3EE; border-color: #9D9D92 #fff #fff #9D9D92; box-shadow: inset 1px 1px 1px rgba(0, 0, 0, .12); }

/* ---------- Address bar ---------- */
.app-explorer .ex-addr { flex: none; display: flex; align-items: center; gap: 4px; height: 27px; padding: 1px 4px 2px; border-top: 1px solid #fff; border-bottom: 1px solid #D8D2BD; }
.app-explorer .ex-alabel { color: #7A7A7A; padding: 0 3px 0 2px; }
.app-explorer .ex-combo { flex: 1; min-width: 0; height: 21px; display: flex; align-items: center; border: 1px solid #7F9DB9; background: #fff; }
.app-explorer .ex-aicon { display: grid; place-items: center; width: 20px; flex: none; }
.app-explorer .ex-ainput { flex: 1; min-width: 0; height: 19px; border: 0; outline: 0; padding: 0 2px; background: transparent; }
.app-explorer .ex-adrop { width: 17px; height: 19px; flex: none; margin: 0; padding: 0; border: 0; cursor: var(--cur-arrow);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='19'%3E%3Crect x='.5' y='.5' width='16' height='18' rx='2' fill='%23C3D3FD' stroke='%23fff'/%3E%3Cpath d='M5 8l3.5 3.5L12 8' fill='none' stroke='%234D6185' stroke-width='2'/%3E%3C/svg%3E") center no-repeat; }
.app-explorer .ex-adrop:hover { filter: brightness(1.06) saturate(1.2); }
.app-explorer .ex-go { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 5px 0 2px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #000; }
.app-explorer .ex-go:hover { border-color: #fff #CECEC3 #CECEC3 #fff; background: linear-gradient(to bottom, #fff, #F2F1EA 70%, #E7E5D9); }
.app-explorer .ex-go:active { border-color: #9D9D92 #fff #fff #9D9D92; background: #E3E1D5; }
.ex-adrop-list { position: fixed; z-index: 99100; background: #fff; border: 1px solid #7F9DB9; max-height: 320px; overflow: auto; box-shadow: 2px 2px 3px rgba(0, 0, 0, .25); padding: 1px 0; }
.ex-adrop-list .ex-arow { display: flex; align-items: center; gap: 4px; height: 18px; white-space: nowrap; padding-right: 8px; }
.ex-adrop-list .ex-arow:hover, .ex-adrop-list .ex-arow.cur:hover { background: #316AC5; color: #fff; }
.ex-adrop-list .ex-arow.cur { font-weight: normal; background: #E8EEF9; }

/* ---------- Main split ---------- */
.app-explorer .ex-main { flex: 1; min-height: 0; display: flex; border-top: 1px solid #fff; }
.app-explorer .ex-left { width: 210px; flex: none; overflow-y: auto; overflow-x: hidden; background: linear-gradient(to bottom, #7BA2E7, #6375D6); padding: 12px 11px 12px 12px; }
.app-explorer .ex-root.has-bar .ex-left { width: 214px; background: var(--xp-face); padding: 0; overflow: hidden; border-right: 3px solid var(--xp-face); display: flex; flex-direction: column; }
.app-explorer .ex-root.narrow:not(.has-bar) .ex-left { display: none; }
.app-explorer .ex-root.narrow.has-bar .ex-left { width: 46%; max-width: 190px; }
.app-explorer .ex-right { flex: 1; min-width: 0; display: flex; background: #fff; border-left: 1px solid #919B9C; }
.app-explorer .ex-root:not(.has-bar) .ex-right { border-left: 0; }
.app-explorer .ex-content { flex: 1; min-width: 0; overflow: auto; position: relative; outline: none; touch-action: pan-x pan-y; cursor: var(--cur-arrow); }
.app-explorer .ex-content.custom { background: #fff; }

/* ---------- Task pane (webview) ---------- */
.app-explorer .ex-taskpane { display: flex; flex-direction: column; gap: 12px; }
.app-explorer .tp-panel { border-radius: 3px 3px 0 0; }
.app-explorer .tp-head { height: 25px; display: flex; align-items: center; padding: 0 2px 0 12px; border-radius: 3px 3px 0 0; cursor: var(--cur-hand);
  background: linear-gradient(to right, #fff 0%, #fff 30%, #C6D3F7 100%); color: #215DC6; font-weight: bold; }
.app-explorer .tp-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-explorer .tp-head:hover .tp-title { color: #428EFF; }
.app-explorer .tp-chev { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid #B6C4EA; background: #fff center no-repeat;
  box-shadow: 0 1px 1px rgba(0, 40, 140, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M5 8l3-3 3 3M5 12l3-3 3 3' fill='none' stroke='%23215DC6' stroke-width='1.6'/%3E%3C/svg%3E"); }
.app-explorer .tp-head:hover .tp-chev { border-color: #8FA6E3; filter: brightness(1.05) saturate(1.4); }
.app-explorer .tp-panel.collapsed .tp-chev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M5 4l3 3 3-3M5 8l3 3 3-3' fill='none' stroke='%23215DC6' stroke-width='1.6'/%3E%3C/svg%3E"); }
.app-explorer .tp-body { background: #D6DFF7; border: 1px solid #fff; border-top: 0; overflow: hidden; }
.app-explorer .tp-panel.collapsed .tp-body { display: none; }
.app-explorer .tp-inner { padding: 10px 10px 11px 12px; display: grid; gap: 7px; }
.app-explorer .tp-link { display: flex; gap: 6px; align-items: flex-start; color: #215DC6; text-decoration: none; line-height: 14px; cursor: var(--cur-hand); }
.app-explorer .tp-link .ico { margin-top: -1px; }
.app-explorer .tp-link:hover span { color: #428EFF; text-decoration: underline; }
.app-explorer .tp-link.disabled { color: #8D9CC4; cursor: var(--cur-arrow); }
.app-explorer .tp-link.disabled span { color: #8D9CC4 !important; text-decoration: none !important; }
.app-explorer .tp-link.disabled .ico { filter: grayscale(1); opacity: .5; }
.app-explorer .tp-panel.special .tp-head { background: linear-gradient(to right, #0C4DD5 0%, #2A6EE8 100%); color: #fff; }
.app-explorer .tp-panel.special .tp-head:hover .tp-title { color: #C6D6FF; }
.app-explorer .tp-panel.special .tp-body { background: #EFF3FF; }
.app-explorer .ex-details { display: grid; gap: 4px; line-height: 13px; overflow-wrap: anywhere; }
.app-explorer .ex-details b { font-weight: bold; }
.app-explorer .ex-dthumb { max-width: 100%; max-height: 110px; border: 1px solid #fff; justify-self: center; margin-bottom: 4px; }

/* ---------- Items: common ---------- */
.app-explorer .ex-view { padding: 6px 8px 16px; min-height: 100%; }
.app-explorer .ex-ic { position: relative; display: inline-flex; flex: none; line-height: 0; }
.app-explorer .ex-lnk { position: absolute; left: 0; bottom: 0; width: 34%; height: 34%; min-width: 8px; min-height: 8px; }
.app-explorer .ex-lbl { padding: 0 2px; border-radius: 0; }
.app-explorer .ex-item { position: relative; cursor: var(--cur-arrow); }
.app-explorer .ex-item.sel .ex-lbl { background: #316AC5; color: #fff; }
.app-explorer .ex-item.sel .ex-ic > svg.ico { filter: url(#ex-seltint); }
.app-explorer .ex-item.focus .ex-lbl { outline: 1px dotted #000; outline-offset: -1px; }
.app-explorer .ex-item.focus.sel .ex-lbl { outline-color: #F2E388; }
.app-explorer.inactive .ex-item.sel .ex-lbl { background: #E0DFE3; color: #000; }
.app-explorer.inactive .ex-item.sel .ex-ic > svg.ico { filter: none; }
.app-explorer.inactive .ex-item.focus .ex-lbl { outline: none; }
.app-explorer .ex-item.cut .ex-ic, .app-explorer .ex-item.hid .ex-ic, .app-explorer .ex-item.cut .ex-tbox { opacity: .5; }
.app-explorer .ex-item.drop-hot .ex-lbl { background: #316AC5; color: #fff; }
.app-explorer .ex-content.drop-hot { box-shadow: inset 0 0 0 2px #316AC5; }
.app-explorer .ex-band { position: absolute; z-index: 5; pointer-events: none; border: 1px solid #316AC5; background: rgba(49, 106, 197, .22); }
.ex-ghost { position: fixed; left: 0; top: 0; z-index: 99999; pointer-events: none; opacity: .55; width: 60px; height: 60px; }
.ex-ghost > div { position: absolute; }

/* groups (My Computer etc.) */
.app-explorer .ex-group-h { font-weight: bold; color: #1D3DA8; padding: 10px 2px 3px; margin: 0 0 8px; max-width: 520px;
  background: linear-gradient(to right, #7C9EE6, rgba(124, 158, 230, 0)) left bottom / 100% 1px no-repeat; }
.app-explorer .ex-group-h:first-child { padding-top: 2px; }
.app-explorer .ex-v-details .ex-group-h { margin: 4px 8px 4px; }

/* tiles */
.app-explorer .ex-v-tiles .ex-items { display: grid; grid-template-columns: repeat(auto-fill, min(252px, 100%)); gap: 4px 8px; margin-bottom: 8px; }
.app-explorer .ex-tile { display: flex; align-items: center; gap: 5px; height: 60px; padding: 2px 4px; min-width: 0; }
.app-explorer .ex-tile .ex-txt { min-width: 0; display: grid; justify-items: start; line-height: 14px; }
.app-explorer .ex-tile .ex-lbl { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-explorer .ex-sub { color: #7F7F7F; padding: 0 2px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-explorer .ex-free { display: block; width: 150px; max-width: 100%; height: 13px; margin: 2px 0; border: 1px solid #B8B8B8; background: #fff; padding: 1px; }
.app-explorer .ex-free i { display: block; height: 100%; background: linear-gradient(to bottom, #7DB0FF 0%, #3C7FE8 50%, #2663D6 100%); }

/* icons */
.app-explorer .ex-v-icons .ex-items { display: grid; grid-template-columns: repeat(auto-fill, 78px); gap: 12px 4px; margin-bottom: 8px; }
.app-explorer .ex-icon { display: flex; flex-direction: column; align-items: center; width: 78px; padding-top: 2px; }
.app-explorer .ex-icon .ex-lbl { margin-top: 3px; max-width: 76px; text-align: center; line-height: 13px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-explorer .ex-icon.sel .ex-lbl, .app-explorer .ex-icon.focus .ex-lbl { -webkit-line-clamp: 6; position: relative; z-index: 2; }

/* list */
.app-explorer .ex-content.mode-list .ex-view { height: 100%; min-height: 0; }
.app-explorer .ex-v-list .ex-items { display: flex; flex-flow: column wrap; align-content: flex-start; height: 100%; column-gap: 18px; }
.app-explorer .ex-li { display: flex; align-items: center; gap: 3px; height: 18px; max-width: 260px; white-space: nowrap; }
.app-explorer .ex-li .ex-lbl { overflow: hidden; text-overflow: ellipsis; }

/* details */
.app-explorer .ex-v-details { padding: 0 0 16px; display: inline-block; min-width: 100%; }
.app-explorer .ex-dhead { display: flex; position: sticky; top: 0; z-index: 3; height: 21px; background: linear-gradient(to bottom, #fff, #F6F5EE 70%, #EBEADB); border-bottom: 1px solid #D0CBBA; }
.app-explorer .ex-hcell { position: relative; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 6px; white-space: nowrap; overflow: hidden;
  border-right: 1px solid #C7C5B2; box-shadow: inset -1px 0 #fff; border-bottom: 3px solid transparent; cursor: var(--cur-arrow); }
.app-explorer .ex-hcell:hover { border-bottom-color: #F9B119; background: #FAF9F4; }
.app-explorer .ex-hcell:active { background: #DEDCD1; }
.app-explorer .ex-hcell.r { justify-content: flex-end; }
.app-explorer .ex-hcell.sorted { background: linear-gradient(to bottom, #F3F2EB, #E6E4D8); }
.app-explorer .ex-htext { overflow: hidden; text-overflow: ellipsis; }
.app-explorer .ex-sortarrow { width: 0; height: 0; border: 4px solid transparent; flex: none; }
.app-explorer .ex-sortarrow.up { border-bottom: 4px solid #ACA899; border-top: 0; }
.app-explorer .ex-sortarrow.down { border-top: 4px solid #ACA899; border-bottom: 0; }
.app-explorer .ex-hgrip { position: absolute; right: -2px; top: 0; bottom: 0; width: 7px; cursor: var(--cur-ew); z-index: 2; }
.app-explorer .ex-v-details .ex-items { padding-top: 1px; }
.app-explorer .ex-row { display: flex; align-items: center; height: 17px; }
.app-explorer .ex-cell { flex: none; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-explorer .ex-cell:first-child { display: flex; align-items: center; gap: 2px; padding-left: 4px; }
.app-explorer .ex-cell:first-child .ex-lbl { overflow: hidden; text-overflow: ellipsis; }
.app-explorer .ex-cell.r { text-align: right; }

/* thumbnails */
.app-explorer .ex-v-thumbs .ex-items { display: grid; grid-template-columns: repeat(auto-fill, 114px); gap: 14px 8px; margin-bottom: 8px; }
.app-explorer .ex-thumb { display: flex; flex-direction: column; align-items: center; width: 114px; }
.app-explorer .ex-tbox { width: 100px; height: 100px; border: 1px solid #D0D0BF; background: #fff; display: grid; place-items: center; overflow: hidden; }
.app-explorer .ex-tbox img { max-width: 96px; max-height: 96px; display: block; }
.app-explorer .ex-thumb.sel .ex-tbox { border: 2px solid #316AC5; }
.app-explorer.inactive .ex-thumb.sel .ex-tbox { border-color: #C7C6CB; }
.app-explorer .ex-thumb .ex-lbl { margin-top: 4px; max-width: 110px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-explorer .ex-fthumb { position: relative; width: 96px; height: 96px; display: block; }
.app-explorer .ex-minis { position: absolute; left: 20px; top: 34px; width: 56px; height: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.app-explorer .ex-minis img { width: 100%; height: 100%; object-fit: cover; border: 1px solid #fff; box-shadow: 0 0 1px #777; }

/* inline rename + balloon */
.app-explorer .ex-rename { font: 11px var(--font-ui); border: 1px solid #000; padding: 0 1px; margin: 0; resize: none; overflow: hidden; outline: none; background: #fff; color: #000; line-height: 13px; }
.app-explorer textarea.ex-rename { width: 76px; text-align: center; display: block; margin-top: 3px; position: relative; z-index: 3; }
.app-explorer .ex-tile textarea.ex-rename { width: 170px; text-align: left; margin-top: 0; }
.app-explorer .ex-thumb textarea.ex-rename { width: 110px; }
.app-explorer input.ex-rename { width: 170px; height: 16px; }
.ex-balloon { max-width: 300px; padding: 8px 12px 9px 10px; z-index: 99600; }
.ex-balloon .b-text { white-space: pre-wrap; tab-size: 4; }
.ex-balloon .b-tailup { position: absolute; top: -19px; width: 20px; height: 20px; line-height: 0; }

/* ---------- Special content pages ---------- */
.app-explorer .ex-hidden-warn { display: flex; gap: 12px; padding: 28px 24px; max-width: 540px; line-height: 15px; }
.app-explorer .hw-title { font-weight: bold; font-size: 12px; margin: 6px 0 8px; }
.app-explorer .ex-hidden-warn p { margin: 0 0 12px; }
.app-explorer .ex-search-msg { padding: 14px 16px; color: #000; }

.app-explorer .cp-page { padding: 14px 24px 24px; min-height: 100%;
  background: linear-gradient(to bottom, #fff 0, #fff 100%); }
.app-explorer .cp-head { font: bold 18px var(--font-title); color: #1E3C8C; margin: 8px 0 22px; padding-bottom: 8px; border-bottom: 1px solid #C6D3F7; }
.app-explorer .cp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 270px)); gap: 16px 36px; }
.app-explorer .cp-cat, .app-explorer .cp-icon, .app-explorer .cp-task { display: flex; align-items: center; gap: 10px; color: #0B3591; text-decoration: none; line-height: 14px; cursor: var(--cur-hand); }
.app-explorer .cp-cat span { font-size: 12px; }
.app-explorer .cp-cat:hover span, .app-explorer .cp-icon:hover span, .app-explorer .cp-task:hover span:last-child { text-decoration: underline; color: #2F5FE0; }
.app-explorer .cp-cathead { display: flex; align-items: center; gap: 12px; font: bold 18px var(--font-title); color: #1E3C8C; padding-bottom: 10px; border-bottom: 1px solid #C6D3F7; margin-top: 6px; }
.app-explorer .cp-sub { font: bold 13px var(--font-title); color: #1E3C8C; margin: 18px 0 10px; }
.app-explorer .cp-tasks { display: grid; gap: 10px; padding-left: 12px; }
.app-explorer .cp-task { gap: 7px; align-items: flex-start; }
.app-explorer .cp-bullet, .app-explorer .sc-arrow { width: 12px; height: 12px; flex: none; border-radius: 50%; margin-top: 1px; position: relative;
  background: radial-gradient(circle at 35% 30%, #9BE77E, #3AA127 60%, #1F7A12); }
.app-explorer .cp-bullet::after, .app-explorer .sc-arrow::after { content: ''; position: absolute; left: 4px; top: 3px; border-left: 5px solid #fff; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.app-explorer .cp-icons { display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); gap: 12px 30px; padding-left: 12px; }

/* ---------- Explorer bars ---------- */
.app-explorer .ex-bar { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-explorer .ex-barhead { flex: none; height: 24px; display: flex; align-items: center; justify-content: space-between; padding: 0 3px 0 6px; }
.app-explorer .ex-barclose { width: 16px; height: 14px; padding: 0; border: 1px solid transparent; border-radius: 2px; background: transparent; position: relative; }
.app-explorer .ex-barclose::before, .app-explorer .ex-barclose::after { content: ''; position: absolute; left: 6px; top: 2px; width: 1.6px; height: 9px; background: #000; transform: rotate(45deg); }
.app-explorer .ex-barclose::after { transform: rotate(-45deg); }
.app-explorer .ex-barclose:hover { border-color: #fff #ACA899 #ACA899 #fff; }
.app-explorer .ex-treebox { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #7F9DB9; margin: 0 0 0 2px; padding: 3px 2px; }
.app-explorer .ex-barbody { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #7F9DB9; margin-left: 2px; padding: 4px; }
.app-explorer .ex-barbtns { display: flex; gap: 4px; padding-bottom: 4px; border-bottom: 1px solid #E3E1D5; margin-bottom: 4px; }
.app-explorer .ex-barlist { display: grid; gap: 1px; }
.app-explorer .ex-barrow { display: flex; align-items: center; gap: 4px; color: #000; text-decoration: none; padding: 1px 2px; white-space: nowrap; }
.app-explorer .ex-barrow.indent { padding-left: 16px; }
.app-explorer .ex-barrow:hover span { color: #0000FF; text-decoration: underline; }

/* tree */
.ex-tree { list-style: none; margin: 0; padding: 0; }
.ex-tree .ex-tree { padding-left: 16px; }
.ex-tree .tn { position: relative; }
.ex-tree .ex-tree > .tn::before { content: ''; position: absolute; left: -12px; top: -2px; bottom: 0; border-left: 1px dotted #A0A0A0; }
.ex-tree .ex-tree > .tn.last::before { bottom: auto; height: 11px; }
.ex-tree .ex-tree > .tn::after { content: ''; position: absolute; left: -12px; top: 9px; width: 18px; border-top: 1px dotted #A0A0A0; }
.ex-tree .tn-row { display: flex; align-items: center; height: 18px; white-space: nowrap; position: relative; z-index: 1; cursor: var(--cur-arrow); }
.ex-tree .tn-exp { width: 9px; height: 9px; flex: none; margin-right: 5px; position: relative; border: 1px solid #7898B5; border-radius: 1px;
  background: linear-gradient(135deg, #fff 40%, #C9D2DE); }
.ex-tree .tn-exp.none { visibility: hidden; }
.ex-tree .tn-exp::before { content: ''; position: absolute; left: 1px; top: 3px; width: 5px; height: 1px; background: #000; }
.ex-tree .tn-exp.plus::after { content: ''; position: absolute; left: 3px; top: 1px; width: 1px; height: 5px; background: #000; }
.ex-tree .tn-lbl { display: inline-flex; align-items: center; gap: 3px; }
.ex-tree .tn-lbl > span { padding: 1px 2px; }
.ex-tree .tn-row.sel .tn-lbl > span { background: #316AC5; color: #fff; }
.window.inactive .ex-tree .tn-row.sel .tn-lbl > span { background: #E0DFE3; color: #000; }
.ex-tree .tn-row:hover .tn-lbl > span { text-decoration: underline; color: #0000FF; }
.ex-tree .tn-row.sel:hover .tn-lbl > span { color: #fff; }

/* ---------- Search Companion + Rover ---------- */
.app-explorer .ex-search { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #7F9DB9; margin-left: 2px; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 10px; }
.app-explorer .sc-panel { display: grid; gap: 7px; line-height: 14px; }
.app-explorer .sc-q { font-weight: bold; font-size: 12px; margin-bottom: 4px; color: #000; }
.app-explorer .sc-sub { margin-top: 6px; }
.app-explorer .sc-also { margin-top: 10px; font-weight: bold; }
.app-explorer .sc-opt { display: flex; align-items: flex-start; gap: 5px; color: #215DC6; text-decoration: none; cursor: var(--cur-hand); }
.app-explorer .sc-opt:hover span:last-child { text-decoration: underline; color: #428EFF; }
.app-explorer .sc-form label { margin-top: 3px; }
.app-explorer .sc-form .xp-input, .app-explorer .sc-form .xp-select { width: 100%; }
.app-explorer .sc-more { display: flex; align-items: center; justify-content: space-between; color: #215DC6; margin-top: 4px; }
.app-explorer .sc-chev { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #B6C4EA; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13'%3E%3Cpath d='M3 3l3.5 3 3.5-3M3 7l3.5 3 3.5-3' fill='none' stroke='%23215DC6' stroke-width='1.4'/%3E%3C/svg%3E") center no-repeat; }
.app-explorer .sc-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.app-explorer .sc-btns .xp-btn { min-width: 64px; }
.app-explorer .sc-cur { color: #555; overflow-wrap: anywhere; }
.app-explorer .ex-rover { margin-top: auto; width: 104px; flex: none; cursor: var(--cur-hand); align-self: flex-start; }
.app-explorer .rover { width: 104px; height: 95px; display: block; overflow: visible; }
.app-explorer .rover .rv-tail { transform-origin: 80px 78px; animation: rv-wag .45s ease-in-out infinite alternate; }
.app-explorer .rover .rv-eyes { transform-origin: 40px 35px; animation: rv-blink 4.2s infinite; }
.app-explorer .rover .rv-tongue { transform-origin: 32px 56px; animation: rv-pant .5s ease-in-out infinite alternate; }
.app-explorer .ex-rover.sniff .rv-head { transform-origin: 50px 58px; animation: rv-sniff .32s ease-in-out infinite alternate; }
.app-explorer .ex-rover.sniff .rv-tail { animation-duration: .2s; }
.app-explorer .ex-rover.trick .rover { animation: rv-jump .7s ease-out; transform-origin: 60px 90px; }
@keyframes rv-wag { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes rv-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes rv-pant { from { transform: scaleY(.8); } to { transform: scaleY(1.2); } }
@keyframes rv-sniff { from { transform: translate(0, 0) rotate(0); } to { transform: translate(-2px, 6px) rotate(-8deg); } }
@keyframes rv-jump { 35% { transform: translateY(-16px) rotate(-10deg); } 70% { transform: translateY(0) rotate(4deg); } }

/* ---------- Dialog bodies owned by Explorer ---------- */
.ex-copyprog { width: 340px; display: grid; gap: 6px; }
.ex-flying { position: relative; height: 48px; display: flex; justify-content: space-between; padding: 0 12px; }
.ex-paper { position: absolute; left: 44px; top: 12px; width: 13px; height: 16px; background: #fff; border: 1px solid #8A8A8A; box-shadow: 1px 1px 0 #ccc; animation: ex-fly .9s linear infinite; }
@keyframes ex-fly { 0% { transform: translate(0, 8px) rotate(0); } 50% { transform: translate(120px, -14px) rotate(160deg); } 100% { transform: translate(236px, 8px) rotate(330deg); opacity: .3; } }
.ex-cp-file { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-picker { width: 310px; max-width: calc(100vw - 30px); }
.ex-picker p { margin: 0 0 8px; line-height: 14px; }
.ex-pickbox { height: 220px; margin: 0; }
.ex-pickhint { margin-top: 6px; color: #444; }
.ex-wizard { display: flex; gap: 12px; width: 400px; max-width: calc(100vw - 30px); }
.ex-wz-side { width: 70px; flex: none; background: linear-gradient(to bottom, #5A7EDC, #99B6F2); display: grid; place-items: center; border-radius: 2px; }
.ex-wz-main { flex: 1; min-width: 0; display: grid; gap: 6px; line-height: 14px; }
.ex-wz-main p { margin: 0 0 6px; }
.ex-wz-hint { color: #555; }
.ex-choosedetails { width: 280px; }
.ex-choosedetails p { margin: 0 0 8px; }
.ex-choosecols { height: 140px; padding: 2px; display: grid; align-content: start; }
.ex-openwith { width: 300px; display: grid; gap: 6px; }
.ex-openwith p { margin: 0; }
.ex-choose { height: 160px; }
.ex-mapdrive { width: 340px; max-width: calc(100vw - 30px); line-height: 14px; }
.ex-mapdrive p { margin: 0 0 10px; }
.ex-connstatus { display: grid; gap: 4px; }
.ex-kv { display: grid; grid-template-columns: 90px 1fr; padding: 2px 0; }
.ex-activity { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; }
.ex-connbtns { display: flex; gap: 6px; }
.ex-support, .ex-repair { white-space: pre-wrap; line-height: 16px; }
.ex-repair { width: 300px; }
.ex-rbprops { display: grid; gap: 8px; line-height: 14px; }
.ex-rbprops .indent { padding-left: 18px; }
.ex-rbprops .rb-slider { display: flex; align-items: center; gap: 8px; padding-left: 18px; }
.ex-rbprops .rb-slider input { flex: 1; }
.ex-rbprops .rb-cap { padding-left: 18px; color: #333; }
.ex-rbprops .rb-dim { color: #888; }
.ex-rb-note { color: #333; font-style: italic; }

/* ---------- Narrow windows / phones ---------- */
.app-explorer .ex-root.narrow .ex-tlabel, .app-explorer .ex-root.narrow .ex-alabel, .app-explorer .ex-root.narrow .ex-go span { display: none; }
.app-explorer .ex-root.narrow .cp-grid, .app-explorer .ex-root.narrow .cp-icons { grid-template-columns: minmax(0, 1fr); }
.app-explorer .ex-root.narrow .cp-page { padding: 10px 12px 20px; }
.app-explorer .ex-root.narrow .ex-v-tiles .ex-items { grid-template-columns: minmax(0, 1fr); }
@media (pointer: coarse) {
  .app-explorer .ex-li, .app-explorer .ex-row { height: 26px; }
  .ex-tree .tn-row { height: 26px; }
  .app-explorer .tp-link { padding: 3px 0; }
}
