@charset "UTF-8";

:root {
    --ui-bg:      #33333a;
    --ui-bg-2:    #3b3b44;
    --ui-title:   #2a2a31;
    --ui-panel:   #26262d;
    --ui-line:    #1d1d23;
    --ui-line-2:  #4a4a55;
    --ui-fg:      #d2d2da;
    --ui-dim:     #9090a0;
    --ui-sel:     #1b4f80;
    --ui-hover:   #32323d;

    --code-bg:    #1e1e25;
    --code-node:  #262630;
    --code-fg:    #d6d6d6;
    --code-dim:   #8b8b9a;
    --gut:        #63637a;

    --cmt:        #6faf6f;
    --nm:         #61a0dd;
    --kw2:        #b6b6c6;
    --num:        #d0a878;
    --kw:         #c98cd8;
    --node-bar:   #0d7bd4;
    --link:       #6cb6ff;

    --s-lib: #7ab8f5;
    --s-reg: #4f8fd6;
    --s-ins: #a8474c;
    --s-dat: #9a9aa6;
    --s-unx: #8a8a3a;
    --s-ext: #dd7ac9;
    --s-lum: #58b45a;

    --mono: "Cascadia Mono", Consolas, "JetBrains Mono", "DejaVu Sans Mono", ui-monospace, monospace;
    --ui-font: "Segoe UI", Tahoma, "Noto Sans", sans-serif;

    --gutter: 108px;
    --pad: 22px;
    --bpw: 16px;
    --dock: 240px;
}

@font-face {
    font-family: "Pixel Georgia";
    src: url("../fonts/18959.ttf");
    font-display: swap;
}

@font-face {
    font-family: "Pixel Times";
    src: url("../fonts/18963.ttf");
    font-display: swap;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #16161b;
    color: var(--ui-fg);
    font-family: var(--ui-font);
    font-size: 12px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: -2px;
}

.app {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--ui-bg);
}

.titlebar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 4px 0 8px;
    background: var(--ui-title);
    border-bottom: 1px solid var(--ui-line);
    user-select: none;
}

.ti-logo {
    width: 14px;
    height: 14px;
    background: var(--node-bar);
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--ui-title), inset 0 0 0 4px var(--node-bar);
}

