/* Windows 3.11 URI Launcher - layout only; chrome comes from theme.css */
:root { font-size: 15px; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: #008080; color: #000; user-select: none; -webkit-user-select: none; }

/* menu bar */
#menubar { position: relative; z-index: 5000; }
#menubar [role=menubar] { display: flex; }
#menubar ul { list-style: none; margin: 0; padding: 0; }
#menubar [role=menubar] > li { position: relative; }
#menubar [role=menu] { display: none; position: absolute; z-index: 6000; min-width: 210px; }
#menubar [role=menu] [role=menu] { left: 100%; top: -1px; }
#menubar li:hover > [role=menu], #menubar li:focus-within > [role=menu] { display: block; }
#menubar [role=menu] > li[tabindex]:hover { background: #0000c0; color: #fff; }
#menubar [role=menubar] > li:hover { background: #0000c0; color: #fff; }

/* desktop */
#desktop { position: absolute; top: 26px; left: 0; right: 0; bottom: 40px; overflow: hidden; }
.deskgrid { padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, 122px); gap: 12px; max-width: 880px; }
.deskicon { width: 118px; text-align: center; color: #fff; cursor: default; padding: 8px 2px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.deskicon .lbl { font-size: 13px; padding: 1px 3px; max-width: 114px; }
.deskicon.sel .lbl { background: #0000c0; color: #fff; outline: 1px dotted #fff; }
.deskicon svg { width: 48px; height: 48px; }

/* windows: flex column so body scrolls and status bar pins */
.pmwin { position: absolute; display: flex; flex-direction: column; min-width: 260px; min-height: 160px; }
.pmwin > .window-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.pmwin .body { flex: 1; overflow: auto; padding: 6px; }
.pmwin .status-bar { display: flex; border-top: 1px solid #808080; }
.pmwin .status-bar .s1 { flex: 1; border: 1px solid; border-color: #808080 #fff #fff #808080; padding: 1px 5px; overflow: hidden; white-space: nowrap; }
.resz { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; cursor: se-resize; }

/* in-window icons */
.icon-grid > .icon svg { width: 32px; height: 32px; }
.deskicon .ic { line-height: 0; }

/* details table */
table.detailed td { border-bottom: 1px solid #e0e0e0; }
.badge { font-size: 10px; padding: 0 3px; border: 1px solid #808080; margin-left: 3px; background: #fff; }
.badge.warn { background: #ffd000; } .badge.bad { background: #ff8080; } .badge.tmpl { background: #c0e0ff; }

/* taskbar */
#taskbar { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: #c0c0c0;
  border-top: 2px solid #fff; display: flex; align-items: center; padding: 4px; gap: 4px; z-index: 4000; }
#taskbar .tb { min-width: 140px; max-width: 180px; padding: 4px 8px; background: #c0c0c0; text-align: left;
  border: 2px solid; border-color: #fff #808080 #808080 #fff; overflow: hidden; white-space: nowrap; cursor: default; }
#taskbar .tb.active { border-color: #808080 #fff #fff #808080; font-weight: bold; }
#statusmain { flex: 1; padding: 0 6px; border: 1px solid; border-color: #808080 #fff #fff #808080; max-width: 320px; overflow: hidden; white-space: nowrap; }

/* banner */
#banner { background: #ffd000; border-bottom: 2px solid #000; padding: 3px 8px; font-size: 12px; display: none; }
#banner.show { display: block; }

/* dialogs */
.modalbg { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 9000; display: flex; align-items: center; justify-content: center; }
.modalbg .dialog { min-width: 340px; max-width: 560px; }
.dfoot { display: flex; gap: 6px; justify-content: flex-end; padding: 8px; }
.drow { margin: 6px 0; padding: 0 10px; } .drow input[type=text] { width: 100%; }
.dialog-body > .help, .pmwin .help { padding: 8px; }
.help h3 { margin: 8px 0 2px; } .help p { margin: 2px 0; }
.searchbar { display: flex; gap: 4px; margin: 4px 0 6px; }
.searchbar input { flex: 1; }
