/* Stoa app */
:root {
  --ink: #0d0e10; --ink2: #3b3f46; --grey: #6f747c; --grey2: #9aa0a8; --line: #e9ebee; --line2: #f1f2f4; --soft: #f6f7f9; --bg: #fbfbfc;
  --orange: #ef5a2a; --green: #1f9e78; --green-bg: #eaf8f2; --red: #d1361f; --red-bg: #fdeeeb; --amber: #c96a12; --amber-bg: #fff2e3; --blue: #1f66d1; --blue-bg: #e6f1fe; --violet: #7a4ddf; --violet-bg: #efe8ff;
  --chart-a: #3b7ddd; --chart-b: #e0492b;
  --disp: 'Inter Tight', 'Inter', system-ui, sans-serif; --sans: 'Inter', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  --side: 244px; --rail: 60px; --top: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 13.5px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.i { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }
.muted { color: var(--grey); }
.num { font-variant-numeric: tabular-nums; }
kbd { font: 500 11px/1 var(--mono); color: var(--grey); background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; }

/* Shell */
.app { display: grid; grid-template-columns: var(--side) 1fr; height: 100vh; height: 100dvh; font-size: 13.5px; }
.side { background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 10px 10px 10px; gap: 6px; z-index: 30; }
.side-top { display: flex; align-items: center; gap: 4px; }
.ws { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 9px; min-width: 0; text-align: left; }
.ws:hover { background: #f0f1f3; }
.ws-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.ws-mark svg { width: 21px; height: 21px; }
.ws-t { min-width: 0; flex: 1; }
.ws-t b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.ws-t small { display: block; color: var(--grey); font-size: 12px; }
.ws-c { color: var(--grey2); width: 14px; height: 14px; }
.ib.side-close { display: none; }
.side-search { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; margin: 6px 0 4px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--grey); }
.side-search span { flex: 1; text-align: left; }
.side-search kbd { border-bottom-width: 1px; }
.nav { display: flex; flex-direction: column; gap: 1px; overflow: auto; min-height: 0; }
.nav-g { font-size: 11.5px; color: var(--grey2); padding: 14px 10px 6px; }
.nav-i { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink2); position: relative; white-space: nowrap; width: 100%; text-align: left; }
.nav-i .i { width: 17px; height: 17px; color: #80868f; }
.nav-i:hover { background: #f0f1f3; color: var(--ink); }
.nav-i.on { background: #ecedf0; color: var(--ink); font-weight: 500; }
.nav-i.on .i { color: var(--ink); }
.nav-i .bdg { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.nav-i .bdg.red { background: var(--red); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 9px; text-align: left; width: 100%; }
.me:hover { background: #f0f1f3; }
.me img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.me b { display: block; font-weight: 500; font-size: 13px; }
.me small { display: block; color: var(--grey); font-size: 12px; }
.ariadne { position: fixed; left: 14px; bottom: 14px; z-index: 50; font: 500 12.5px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: rgba(20, 22, 26, .88); color: #fff; letter-spacing: .01em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); opacity: .92; }
.ariadne b { font-weight: 600; color: #ff8a3d; }
.ariadne.in-side { position: static; display: table; margin: 8px auto 2px; }

/* Rail mode */
.app.rail { grid-template-columns: var(--rail) 1fr; }
.app.rail .side { padding: 12px 0; align-items: center; }
.app.rail .side-top { justify-content: center; }
.app.rail .ws { padding: 0; flex: none; }
.app.rail .ws:hover { background: none; }
.app.rail .ws-mark { width: 38px; height: 38px; border-radius: 9px; margin-bottom: 10px; }
.app.rail .ws-mark svg { width: 23px; height: 23px; }
.app.rail .ws-t, .app.rail .ws-c, .app.rail .side-search span, .app.rail .side-search kbd, .app.rail .nav-g, .app.rail .nav-i > span, .app.rail .me > div, .app.rail .ariadne.in-side { display: none; }
.app.rail .side-search { width: 38px; padding: 0; justify-content: center; border: 0; background: none; margin: 0; }
.app.rail .side-search:hover { background: #f0f1f3; }
.app.rail .nav { align-items: center; overflow: visible; }
.app.rail .nav-i { width: 38px; height: 38px; padding: 0; justify-content: center; }
.app.rail .nav-i .i { width: 18px; height: 18px; }
.app.rail .nav-i .bdg { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 10px; }
.app.rail .nav-sep { width: 30px; border-top: 1px solid var(--line); margin: 8px 0; }
.app.rail .side-foot { align-items: center; width: 100%; }
.app.rail .me { width: auto; padding: 4px; }
.app.rail #collapseBtn .i { transform: scaleX(-1); }
.nav-sep { border-top: 1px solid var(--line); margin: 8px 6px; }
[data-tip] { position: relative; }
.tip { position: fixed; z-index: 90; background: var(--ink); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tip kbd { background: #2a2c31; color: #c9ccd1; border-color: #3a3d42; }

.main { display: grid; grid-template-rows: var(--top) 1fr; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 0 20px 0 24px; border-bottom: 1px solid var(--line); background: #fff; min-width: 0; }
.ib.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--grey); white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: #c9cdd3; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-pill { display: flex; align-items: center; gap: 9px; height: 34px; width: 280px; padding: 0 8px 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--grey); background: #fff; }
.search-pill span { flex: 1; text-align: left; }
.search-pill:hover { border-color: #d7dade; }
.ib { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--ink2); position: relative; flex: none; }
.ib:hover { background: var(--soft); color: var(--ink); }
.ib .i { width: 17px; height: 17px; }
.bell .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #fff; }
.bell .dot[hidden] { display: none; }
.view { overflow: auto; min-height: 0; outline: 0; position: relative; }
.app.is-builder .main { grid-template-rows: 1fr; }
.app.is-builder .top { display: none; }
.app.is-builder .view { overflow: hidden; }

/* Buttons & controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 13.5px; color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #d5d8dd; background: #fafafb; }
.btn .i { width: 15px; height: 15px; }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #25272b; }
.btn.red { color: var(--red); }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.green:hover { background: #198a68; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: none; }
.btn.ghost:hover { background: var(--soft); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.inp { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; background: #fff; outline: 0; min-width: 0; }
.inp:focus { border-color: #b9c0ca; box-shadow: 0 0 0 3px rgba(31, 102, 209, .08); }
textarea.inp { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.inpw { display: flex; align-items: center; gap: 8px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; color: var(--grey); }
.inpw input { border: 0; outline: 0; flex: 1; min-width: 0; background: none; color: var(--ink); }
.inpw:focus-within { border-color: #b9c0ca; box-shadow: 0 0 0 3px rgba(31, 102, 209, .08); }
.slct { appearance: none; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 30px 0 11px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858b94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 9px center / 14px no-repeat; cursor: pointer; }
.slct.sm { height: 28px; font-size: 12.5px; border-radius: 7px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: #f1f2f4; border-radius: 9px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 7px; color: var(--grey); font-weight: 500; font-size: 13px; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .03); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; height: 40px; color: var(--grey); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs button .c { font-size: 12px; color: var(--grey2); font-weight: 500; }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); }
.toggle { width: 34px; height: 20px; border-radius: 10px; background: #d9dce1; position: relative; transition: background .2s; flex: none; }
.toggle::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle[aria-checked="true"] { background: var(--ink); }
.toggle[aria-checked="true"]::after { transform: translateX(14px); }
.chk { width: 16px; height: 16px; border: 1.5px solid #c7cbd1; border-radius: 4px; display: grid; place-items: center; background: #fff; flex: none; }
.chk.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chk .i { width: 11px; height: 11px; stroke-width: 2.6; opacity: 0; }
.chk.on .i { opacity: 1; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.pill.live, .pill.succeeded, .pill.ok, .pill.approved { background: var(--green-bg); color: var(--green); }
.pill.draft, .pill.off { background: #f1f2f4; color: var(--ink2); }
.pill.paused, .pill.waiting, .pill.warn, .pill.pending { background: var(--amber-bg); color: var(--amber); }
.pill.failing, .pill.failed, .pill.error, .pill.rejected { background: var(--red-bg); color: var(--red); }
.pill.running { background: #fff0ea; color: var(--orange); }
.pill.running::before { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--line); background: #f8f9fa; border-radius: 6px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.chip .i { width: 13px; height: 13px; }
.av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; background: #e6e8ec; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--ink2); }
.av.lg { width: 36px; height: 36px; font-size: 12px; }
.av.xl { width: 48px; height: 48px; font-size: 15px; }
.who { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.glyph { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; }
.glyph .i { width: 15px; height: 15px; }
.glyph.lg { width: 40px; height: 40px; border-radius: 10px; }
.glyph.lg .i { width: 20px; height: 20px; }
.dicon { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.dicon .i { width: 13px; height: 13px; }

/* Page */
.page { padding: 26px 32px 64px; max-width: 1480px; margin: 0 auto; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.ph h1 { margin: 0; font: 500 27px/1.1 var(--disp); letter-spacing: -.035em; }
.ph p { margin: 6px 0 0; color: var(--grey); }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.card { border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.card-h h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.card-h .muted { font-size: 12.5px; }
.bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bar .grow { flex: 1; }
.empty { padding: 56px 20px; text-align: center; color: var(--grey); }
.empty b { display: block; color: var(--ink); font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* Tables */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-weight: 500; color: var(--grey); font-size: 12.5px; padding: 0 14px; height: 40px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; position: sticky; top: 0; z-index: 1; }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--ink); }
.t th .ar { opacity: .35; margin-left: 3px; }
.t th.sorted { color: var(--ink); }
.t th.sorted .ar { opacity: 1; }
.t td { padding: 0 14px; height: 54px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { cursor: pointer; transition: background .12s; }
.t tbody tr:hover { background: #fafafb; }
.t tbody tr.sel { background: #f5f8fe; }
.t td.r, .t th.r { text-align: right; }
.wfn { display: flex; align-items: center; gap: 11px; min-width: 260px; }
.wfn b { font-weight: 500; display: block; letter-spacing: -.005em; }
.wfn small { display: block; color: var(--grey); font-size: 12.5px; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; vertical-align: middle; }
.spark i { width: 4px; background: #c9d4e6; border-radius: 1.5px 1.5px 0 0; transform-origin: bottom; }
.spark i.f { background: var(--chart-b); }
.steps-d { display: inline-flex; gap: 3px; }
.steps-d i { width: 14px; height: 6px; border-radius: 3px; background: #e2e4e8; }
.steps-d i.ok { background: #7fcfb4; }
.steps-d i.fail { background: var(--red); }
.steps-d i.wait { background: #f0b46e; }
.steps-d i.run { background: var(--orange); animation: blink 1s infinite; }
.rowmenu { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--grey); }
.rowmenu:hover { background: #eef0f2; color: var(--ink); }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line2); color: var(--grey); font-size: 12.5px; }
.pager .btns { display: flex; gap: 6px; }
.bulk { position: sticky; bottom: 16px; margin: 12px auto 0; width: max-content; max-width: 100%; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 10px; padding: 7px 7px 7px 14px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); z-index: 5; }
.bulk .btn { background: #26282d; border-color: #3a3d42; color: #fff; }

/* Workflows */
.cover { position: relative; height: 150px; border-radius: 12px; overflow: hidden; margin-bottom: 22px; color: #fff; display: flex; align-items: flex-end; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cover-in { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; padding: 18px 22px; flex-wrap: wrap; }
.cover h1 { margin: 0; font: 500 30px/1.05 var(--disp); letter-spacing: -.04em; text-shadow: 0 0 2px rgba(15, 60, 130, .35), 0 1px 16px rgba(10, 60, 140, .45); }
.cover p { margin: 6px 0 0; font-size: 14px; font-weight: 500; text-shadow: 0 0 2px rgba(15, 60, 130, .4), 0 1px 12px rgba(10, 60, 140, .5); }
.cover-k { display: flex; gap: 8px; }
.cover-k div { background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 9px; padding: 8px 12px; min-width: 112px; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .3); }
.cover-k b { display: block; font: 500 20px/1.1 var(--disp); letter-spacing: -.03em; }
.cover-k span { font-size: 12px; color: var(--grey); }
.alert { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 10px; background: var(--red-bg); border: 1px solid #f6c4bb; color: #8f2414; margin-bottom: 18px; }
.alert .i { width: 17px; height: 17px; color: var(--red); }
.alert p { margin: 0; flex: 1; min-width: 0; }
.alert .btn { border-color: #f1bdb3; }

/* Builder (app) */
.bld { height: 100%; display: grid; grid-template-rows: 48px 1fr; min-height: 0; }
.bld .bx-body { position: relative; }
.bld .bx-canvas { cursor: grab; }
.bld .bx-canvas.grabbing { cursor: grabbing; }
.bld .bx-node { cursor: pointer; }
.bld .bx-node:hover:not(.is-sel) { border-color: #cfd3d9; }
.bld .bx-crumb .wfname { cursor: text; border-radius: 5px; padding: 2px 4px; margin: 0 -4px; }
.bld .bx-crumb .wfname:hover { background: var(--soft); }
.bld .bx-crumb input { font: inherit; border: 1px solid #b9c0ca; border-radius: 6px; padding: 2px 6px; width: 260px; outline: 0; }
.bld .bx-crumb .swb { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; }
.bld .bx-crumb .swb:hover { background: var(--soft); }
.dirty { font-size: 12px; color: var(--grey); white-space: nowrap; }
.bld .bx-insp-in { padding-bottom: 28px; }
.bld .bx-insp { position: relative; }
.insp-empty h4 { margin: 18px 0 4px; font: 500 18px/1.2 var(--disp); letter-spacing: -.03em; }
.insp-empty p { margin: 0 0 14px; color: var(--grey); font-size: 13px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--grey); }
.kv dd { margin: 0; min-width: 0; }
.mini-h { font-size: 12px; color: var(--grey); font-weight: 500; margin: 20px 0 8px; display: flex; justify-content: space-between; }
.vers { display: grid; gap: 2px; }
.vers .v { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; font-size: 13px; }
.vers .v:hover { background: #f2f3f5; }
.vers .v b { font-weight: 500; }
.vers .v small { display: block; color: var(--grey); font-size: 12px; }
.bx-out .ok { color: var(--green); font-weight: 500; font-size: 12.5px; margin-top: 8px; }
.bx-out pre { margin: 0; font: 400 12px/1.6 var(--mono); color: var(--ink2); white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.console { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: #fff; border-top: 1px solid var(--line); z-index: 8; display: grid; grid-template-rows: 42px 1fr; transform: translateY(100%); transition: transform .3s cubic-bezier(.3, .7, .2, 1); box-shadow: 0 -12px 30px -20px rgba(0, 0, 0, .2); }
.console.open { transform: none; }
.console-h { display: flex; align-items: center; gap: 12px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line2); }
.console-h b { font-weight: 600; }
.console-h .sp { flex: 1; }
.console ol { list-style: none; margin: 0; padding: 6px 0 12px; overflow: auto; }
.console li { display: grid; grid-template-columns: 96px 150px 1fr; gap: 10px; padding: 4px 16px; font-size: 13px; animation: logIn .3s ease-out both; }
.console li time { font: 400 12px/1.6 var(--mono); color: var(--grey2); }
.console li .st { color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console li.ok .msg b { color: var(--green); }
.console li.err .msg b { color: var(--red); }
.console li.wt .msg b { color: var(--amber); }
.console li .acts { display: inline-flex; gap: 6px; margin-left: 8px; }
@keyframes logIn { from { opacity: 0; transform: translateY(3px); } }
.minimap { position: absolute; right: 14px; bottom: 14px; width: 168px; height: 104px; cursor: pointer; box-shadow: 0 4px 14px -8px rgba(0,0,0,.2); border: 1px solid var(--line); background: rgba(255, 255, 255, .92); border-radius: 9px; z-index: 3; overflow: hidden; }
.minimap i { position: absolute; background: #e3e6ea; border-radius: 2px; }
.minimap i.on { background: #5b6068; }
.minimap .vp { position: absolute; border: 1px solid rgba(13, 14, 16, .45); border-radius: 3px; background: rgba(13, 14, 16, .03); }
.zoom-menu { min-width: 150px; }
.bld .bx-node.new { animation: nodeIn .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes nodeIn { from { opacity: 0; transform: scale(.94); } }
.insp-sheet-h { display: none; }

/* Drawer, modal, popover */
.scrim { position: fixed; inset: 0; background: rgba(13, 14, 16, .28); z-index: 25; }
.ov { position: fixed; inset: 0; z-index: 70; background: rgba(13, 14, 16, .3); animation: fadeIn .18s ease-out both; }
@keyframes fadeIn { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 71; display: grid; grid-template-rows: auto 1fr auto; box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .35); animation: drIn .28s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes drIn { from { transform: translateX(40px); opacity: 0; } }
.dr-h { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 16px 22px; border-bottom: 1px solid var(--line2); }
.dr-h h2 { margin: 0; font: 500 20px/1.2 var(--disp); letter-spacing: -.03em; }
.dr-h .sub { color: var(--grey); margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dr-h .sp { flex: 1; }
.dr-b { overflow: auto; padding: 18px 22px 28px; }
.dr-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.modal { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(520px, calc(100vw - 24px)); max-height: 80vh; background: #fff; z-index: 71; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .05); display: grid; grid-template-rows: auto 1fr auto; animation: mIn .22s cubic-bezier(.3, .7, .2, 1) both; overflow: hidden; }
.modal.wide { width: min(860px, calc(100vw - 24px)); }
@keyframes mIn { from { opacity: 0; transform: translate(-50%, 8px) scale(.985); } }
.m-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; }
.m-h h2 { margin: 0; font: 500 18px/1.2 var(--disp); letter-spacing: -.025em; }
.m-b { padding: 4px 20px 18px; overflow: auto; }
.m-f { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line2); background: var(--bg); }
.fl { display: grid; gap: 6px; margin-bottom: 14px; }
.fl > span { font-size: 12.5px; font-weight: 500; }
.pop { position: fixed; z-index: 80; background: #fff; border-radius: 11px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 18px 40px -14px rgba(0, 0, 0, .28); padding: 5px; min-width: 200px; animation: popIn .14s ease-out both; max-height: 70vh; overflow: auto; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } }
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: 7px; text-align: left; white-space: nowrap; color: var(--ink); }
.pop .mi:hover, .pop .mi.act { background: #f2f3f5; }
.pop .mi .i { width: 15px; height: 15px; color: var(--grey); }
.pop .mi kbd { margin-left: auto; }
.pop .mi.red { color: var(--red); }
.pop .mi.red .i { color: var(--red); }
.pop .mi .ck { margin-left: auto; color: var(--ink); }
.pop hr { border: 0; border-top: 1px solid var(--line2); margin: 4px 2px; }
.pop .ph2 { font-size: 11.5px; color: var(--grey2); padding: 8px 10px 4px; }
.notif { width: 380px; padding: 0; }
.notif-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.notif-h b { font-weight: 600; }
.notif a { display: grid; grid-template-columns: 28px 1fr 8px; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line2); font-size: 13px; line-height: 1.45; }
.notif a:hover { background: #fafafb; }
.notif a:last-child { border-bottom: 0; }
.notif a small { display: block; color: var(--grey); margin-top: 2px; font-size: 12px; }
.notif a .u { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 6px; }
.nico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f0f1f3; }
.nico .i { width: 14px; height: 14px; }
.nico.red { background: var(--red-bg); color: var(--red); }
.nico.amber { background: var(--amber-bg); color: var(--amber); }
.nico.green { background: var(--green-bg); color: var(--green); }
.stepmenu { width: 300px; }
.stepmenu .sm-s { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; background: var(--soft); border-radius: 7px; margin-bottom: 4px; color: var(--grey); }
.stepmenu .sm-s input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; color: var(--ink); }
.stepmenu .mi { height: auto; min-height: 40px; padding: 5px 8px; }
.stepmenu .mi .bx-ic { width: 28px; height: 28px; }
.stepmenu .mi .bx-ic .i { width: 14px; height: 14px; color: inherit; }
.stepmenu .mi span.t { display: flex; flex-direction: column; line-height: 1.25; }
.stepmenu .mi small { color: var(--grey2); font-size: 12px; }

/* Palette */
.pal { position: fixed; left: 50%; top: 13vh; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); background: #fff; z-index: 71; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; animation: mIn .18s ease-out both; }
.pal-s { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-bottom: 1px solid var(--line2); }
.pal-s .i { width: 18px; height: 18px; color: var(--grey); }
.pal-s input { flex: 1; border: 0; outline: 0; font-size: 15px; min-width: 0; }
.pal-l { max-height: min(420px, 56vh); overflow: auto; padding: 6px; }
.pal-g { font-size: 11.5px; color: var(--grey2); padding: 10px 10px 4px; }
.pal-i { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 8px; cursor: pointer; }
.pal-i.act { background: #f2f3f5; }
.pal-i .i { width: 16px; height: 16px; color: var(--grey); }
.pal-i .sub { color: var(--grey); font-size: 12.5px; margin-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i kbd { margin-left: auto; }
.pal-f { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line2); color: var(--grey); font-size: 12px; background: var(--bg); }

/* Toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 10px 10px 14px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45); font-size: 13.5px; animation: tIn .25s cubic-bezier(.3, 1.3, .5, 1) both; max-width: min(420px, calc(100vw - 36px)); }
.toast .i { width: 16px; height: 16px; color: #7fd8bc; }
.toast button { white-space: nowrap; color: #fff; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: #2a2c31; }
.toast button:hover { background: #3a3d42; }
@keyframes tIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* Runs */
.rid { font: 500 12.5px/1 var(--mono); color: var(--ink2); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl > li { position: relative; padding: 0 0 18px 40px; }
.tl > li::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.tl > li:last-child::before { display: none; }
.tl > li.ok::before { background: #9ad9c3; }
.tl .tic { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eceef2; }
.tl .tic .i { width: 14px; height: 14px; }
.tl li.ok .tic { background: var(--green-bg); color: var(--green); }
.tl li.fail .tic { background: var(--red-bg); color: var(--red); }
.tl li.wait .tic { background: var(--amber-bg); color: var(--amber); }
.tl li.run .tic { background: #fff0ea; color: var(--orange); }
.tl .th { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.tl .th b { font-weight: 500; }
.tl .th .d { margin-left: auto; font: 400 12px/1 var(--mono); color: var(--grey); }
.tl .lg { margin-top: 6px; background: var(--soft); border-radius: 8px; padding: 8px 10px; font: 400 12px/1.65 var(--mono); color: var(--ink2); }
.tl .err { margin-top: 8px; background: var(--red-bg); border: 1px solid #f4c3b9; color: #8f2414; border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.tl .err .btn { margin-top: 8px; }
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin-bottom: 22px; }
.meta div span { display: block; font-size: 12px; color: var(--grey); margin-bottom: 2px; }
.sec-t { font-size: 12.5px; font-weight: 600; margin: 0 0 12px; }

/* Approvals */
.inbox { display: grid; grid-template-columns: 380px 1fr; height: 100%; min-height: 0; }
.inbox-l { border-right: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.inbox-l .lh { padding: 18px 18px 0; }
.inbox-l .lh h1 { margin: 0 0 12px; font: 500 22px/1.1 var(--disp); letter-spacing: -.03em; }
.inbox-list { overflow: auto; padding: 6px; }
.ai-i { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px; border-radius: 10px; cursor: pointer; position: relative; }
.ai-i:hover { background: #f8f9fa; }
.ai-i.on { background: #f1f3f6; }
.ai-i .tt { display: flex; justify-content: space-between; gap: 8px; }
.ai-i b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; }
.ai-i .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai-i .ln2 { display: flex; gap: 8px; align-items: center; color: var(--grey); font-size: 12.5px; margin-top: 3px; flex-wrap: wrap; }
.ai-i .flag { color: var(--amber); display: inline-flex; gap: 4px; align-items: center; }
.ai-i .flag .i { width: 12px; height: 12px; }
.sla { height: 3px; border-radius: 2px; background: #eceef1; overflow: hidden; margin-top: 8px; }
.sla i { display: block; height: 100%; background: #9ad9c3; border-radius: 2px; }
.sla i.mid { background: #f0b46e; }
.sla i.late { background: var(--red); }
.inbox-d { overflow: auto; min-height: 0; }
.ad { max-width: 860px; padding: 26px 32px 48px; }
.ad-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ad-k { display: flex; gap: 8px; align-items: center; color: var(--grey); font-size: 12.5px; margin-bottom: 8px; flex-wrap: wrap; }
.ad h2 { margin: 0; font: 500 24px/1.15 var(--disp); letter-spacing: -.035em; }
.ad .big { font: 500 34px/1 var(--disp); letter-spacing: -.04em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.ad-acts { display: flex; gap: 8px; }
.info { display: flex; gap: 9px; align-items: flex-start; background: var(--blue-bg); border: 1px solid #a9cdf3; color: #1d5bb8; border-radius: 10px; padding: 11px 13px; font-weight: 500; margin-top: 20px; }
.info .i { width: 16px; height: 16px; margin-top: 1px; }
.warnb { display: flex; gap: 9px; align-items: center; background: var(--amber-bg); border: 1px solid #f3cf9f; color: #8e4a0c; border-radius: 10px; padding: 10px 13px; margin-top: 10px; font-weight: 500; }
.warnb .i { width: 16px; height: 16px; }
.docs { display: flex; gap: 8px; flex-wrap: wrap; }
.docb { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.docb:hover { border-color: #d0d4da; }
.docb .o { width: 22px; height: 22px; border-radius: 5px; background: #f6a161; color: #fff; display: grid; place-items: center; }
.docb .o .i { width: 13px; height: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lines td, .lines th { height: 42px; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.hist li { display: flex; gap: 10px; align-items: center; }
.hist time { margin-left: auto; color: var(--grey2); font: 400 12px/1 var(--mono); }
.decided { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; margin-top: 18px; font-weight: 500; }
.decided.approved { background: var(--green-bg); color: #13654c; }
.decided.rejected { background: var(--red-bg); color: #8f2414; }
.doc-prev { background: #f4f5f7; padding: 18px; border-radius: 10px; }
.paper { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); padding: 28px 30px; font-size: 12.5px; color: var(--ink2); }
.paper h4 { margin: 0; font: 600 18px/1.2 var(--disp); color: var(--ink); letter-spacing: -.02em; }
.paper .row { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; }
.paper table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.paper th { text-align: left; font-weight: 600; color: var(--ink); border-bottom: 1px solid #ddd; padding: 6px 0; }
.paper td { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.paper .r { text-align: right; }
.paper .tot { font-weight: 600; color: var(--ink); }

/* Templates & connections */
.tg { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; text-align: left; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.tcard:hover { border-color: #d9dce1; box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .3); }
.tcard .cv { height: 120px; overflow: hidden; position: relative; }
.tcard .cv img { width: 100%; height: 100%; object-fit: cover; }
.tcard .cv .dchip { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .95); border-radius: 6px; padding: 4px 8px 4px 4px; font-size: 12px; font-weight: 500; }
.tcard .cv .dchip .dicon { width: 20px; height: 20px; }
.tcard .cv .dchip .dicon .i { width: 11px; height: 11px; }
.tcard .tb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tcard h3 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.tcard p { margin: 0; color: var(--grey); font-size: 13px; line-height: 1.5; }
.tcard .tf { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; color: var(--grey); font-size: 12.5px; }
.apch { display: inline-flex; align-items: center; }
.apch .glyph { width: 26px; height: 26px; }
.apch .glyph .i { width: 13px; height: 13px; }
.apch .w { width: 12px; height: 1.5px; background: #d5d8dd; }
.cg { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.ccard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s; }
.ccard:hover { border-color: #d9dce1; box-shadow: 0 12px 26px -20px rgba(0, 0, 0, .3); }
.ccard .ch { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ccard .cn b { font-weight: 600; display: block; font-size: 14px; letter-spacing: -.01em; }
.ccard .cn small { color: var(--grey); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard .cn { min-width: 0; margin-top: -2px; }
.ccard .cf { display: flex; justify-content: space-between; color: var(--grey); font-size: 12.5px; border-top: 1px solid var(--line2); padding-top: 10px; }
.ccard.err { border-color: #f1c0b6; background: #fffbfa; }
.scopes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.scopes li { display: flex; gap: 8px; align-items: center; }
.scopes .i { width: 14px; height: 14px; color: var(--green); }

/* Analytics */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 16px 18px 18px; }
.kpi > span { color: var(--grey); font-size: 12.5px; display: block; }
.kpi b span { font: inherit; color: inherit; }
.kpi b { display: block; font: 500 32px/1.1 var(--disp); letter-spacing: -.04em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 16px; color: var(--grey); letter-spacing: -.02em; margin-left: 2px; }
.kpi .dl { margin-top: 6px; font-size: 12.5px; color: var(--grey); }
.kpi .dl em { font-style: normal; font-weight: 500; }
.kpi .dl em.up { color: var(--green); }
.kpi .dl em.dn { color: var(--red); }
.agrid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart { position: relative; padding: 14px 18px 12px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gl { stroke: #eff0f2; stroke-width: 1; }
.chart .ax { fill: var(--grey2); font: 400 11px var(--sans); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--grey); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.ctip { position: absolute; pointer-events: none; background: #fff; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 10px 26px -10px rgba(0, 0, 0, .25); padding: 9px 11px; font-size: 12.5px; min-width: 150px; z-index: 4; }
.ctip .d { color: var(--grey); margin-bottom: 5px; }
.ctip .r { display: flex; align-items: center; gap: 8px; }
.ctip .r i { width: 12px; height: 2.5px; border-radius: 2px; }
.ctip .r b { font-variant-numeric: tabular-nums; font-weight: 600; }
.ctip .r span { color: var(--grey); }
.hb { display: grid; gap: 12px; padding: 16px 18px 18px; }
.hb .row { display: grid; grid-template-columns: 92px 1fr 54px; gap: 12px; align-items: center; font-size: 13px; }
.hb .tr { height: 12px; position: relative; }
.hb .tr i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--chart-a); border-radius: 0 4px 4px 0; transform-origin: left; }
.hb .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hb .row:hover .tr i { filter: brightness(1.1); }

/* Settings */
.set { display: grid; grid-template-columns: 200px 1fr; gap: 32px; }
.set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; align-self: start; }
.set-nav button { text-align: left; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--ink2); }
.set-nav button.on { background: #ecedf0; color: var(--ink); font-weight: 500; }
.set-nav button:hover { background: #f2f3f5; }
.srow { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line2); }
.srow:last-child { border-bottom: 0; }
.srow > div:first-child b { display: block; font-weight: 500; }
.srow > div:first-child span { color: var(--grey); font-size: 12.5px; }
.meter { height: 8px; background: #eef0f2; border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transform-origin: left; }
.ntab { width: 100%; border-collapse: collapse; }
.ntab th, .ntab td { padding: 12px 10px; border-bottom: 1px solid var(--line2); text-align: left; }
.ntab th { font-weight: 500; color: var(--grey); font-size: 12.5px; }
.ntab td.c, .ntab th.c { text-align: center; width: 90px; }
.ntab .toggle { display: inline-block; vertical-align: middle; }

/* Responsive */
@media (max-width: 1199px) {
  .app { grid-template-columns: var(--rail) 1fr; }
  .app .side { padding: 12px 0; align-items: center; }
  .app .side-top { justify-content: center; }
  .app .ws { padding: 0; flex: none; }
  .app .ws-mark { width: 38px; height: 38px; border-radius: 9px; margin-bottom: 10px; }
  .app .ws-t, .app .ws-c, .app .side-search span, .app .side-search kbd, .app .nav-g, .app .nav-i > span, .app .me > div, .app .ariadne.in-side, .app #collapseBtn { display: none; }
  .app .side-search { width: 38px; padding: 0; justify-content: center; border: 0; background: none; margin: 0; }
  .app .nav { align-items: center; overflow: visible; }
  .app .nav-i { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .app .nav-i .bdg { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 10px; }
  .app .side-foot { align-items: center; width: 100%; }
  .app .me { width: auto; padding: 4px; }
  .nav-sep { width: 30px; margin: 8px 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .agrid { grid-template-columns: 1fr; }
  .search-pill { width: 220px; }
  .inbox { grid-template-columns: 320px 1fr; }
  .bld .bx-body { grid-template-columns: 1fr 290px; }
}
@media (max-width: 900px) {
  .search-pill span, .search-pill kbd { display: none; }
  .search-pill { width: 34px; padding: 0; justify-content: center; border: 0; }
  .set { grid-template-columns: 1fr; gap: 16px; }
  .set-nav { flex-direction: row; overflow-x: auto; position: static; }
  .srow { grid-template-columns: 1fr; gap: 10px; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.has-sel .inbox-l { display: none; }
  .inbox:not(.has-sel) .inbox-d { display: none; }
  .ad .back { display: inline-flex !important; }
}
@media (max-width: 760px) {
  .app, .app.rail { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .28s cubic-bezier(.3, .7, .2, 1); align-items: stretch !important; padding: 10px !important; box-shadow: 20px 0 50px -20px rgba(0, 0, 0, .3); }
  .app.drawer-open .side { transform: none; }
  .app .side .ws-t, .app .side .ws-c, .app .side .side-search span, .app .side .side-search kbd, .app .side .nav-g, .app .side .nav-i > span, .app .side .me > div { display: revert; }
  .app .side .ws { flex: 1; padding: 6px; }
  .app .side .ws-mark { width: 32px; height: 32px; margin: 0; }
  .app .side .side-search { width: auto; padding: 0 10px; border: 1px solid var(--line); background: #fff; margin: 6px 0 4px; justify-content: flex-start; }
  .app .side .nav { align-items: stretch; }
  .app .side .nav-i { width: 100%; padding: 0 10px; justify-content: flex-start; height: 40px; }
  .app .side .nav-i .bdg { position: static; margin-left: auto; min-width: 20px; height: 20px; font-size: 11.5px; }
  .app .side .me { width: 100%; padding: 6px; }
  .app .side .side-foot { align-items: stretch; }
  .app .side .ariadne.in-side { display: table; }
  .nav-sep { width: auto; margin: 8px 6px; }
  .ib.side-close { display: grid; }
  .ib.menu-btn { display: grid; }
  .top { padding: 0 10px; gap: 6px; }
  #newBtn span { display: none; }
  #newBtn { width: 34px; padding: 0; }
  .page { padding: 18px 14px 56px; }
  .ph h1 { font-size: 23px; }
  .cover { height: auto; min-height: 150px; }
  .alert { flex-wrap: wrap; }
  .alert p { flex: 1 1 calc(100% - 40px); }
  .alert .btn { margin-left: 29px; }
  .alert .btn + .btn { margin-left: 0; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bar > .inpw, .bar > .slct { flex: 1 1 auto; }
  .cover-k { width: 100%; }
  .cover-k div { flex: 1; min-width: 0; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 26px; }
  .meta { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .ad { padding: 18px 16px 40px; }
  .drawer { width: 100vw; top: 8vh; border-radius: 14px 14px 0 0; animation-name: shIn; }
  @keyframes shIn { from { transform: translateY(40px); opacity: 0; } }
  .console li { grid-template-columns: 80px 1fr; }
  .console li .st { display: none; }
  .bld .bx-body { grid-template-columns: 1fr; }
  .bld .bx-insp { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 9; border-left: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .25); transform: translateY(105%); transition: transform .3s cubic-bezier(.3, .7, .2, 1); }
  .bld.insp-open .bx-insp { transform: none; }
  .bld .bx-top .bx-brand, .bld .bx-zoomsel, .bld .bx-top .share-b, .bld .bx-crumb > .i, .bld .bx-crumb .team, .bld .bx-crumb .sep, .bld .bx-crumb .ws, .bld .dirty { display: none; }
  .bld .bx-crumb { justify-content: flex-start; }
  .bld .bx-top { padding: 0 8px; gap: 6px; }
  .bld .bx-top .bmenu { display: grid !important; }
  .minimap { display: none; }
  .bld .bx-cbar .lay { display: none; }
  .t td { height: 50px; }
  .notif { width: calc(100vw - 20px); }
  .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
