/* Wireshark on web — tampilan meniru Wireshark 4.x di macOS */
:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Inter, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;
  --win-bg: #ececec; --pane-bg: #ffffff; --border: #c9c9c9; --border-dark: #a9a9a9;
  --text: #1d1d1f; --text-dim: #6e6e73; --accent: #0a60ff; --sel: #2b64d8; --sel-fg: #fff; --sel-inactive: #dcdcdc;
  --header-bg: linear-gradient(#fafafa, #ededed); --toolbar-bg: linear-gradient(#f6f6f6, #e6e6e6);
  --menubar-h: 24px; --title-h: 28px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 13px/1.35 var(--font-ui); color: var(--text); background: #1c2b4a radial-gradient(1200px 700px at 20% 10%, #4f7ad1 0%, #27418a 35%, #121c3b 70%, #0b1226 100%) fixed; overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; }
button { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.28); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; }

/* ---- menubar macOS ---- */
#menubar { position: fixed; top: 0; left: 0; right: 0; height: var(--menubar-h); display: flex; align-items: center; padding: 0 10px; background: rgba(236,236,236,.82); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); font-size: 13px; z-index: 50; box-shadow: 0 0.5px 0 rgba(0,0,0,.25); }
#menubar .apple { font-size: 15px; padding: 0 8px 0 4px; line-height: 1; }
#menubar .mb-item { padding: 2px 9px; border-radius: 4px; cursor: default; white-space: nowrap; }
#menubar .mb-item.app { font-weight: 700; }
#menubar .mb-item.open, #menubar .mb-item:active { background: var(--sel); color: #fff; }
#menubar .spacer { flex: 1; }
#menubar .status { display: flex; gap: 12px; align-items: center; font-size: 12px; color: #222; }
#menubar .status svg { width: 16px; height: 14px; }