.ti-text {
    font-size: 12px;
    color: var(--ui-fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ti-btns {
    margin-left: auto;
    display: flex;
}

.wb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
    color: var(--ui-dim);
}

.wb .ico {
    width: 12px;
    height: 12px;
    shape-rendering: geometricPrecision;
}

.wb:hover {
    background: var(--ui-hover);
    color: var(--ui-fg);
}

.wb-close:hover {
    background: #c0392b;
    color: #fff;
}

.ti-btns .wb {
    width: 40px;
    height: 28px;
    color: var(--ui-fg);
}

.ti-btns .wb .ico {
    width: 14px;
    height: 14px;
}

.pane-btns .wb {
    width: 17px;
    height: 16px;
}

.pane-btns .wb .ico {
    width: 10px;
    height: 10px;
}

.menubar {
    flex: none;
    display: flex;
    height: 23px;
    padding: 0 4px;
    background: var(--ui-bg);
    border-bottom: 1px solid var(--ui-line);
    user-select: none;
}

.mi {
    padding: 0 9px;
    height: 22px;
    background: none;
    border: none;
    color: var(--ui-fg);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.mi:hover,
.mi.is-open {
    background: var(--ui-sel);
    color: #fff;
}

.menu {
    position: absolute;
    z-index: 40;
    min-width: 208px;
    padding: 3px 0;
    background: var(--ui-bg-2);
    border: 1px solid var(--ui-line-2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}

.menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 12px 4px 10px;
    background: none;
    border: none;
    color: var(--ui-fg);
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.menu button:hover {
    background: var(--ui-sel);
    color: #fff;
}

.menu button[disabled] {
    color: var(--ui-dim);
    cursor: default;
}

.menu button[disabled]:hover {
    background: none;
    color: var(--ui-dim);
}

.menu .m-check {
    width: 12px;
    color: var(--cmt);
}

.menu .m-key {
    margin-left: auto;
    padding-left: 20px;
    color: var(--ui-dim);
    font-family: var(--mono);
    font-size: 11px;
}

.menu hr {
    margin: 3px 0;
    border: none;
    border-top: 1px solid var(--ui-line-2);
}

.toolbar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    padding: 0 6px;
    background: var(--ui-bg);
    border-bottom: 1px solid var(--ui-line);
    user-select: none;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ico {
    flex: none;
    width: 16px;
    height: 16px;
    display: block;
    shape-rendering: crispEdges;
}

.tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: none;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
}

.tool:hover {
    background: var(--ui-hover);
    border-color: var(--ui-line-2);
}

.tool:active {
    background: var(--ui-sel);
}

.tool.is-off .ico {
    opacity: .35;
}

.tsep {
    width: 1px;
    height: 18px;
    margin: 0 3px;
    background: var(--ui-line-2);
}

.combo {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 21px;
    padding: 0 4px 0 7px;
    background: var(--ui-panel);
    border: 1px solid var(--ui-line-2);
    color: var(--ui-fg);
    font-size: 12px;
    white-space: nowrap;
}

.combo-wide {
    min-width: 160px;
}

.combo i {
    margin-left: auto;
    border: 4px solid transparent;
    border-top-color: var(--ui-dim);
    transform: translateY(2px);
}

.navband {
    position: relative;
    flex: none;
    display: flex;
    height: 20px;
    margin: 3px 6px;
    border: 1px solid var(--ui-line-2);
    background: var(--ui-panel);
    overflow: hidden;
    cursor: crosshair;
}

.nb-cursor {
    transition: left .12s linear;
}

.nb {
    height: 100%;
}

.s-lib { background: var(--s-lib); }
.s-reg { background: var(--s-reg); }
.s-ins { background: var(--s-ins); }
.s-dat { background: var(--s-dat); }
.s-unx { background: var(--s-unx); }
.s-ext { background: var(--s-ext); }
.s-lum { background: var(--s-lum); }

.nb-cursor {
    position: absolute;
    left: 6%;
    top: 0;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #e8b020;
    z-index: 2;
}

.legend {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 3px 8px 5px;
    background: var(--ui-bg);
    border-bottom: 1px solid var(--ui-line);
    font-size: 11.5px;
    color: var(--ui-fg);
    user-select: none;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend i {
    width: 11px;
    height: 11px;
    border: 1px solid rgba(0, 0, 0, .35);
}

.body {
    flex: 1;
    display: flex;
    min-height: 0;
    background: var(--ui-bg);
}

.dock {
    flex: none;
    width: var(--dock);
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 3px 0 3px 3px;
    gap: 3px;
}

.pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--ui-panel);
    border: 1px solid var(--ui-line-2);
}

.pane-fn {
    flex: 1 1 auto;
}

.pane-imp {
    flex: none;
}

.pane-ov {
    flex: none;
    height: 116px;
}

.pane-bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 21px;
    padding: 0 3px 0 5px;
    background: linear-gradient(var(--ui-bg-2), #303038);
    border-bottom: 1px solid var(--ui-line-2);
    user-select: none;
}

.pane-bar .ico {
    width: 14px;
    height: 14px;
}

.pane-title {
    font-size: 12px;
    color: var(--ui-fg);
}

.pane-btns {
    margin-left: auto;
    display: flex;
    gap: 2px;
}

.tbl-head {
    flex: none;
    display: flex;
    height: 20px;
    background: linear-gradient(var(--ui-bg-2), #303038);
    border-bottom: 1px solid var(--ui-line-2);
    font-size: 11.5px;
    color: var(--ui-fg);
    user-select: none;
}

.tbl-head span {
    padding: 3px 6px;
    border-right: 1px solid var(--ui-line-2);
    overflow: hidden;
    white-space: nowrap;
}

.pane-fn nav {
    flex: 1;
    overflow-y: auto;
}

.fnlist,
.implist {
    list-style: none;
}

.fnlist a {
    display: flex;
    align-items: center;
    height: 19px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ui-fg);
}

.fnlist a:hover {
    background: var(--ui-hover);
}

.fnlist a.is-current {
    background: var(--ui-sel);
    color: #fff;
}

.fi {
    width: 14px;
    height: 14px;
    margin: 0 4px 0 5px;
}

.filter {
    flex: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 5px;
    border-top: 1px solid var(--ui-line-2);
    background: var(--ui-bg);
}

.filter .ico {
    width: 13px;
    height: 13px;
    opacity: .7;
}

.filter input {
    flex: 1;
    min-width: 0;
    padding: 2px 5px;
    background: var(--code-bg);
    border: 1px solid var(--ui-line-2);
    color: var(--ui-fg);
    font-family: var(--mono);
    font-size: 11.5px;
}

.filter input:focus {
    outline: none;
    border-color: var(--link);
}

.fnlist li.is-hidden {
    display: none;
}

.splitter {
    flex: none;
    width: 5px;
    margin: 3px 0;
    background: transparent;
    cursor: col-resize;
}

.splitter:hover,
.splitter.is-drag {
    background: var(--link);
}

.c-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-seg {
    flex: none;
    width: 62px;
    padding-left: 6px;
    color: var(--ui-dim);
}

.fnlist a.is-current .c-seg {
    color: #cfe0f2;
}

.tbl-head .c-name {
    flex: 1;
}

.implist {
    padding: 2px 0;
}

.implist li {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 19px;
    padding: 0 6px;
    font-family: var(--mono);
    font-size: 12px;
}

.implist li:hover {
    background: var(--ui-hover);
}

.i-lib {
    flex: none;
    width: 62px;
    color: var(--ui-dim);
}

.implist a {
    color: var(--link);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.implist a:hover {
    text-decoration: underline;
}

.overview {
    position: relative;
    flex: 1;
    background: var(--code-bg);
    overflow: hidden;
}

.ov-node {
    position: absolute;
    background: #3d6a94;
    border: 1px solid #5e8fc0;
}

.ov-node.n1 { left: 38%; top: 8%;  width: 26%; height: 16%; }
.ov-node.n2 { left: 44%; top: 32%; width: 14%; height: 9%;  }
.ov-node.n3 { left: 40%; top: 49%; width: 22%; height: 13%; }
.ov-node.n4 { left: 44%; top: 70%; width: 14%; height: 8%;  }

.ov-view {
    position: absolute;
    left: 22%;
    top: 4%;
    width: 56%;
    height: 34%;
    background: rgba(90, 165, 235, .18);
    border: 1px solid #5aa5eb;
    transition: top .12s linear;
}

.views {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 3px 3px 3px 0;
}

.tabbar {
    flex: none;
    display: flex;
    gap: 1px;
    padding-top: 2px;
    overflow: hidden;
    user-select: none;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    background: linear-gradient(var(--ui-bg-2), #303038);
    border: 1px solid var(--ui-line-2);
    border-bottom: none;
    font-family: inherit;
    font-size: 12px;
    color: var(--ui-dim);
    white-space: nowrap;
    cursor: pointer;
}

.tab:hover {
    color: var(--ui-fg);
}

.tab.is-active {
    background: var(--code-bg);
    color: var(--ui-fg);
    padding-bottom: 1px;
}

.tab .ico {
    width: 14px;
    height: 14px;
}

.tab .x {
    position: relative;
    width: 11px;
    height: 11px;
}

.tab .x::before,
.tab .x::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 5px;
    width: 9px;
    height: 1px;
    background: var(--ui-dim);
    transform: rotate(45deg);
}

.tab .x::after {
    transform: rotate(-45deg);
}

.viewport {
    flex: 1;
    min-height: 0;
    display: flex;
    border: 1px solid var(--ui-line-2);
}

.view {
    display: none;
}

.view.is-active {
    display: block;
}

.listing {
    flex: 1;
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px 40vh 0;
    background: var(--code-bg);
    color: var(--code-fg);
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.6;
}

.view-aux {
    padding: 8px 14px 24px;
}

.view-graph {
    flex: 1;
    width: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.graph {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 100% 22px,
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 22px 100%,
        var(--code-bg);
    cursor: grab;
}

.graph.is-drag {
    cursor: grabbing;
}

.graph-canvas {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
}

.gedges {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    overflow: visible;
}

.gnode {
    position: absolute;
    background: var(--code-node);
    border: 1px solid #4a4a58;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
    font-family: var(--mono);
}

.gnode[data-goto] {
    cursor: pointer;
}

.gnode[data-goto]:hover {
    border-color: var(--link);
}

.gnode-bar {
    padding: 2px 7px;
    background: var(--node-bar);
    color: #eaf3fb;
    font-size: 11.5px;
    letter-spacing: .3px;
}

.gnode[data-gid="sub_client"] .gnode-bar,
.gnode[data-gid="sub_nda"] .gnode-bar,
.gnode[data-gid="sub_1c"] .gnode-bar {
    background: #2b6ea8;
}

.gnode-body {
    padding: 8px 10px 9px;
}

.gn-title {
    display: block;
    color: var(--code-fg);
    font-size: 13px;
    font-weight: 400;
}

.gn-sub {
    display: block;
    margin-top: 3px;
    color: var(--code-dim);
    font-size: 11.5px;
    line-height: 1.45;
}

.gnode[data-gid="main"] .gn-title {
    color: #fff;
    font-size: 15px;
}

.gnode[data-gid="contact"] .gn-sub {
    color: var(--nm);
}

.xpop {
    position: fixed;
    z-index: 55;
    width: min(620px, 92vw);
    background: var(--ui-bg);
    border: 1px solid var(--ui-line-2);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
}

.xpop-bar {
    display: flex;
    align-items: center;
    height: 23px;
    padding: 0 5px 0 9px;
    background: var(--ui-title);
    border-bottom: 1px solid var(--ui-line-2);
    font-size: 12px;
    color: var(--ui-fg);
}

.xpop-bar .dlg-x {
    margin-left: auto;
}

.xpop-body {
    max-height: 300px;
    overflow-y: auto;
}

.xpop-row {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 2px 9px;
    background: none;
    border: none;
    color: var(--code-fg);
    font-family: var(--mono);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.xpop-row:hover {
    background: var(--ui-sel);
    color: #fff;
}

.xpop-head {
    position: sticky;
    top: 0;
    background: var(--ui-bg-2);
    border-bottom: 1px solid var(--ui-line-2);
    color: var(--ui-dim);
    cursor: default;
}

.xpop-head:hover {
    background: var(--ui-bg-2);
    color: var(--ui-dim);
}

.xa {
    flex: none;
    width: 112px;
    color: var(--gut);
}

.xpop-row:hover .xa {
    color: #cfe0f2;
}

.xt {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xpop-empty {
    padding: 12px;
    color: var(--ui-dim);
    font-size: 12px;
}

.kw,
.ln.kv .k {
    cursor: pointer;
}

.kw:hover,
.ln.kv .k:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.code {
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
}

.grid {
    display: table;
    width: 100%;
    font-size: 13px;
    line-height: 1.75;
}

.grid .row {
    display: table-row;
}

.grid .row:hover {
    background: rgba(255, 255, 255, .05);
}

.grid span {
    display: table-cell;
    padding: 0 16px 0 0;
    white-space: nowrap;
}

.grid .c4 {
    white-space: normal;
    width: 100%;
}

.grid .row.head span {
    position: sticky;
    top: -8px;
    color: var(--ui-fg);
    background: var(--ui-bg);
    padding: 1px 16px 1px 6px;
    border-bottom: 1px solid var(--ui-line-2);
}

.grid .c1 {
    color: var(--gut);
}

.grid .c2,
.grid .c3 {
    color: var(--code-dim);
}

.grid a {
    color: var(--link);
}

.grid a:hover {
    text-decoration: underline;
}

.grid-hex .c2 {
    color: var(--kw2);
    letter-spacing: .3px;
}

.grid-hex .c3 {
    color: var(--num);
}

.ln.is-hit {
    animation: hit 1.4s ease-out;
}

@keyframes hit {
    0%, 40%  { background: rgba(108, 182, 255, .3); }
    100%     { background: rgba(108, 182, 255, 0); }
}

.listing.bp-mode .ln {
    cursor: default;
}

.ln.has-bp::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #c8433f;
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .3), 0 0 0 1px #7d2320;
}

.fold {
    position: absolute;
    left: calc(var(--bpw) + var(--gutter) + 3px);
    top: 50%;
    width: 13px;
    height: 13px;
    margin-top: -6px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--code-node);
    border: 1px solid #5a5a6a;
    color: var(--code-dim);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.fold:hover {
    border-color: var(--link);
    color: var(--link);
}

.sec.is-folded > *:not(.seg),
.job.is-folded > *:not(.job-head) {
    display: none;
}

.sec.is-folded .seg::after,
.job.is-folded .job-head::after {
    content: " ...";
    color: var(--code-dim);
}

mark.hit {
    background: #6d5a1c;
    color: #ffe9a8;
    border-radius: 1px;
}

mark.hit.is-cur {
    background: #d8a72e;
    color: #16161b;
}

.no-prefix .ln::before {
    display: none;
}

.no-prefix .ln {
    padding-left: calc(var(--bpw) + 6px);
}

.no-prefix .fold {
    left: calc(var(--bpw) - 12px);
}

.no-prefix .ln.li {
    padding-left: calc(var(--bpw) + 6px + 1.6em);
}

.ln {
    position: relative;
    padding: 0 8px 0 calc(var(--bpw) + var(--gutter) + var(--pad));
    font-size: inherit;
    font-weight: 400;
}

.ln::before {
    content: attr(data-a);
    position: absolute;
    left: var(--bpw);
    top: 0;
    width: var(--gutter);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.78;
    letter-spacing: 0;
    text-indent: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    color: var(--gut);
    user-select: none;
    pointer-events: none;
}

.ln:hover {
    background: rgba(255, 255, 255, .05);
}

.ln.bl {
    height: 1.6em;
}

.cmt    { color: var(--cmt); }
.nm     { color: var(--nm); }
.kw2    { color: var(--kw2); }
.num    { color: var(--num); }
.kw     { color: var(--kw); font-weight: 400; }
.dim    { color: var(--code-dim); }
.banner { color: var(--cmt); white-space: nowrap; overflow: hidden; }

em {
    color: var(--num);
    font-style: italic;
}

b {
    font-weight: 400;
}

.node {
    margin: 4px 20px 4px calc(var(--bpw) + var(--gutter) + var(--pad));
    max-width: 640px;
    background: var(--code-node);
    border: 1px solid #4a4a58;
}

.node-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 17px;
    padding: 0 5px;
    background: var(--node-bar);
}

.node-bar .ico {
    width: 11px;
    height: 11px;
}

.nb-title {
    margin-left: 4px;
    color: #dceaf8;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .3px;
}

.node-body {
    padding: 12px 16px 14px;
}

.name {
    font-family: "Pixel Georgia", var(--mono);
    font-size: clamp(26px, 3.6vw, 38px);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff;
}

.tagline {
    margin-top: 6px;
    color: var(--num);
    font-family: var(--mono);
    font-size: 14px;
}

.tagline-2 {
    margin-top: 2px;
    color: var(--cmt);
    font-family: var(--mono);
    font-size: 13px;
}

.ln.seg {
    position: sticky;
    top: -8px;
    z-index: 2;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 15px;
    font-weight: 400;
    background: var(--code-bg);
    box-shadow: 0 1px 0 #35353f;
}

.ln.seg .nm {
    font-weight: 700;
}

.ln.seg:hover {
    background: var(--code-bg);
}

.ln.p {
    max-width: 88ch;
    padding-top: 1px;
    padding-bottom: 1px;
}

.ln.li {
    display: list-item;
    list-style: "\25AA" inside;
    max-width: 88ch;
    padding-left: calc(var(--bpw) + var(--gutter) + var(--pad) + 1.6em);
    text-indent: -1.6em;
}

.ln.li::marker {
    color: var(--code-dim);
}

.ln.kv {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    column-gap: 16px;
}

.ln.kv .k {
    color: var(--cmt);
}

.ln.kv .v {
    max-width: 76ch;
}

.ln.job-head {
    font-size: 14.5px;
    font-weight: 400;
}

.ln.job-head .nm {
    font-weight: 700;
}

.ln.job-meta {
    color: var(--code-dim);
    font-size: 13px;
}

.ln.job-meta .date {
    color: var(--num);
}

.ln.stack {
    max-width: 96ch;
    font-size: 13px;
}

.ln.endp {
    opacity: .75;
}

.ln.contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(226px, 292px));
    gap: 8px 10px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.ln.contacts:hover {
    background: none;
}

.c-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background: var(--code-node);
    border: 1px solid #4a4a58;
    color: var(--code-fg);
    transition: border-color .15s ease, background .15s ease;
}

