/* CTL's main window in HTML, matched to CTL's own render (dark appearance)
   of views.swift: 960x640pt content under a 52pt title bar. Sizes, colours
   and positions are measured from `nsactl --ui-render` output. */
.win { position: absolute; width: 960px; height: 692px; border-radius: 14px; overflow: hidden;
       background: #353535; color: #e4e4e4; font-size: 15px; transform-origin: top left;
       box-shadow: 0 22px 50px rgba(0,0,0,0.40), 0 0 0 1px rgba(0,0,0,0.55), inset 0 0 0 0.5px rgba(255,255,255,0.18); }
.win .titlebar { position: absolute; left: 0; top: 0; right: 0; height: 52px; border-bottom: 1px solid #000; }
.win .lights { position: absolute; left: 20px; top: 20px; display: flex; gap: 8px; }
.win .lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.win .lights i:nth-child(1) { background: #ff5f57; } .win .lights i:nth-child(2) { background: #febc2e; } .win .lights i:nth-child(3) { background: #28c840; }
.win .wtitle { position: absolute; left: 91px; top: 15px; font-weight: 600; font-size: 15px; color: #d0d0d0; }
.win .sidetoggle { position: absolute; left: 258px; top: 17px; height: 17px; opacity: 0.55; }
.win .tsep { position: absolute; left: 297px; top: 12px; height: 28px; border-left: 1px solid #555; }
.win .sidebar { position: absolute; left: 0; top: 53px; width: 180px; bottom: 0; border-right: 1px solid #000; }
.win .sidebar div { position: absolute; left: 10px; width: 160px; height: 32px; line-height: 32px; padding-left: 6.5px;
                    box-sizing: border-box; border-radius: 8px; color: #9a9a9a; }
.win .sidebar div.sel { background: #545454; color: #c8c8c8; }
.win .detail { position: absolute; left: 181px; top: 53px; right: 0; bottom: 0; padding: 16px 16px 16px 16.5px; box-sizing: border-box; }
.win h2 { margin: 0; font-size: 20px; font-weight: 400; color: #f2f2f2; height: 24px; line-height: 24px; }
.win .head { display: flex; align-items: center; height: 24px; gap: 12px; }
.win .head .sp { flex: 1; }
.win .btn { background: #717171; color: #ececec; border-radius: 6px; padding: 0 8px; height: 20px; line-height: 20px; font-size: 15px; display: inline-block; }
.win a { color: #6daffb; text-decoration: none; }
.win .muted { color: #8d8d8d; }
/* S4: Table */
.win .table { margin-top: 12px; background: #282828; height: 575px; position: relative; }
.win .table .th { display: grid; grid-template-columns: 245px 244px 1fr; height: 27px; line-height: 27px;
                  border-bottom: 1px solid #3c3c3c; font-size: 13px; color: #f8f8f8; }
.win .table .th span { padding-left: 17px; border-left: 1px solid #444; } .win .table .th span:first-child { border-left: 0; }
.win .table .tr { display: grid; grid-template-columns: 244px 244px 1fr; height: 24px; line-height: 24px; margin: 0 10px; padding-left: 6px; border-radius: 6px; }
.win .table .tr:nth-child(even) { background: #363636; }
.win .table .tr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.win .table .rows { padding-top: 4px; }
/* S8, S12, S14: Grid */
.win .grid { display: grid; column-gap: 16px; align-items: center; margin-top: 12px; }
.win .grid .h { font-weight: 700; color: #f2f2f2; }
.win .grid > * { white-space: nowrap; }
/* S14 */
.win .seg { margin-top: 12px; width: 250px; height: 20px; border-radius: 6px; background: #474747; display: flex; padding: 1px; margin-left: 8px; }
.win .seg span { flex: 1; text-align: center; line-height: 20px; border-radius: 5px; color: #e4e4e4; }
.win .seg span.on { background: #6f6f6f; }
.win .bottom { position: absolute; left: 16.5px; bottom: 14px; display: flex; gap: 8px; align-items: center; }
.win .check { width: 14px; height: 14px; border-radius: 4px; background: #e4e4e4; color: #222; font-size: 11px; line-height: 14px; text-align: center; font-weight: 700; display: inline-block; }
/* S11 */
.win .map { position: absolute; left: 16.5px; top: 45px; right: 16px; bottom: 15px; }
.win .map svg { position: absolute; left: 0; top: 0; }
.win .node { position: absolute; transform: translate(-50%, -50%); padding: 6px; background: #282828; border: 1px solid #e4e4e4; border-radius: 6px; white-space: nowrap; }
.win .node.down { border-style: dashed; }
.win .elabel { position: absolute; transform: translate(-50%, -50%); font-size: 11px; color: #6daffb; white-space: nowrap; }