/* ---- jendela ---- */
#window { position: fixed; top: 44px; left: 40px; right: 40px; bottom: 68px; background: var(--win-bg); border-radius: 11px; box-shadow: 0 22px 70px rgba(0,0,0,.55), 0 0 0 0.5px rgba(0,0,0,.4), inset 0 0 0 0.5px rgba(255,255,255,.35); display: flex; flex-direction: column; overflow: hidden; min-width: 760px; }
#window.maximized { top: var(--menubar-h); left: 0; right: 0; bottom: 0; border-radius: 0; }
.titlebar { height: var(--title-h); display: flex; align-items: center; background: linear-gradient(#e8e8e8, #d8d8d8); border-bottom: 1px solid #b9b9b9; position: relative; flex: none; }
.traffic { display: flex; gap: 8px; padding-left: 12px; }
.tl { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 0.5px solid rgba(0,0,0,.2); }
.tl.close { background: #ff5f57; } .tl.min { background: #febc2e; } .tl.max { background: #28c840; }
.titlebar .title { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: #333; pointer-events: none; display: flex; justify-content: center; align-items: center; gap: 6px; }
.titlebar .title img { width: 16px; height: 16px; }
.titlebar .title .path { font-weight: 400; color: #555; }

/* ---- toolbar ---- */
#toolbar { display: flex; align-items: center; gap: 2px; padding: 3px 8px; background: var(--toolbar-bg); border-bottom: 1px solid var(--border); flex: none; height: 36px; }
#toolbar .tb { width: 30px; height: 28px; border: 0; background: transparent; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #333; }
#toolbar .tb:hover:not(:disabled) { background: rgba(0,0,0,.08); } #toolbar .tb:active:not(:disabled) { background: rgba(0,0,0,.16); }
#toolbar .tb:disabled { opacity: .35; }
#toolbar .tb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#toolbar .tb.fin svg { fill: #1f6fd0; stroke: #1f6fd0; } #toolbar .tb.fin.start svg { fill: #2fa14b; stroke: #2fa14b; } #toolbar .tb.stop svg { fill: #d7322a; stroke: #d7322a; } #toolbar .tb.restart svg { fill: #2fa14b; stroke: #2fa14b; }
#toolbar .tb.fin:disabled svg { fill: #9aa; stroke: #9aa; }
#toolbar .sep { width: 1px; height: 22px; background: #c0c0c0; margin: 0 5px; }
#toolbar .tb.toggle.on { background: rgba(0,0,0,.14); box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }

/* ---- filter bar ---- */
#filterbar { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: #e9e9e9; border-bottom: 1px solid var(--border); flex: none; height: 34px; }
#filterbar .fb-btn { width: 26px; height: 24px; border: 1px solid #bfbfbf; background: linear-gradient(#fff, #f1f1f1); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
#filterbar .fb-btn svg { width: 16px; height: 16px; stroke: #333; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#filterbar .fb-btn:hover { background: #f4f4f4; } #filterbar .fb-btn:active { background: #e2e2e2; }
#filterbar .fb-btn.bookmark svg { stroke: #2a7b2a; }
#filterbar .field { flex: 1; position: relative; display: flex; align-items: center; height: 24px; border: 1px solid #b7b7b7; border-radius: 6px; background: #fff; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
#filterbar .field.valid { background: #afffaf; } #filterbar .field.invalid { background: #ffafaf; } #filterbar .field.warn { background: #ffffaf; }
#filterbar .field:focus-within { outline: 3px solid rgba(10,96,255,.35); outline-offset: -1px; }
#filterbar input { flex: 1; height: 100%; border: 0; background: transparent; padding: 0 28px 0 8px; font: 13px var(--font-ui); outline: 0; color: #111; }
#filterbar input::placeholder { color: #8a8a8a; }
#filterbar .clear { position: absolute; right: 4px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: #999; color: #fff; font-size: 12px; line-height: 18px; text-align: center; padding: 0; display: none; }
#filterbar .field.has-text .clear { display: block; }
#filterbar .apply { width: 26px; } #filterbar .apply svg { stroke: #333; } #filterbar .apply:disabled { opacity: .4; }
#filterbar .plus { font-size: 15px; font-weight: 600; width: 26px; }
#fb-complete { position: absolute; top: 26px; left: 0; min-width: 260px; max-height: 260px; overflow: auto; background: #fff; border: 1px solid #b0b0b0; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 40; display: none; }
#fb-complete div { padding: 3px 10px; font: 12px var(--font-mono); cursor: default; } #fb-complete div.sel, #fb-complete div:hover { background: var(--sel); color: #fff; }
#fb-complete span { color: #777; font-family: var(--font-ui); margin-left: 8px; } #fb-complete div.sel span { color: #e8e8e8; }
#fb-error { position: absolute; left: 0; top: 26px; background: #fff3f3; border: 1px solid #e0a0a0; color: #a00; padding: 3px 8px; border-radius: 5px; font-size: 12px; z-index: 39; display: none; white-space: nowrap; }

/* ---- welcome ---- */
#welcome { flex: 1; overflow: auto; background: #fff; padding: 18px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
#welcome.hidden, .hidden { display: none !important; }
#welcome h1 { font-size: 20px; font-weight: 500; margin: 0 0 6px; color: #222; }
#welcome h2 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; color: #333; }
#welcome .recent { border: 1px solid #ddd; border-radius: 6px; max-height: 240px; overflow: auto; }
#welcome .recent .row { display: flex; align-items: baseline; gap: 10px; padding: 4px 10px; cursor: default; font-size: 13px; }
#welcome .recent .row:hover { background: #eef3ff; } #welcome .recent .row:nth-child(even) { background: #f7f7f7; } #welcome .recent .row:nth-child(even):hover { background: #e6edff; }
#welcome .recent .name { color: #222; } #welcome .recent .meta { color: var(--text-dim); font-size: 12px; margin-left: auto; white-space: nowrap; }
#welcome .recent .desc { color: #666; font-size: 12px; }
#welcome .cap-row { display: flex; align-items: center; gap: 10px; }
#welcome .cap-filter { flex: 1; height: 24px; border: 1px solid #b7b7b7; border-radius: 6px; padding: 0 8px; background: #fff; color: #9a9a9a; display: flex; align-items: center; }
#welcome .ifaces { border: 1px solid #ddd; border-radius: 6px; }
#welcome .iface { display: flex; align-items: center; gap: 12px; padding: 5px 10px; color: #666; font-size: 13px; }
#welcome .iface:nth-child(even) { background: #f7f7f7; }
#welcome .iface .spark { width: 160px; height: 16px; margin-left: auto; } #welcome .iface .spark polyline { fill: none; stroke: #9aa7b8; stroke-width: 1; }
#welcome .note { color: #8a6d1f; background: #fff8e1; border: 1px solid #f0dca0; padding: 6px 10px; border-radius: 6px; font-size: 12px; }
#welcome .learn { display: flex; gap: 18px; font-size: 13px; color: #333; flex-wrap: wrap; align-items: center; }
#welcome .learn a { color: var(--accent); text-decoration: none; cursor: pointer; } #welcome .learn a:hover { text-decoration: underline; }
#welcome .version { color: var(--text-dim); font-size: 12px; margin-top: auto; }
#welcome .drop { border: 2px dashed #c9d3e6; border-radius: 10px; padding: 14px; text-align: center; color: #667; font-size: 12px; }
#welcome .drop.over { border-color: var(--accent); background: #eef3ff; }

/* ---- workspace 3 pane ---- */
#workspace { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--pane-bg); }
.pane { min-height: 40px; overflow: auto; background: #fff; position: relative; }
#packet-list { flex: 0 0 42%; outline: 0; }
#packet-details { flex: 0 0 30%; border-top: 1px solid var(--border); font: 12px var(--font-ui); outline: 0; }
#packet-bytes { flex: 1; border-top: 1px solid var(--border); font: 11.5px/15px var(--font-mono); padding: 4px 8px; white-space: pre; color: #222; }
.splitter { height: 5px; background: var(--win-bg); border-top: 1px solid #d2d2d2; border-bottom: 1px solid #d2d2d2; cursor: row-resize; flex: none; }
.splitter:hover, .splitter.active { background: #cfd9ec; }

/* packet list table */
#pl-table { border-collapse: collapse; table-layout: fixed; width: max-content; min-width: 100%; font: 12px var(--font-ui); }
#pl-table thead th { position: sticky; top: 0; z-index: 2; background: var(--header-bg); border-right: 1px solid #d5d5d5; border-bottom: 1px solid #bdbdbd; font-weight: 500; text-align: left; padding: 2px 6px; height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; color: #222; }
#pl-table thead th .rs { position: absolute; right: -3px; top: 0; width: 7px; height: 100%; cursor: col-resize; }
#pl-table thead th.sorted::after { content: ' ▲'; font-size: 9px; color: #555; } #pl-table thead th.sorted.desc::after { content: ' ▼'; }
#pl-table thead th.num, #pl-table td.num { text-align: right; }
#pl-table tbody td { padding: 0 6px; height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid transparent; }
#pl-table tbody tr { cursor: default; }
#pl-table tbody tr.sel td { background: var(--sel) !important; color: var(--sel-fg) !important; }
#pl-table.unfocused tbody tr.sel td { background: var(--sel-inactive) !important; color: #000 !important; }
#pl-table tbody tr.marked td { background: #000 !important; color: #fff !important; }
#pl-table tbody tr.ignored td { color: #999 !important; background: #fff !important; text-decoration: line-through; }
#pl-table tbody tr.ref td { background: #000 !important; color: #fff !important; }
#pl-table tbody tr.nocolor td { background: #fff !important; color: #000 !important; }
#pl-table tbody tr.nocolor:nth-child(even) td { background: #f6f6f6 !important; }
#pl-table tbody tr.nocolor.sel td { background: var(--sel) !important; color: #fff !important; }
#pl-spacer-top, #pl-spacer-bottom { padding: 0; height: 0; }

/* packet details tree */
.tree { padding: 2px 0; }
.tnode { white-space: nowrap; height: 18px; line-height: 18px; display: flex; align-items: center; cursor: default; }
.tnode .tw { width: 14px; display: inline-flex; justify-content: center; font-size: 9px; color: #444; flex: none; }
.tnode .tw.leaf { visibility: hidden; }
.tnode .lbl { padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }
.tnode.sel .lbl, .tnode.sel .tw { background: var(--sel); color: #fff; border-radius: 2px; }
.tnode.gen .lbl { color: #333; }
.tnode.expert-Chat .lbl { background: #c6d9f1; } .tnode.expert-Note .lbl { background: #b7f0f0; } .tnode.expert-Warning .lbl { background: #ffe79a; } .tnode.expert-Error .lbl { background: #ffb0b0; }
.tkids { margin-left: 16px; }
.tkids.collapsed { display: none; }
.tnode .lbl a { color: var(--accent); text-decoration: underline; }
.tnode.hover .lbl { background: #eaf0ff; }

/* bytes pane */
#packet-bytes .off { color: #777; } #packet-bytes .hi { background: #3870d0; color: #fff; border-radius: 2px; } #packet-bytes .hi2 { background: #cfe0ff; }
#packet-bytes .asc { color: #333; }
#bytes-tabs { display: flex; gap: 6px; margin-bottom: 3px; font: 11px var(--font-ui); color: #555; }
#bytes-tabs span { padding: 1px 8px; border: 1px solid #ccc; border-radius: 4px; background: #f3f3f3; }

/* statusbar */
#statusbar { height: 24px; display: flex; align-items: center; gap: 10px; padding: 0 8px; background: linear-gradient(#ededed, #e2e2e2); border-top: 1px solid #c3c3c3; font-size: 12px; color: #333; flex: none; }
#statusbar .expert { width: 12px; height: 12px; border-radius: 50%; background: #999; border: 1px solid rgba(0,0,0,.25); flex: none; cursor: pointer; }
#statusbar .expert.Chat { background: #5b8dd6; } #statusbar .expert.Note { background: #2fb5b5; } #statusbar .expert.Warning { background: #e3b81c; } #statusbar .expert.Error { background: #d7322a; }
#statusbar .sb-file { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#statusbar .sb-counts { white-space: nowrap; } #statusbar .sb-profile { white-space: nowrap; border-left: 1px solid #c0c0c0; padding-left: 10px; }
#statusbar .sb-comment { width: 14px; height: 14px; opacity: .6; }

/* ---- menu dropdown ---- */
.menu { position: fixed; min-width: 230px; background: rgba(246,246,246,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(0,0,0,.18); border-radius: 7px; box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 5px; z-index: 60; font-size: 13px; }
.menu .mi { display: flex; align-items: center; padding: 3px 10px 3px 22px; border-radius: 4px; position: relative; cursor: default; white-space: nowrap; }
.menu .mi:hover:not(.disabled), .menu .mi.open { background: var(--sel); color: #fff; }
.menu .mi.disabled { color: #a0a0a0; }
.menu .mi .sc { margin-left: auto; padding-left: 28px; color: #777; font-size: 12px; } .menu .mi:hover:not(.disabled) .sc { color: #eaeaea; }
.menu .mi.checked::before { content: '✓'; position: absolute; left: 7px; font-size: 12px; }
.menu .mi.sub::after { content: '▸'; margin-left: auto; padding-left: 20px; font-size: 12px; }
.menu .mi.sub .sc { display: none; }
.menu .sepr { height: 1px; background: rgba(0,0,0,.12); margin: 5px 10px; }
.menu .hdr { font-size: 11px; color: #777; padding: 2px 10px; }

/* ---- context menu uses .menu ---- */

/* ---- dialog / sheet ---- */
#dialog-root .overlay { position: fixed; inset: 0; background: rgba(0,0,0,.12); z-index: 70; display: flex; align-items: center; justify-content: center; }
.dlg { background: #ececec; border-radius: 11px; box-shadow: 0 25px 70px rgba(0,0,0,.5), 0 0 0 0.5px rgba(0,0,0,.3); min-width: 420px; max-width: calc(100vw - 80px); max-height: calc(100vh - 100px); display: flex; flex-direction: column; overflow: hidden; font-size: 13px; }
.dlg .dtitle { height: 28px; background: linear-gradient(#e8e8e8, #d8d8d8); border-bottom: 1px solid #b9b9b9; display: flex; align-items: center; justify-content: center; font-weight: 600; position: relative; flex: none; }
.dlg .dtitle .traffic { position: absolute; left: 0; }
.dlg .dbody { padding: 14px 18px; overflow: auto; flex: 1; min-height: 0; }
.dlg .dfoot { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 18px 14px; flex: none; }
.dlg .dfoot .left { margin-right: auto; display: flex; gap: 8px; align-items: center; }
.btn { height: 24px; min-width: 76px; padding: 0 14px; border-radius: 6px; border: 1px solid #b5b5b5; background: linear-gradient(#fff, #f0f0f0); font-size: 13px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.btn:hover { background: #f7f7f7; } .btn:active { background: #e3e3e3; } .btn:disabled { opacity: .45; }
.btn.primary { background: linear-gradient(#3b86ff, #1e6cf5); color: #fff; border-color: #1a5ed6; } .btn.primary:hover { background: linear-gradient(#4d92ff, #2b76f8); }
.btn.small { height: 22px; min-width: 0; padding: 0 10px; font-size: 12px; }
.dlg input[type=text], .dlg input[type=search], .dlg select, .dlg textarea { font: 13px var(--font-ui); border: 1px solid #b7b7b7; border-radius: 6px; padding: 3px 7px; background: #fff; color: #111; outline: 0; }
.dlg input:focus, .dlg select:focus, .dlg textarea:focus { outline: 3px solid rgba(10,96,255,.35); outline-offset: -1px; }
.dlg table.grid { border-collapse: collapse; width: 100%; font-size: 12px; background: #fff; border: 1px solid #d0d0d0; }
.dlg table.grid th { background: var(--header-bg); border-bottom: 1px solid #bbb; border-right: 1px solid #ddd; text-align: left; padding: 3px 8px; font-weight: 500; position: sticky; top: 0; }
.dlg table.grid td { padding: 2px 8px; border-right: 1px solid #eee; white-space: nowrap; } .dlg table.grid tr:nth-child(even) td { background: #f7f7f7; }
.dlg table.grid td.num, .dlg table.grid th.num { text-align: right; }
.dlg table.grid tr.sel td { background: var(--sel) !important; color: #fff; }
.dlg .gridwrap { max-height: 46vh; overflow: auto; border: 1px solid #ccc; background: #fff; }
.dlg .mono { font: 12px/16px var(--font-mono); white-space: pre-wrap; word-break: break-all; background: #fff; border: 1px solid #ccc; padding: 8px; }
.dlg .mono .c { color: #a0202a; } .dlg .mono .s { color: #1a3faa; }
.dlg .row { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.dlg .row label { min-width: 110px; color: #333; }
.dlg .kv { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; font-size: 12px; }
.dlg .kv b { font-weight: 600; color: #444; }
.dlg h3 { font-size: 13px; margin: 12px 0 6px; } .dlg h3:first-child { margin-top: 0; }
.dlg .tabs { display: flex; gap: 0; margin-bottom: 10px; border-bottom: 1px solid #ccc; }
.dlg .tabs span { padding: 4px 14px; border: 1px solid #ccc; border-bottom: 0; background: #e3e3e3; border-radius: 6px 6px 0 0; margin-right: -1px; font-size: 12px; cursor: default; }
.dlg .tabs span.on { background: #fff; font-weight: 600; }
.dlg .radio { display: flex; gap: 14px; align-items: center; }
.dlg .about { display: flex; gap: 20px; align-items: flex-start; } .dlg .about img { width: 96px; height: 96px; }
.dlg .about p { margin: 4px 0; font-size: 12px; color: #333; }

/* Open dialog ala Finder */
.open-dlg { width: 820px; height: 560px; }
.open-dlg .dbody { padding: 0; display: flex; flex-direction: column; }
.open-dlg .otb { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #d0d0d0; background: #f3f3f3; flex: none; }
.open-dlg .otb svg, .open-dlg .preview svg { width: 16px; height: 16px; }
.open-dlg .preview, .open-dlg .dfoot { flex: none; }
.open-dlg .otb .nav button { width: 26px; height: 22px; border: 1px solid #bbb; background: #fff; border-radius: 5px; padding: 0; } .open-dlg .otb .nav button:disabled { opacity: .4; }
.open-dlg .otb .loc { flex: 1; text-align: center; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.open-dlg .otb .search { width: 180px; height: 22px; border: 1px solid #bbb; border-radius: 6px; padding: 0 8px; font-size: 12px; }
.open-dlg .omain { display: flex; flex: 1; min-height: 0; }
.open-dlg .sidebar { width: 170px; background: #e4e6ea; border-right: 1px solid #cfcfcf; padding: 8px 0; overflow: auto; }
.open-dlg .sidebar .sh { font-size: 11px; color: #777; font-weight: 600; padding: 6px 14px 2px; }
.open-dlg .sidebar .si { padding: 3px 14px; display: flex; align-items: center; gap: 7px; cursor: default; font-size: 13px; }
.open-dlg .sidebar .si svg { width: 16px; height: 16px; } .open-dlg .sidebar .si.on { background: #cfd5e0; } .open-dlg .sidebar .si:hover { background: #d8dde6; }
.open-dlg .files { flex: 1; overflow: auto; background: #fff; }
.open-dlg .files table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.open-dlg .files th { text-align: left; font-weight: 500; color: #444; padding: 3px 8px; border-bottom: 1px solid #ddd; background: #fafafa; position: sticky; top: 0; }
.open-dlg .files td { padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; cursor: default; }
.open-dlg .files tr:nth-child(even) td { background: #f5f6f8; } .open-dlg .files tr.sel td { background: var(--sel); color: #fff; }
.open-dlg .files td.name { max-width: none; } .open-dlg .files td.name svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.open-dlg .files .dim { color: #888; } .open-dlg .files tr.sel .dim { color: #e8e8e8; }
.open-dlg .preview { border-top: 1px solid #cfcfcf; background: #ececec; padding: 8px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; font-size: 12px; }
.open-dlg .preview b { font-weight: 600; color: #333; } .open-dlg .preview .row { margin: 2px 0; }
.open-dlg .preview .fmt { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; } .open-dlg .preview .fmt input { flex: 1; }

/* follow stream */
.follow .mono { max-height: 48vh; overflow: auto; }
.follow .mono .c { background: #fff0f0; } .follow .mono .s { background: #eef3ff; }

/* exercises */
.ex .q { margin: 6px 0; padding: 6px 10px; background: #fff; border: 1px solid #ddd; border-radius: 6px; }
.ex .q .a { display: none; color: #1a5e1a; margin-top: 4px; } .ex .q.show .a { display: block; }
.ex .q button { margin-left: 8px; }
.ex .lvl { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: #dfe8ff; color: #2b4da8; margin-left: 6px; }

/* toast */
#toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: rgba(40,40,40,.92); color: #fff; padding: 7px 14px; border-radius: 8px; font-size: 12px; z-index: 90; display: none; }

/* dock */
#dock { position: fixed; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 10px; background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.35); border-radius: 16px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); z-index: 40; }
#dock img, #dock .di { width: 36px; height: 36px; border-radius: 9px; display: block; }
#dock .di { background: linear-gradient(#f6f6f6, #cfcfcf); } #dock .di.finder { background: linear-gradient(#58a9ff, #1d6ce8); } #dock .di.term { background: #222; } #dock .di.safari { background: radial-gradient(#fff 30%, #2b8cff 31%); } #dock .di.on { position: relative; } #dock .di.on::after, #dock img.on + i { content: ''; position: absolute; bottom: -5px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #333; transform: translateX(-50%); }
#dock .wrap { position: relative; }

@media (max-width: 900px) { #window { left: 8px; right: 8px; top: 32px; bottom: 8px; min-width: 0; } #dock { display: none; } }
@media print { #menubar, #dock, #toolbar, #filterbar { display: none; } #window { position: static; box-shadow: none; } }