.c-card:hover {
    background: #2e2e3a;
    border-color: var(--nm);
}

.c-card img {
    grid-row: 1 / 3;
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.c-t {
    color: var(--code-dim);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.c-v {
    color: var(--nm);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.viewstatus {
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 19px;
    padding: 0 6px;
    background: var(--ui-bg);
    border: 1px solid var(--ui-line-2);
    border-top: none;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ui-fg);
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
}

.vs-sync {
    color: var(--ui-dim);
}

.pane-out {
    flex: none;
    height: 142px;
    margin: 0 3px 3px;
}

.outlog {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 6px;
    background: var(--code-bg);
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--code-fg);
}

.outlog .o-tag {
    display: inline-block;
    min-width: 68px;
    color: var(--link);
}

.outlog .o-hr {
    color: #55556a;
    white-space: nowrap;
    overflow: hidden;
}

.outlog .o-ps {
    color: var(--cmt);
}

.outlog .o-cmd {
    color: var(--num);
    font-weight: 400;
}

.outlog .o-err {
    color: #e07a7a;
}

.outlog .o-ok {
    color: var(--cmt);
}

.outlog a {
    color: var(--link);
}

.outlog a:hover {
    text-decoration: underline;
}

.pyrow {
    flex: none;
    display: flex;
    align-items: stretch;
    height: 22px;
    border-top: 1px solid var(--ui-line-2);
    background: var(--ui-bg);
}

.py-label {
    flex: none;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-right: 1px solid var(--ui-line-2);
    font-size: 12px;
    color: var(--ui-fg);
}

.py-input {
    flex: 1;
    min-width: 0;
    margin: 2px;
    padding: 0 6px;
    background: var(--code-bg);
    border: 1px solid var(--ui-line-2);
    color: var(--code-fg);
    font-family: var(--mono);
    font-size: 12px;
    caret-color: var(--cmt);
}

.py-input:focus {
    outline: none;
    border-color: var(--link);
}

.dlg {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
}

.dlg-box {
    width: min(360px, 90vw);
    background: var(--ui-bg);
    border: 1px solid var(--ui-line-2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}

.dlg-bar {
    display: flex;
    align-items: center;
    height: 24px;
    padding: 0 6px 0 9px;
    background: var(--ui-title);
    border-bottom: 1px solid var(--ui-line-2);
    font-size: 12px;
    color: var(--ui-fg);
}

.dlg-x {
    position: relative;
    width: 16px;
    height: 16px;
    margin-left: auto;
    cursor: pointer;
}

.dlg-x::before,
.dlg-x::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 8px;
    width: 11px;
    height: 1px;
    background: var(--ui-fg);
    transform: rotate(45deg);
}

.dlg-x::after {
    transform: rotate(-45deg);
}

.dlg-body {
    padding: 14px 14px 10px;
}

.dlg-body label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--ui-fg);
}

.dlg-body input {
    width: 100%;
    padding: 4px 7px;
    background: var(--code-bg);
    border: 1px solid var(--ui-line-2);
    color: var(--num);
    font-family: var(--mono);
    font-size: 13px;
}

.dlg-body input:focus {
    outline: none;
    border-color: var(--link);
}

.dlg-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px 14px 14px;
}

.dlg-foot button {
    min-width: 78px;
    padding: 4px 12px;
    background: linear-gradient(var(--ui-bg-2), #303038);
    border: 1px solid var(--ui-line-2);
    color: var(--ui-fg);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.dlg-foot button:hover {
    border-color: var(--link);
}

.dlg-ok {
    color: #fff !important;
    background: var(--ui-sel) !important;
}

.statusbar {
    flex: none;
    display: flex;
    align-items: center;
    height: 22px;
    background: var(--ui-bg);
    border-top: 1px solid var(--ui-line);
    font-size: 11.5px;
    color: var(--ui-fg);
    user-select: none;
}

.statusbar > span {
    padding: 0 10px;
    line-height: 20px;
    border-right: 1px solid var(--ui-line-2);
}

.sb-grow {
    flex: 1;
    border-right: none !important;
}

.sb-bp:empty,
.sb-find:empty {
    display: none;
}

.sb-bp {
    color: #e07a7a;
}

.sb-find {
    color: var(--num);
}

.combo {
    cursor: pointer;
}

.combo.is-on {
    border-color: var(--link);
    color: var(--link);
}

.sb-sec {
    font-family: var(--mono);
    color: var(--nm);
    border-right: none !important;
}

.back {
    position: fixed;
    right: 14px;
    bottom: 30px;
    z-index: 30;
    padding: 6px 12px;
    background: #14141f;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #000, 3px 3px 0 2px rgba(0, 0, 0, .45);
    color: #fff;
    font-family: "Pixel Times", var(--mono);
    font-size: 14px;
}

.back:hover {
    background: #1e1e2e;
}

@media screen and (max-height: 860px) {
    .legend {
        display: none;
    }

    .pane-out {
        height: 116px;
    }
}

@media screen and (max-height: 700px) {
    .navband,
    .toolbar {
        display: none;
    }

    .pane-out {
        height: 96px;
    }
}

@media screen and (max-width: 1000px) {
    :root {
        --gutter: 0px;
        --pad: 10px;
        --bpw: 0px;
    }

    .splitter,
    .filter,
    .fold,
    .ln.has-bp::after {
        display: none;
    }

    body {
        height: auto;
        overflow: auto;
        background: var(--code-bg);
    }

    .app {
        height: auto;
        min-height: 100vh;
    }

    .menubar,
    .toolbar,
    .navband,
    .legend,
    .viewstatus,
    .pane-out,
    .pane-ov,
    .tbl-head,
    .pane-btns,
    .c-seg {
        display: none;
    }

    .tabbar {
        padding: 6px 6px 0;
        overflow-x: auto;
        background: var(--ui-bg);
    }

    .viewport {
        display: block;
        border: none;
    }

    .view-aux {
        padding: 10px 12px 60px;
        overflow-x: auto;
    }

    .view-graph {
        height: 70vh;
    }

    .xpop {
        width: 94vw;
    }

    .xa {
        display: none;
    }

    .titlebar {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .body {
        flex-direction: column;
    }

    .dock {
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .pane {
        border-width: 0 0 1px;
    }

    .pane-fn nav {
        overflow: visible;
    }

    .fnlist {
        display: flex;
        overflow-x: auto;
    }

    .fnlist li {
        flex: none;
    }

    .fnlist a {
        height: 30px;
        padding: 0 12px;
        border-bottom: 2px solid transparent;
    }

    .fnlist a.is-current {
        background: none;
        border-bottom-color: var(--link);
        color: var(--link);
    }

    .fi {
        display: none;
    }

    .implist li {
        height: 22px;
    }

    .views {
        padding: 0;
    }

    .listing {
        overflow: visible;
        border: none;
        padding: 10px 12px 80px;
    }

    .ln {
        padding-left: 0;
        padding-right: 0;
    }

    .ln::before {
        display: none;
    }

    .ln.bl {
        height: .9em;
    }

    .ln.li {
        padding-left: 1.6em;
    }

    .ln.kv {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 8px;
    }

    .ln.seg {
        position: static;
    }

    .banner {
        display: none;
    }

    .node {
        margin: 4px 0;
    }

    .ln.contacts {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .statusbar {
        position: sticky;
        bottom: 0;
        z-index: 10;
    }

    .back {
        bottom: 30px;
        right: 10px;
        padding: 5px 10px;
        font-size: 13px;
    }
}

@media screen and (max-width: 520px) {
    .listing {
        font-size: 13px;
    }

    .sb-disk,
    .sb-down {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

@media print {
    @page {
        margin: 0;
    }

    * {
        color: #000 !important;
        text-shadow: none !important;
    }

    html,
    body {
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
        font-size: 10.5pt;
    }

    .titlebar,
    .menubar,
    .toolbar,
    .navband,
    .legend,
    .dock,
    .splitter,
    .tabbar,
    .viewstatus,
    .pane-out,
    .statusbar,
    .back,
    .dlg,
    .menu,
    .sprite,
    .fold,
    .view-aux,
    .view-graph,
    .xpop,
    .banner,
    .node-bar,
    .ln.bl,
    .ln.endp,
    .ln.stack,
    .ln.cmt.eof,
    .ln.asm,
    .ln.seg .kw2,
    .ln.seg .num,
    .ln.seg .sc,
    .ln.job-head .nm,
    .ln.job-head .kw2,
    .ln.job-head .sc,
    .c-card img {
        display: none !important;
    }

    .app,
    .body,
    .views,
    .viewport,
    #listing,
    .node,
    .node-body,
    .sec,
    .job {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: none !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    #listing {
        padding: 15mm 14mm !important;
        font-family: var(--mono);
        font-size: 10.5pt;
        line-height: 1.5;
    }

    #experience {
        page-break-before: always;
        break-before: page;
        padding-top: 15mm !important;
    }

    .ln {
        padding: 0 !important;
        background: none !important;
        max-width: none !important;
    }

    .ln::before,
    .ln.has-bp::after {
        display: none !important;
    }

    .name {
        font-family: var(--mono);
        font-size: 20pt;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.2;
    }

    .tagline {
        margin-top: 2pt !important;
        font-size: 11pt;
    }

    .tagline-2 {
        margin-top: 1pt !important;
        font-size: 9.5pt;
    }

    .ln.seg {
        position: static !important;
        margin: 13pt 0 5pt !important;
        padding: 0 0 2pt !important;
        font-size: 12.5pt;
        font-weight: 700;
        border-bottom: 1pt solid #000 !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    .ln.seg .cmt,
    .ln.job-head .cmt {
        font-style: normal;
    }

    .ln.job-head {
        margin-top: 9pt !important;
        font-size: 11pt;
        font-weight: 700;
        page-break-after: avoid;
        break-after: avoid;
    }

    .ln.job-meta {
        margin-bottom: 3pt !important;
        font-size: 9.5pt;
    }

    .ln.p {
        margin-bottom: 3pt !important;
    }

    .ln.li {
        display: list-item !important;
        list-style: "\2013\00a0" outside !important;
        margin-left: 13pt !important;
        padding-left: 0 !important;
        text-indent: 0 !important;
    }

    .ln.kv {
        display: grid !important;
        grid-template-columns: 42mm 1fr !important;
        column-gap: 4mm !important;
        padding: 0 0 2pt !important;
    }

    .ln.kv .k {
        font-weight: 700;
    }

    .job {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .kw {
        font-weight: 700;
    }

    .cmt {
        font-style: italic;
    }

    em {
        font-style: italic;
    }

    .ln.contacts {
        display: block !important;
        padding: 3pt 0 !important;
    }

    .c-card {
        display: inline !important;
        padding: 0 14pt 0 0 !important;
        border: none !important;
        background: none !important;
    }

    .c-t {
        display: inline;
        font-size: 10pt;
        letter-spacing: 0;
        text-transform: none;
    }

    .c-t::after {
        content: ": ";
    }

    .c-v {
        display: inline;
        font-size: 10pt;
        white-space: normal;
    }

    a {
        text-decoration: none;
    }

    mark.hit {
        background: none !important;
    }
}
