/* SSHKipper landing: replicas of real SSHKipper screens (.app). Design units are the app's points; colours were
   sampled from the app (light and dark). The page around them lives in site.css. */

/* ================================================================================================
   App replicas. Design units are the app's points. Light appearance by default, dark under the media query.
   ================================================================================================ */
.ms { font-family: 'Material Symbols Rounded' !important; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; overflow: hidden; flex: none; width: 1em; text-align: center; font-variation-settings: 'wght' 400, 'opsz' 20; }
.ms.f { font-variation-settings: 'FILL' 1, 'wght' 500, 'opsz' 20; }

.app {
  --side: #f2f2f3; --bar: #e0e0e0; --tabs: #ffffff; --tabsel: #dfe9fe; --status: #ffffff; --term: #f7f7f7; --page: #ffffff;
  --card: #f7f7f7; --sel: #dcdcdf; --field: #e1e1e2; --pill: #f6f6f6; --btn: #f6f6f6; --seg: #f1f1f1; --segon: #ffffff;
  --ink: #1d1d1f; --ink2: #6e6e73; --ink3: #a7a7ab; --sep: rgba(0, 0, 0, .09); --sep2: rgba(0, 0, 0, .06);
  --blue: #3b82f7; --green: #34c759; --red: #eb4e3d; --orange: #f09a37; --purple: #a550e6; --teal: #4aa9c0; --cyan: #3eaed0; --yellow: #d6a21b;
  --tg: #457e22; --tb: #3555b8; --tdim: #6f6f6f; --tink: #000000;
  --okline: #7ccd7d; --oktext: #3aa63c; --chip-g: #e3f4e2; --chip-gt: #3e9a3f;
  --win-line: rgba(0, 0, 0, .14);
  position: relative; overflow: hidden; color: var(--ink); background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  font-size: 13px; line-height: 1.3; letter-spacing: 0; text-align: left; -webkit-user-select: none; user-select: none;
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--win-line);
}
:where(html:not(.light)) .app {
  --side: #242638; --bar: #282a35; --tabs: #1e1e1e; --tabsel: #222c41; --status: #20222d; --term: #222224; --page: #20222d;
  --card: #2a2c36; --sel: #323445; --field: #3e4054; --pill: #464855; --btn: #3b3d4b; --seg: #30313c; --segon: #575860;
  --ink: #e5e5ea; --ink2: #98989f; --ink3: #6c6c72; --sep: rgba(255, 255, 255, .09); --sep2: rgba(255, 255, 255, .06);
  --blue: #3b82f7; --green: #30d158; --red: #eb5545; --orange: #f0a04b; --purple: #bf5af2; --teal: #5ac1d6; --cyan: #64d2ff; --yellow: #ffd60a;
  --tg: #59c837; --tb: #4b7afe; --tdim: #838384; --tink: #e4e4e4;
  --okline: #5cb35c; --oktext: #68ce67; --chip-g: #20351f; --chip-gt: #6bd36a;
  --win-line: rgba(255, 255, 255, .13);
}
.app * { box-sizing: border-box; }
.app code, .app pre { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; margin: 0; }
.app .sp { flex: 1; }
.app .g { color: var(--ink2); }
.app .r { color: var(--red); }
.app .o { color: var(--orange); }
.app .ms { font-size: 16px; }
.app .ms.sm { font-size: 14px; }
.t-teal { color: var(--teal); } .t-orange { color: var(--orange); } .t-blue { color: var(--blue); } .t-ink2 { color: var(--ink2); }
.t-purple { color: var(--purple); } .t-indigo { color: #6e6ad8; } .t-green { color: var(--green); }
.a-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink3); }
.a-dot.g { background: var(--green); } .a-dot.o { background: var(--orange); } .a-dot.r { background: var(--red); } .a-dot.gray { background: var(--ink3); width: 6px; height: 6px; }
.a-lights { display: inline-flex; gap: 8px; flex: none; }
.a-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.a-lights i:nth-child(2) { background: #febc2e; } .a-lights i:nth-child(3) { background: #28c840; }
.a-rb { display: inline-flex; align-items: center; justify-content: center; gap: 1px; height: 32px; min-width: 36px; padding: 0 9px; border-radius: 16px; background: var(--btn); color: var(--ink2); flex: none; }
.a-rb .ms { font-size: 17px; }
.a-rb.on { color: var(--purple); }
.a-grp { display: inline-flex; align-items: center; gap: 16px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--btn); color: var(--ink2); flex: none; }
.a-cur { display: inline-block; width: 8px; height: 15px; vertical-align: -3px; background: var(--tink); opacity: .85; }
.a-cur.thin { width: 1.5px; background: var(--blue); height: 14px; }
.a-claude { width: 15px; height: 15px; flex: none; }
.a-ts { width: 14px; height: 14px; }
.a-logo { width: 18px; height: 18px; flex: none; }
@keyframes a-blink { 50% { opacity: 0; } }
.a-cur { animation: a-blink 1.1s steps(1) infinite; }

/* Main window */
.app.win { display: grid; grid-template-columns: 262px minmax(0, 1fr); }
.w-side { background: var(--side); display: flex; flex-direction: column; min-height: 0; }
.w-tl { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 18px; flex: none; }
.w-tl .a-lights { margin-right: 14px; }
.a-rb.w2 { min-width: 38px; padding: 0 7px; }
.a-rb .ms.sm { font-size: 13px; }
.w-search { margin: 0 10px 10px; height: 23px; border-radius: 7px; background: var(--field); display: flex; align-items: center; gap: 4px; padding: 0 6px; color: var(--ink2); font-size: 13px; flex: none; }
.w-search .ms { font-size: 15px; }
.w-tree { flex: 1; overflow: hidden; }
.a-row { position: relative; height: 31px; margin: 0 10px; border-radius: 8px; display: flex; align-items: center; gap: 6px; padding-left: calc(4px + var(--d) * 13px); padding-right: 10px; white-space: nowrap; }
.a-row.sel { background: var(--sel); }
.a-row.b .a-nm { font-weight: 700; }
.a-chev { width: 12px; flex: none; color: var(--ink2); font-size: 14px !important; }
.a-row .a-ic { width: 18px; height: 18px; font-size: 17px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.a-row img.a-ic { width: 17px; height: 17px; border-radius: 4px; }
.a-nm { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; max-width: 72%; }  /* the name first, the subtitle gives way (as the app's tree) */
.a-sb { font-size: 11px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; min-width: 0; white-space: nowrap; }
.a-row .a-dot { margin-left: auto; width: 7px; height: 7px; }
.w-main { display: flex; flex-direction: column; min-width: 0; background: var(--term); }
.w-bar { height: 52px; flex: none; background: var(--bar); display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; }
.w-bar.full { padding-left: 18px; gap: 10px; }
.w-bar.full .a-lights { margin-right: 18px; }
.w-title { font-size: 15px; font-weight: 600; color: var(--ink2); white-space: nowrap; margin-right: auto; }
.w-bar.full .w-title { margin: 0 0 0 10px; }
.w-pal { width: 368px; height: 32px; border-radius: 16px; background: var(--pill); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ink2); white-space: nowrap; }
.w-pal > span:nth-child(2) { flex: 1; }
.w-ss { font-size: 11px; letter-spacing: 2px; }
.w-tabs { height: 29px; flex: none; background: var(--tabs); display: flex; align-items: stretch; gap: 2px; padding: 2px 4px 2px; border-bottom: 1px solid var(--sep2); }
.w-tab { width: 212px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-radius: 6px; color: var(--ink2); font-size: 12.5px; white-space: nowrap; }
.w-tab.sel { background: var(--tabsel); color: var(--ink); font-weight: 600; }
.w-tab > span:not(.ms) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.w-tab .x { font-size: 14px; color: var(--ink2); }
/* the tab's icon: the server's own with its status dot (TabsViewController) */
.w-tab > span.w-ti { flex: none; position: relative; display: inline-flex; width: 16px; height: 16px; }
.w-tab > .w-ti .a-ic { width: 15px; height: 15px; font-size: 15px; }
.w-tab > .w-ti .a-dot { position: absolute; right: -2px; bottom: -1px; width: 6px; height: 6px; box-shadow: 0 0 0 1.5px var(--tabsel); }
.w-tab:not(.sel) > .w-ti .a-dot { box-shadow: 0 0 0 1.5px var(--tabs); }
/* the sidebar's «Подключения | Автоматизации» switch: two icons in one capsule, the shown one in a darker pill */
.a-rb.a-sw { gap: 1px; padding: 0 3px; min-width: 0; }
.w-tl:has(.a-sw) { gap: 7px; padding-right: 8px; } .w-tl:has(.a-sw) .a-lights { margin-right: 8px; }
.a-rb.a-sw > i { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 26px; border-radius: 13px; font-style: normal; }
.a-rb.a-sw > i.on { background: var(--sep); color: var(--ink); }
.a-rb.a-sw .ms { font-size: 16px; }
.st-r .ms.kh { transform: scaleX(-1); }
.w-plus { margin-left: auto; display: flex; align-items: center; color: var(--ink2); padding-right: 6px; }
.w-status { height: 31px; flex: none; background: var(--status); border-bottom: 1px solid var(--sep2); display: flex; align-items: center; gap: 7px; padding: 0 10px 0 12px; font-size: 12.5px; white-space: nowrap; }
.w-status b { font-weight: 600; }
.w-status b.o { color: var(--orange); }
.w-status .chain { margin-left: 10px; color: var(--ink2); display: flex; flex-direction: row; align-items: center; justify-content: flex-start; padding: 0; gap: 5px; white-space: nowrap; }
.w-status .chain i { font-style: normal; opacity: .7; }
.w-status .chain b { color: var(--ink); }
.st-wait, .st-ok { display: inline-flex; align-items: center; gap: 7px; }
.st-r { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--ink2); font-weight: 500; }
.st-r > span { display: inline-flex; align-items: center; gap: 4px; }
.st-r .vs { width: 1px; height: 16px; background: var(--sep); }
.st-r .ms { font-size: 16px; }
.ai-pill { background: color-mix(in oklab, var(--green) 13%, transparent); color: var(--green); padding: 3px 8px; border-radius: 6px; }
.w-term { flex: 1; min-height: 0; overflow: hidden; background: var(--term); padding: 6px 6px; font-family: var(--mono); font-size: 13px; line-height: 16.6px; color: var(--tink); }
.w-term .tl { white-space: pre; }
.w-term .tl.dim { color: var(--tdim); }
.pg { color: var(--tg); } .pb { color: var(--tb); }
.app .pg, .app .pb { font-weight: 700; }
/* window: connecting → connected */
.win .st-ok, .win .js-on { display: none; }
.win.done .st-wait { display: none; }
.win.done .st-ok { display: inline-flex; }
.win.done .js-on { display: inline-block; }
.win.play .w-term .tl { visibility: hidden; }
.win.play .w-term .tl.in { visibility: visible; }

/* window: the login route over the terminal while it signs in (LoginRouteOverlay) */
.win .w-main:has(> .w-lr) { position: relative; }
.w-lr { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); display: flex; align-items: flex-start; padding: 12px 16px 10px;
  border-radius: 16px; background: color-mix(in oklab, var(--page) 74%, transparent); backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); border: 1px solid var(--sep); box-shadow: 0 10px 30px rgb(0 0 0 / .22);
  font-family: var(--sans, inherit); color: var(--ink); pointer-events: none; transition: opacity .4s ease, transform .4s ease; }
.win.done .w-lr { opacity: 0; transform: translateX(-50%) translateY(6px); }
.lr-h { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 86px; text-align: center; }
.lr-h b { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.lr-h small { font-size: 10.5px; color: var(--ink2); white-space: nowrap; }
.lr-d { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sep); display: grid; place-items: center; color: var(--ink2); }
.lr-d .ms { font-size: 15px; }
.lr-h.ok .lr-d { border-color: var(--green); color: var(--green); }
.lr-h.now .lr-d { border-color: color-mix(in oklab, var(--orange) 28%, transparent); color: var(--orange); }
.lr-h.now .lr-d::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--orange); animation: lr-spin 1s linear infinite; }
.lr-l { flex: none; width: 26px; height: 2px; margin-top: 14px; background: var(--green); }
.lr-l.run { background: repeating-linear-gradient(90deg, var(--orange) 0 5px, transparent 5px 9px); background-size: 9px 2px; animation: lr-run .7s linear infinite; }
.lr-l.off { background: var(--sep); }
@keyframes lr-spin { to { transform: rotate(360deg); } }
@keyframes lr-run { to { background-position: 9px 0; } }
@media (prefers-reduced-motion: reduce) { .lr-h.now .lr-d::after, .lr-l.run { animation: none; } }
@media (max-width: 640px) { .w-lr { display: none; } }

/* AI: terminal + agent commands + AI panel */
.app.aiwin { display: flex; flex-direction: column; background: var(--term); }
.ai-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 368px; }
.ai-left { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--sep); }
.w-term.sm { flex: 1; }
.cmds { flex: none; height: 222px; background: var(--page); border-top: 1px solid var(--sep); }
.app.aiwin .cmds { --page: #ffffff; }
:where(html:not(.light)) .app.aiwin .cmds { --page: #1e1e1e; }
.cmds-h { height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: color-mix(in oklab, var(--ink) 3%, var(--page)); border-bottom: 1px solid var(--sep2); color: var(--ink2); }
.cmds-h b { color: var(--ink); font-weight: 600; }
.cmds-h .n { font-size: 11px; background: var(--sep); border-radius: 4px; padding: 1px 6px; }
.cmds-h .cm-sw { display: inline-flex; padding: 2px; border-radius: 6px; background: var(--sep2); font-size: 11.5px; }
.cmds-h .cm-sw i { font-style: normal; padding: 1px 9px; border-radius: 5px; color: var(--ink); }
.cmds-h .cm-sw i.on { background: var(--sep); font-weight: 500; }
.cmds-h .note { margin-left: auto; font-size: 11.5px; color: var(--ink3); margin-right: 6px; }
.cmds-h .ms { font-size: 17px; margin-left: 8px; }
.cmd { height: 28px; display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.cmd code { font-size: 12.5px; color: var(--ink); flex: 1; }
.cmd .who, .cmd .tm { font-size: 11.5px; color: var(--ink3); }
.cmd .ok { font-size: 11px; font-weight: 600; color: var(--chip-gt); background: var(--chip-g); padding: 1px 6px; border-radius: 4px; }
.cmd .ms { color: var(--ink3); font-size: 15px; }
.cmd-x { padding: 0 12px 6px 32px; color: var(--ink2); font-size: 11.5px; }
.cmd-x pre { margin-top: 6px; background: color-mix(in oklab, var(--ink) 4%, var(--page)); border-radius: 6px; padding: 7px 16px; color: var(--ink); font-size: 12px; }
.ai-panel { display: flex; flex-direction: column; background: var(--page); min-width: 0; }
.app.aiwin .ai-panel { --page: #ffffff; }
:where(html:not(.light)) .app.aiwin .ai-panel { --page: #1e1e1e; }
.ai-h { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.ai-h b { flex: 1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-h > span { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.ai-h .ms { font-size: 16px; color: var(--ink2); }
.ai-tg { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.ai-tg b { font-weight: 600; }
.ai-tg .mode { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; background: var(--sep2); color: var(--ink2); padding: 3px 8px; border-radius: 6px; }
.ai-tg .mode .a-dot { width: 6px; height: 6px; }
.ai-feed { flex: 1; min-height: 0; overflow: hidden; padding: 6px 12px; }
.ai-q { margin-left: auto; max-width: 300px; width: fit-content; background: var(--blue); color: #fff; padding: 7px 12px; border-radius: 12px; font-size: 13px; }
.ai-who { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
.ai-who b { font-weight: 600; flex: 1; }
.ai-who .o { font-size: 12px; }
.ai-steps { position: relative; padding-left: 0; }
.ai-st { display: flex; align-items: center; gap: 10px; height: 24px; font-size: 12.5px; color: var(--ink2); }
.ai-st .a-dot { width: 7px; height: 7px; margin: 0 1px; }
.ai-st .k { width: 82px; flex: none; color: var(--ink2); }
.ai-st code { flex: 1; color: var(--ink); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-st .tm { font-size: 11.5px; color: var(--ink3); }
.ai-st .ms { color: var(--ink3); font-size: 14px; }
.ai-st.first { color: var(--ink2); font-size: 13px; }
.ai-card { position: relative; margin: 6px 0 0 18px; border: 1px solid color-mix(in oklab, var(--red) 45%, transparent); background: color-mix(in oklab, var(--red) 7%, var(--page)); border-radius: 10px; padding: 11px 11px 0; }
.ai-card > .a-dot { position: absolute; left: -19px; top: 6px; width: 7px; height: 7px; }
.ai-card .c-h { display: flex; align-items: flex-start; gap: 8px; }
.ai-card .c-h b { flex: 1; font-size: 13px; }
.ai-card .c-h .bad { font-size: 11px; font-weight: 600; color: var(--red); background: color-mix(in oklab, var(--red) 15%, transparent); padding: 1px 6px; border-radius: 4px; }
.ai-card .c-s { font-size: 11.5px; color: var(--ink2); margin: 3px 0 9px; }
.ai-card .c-c, .kpage .app .ai-card code.c-c { display: block; background: color-mix(in oklab, var(--ink) 6%, transparent); padding: 5px 9px; border-radius: 7px; font-size: 12.5px !important; }
.ai-card .c-w { margin: 9px 0 4px; font-size: 12.5px; font-weight: 500; }
.ai-card .c-n { font-size: 11.5px; color: var(--ink2); margin-bottom: 10px; }
.ai-card .c-b { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 0 9px; border-top: 1px solid color-mix(in oklab, var(--red) 25%, transparent); margin: 0 -11px; padding-right: 11px; }
.ai-card .c-b > span { padding: 3px 10px; border-radius: 6px; background: var(--page); box-shadow: 0 0 0 .5px var(--sep), 0 1px 1px var(--sep2); font-weight: 500; font-size: 12.5px; }
.ai-card .c-b > span.r { color: var(--red); }
.ai-in { margin: 8px 12px 12px; border: 1px solid var(--sep); border-radius: 12px; overflow: hidden; }
.ai-wt { display: flex; align-items: center; gap: 7px; padding: 7px 12px; font-size: 12.5px; color: var(--orange); font-weight: 500; border-bottom: 1px solid var(--sep2); background: color-mix(in oklab, var(--orange) 6%, transparent); }
.ai-wt span { margin-left: auto; color: var(--ink3); font-weight: 400; }
.ai-wt .a-dot { width: 6px; height: 6px; }
.ai-in .ph { padding: 9px 12px 6px; color: var(--ink3); }
.ai-m { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px; font-size: 12.5px; }
.ai-m .g { color: var(--ink3); }
/* the model and the agent's folder: two capsules with a hairline (AIPanelModelBar) */
.ai-m .ai-cap > span:not(.g) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ai-m .ai-cap { flex: 0 1 auto; overflow: hidden; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 12px; box-shadow: inset 0 0 0 .75px var(--sep); white-space: nowrap; min-width: 0; }
.ai-m .ai-cap.fo { color: var(--ink2); flex: none; } .ai-m .ai-stop { flex: none; } .ai-m .ai-cap.fo .ms { font-size: 14px; }
.ai-m { gap: 6px; }
.ai-stop { width: 24px; height: 24px; border-radius: 50%; background: var(--ink2); color: var(--page); display: flex; align-items: center; justify-content: center; }
.ai-stop .ms { font-size: 13px; }
.aiwin.play .js-step, .aiwin.play .js-card, .aiwin.play .js-cmd, .aiwin.play .js-wait { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.aiwin.play .in { opacity: 1 !important; transform: none !important; }

/* Service page */
.app.page { background: var(--page); padding: 0 30px; }
.pg-h { height: 56px; display: flex; align-items: center; gap: 10px; margin: 0 -14px; }
.pg-h b { font-size: 15px; font-weight: 700; }
.pg-h .segs { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 17px; background: var(--seg); margin: 0 auto; }
.pg-h .sg { position: relative; z-index: 1; padding: 6px 14px; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 7px; border-radius: 14px; }
.pg-h .rdot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.pg-h .segpill { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 14px; background: var(--segon); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transition: left .45s cubic-bezier(.3, .7, .2, 1), width .45s cubic-bezier(.3, .7, .2, 1); }
.pg-h .rb { width: 32px; height: 32px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); box-shadow: 0 0 0 1px var(--sep); font-size: 16px; }
.pg-views { position: relative; }
.pg-v { position: absolute; inset: 0 0 auto 0; transition: opacity .45s ease; }
.pg-v { opacity: 0; pointer-events: none; }
.page:not([data-v]) .v-dash, .page[data-v="dash"] .v-dash, .page[data-v="nginx"] .v-nginx, .page[data-v="docker"] .v-docker,
.page[data-v="sup"] .v-sup, .page[data-v="cron"] .v-cron, .page[data-v="sec"] .v-sec { opacity: 1; pointer-events: auto; }
.pg-title { font-size: 28px; font-weight: 700; margin: 16px 0 6px; letter-spacing: -.01em; }
.pg-sum { font-size: 14px; margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-sum .lnk { color: var(--blue); }
.pg-ctl { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.pop { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; box-shadow: 0 0 0 1px var(--sep); font-weight: 500; font-size: 13.5px; background: var(--page); }
.seg2 { display: inline-flex; gap: 2px; padding: 3px; border-radius: 17px; background: var(--seg); }
.seg2 > span { padding: 5px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 500; }
.seg2 > span.on { background: var(--segon); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.kps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kp { padding: 0 18px; border-left: 1px solid var(--sep); }
.kp:first-child { padding-left: 0; border-left: 0; }
.kp b { display: block; font-size: 25px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.kp b.r { color: var(--red); } .kp b.o { color: #c4682b; }
:where(html:not(.light)) .kp b.o { color: #f09a37; }
.kp span { font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.chart { position: relative; margin-top: 22px; padding-right: 54px; }
.bars { height: 142px; display: flex; align-items: flex-end; gap: 4px; padding-left: 18px; border-bottom: 1px solid var(--sep2); background: linear-gradient(var(--sep2), var(--sep2)) 0 50% / 100% 1px no-repeat; }
.bars i { flex: 1; height: calc((var(--g) + var(--y) + var(--r)) * 0.9467px); display: flex; flex-direction: column; border-radius: 2px 2px 0 0; overflow: hidden; background: linear-gradient(to top, #7ccd7d calc(var(--g) / (var(--g) + var(--y) + var(--r)) * 100%), #f0a03a 0 calc((var(--g) + var(--y)) / (var(--g) + var(--y) + var(--r)) * 100%), #eb4e3d 0); }
:where(html:not(.light)) .bars i { background: linear-gradient(to top, #5db55e calc(var(--g) / (var(--g) + var(--y) + var(--r)) * 100%), #e8913a 0 calc((var(--g) + var(--y)) / (var(--g) + var(--y) + var(--r)) * 100%), #eb5545 0); }
.chart .ax { position: absolute; right: 0; font-size: 11px; color: var(--ink2); }
.chart .a1 { top: -6px; } .chart .a2 { top: 64px; }
.cl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink2); margin-top: 6px; padding-right: 0; }
.cl .lg { display: flex; align-items: center; gap: 6px; }
.cl .lg i { width: 8px; height: 8px; border-radius: 2px; margin-left: 10px; }
.cl .lg i.g { background: #5db55e; } .cl .lg i.o { background: #f0a03a; } .cl .lg i.r { background: #eb4e3d; }
.p95 { margin-top: 12px; }
.p95h { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); margin-bottom: 4px; }
.p95h b.o { color: #c4682b; } :where(html:not(.light)) .p95h b.o { color: #f09a37; }
.p95 svg { display: block; width: calc(100% - 60px); height: 26px; margin-left: 26px; }
.p95f { fill: #e7e7f8; } .p95l { fill: none; stroke: #6e63e6; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
:where(html:not(.light)) .p95f { fill: #2d2e4a; } :where(html:not(.light)) .p95l { stroke: #7a70ff; }
.two { display: grid; grid-template-columns: 1.12fr 1fr; gap: 46px; margin-top: 30px; }
.h2 { font-size: 17px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.h2 span { font-size: 12.5px; font-weight: 400; color: var(--ink2); }
.h2.mt { margin-top: 22px; }
.rt { display: grid; grid-template-columns: 1fr 50px 120px 54px 60px; align-items: center; gap: 10px; padding: 4px 10px; border-top: 1px solid var(--sep2); font-size: 13px; }
.rt.hd { font-size: 12px; color: var(--ink2); border-top: 0; }
.rt .p { display: flex; flex-direction: column; }
.rt .p code { font-size: 12.5px; }
.rt .p em { font-style: normal; font-size: 11px; color: var(--red); }
.rt .n, .rt .kb, .rt .pc { text-align: right; } .rt .kb, .rt .pc { color: var(--ink2); font-size: 12.5px; }
.rt .sh i { display: block; height: 5px; border-radius: 3px; background: var(--blue); position: relative; overflow: hidden; }
.rt .sh i.r { background: var(--red); }
.rt .sh i s { position: absolute; right: 0; top: 0; bottom: 0; background: var(--red); }
.rt .sh i.r s { display: none; }
.rt.hd .sh, .rt.hd .n { text-align: left; }
.cd { display: grid; grid-template-columns: 52px 1fr 50px 58px; align-items: center; gap: 8px; padding: 5px 10px; border-top: 1px solid var(--sep2); font-size: 13px; }
.cd:first-of-type { border-top: 0; }
.cd > b { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
.cd > b.g { color: #2f9b3a; } .cd > b.r { color: var(--red); } .cd > b.o { color: #d9772b; }
:where(html:not(.light)) .cd > b.g { color: #5fd162; }
.cd .t { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.cd .t i { display: block; height: 4px; border-radius: 2px; background: var(--sep2); overflow: hidden; }
.cd .t s { display: block; height: 100%; border-radius: 2px; }
.cd s.g { background: #34c759; } .cd s.r { background: var(--red); } .cd s.o { background: #f09a37; }
.cd .n, .cd .pc { text-align: right; } .cd .pc { color: var(--ink2); font-size: 12.5px; }
.sl { display: grid; grid-template-columns: 1fr 52px 50px 40px; gap: 8px; padding: 4px 10px; align-items: center; font-size: 13px; text-align: right; }
.sl.hd { font-size: 12px; color: var(--ink2); }
.sl > span:first-child { text-align: left; }
.sl i { display: block; height: 3px; width: 92%; background: #f09a37; border-radius: 2px; margin-top: 3px; }
.sl b.o { color: #c4682b; } :where(html:not(.light)) .sl b.o { color: #f09a37; }
.sl span:not(:first-child) { color: var(--ink2); }
/* dashboard */
.dtiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; grid-auto-flow: dense; }
.dtl { grid-column: span var(--sp); background: var(--card); border-radius: 14px; padding: 14px 14px; min-height: 188px; display: flex; flex-direction: column; min-width: 0; }
.dth { font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtl.dt-st .dtv { margin-top: auto; font-size: 34px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.dtl.dt-st .dtv.r { color: var(--red); }
.dtc { font-size: 11px; letter-spacing: -.015em; color: var(--ink2); margin: 4px 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtc.c { text-align: center; margin: 6px 0 0; }
.dring { position: relative; width: 112px; height: 112px; margin: 10px auto 0; }
.dring svg { width: 100%; height: 100%; transform: rotate(135deg); }
.dring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.dring .tr { stroke: var(--sep2); } .dring .vl { stroke: var(--blue); }
.dring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; }
.dtl.dt-dk .dsk:first-of-type { margin-top: 12px; }
.dtl.dt-ch .lg2 { justify-content: flex-start; margin-top: 10px; }
.dtl.dt-ch .dline { height: 96px; margin-top: auto; }
.dsc { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink2); margin: 10px 0 6px; white-space: nowrap; }
.dsc i { width: 6px; height: 6px; border-radius: 50%; } .dsc i:not(:first-child) { margin-left: 8px; }
.dsc i.g { background: var(--green); } .dsc i.o { background: var(--orange); } .dsc i.r { background: var(--red); }
.dlr { display: flex; align-items: center; gap: 9px; height: 26px; font-size: 13px; border-bottom: 1px solid var(--sep2); white-space: nowrap; }
.dlr:last-child { border-bottom: 0; }
.dlr i { flex: none; width: 7px; height: 7px; border-radius: 50%; } .dlr i.g { background: var(--green); } .dlr i.o { background: var(--orange); } .dlr i.r { background: var(--red); }
.dlr b { flex: 0 1 auto; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.dlr span { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: right; font-size: 12px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; padding-left: 6px; }
.dlr span.r { color: var(--red); } .dlr span.o { color: var(--orange); }
.dct { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; height: 25px; align-items: center; font-size: 12.5px; white-space: nowrap; }
.dct span { overflow: hidden; text-overflow: ellipsis; } .dct span:not(:first-child) { color: var(--ink2); text-align: right; }
.dct.hd { margin-top: 10px; font-size: 11.5px; color: var(--ink2); height: 22px; }
.dsk { display: grid; grid-template-columns: 1fr auto; font-size: 13px; margin-bottom: 14px; }
.dsk > b { font-weight: 600; } .dsk > b.r { color: var(--red); }
.dsk > i { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: var(--sep2); margin-top: 3px; overflow: hidden; }
.dsk s { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.dsk s.r { background: var(--red); }
.lg2 { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lg2 i { width: 9px; height: 9px; border-radius: 2px; } .lg2 i.b { background: var(--blue); } .lg2 i.p { background: #6e63e6; margin-left: 10px; }
.lg2 b { font-weight: 600; }
.dline { display: block; width: 100%; height: 130px; margin-top: 10px; }
.dline .fm { fill: color-mix(in oklab, #6e63e6 16%, transparent); } .dline .lm { fill: none; stroke: #6e63e6; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dline .fc { fill: color-mix(in oklab, var(--blue) 14%, transparent); } .dline .lc { fill: none; stroke: var(--blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink2); margin-top: 4px; }

/* Database tab */
.app.dbwin { display: flex; flex-direction: column; background: var(--page); }
.app.dbwin { --page: #ffffff; } :where(html:not(.light)) .app.dbwin { --page: #1e1e1e; }
.db-h { height: 50px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--sep2); }
.db-h b { font-size: 15px; } .db-h .g { margin-left: 6px; font-size: 13.5px; }
.app .btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--sep2); font-weight: 500; font-size: 13px; white-space: nowrap; }
.db-h .rb { color: var(--ink2); margin-left: 6px; }
.db-b { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.db-nav { border-right: 1px solid var(--sep2); padding: 8px 6px; background: var(--page); }
.db-s { height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--sep); display: flex; align-items: center; gap: 4px; padding: 0 6px; color: var(--ink2); margin: 0 2px 8px; font-size: 13px; }
.nd { white-space: nowrap; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; font-size: 13px; }
.nd > .ms.t-orange { font-size: 15px; } .nd > .g { color: var(--ink2); }
.nd { overflow: hidden; } .nd .g { font-size: 11px; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .nd .sz { flex: none; } .nd .sz { margin-left: auto; font-size: 11px; color: var(--ink2); }
.nt { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px 0 22px; border-radius: 6px; font-size: 13.5px; }
.nt.sel { background: var(--sel); }
.app.dbwin .nt.sel { background: #dfe9fe; } :where(html:not(.light)) .app.dbwin .nt.sel { background: #2b3550; }
.nt .sz { margin-left: auto; font-size: 11px; color: var(--ink2); }
.nt .sz em { font-style: normal; margin-left: 10px; }
.nt.dim, .nt.ov { padding-left: 8px; color: var(--ink); }
.db-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.db-tabs { height: 38px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.db-tabs > span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink2); }
.db-tabs > span.on { background: #e7eefc; color: var(--ink); font-weight: 600; }
:where(html:not(.light)) .db-tabs > span.on { background: #2b3550; }
.db-f { height: 36px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.db-f .srch { flex: 1; height: 26px; border-radius: 7px; background: var(--sep2); display: flex; align-items: center; gap: 5px; padding: 0 8px; color: var(--ink2); }
.fbtn { height: 26px; padding: 0 12px; border-radius: 7px; background: var(--blue); color: #fff; font-weight: 600; display: inline-flex; align-items: center; }
.fbtn .f0 { display: none; }
.dbwin.play:not(.applied) .fbtn { background: var(--sep2); color: var(--ink); font-weight: 500; }
.dbwin.play:not(.applied) .fbtn .f1 { display: none; } .dbwin.play:not(.applied) .fbtn .f0 { display: inline; }
.db-f > .ms { color: var(--ink2); }
.seg3 { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--sep2); }
.seg3 > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.seg3 > span.on { background: var(--page); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.seg3 > span.p { color: var(--purple); }
.aif { margin: 4px 12px 8px; border-radius: 10px; padding: 8px 12px 10px; background: color-mix(in oklab, var(--purple) 6%, var(--page)); flex: none; }
.aif-t { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.aif-t .hint { font-size: 12.5px; color: var(--ink2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aif-t .x { color: var(--ink2); }
.aif-r { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.aif-r label { width: 66px; text-align: right; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink2); font-family: ui-monospace, 'SF Mono', Menlo, monospace; flex: none; }
.aif-r label.p { color: var(--purple); }
.aif-r label + .fld + label { width: auto; margin-left: 10px; }
.aif-r .fld { flex: 1; height: 26px; border-radius: 6px; background: var(--page); box-shadow: inset 0 0 0 1px var(--sep); display: flex; align-items: center; padding: 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.aif-r .fld.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }
.aif-r .fld.ph { color: var(--ink3); }
.aif-r .fld.sm { flex: 0 0 104px; }
.fld .kw { color: #c41a16; } .fld .str { color: #c41a16; } .fld .num { color: #1c00cf; }
.fld .kw { color: var(--tb); }
:where(html:not(.light)) .fld .str { color: #fc6a5d; } :where(html:not(.light)) .fld .num { color: #d0bf69; } :where(html:not(.light)) .fld .kw { color: #6bdfff; }
.aif-f { white-space: nowrap; display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--ink2); padding-left: 74px; }
.aif-f .ms.p { color: var(--purple); }
.aif-f > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.apply { background: var(--purple); color: #fff; font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 7px; }
.dbwin.play:not(.typed) .js-where { visibility: hidden; }
.db-g { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 296px; border-top: 1px solid var(--sep2); }
.dgrid { min-width: 0; overflow: hidden; }
.gr { display: grid; grid-template-columns: 38px 122px 124px 116px 64px minmax(0, 1fr); height: 27px; align-items: center; border-bottom: 1px solid var(--sep2); font-size: 13px; font-variant-numeric: tabular-nums; }
.gr > span { padding: 0 8px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--sep2); height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.gr > span.tx { justify-content: flex-start; text-align: left; }
.gr .rnum { color: var(--ink3); font-size: 11px; background: color-mix(in oklab, var(--ink) 3%, var(--page)); }
.gr.s { background: color-mix(in oklab, var(--ink) 6%, var(--page)); }
.gr.hd { height: 38px; background: color-mix(in oklab, var(--ink) 2%, var(--page)); }
.gr.hd > span { flex-direction: column; align-items: flex-end; justify-content: center; line-height: 1.2; }
.gr.hd > span.tx { align-items: flex-start; }
.gr.hd b { font-weight: 600; }
.gr.hd em { font-style: normal; font-size: 10.5px; color: var(--ink3); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.gr.hd i { font-style: normal; font-size: 9px; font-weight: 700; } .gr.hd i.pk { color: #d9772b; } .gr.hd i.fk { color: var(--blue); }
.gbs { position: relative; }
.gb { transition: opacity .4s ease; }
.gb.g0 { position: absolute; inset: 0 0 auto 0; }
.dbwin.play:not(.applied) .gb.g1, .dbwin.play.applied .gb.g0 { opacity: 0; }
.dbwin:not(.play) .gb.g0 { display: none; }
.insp { overflow: hidden; border-left: 1px solid var(--sep2); padding: 0 14px; }
.ih { display: flex; align-items: center; gap: 8px; height: 38px; }
.ih b { font-weight: 600; } .ih .ms { margin-left: auto; color: var(--ink3); }
.if { margin: 4px 0 8px; }
.ik { font-size: 11.5px; color: var(--ink2); } .ik span { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 10.5px; }
.ik .pk { color: #d9772b; font-size: 9px; }
.iv { font-size: 13.5px; margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.iv .fk { font-size: 12px; color: var(--blue); background: color-mix(in oklab, var(--blue) 10%, transparent); padding: 1px 6px; border-radius: 4px; }
.ib { display: flex; gap: 6px; margin-top: 10px; }
.ib > span { height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border-radius: 7px; background: var(--sep2); font-weight: 500; }
.ib > span.i { padding: 0 8px; } .ib span.r { color: var(--red); }
.db-foot { height: 32px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-top: 1px solid var(--sep2); color: var(--ink2); font-size: 12.5px; white-space: nowrap; }
.db-foot code { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.db-foot .mn { font-size: 15px; }
.db-foot .pp { display: inline-flex; align-items: center; gap: 3px; background: var(--sep2); padding: 2px 8px; border-radius: 6px; color: var(--ink); }

/* Automation */
.app.autowin { display: flex; flex-direction: column; background: var(--page); }
.app.autowin { --page: #ffffff; --canvas: #ffffff; --cdot: rgba(0, 0, 0, .13); }
:where(html:not(.light)) .app.autowin { --page: #20222d; --canvas: #1e1e1e; --cdot: rgba(255, 255, 255, .14); }
.au-h { height: 52px; flex: none; display: flex; align-items: center; gap: 9px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--sep2); white-space: nowrap; }
.au-h > .g { font-size: 14px; }
.au-h b { font-size: 14px; }
.au-h .st { font-size: 12.5px; flex: none; margin-left: 4px; }
.au-h .seg2 { margin-left: 10px; }
.au-h .pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--seg); color: var(--ink2); font-weight: 500; }
.au-h .rb { color: var(--ink2); margin: 0 4px; font-size: 18px; }
.au-h .go { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 14px 0 10px; border-radius: 15px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; }
.autowin.play:not(.done) .au-h .st { visibility: hidden; }
.au-b { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.au-lib { border-right: 1px solid var(--sep2); padding: 8px 8px; overflow: hidden; background: var(--page); }
.seg3.w { display: flex; margin: 0 2px 10px; } .seg3.w > span { flex: 1 1 auto; min-width: 0; padding: 3px 6px; justify-content: center; }
.lh { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--ink2); letter-spacing: .03em; margin: 12px 4px 6px; }
.li { display: flex; align-items: center; gap: 10px; padding: 5px 6px; }
.li .ai { width: 26px; height: 26px; } .li .ai .ms { font-size: 15px; }
.li b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.li div span { display: block; font-size: 11px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.au-c { position: relative; background-color: var(--canvas); background-image: radial-gradient(var(--cdot) 1px, transparent 1.2px); background-size: 20px 20px; overflow: hidden; }
.au-z { position: absolute; left: 0; top: 190px; width: 1540px; height: 120px; transform: scale(.6); transform-origin: 0 0; }
.ai { position: relative; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ai .ms { font-size: 18px; }
.ai.blue { background: color-mix(in oklab, var(--blue) 16%, transparent); color: var(--blue); }
.ai.orange { background: color-mix(in oklab, #f08a24 18%, transparent); color: #e8822a; }
.ai.cyan { background: color-mix(in oklab, var(--cyan) 18%, transparent); color: #2fa6c8; }
.ai.green { background: color-mix(in oklab, var(--green) 16%, transparent); color: #2ea84a; }
.ai.purple { background: color-mix(in oklab, var(--purple) 16%, transparent); color: var(--purple); }
.ai.yellow { background: color-mix(in oklab, #e5b80b 18%, transparent); color: #c99a06; }
.ai.red { background: color-mix(in oklab, var(--red) 16%, transparent); color: var(--red); }
.ai .ok { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: #4cb951; color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--canvas); }
.ai .ok .ms { font-size: 11px; }
.ac { position: absolute; top: 0; width: 240px; height: 54px; border: 1.5px solid color-mix(in oklab, var(--ink) 16%, transparent); border-radius: 12px; background: var(--canvas); padding: 9px 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; align-content: start; transition: height .35s ease, border-color .3s; }
.ac .at b { display: block; font-size: 13.5px; font-weight: 600; margin-top: -1px; }
.ac .at span { display: block; font-size: 11.5px; color: #8a8a8e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac .ar { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--oktext); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .3s .15s; }
.ac.ok { height: 84px; border-color: var(--okline); }
.ac.ok .ar { opacity: 1; }
.ac.ok .ai .ok { display: inline-flex; }
.port { position: absolute; top: 19px; width: 12px; height: 12px; border-radius: 50%; }
.port.in { left: -7px; } .port.out { right: -7px; }
.port.b { background: var(--blue); } .port.o { background: #f08a24; } .port.gq { background: #5cb35c; }
.port.hollow { border: 1.5px solid #5cb35c; background: var(--canvas); }
.port.aux { left: -7px; top: 38px; border: 1.5px solid #4fb8d6; background: var(--canvas); }
.link { position: absolute; top: 24px; height: 2px; }
.link.b { background: var(--blue); } .link.o { background: #f08a24; } .link.gq { background: #5cb35c; }
.chip { position: absolute; top: -18px; font-size: 11.5px; font-weight: 600; color: #e8822a; border: 1px solid #f0b47a; background: var(--canvas); padding: 0 5px; border-radius: 5px; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.autowin:not(.play) .chip, .chip.in { opacity: 1; }
.autowin:not(.play) .ac { height: 84px; border-color: var(--okline); }
.autowin:not(.play) .ac .ar { opacity: 1; } .autowin:not(.play) .ac .ai .ok { display: inline-flex; }
.au-ask { position: absolute; left: 50%; bottom: 14px; transform: translateX(-62%); width: 500px; height: 40px; border-radius: 20px; background: var(--page); box-shadow: 0 0 0 1px var(--sep), 0 4px 14px rgba(0, 0, 0, .08); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; color: var(--ink2); font-size: 13.5px; }
.au-ask > span:not(.ms) { flex: 1; }
.au-ask .up { width: 26px; height: 26px; border-radius: 13px; background: color-mix(in oklab, var(--purple) 30%, transparent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.au-zm { position: absolute; right: 12px; bottom: 20px; display: flex; align-items: center; gap: 12px; color: var(--ink2); font-size: 12.5px; }
.au-zm .pill { background: var(--seg); color: var(--ink); padding: 4px 10px; border-radius: 7px; font-weight: 500; }

/* Direct copy sheet */
.app.sheet { padding: 20px 20px 18px; display: flex; flex-direction: column; }
.app.sheet { --page: #ffffff; } :where(html:not(.light)) .app.sheet { --page: #262835; }
.dc-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.dc-t b { font-weight: 600; }
.dc-r { display: flex; align-items: center; gap: 8px; margin-top: 14px; height: 34px; padding: 0 10px; border-radius: 8px; background: color-mix(in oklab, var(--ink) 5%, var(--page)); font-size: 13px; }
.dc-r b { font-weight: 600; }
.dc-s { margin-top: 16px; font-size: 13px; min-height: 18px; }
.dc-s .s-done { display: none; align-items: center; gap: 6px; color: var(--oktext); font-weight: 600; }
.sheet.done .s-run { display: none; } .sheet.done .s-done { display: inline-flex; }
.dc-sha { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; visibility: hidden; }
.sheet.done .dc-sha { visibility: visible; }
.dc-p { height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 10%, transparent); margin-top: 10px; overflow: hidden; }
.dc-p i { display: block; height: 100%; width: 100%; border-radius: 3px; background: color-mix(in oklab, var(--ink) 55%, transparent); transition: width .5s linear; }
.dc-n { font-size: 11.5px; color: var(--ink2); margin-top: 12px; }
.dc-log { margin-top: 10px; min-height: 146px; border-radius: 8px; background: color-mix(in oklab, var(--ink) 4%, var(--page)); padding: 10px 9px; font-size: 11.5px; line-height: 1.55; overflow: hidden; }
.dc-log div { overflow-wrap: anywhere; }
.sheet.play .js-log { visibility: hidden; } .sheet.play .js-log.in { visibility: visible; }
.dc-b { margin-top: auto; display: flex; justify-content: flex-end; }
.dc-b > span { padding: 5px 14px; border-radius: 14px; background: color-mix(in oklab, var(--ink) 9%, var(--page)); font-weight: 500; }
.dc-b .b-run { display: none; }
.sheet.play:not(.done) .b-run { display: inline; } .sheet.play:not(.done) .b-done { display: none; }

/* Broadcast */
.app.bcwin { display: flex; flex-direction: column; background: var(--term); }
.bc-panes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 2px; min-height: 0; }
.bp { border: 2px solid #f09748; border-radius: 2px; padding: 4px 6px; font-family: var(--mono); font-size: 12.5px; line-height: 16px; color: var(--tink); overflow: hidden; }
.bp .tl { white-space: pre-wrap; overflow-wrap: anywhere; }
.bcwin.play .js-out { visibility: hidden; } .bcwin.play .js-out.in { visibility: visible; }
.bcwin.play.ran .bp .tl:nth-child(2) .a-cur { display: none; }
.bcwin:not(.play) .bp .tl:nth-child(2) .a-cur { display: none; }
.bc-pill { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: #f09748; color: #fff; font-weight: 600; font-size: 12.5px; padding: 6px 14px; border-radius: 15px; white-space: nowrap; }
.bc-pill u { text-underline-offset: 2px; }
.bc-pill .ms { font-size: 16px; }

/* Menu bar window */
.app.menubar { --page: #d6d7dd; --mbf: #cbccd2; --mbsep: rgba(0, 0, 0, .1); padding: 14px 12px 10px; border-radius: 16px; }
:where(html:not(.light)) .app.menubar { --page: #5c5d63; --mbf: #696a6f; --mbsep: rgba(255, 255, 255, .1); --ink2: #c9cad0; }
.mb-h { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.mb-h img { width: 34px; height: 34px; }
.mb-h div { flex: 1; } .mb-h b { display: block; font-size: 14.5px; } .mb-h div > span { font-size: 12.5px; color: var(--ink2); }
.mb-h .ms { font-size: 19px; }
.mb-sep { height: 1px; background: var(--mbsep); margin: 9px 0; }
.mb-in { height: 28px; border-radius: 7px; background: var(--mbf); display: flex; align-items: center; gap: 7px; padding: 0 9px; color: var(--ink2); font-size: 13px; }
.mb-sh { display: flex; justify-content: space-between; align-items: baseline; padding: 0 3px; margin-bottom: 6px; font-size: 12.5px; }
.mb-sh b { color: var(--ink2); font-weight: 700; } .mb-sh span { color: var(--ink2); }
.mb-sh .lnk { color: var(--blue); }
.mb-p { padding: 0 3px; font-size: 12.5px; color: var(--ink2); }
.mb-t, .mb-f { display: flex; align-items: center; gap: 10px; padding: 4px 3px; }
.mb-t div, .mb-f div { flex: 1; min-width: 0; }
.mb-t b, .mb-f b { display: block; font-size: 13px; font-weight: 500; }
.mb-t div > span, .mb-f div > span { display: block; font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlogo { width: 20px; height: 20px; flex: none; }
.tic { width: 20px; height: 20px; border-radius: 50%; background: rgba(127, 127, 127, .45); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .3s; }
.tic.on { background: #3fbf55; } .tic .ms { font-size: 13px; }
.mb-t .port { position: static; width: auto; height: auto; border-radius: 5px; padding: 1px 6px; font-size: 12px; font-weight: 600; background: var(--mbf); color: var(--ink); font-family: ui-monospace, 'SF Mono', Menlo, monospace; transition: background .3s, color .3s; flex: none; }
.mb-t .port.on { background: color-mix(in oklab, #3fbf55 22%, transparent); color: #2f9b3a; }
:where(html:not(.light)) .mb-t .port.on { color: #71e07e; }
.sw { width: 36px; height: 20px; border-radius: 10px; background: rgba(127, 127, 127, .35); position: relative; flex: none; transition: background .3s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 22px; height: 16px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .3s; }
.sw.on { background: rgba(127, 127, 127, .6); } .sw.on i { left: 12px; }
.mb-f .a-ic, .mb-f > .ms { font-size: 18px; width: 20px; }
.mb-d { display: flex; align-items: center; gap: 10px; padding: 0 3px; }
.mb-d div { flex: 1; } .mb-d b { display: block; font-weight: 500; font-size: 13px; } .mb-d div span { font-size: 11.5px; color: var(--ink2); }
.mb-d .btn { background: var(--mbf); }
.mb-d > .ms { font-size: 19px; width: 20px; }
.mb-foot { display: flex; justify-content: space-between; padding: 0 3px; font-size: 13px; }

/* Route map */
.app.route { --page: #ffffff; --cdot: rgba(0, 0, 0, .1); background: transparent; box-shadow: none; overflow: visible; }
.sc .fit:has(.route) { box-shadow: none; overflow: visible; }
.rt-prof { border-radius: 12px; box-shadow: var(--shadow), inset 0 0 0 1px var(--win-line); margin-bottom: 16px; border-bottom: 0 !important; }
.rt-c { border-radius: 12px; box-shadow: var(--shadow), inset 0 0 0 1px var(--win-line); overflow: hidden; background-color: var(--page); background-image: radial-gradient(var(--cdot) 1px, transparent 1.2px); background-size: 20px 20px; }
.rt-tb { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: var(--page); border-bottom: 1px solid var(--sep2); font-size: 13px; }
:where(html:not(.light)) .app.route { --page: #1e1e1e; --cdot: rgba(255, 255, 255, .1); }
.rt-prof { display: flex; gap: 12px; padding: 14px 16px 12px; background: var(--page); border-bottom: 1px solid var(--sep2); }
.rt-prof .pi { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(#63d0e4, #3db6cf); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rt-prof .pi .ms { font-size: 22px; }
.rt-prof b { display: block; font-size: 15px; } .rt-prof div > span { font-size: 11.5px; color: var(--ink2); }
.pchips { display: flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 12px; white-space: nowrap; }
.pchips > span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 12px; color: var(--ink2); }
.pchips > span.on { background: color-mix(in oklab, var(--blue) 18%, transparent); color: var(--ink); font-weight: 600; }
.pchips .a-ts { width: 12px; height: 12px; }
.rt-c { position: relative; height: 556px; }
.rt-c .mac { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); width: 156px; text-align: center; }
/* a laptop as the app draws it: a display in a bezel (about 16:10), then a wider deck, rounded at the front, with the notch */
.rt-c .mac span { display: block; padding: 5px; border-radius: 9px 9px 0 0; border: 1.6px solid color-mix(in oklab, var(--ink) 30%, transparent); border-bottom: 0;
  background: color-mix(in oklab, var(--ink) 10%, var(--page)); }
.rt-c .mac span b { display: block; height: 48px; line-height: 48px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 4%, var(--page)); font-weight: 600; font-size: 13px; }
.rt-c .mac i { position: relative; display: block; height: 8px; margin: 0 -14px; border-radius: 1px 1px 5px 5px; background: color-mix(in oklab, var(--ink) 30%, var(--page)); }
.rt-c .mac i::after { content: ''; position: absolute; left: 50%; top: 0; width: 28px; height: 2.5px; margin-left: -14px; border-radius: 0 0 2px 2px; background: color-mix(in oklab, var(--ink) 14%, var(--page)); }
.rl { position: absolute; left: 50%; width: 2px; transform: translateX(-1px); }
.rl::after { content: ''; position: absolute; left: -4px; bottom: -1px; border: 5px solid transparent; border-top: 7px solid currentColor; border-bottom: 0; }
.rl.l0 { top: 108px; height: 58px; background: #8e8e93; color: #8e8e93; }
.rl.l1 { top: 262px; height: 40px; background: #55c3db; color: #55c3db; }
.rl.l2 { top: 398px; height: 40px; background: #55c3db; color: #55c3db; }
.rdot { position: absolute; left: 50%; top: 108px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue) 25%, transparent); opacity: 0; }
.rn { position: absolute; left: 50%; transform: translateX(-50%); width: 300px; display: flex; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); background: color-mix(in oklab, var(--ink) 2.5%, var(--page)); transition: box-shadow .3s, border-color .3s; }
.rn.dst { border: 1.5px solid var(--blue); }
.rn.lit { box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue) 18%, transparent); border-color: var(--blue); }
.ri { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in oklab, #3db6cf 22%, transparent); color: #3aa9c2; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rn.dst .ri { background: #55c3db; color: #fff; }
.ri .ms { font-size: 17px; }
.rn b { display: block; font-size: 13.5px; }
.rn code { display: block; font-size: 11.5px; color: var(--ink2); margin: 3px 0 6px; }
.chps { display: flex; gap: 5px; white-space: nowrap; }
.chp { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--chip-gt); background: var(--chip-g); padding: 2px 7px; border-radius: 9px; }
.chp .ms { font-size: 12px; }
.chp.y .ms { color: #d6a21b; }
.frm { display: block; font-size: 11px; color: var(--ink3); margin-top: 6px; }

/* Lock window */
.app.lock { --page: #ffffff; display: flex; flex-direction: column; }
:where(html:not(.light)) .app.lock { --page: #20222d; }
.lk-t { height: 30px; display: flex; align-items: center; gap: 16px; padding: 0 9px; border-bottom: 1px solid var(--sep2); background: var(--page); }
:where(html:not(.light)) .lk-t { background: #282a35; }
.lk-t b { font-size: 13px; color: var(--ink2); }
.lk-b { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 64px 60px 0; }
.lk-b img { width: 76px; height: 76px; }
.lk-n { font-size: 22px; font-weight: 700; margin: 26px 0 22px; }
.lk-f { align-self: stretch; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.lk-f .ms { color: var(--ink2); font-size: 17px; }
.lk-in { align-self: stretch; height: 26px; margin-top: 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--sep); background: var(--page); display: flex; align-items: center; padding: 0 7px; color: var(--ink3); font-size: 13px; }
:where(html:not(.light)) .lk-in { background: #171819; }
.lk-c { align-self: stretch; display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; }
.lk-c i { width: 15px; height: 15px; border-radius: 4px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.lk-c .ms { font-size: 13px; }
.lk-btns { align-self: stretch; display: flex; justify-content: space-between; margin-top: 16px; }
.lk-btns > span { display: inline-flex; align-items: center; gap: 14px; height: 28px; padding: 0 14px; border-radius: 14px; background: color-mix(in oklab, var(--ink) 7%, var(--page)); font-weight: 500; font-size: 13px; }
.lk-btns .lk-more {} .lk-btns > .un { color: var(--ink3); padding: 0 14px; }
/* the site's notes under the lock screen (not part of the app): what the encryption is, when it locks */
.lk-notes { align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.lk-notes > span { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: var(--ink2);
  border: 1.5px dashed color-mix(in oklab, var(--green) 45%, transparent); }
.lk-notes .ms { font-size: 16px; color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .app *, .app { transition: none !important; animation: none !important; }
}
html:not(.js) .js-dash { background: var(--segon); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.pg-h .rdot, .cl .lg i, .lg2 i { display: inline-block; }
.ih .r0, .dbwin.play:not(.applied) .ih .r1 { display: none; } .dbwin.play:not(.applied) .ih .r0 { display: inline; }
.cmd-x pre { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
/* Replica: the Files tab — two panes (server over SFTP, an S3 storage) and the transfers under them */
.w-main.fm { background: var(--term); }
.a-sync { font-size: 13px; color: var(--green); margin-left: auto; margin-right: 4px; }
.f-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; }
.f-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.f-pane.srv { border-right: 1px solid var(--sep); }
.f-top { height: 30px; flex: none; display: flex; align-items: center; gap: 5px; padding: 0 8px; border-bottom: 1px solid var(--sep2); font-size: 12px; }
.f-top b { font-weight: 500; }
.f-top .ms { font-size: 15px; color: var(--ink2); }
.f-top .sm { font-size: 13px; margin-left: -3px; }
.f-top .sp, .x-head .sp { flex: 1; }
.f-bar { height: 32px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.f-bar .ms { font-size: 17px; color: var(--ink2); }
.f-nav { display: flex; gap: 12px; }
.f-nav .ms:nth-child(-n+2) { color: var(--ink3); }
.f-tl { display: flex; gap: 12px; margin-left: auto; }
.f-filter { width: 128px; height: 21px; display: flex; align-items: center; gap: 3px; padding: 0 7px; border-radius: 6px; background: var(--field); color: var(--ink2); font-size: 12px; }
.f-filter .ms { font-size: 13px; }
.f-crumb { height: 26px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--ink2); font-size: 12.5px; }
.f-crumb i { font-style: normal; color: var(--ink3); }
.f-head, .f-row { display: grid; align-items: center; padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
.srv .f-head, .srv .f-row { grid-template-columns: minmax(0, 1fr) 62px 124px 92px; }
.s3 .f-head, .s3 .f-row { grid-template-columns: minmax(0, 1fr) 62px 124px; }
.f-head { height: 24px; flex: none; color: var(--ink2); font-weight: 500; border-top: 1px solid var(--sep2); border-bottom: 1px solid var(--sep2); }
.f-head > span { border-left: 1px solid var(--sep2); padding-left: 7px; overflow: hidden; text-overflow: ellipsis; }
.f-head > span:first-child { border-left: 0; padding-left: 0; display: flex; justify-content: space-between; padding-right: 6px; }
.f-head .sm { font-size: 13px; transform: rotate(180deg); }
.f-list { flex: 1; min-height: 0; overflow: hidden; }
.f-row { height: 21.5px; border-bottom: 1px solid var(--sep2); }
.f-row > span { overflow: hidden; text-overflow: ellipsis; }
.f-row .c-n { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.f-row .c-n > .ms { flex: none; } .f-row .c-n .fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.f-ic { font-size: 16px; }
.f-ic.t-ink2 { color: var(--ink2); }
.f-row .c-s { text-align: right; padding-right: 9px; }
.f-row .c-d, .f-row .c-o { padding-left: 7px; }
.f-row .c-p { padding-left: 7px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; color: var(--ink2); }
.f-row.f-new { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.app.play .f-new:not(.in) { display: none; }
.f-foot { height: 22px; flex: none; display: flex; align-items: center; padding: 0 8px; border-top: 1px solid var(--sep2); color: var(--ink2); font-size: 11.5px; }
.f-foot .n5 { display: none; }
.app.done .f-foot .n4, .app:not(.play) .f-foot .n4 { display: none; }
.app.done .f-foot .n5, .app:not(.play) .f-foot .n5 { display: inline; }
.x-panel { flex: none; height: 142px; border-top: 1px solid var(--sep); display: flex; flex-direction: column; }
.x-head { height: 26px; display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 12.5px; border-bottom: 1px solid var(--sep2); }
.x-head .x-act { color: var(--ink2); font-size: 11.5px; }
.x-head .x-none { display: none; }
.x-head .ms { font-size: 16px; color: var(--ink2); }
.x-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 6px; }
.x-ic { width: 17px; height: 17px; border-radius: 50%; background: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.x-ic .ms { font-size: 13px; color: #fff; font-weight: 700; }
.x-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.x-mid b { font-weight: 400; font-size: 12.5px; }
.x-sub { color: var(--ink2); font-size: 11px; }
.x-bar { display: block; height: 3px; border-radius: 2px; background: var(--sep); margin-top: 4px; overflow: hidden; }
.x-bar i { display: block; height: 100%; width: 38%; background: var(--blue); border-radius: 2px; transition: width .3s linear; }
.x-st { color: var(--ink2); font-size: 11.5px; white-space: nowrap; }
.x-row > .ms { font-size: 16px; color: var(--ink2); }
.x-head .x-all, .x-ok, .x-sz { display: none; }
.app.done .x-act, .app.done .x-pa, .app.done .x-pb, .app.done .x-ic, .app.done .x-bar, .app.done .x-st { display: none; }
.app.done .x-all { display: inline; color: var(--ink2); font-size: 11.5px; }
.app.done .x-ok { display: inline-flex; }
.app.done .x-sz { display: inline; color: var(--ink2); font-size: 11.5px; }
.x-ok .ms { font-size: 18px; color: var(--green); }

/* Files as close-ups of one real part each */
.app.frag { display: flex; flex-direction: column; background: var(--term); }
.frag .w-status { flex: none; white-space: nowrap; overflow: hidden; }
.frag .pill-on { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); font-weight: 600; }
.frag .pill-on .ms { font-size: 14px; }
.t-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 38% 62%; }
.t-split .w-term { border-right: 1px solid var(--sep); padding-top: 8px; overflow: hidden; }
.t-split .w-term .tl { white-space: pre; }
.t-split.st { grid-template-columns: 42% 58%; }
.t-split.st .w-side { border-right: 1px solid var(--sep); padding-top: 6px; }
.frag .f-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.frag .f-pane .f-list { flex: 1; }
.frag .f-bar .dim { color: var(--ink3); }
.frag .f-bar .f-filter { width: 92px; }
.frag .f-head, .frag .f-row { grid-template-columns: minmax(0, 1fr) 54px; }
.frag .side .f-head, .frag .side .f-row { grid-template-columns: minmax(0, 1fr) 58px 92px; }
html[lang="en"] .frag .side .f-head, html[lang="en"] .frag .side .f-row { grid-template-columns: minmax(0, 1fr) 50px 66px; }
.frag .f-panes { flex: 1; min-height: 0; }
.frag .f-pane.srv2 { border-right: 1px solid var(--sep); }
.frag .f-row.f-sel { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.app.play.frag .f-new:not(.in) { display: none; }
.x-panel.mini { height: 86px; }
.x-panel.mini .x-row { padding: 7px 10px 5px; }

/* Service pages: Docker, Supervisor, Cron, Security (the same tab as Dashboard and Nginx) */
.pg-top { display: flex; align-items: flex-start; gap: 16px; }
.pg-top > div:first-child { flex: 1; min-width: 0; }
.pg-top .pg-sum { white-space: normal; }
.pg-sum .g { color: var(--ink2); } .pg-sum .r { color: var(--red); } .pg-sum .o { color: var(--orange); }
.pg-right { display: flex; gap: 10px; align-items: center; margin-top: 34px; flex: none; }
.pfind { display: inline-flex; align-items: center; gap: 7px; width: 214px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--seg); color: var(--ink3); font-size: 13.5px; }
.pbtn { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 16px; background: var(--btn); box-shadow: 0 0 0 1px var(--sep); font-size: 13.5px; font-weight: 500; }
.dkp { margin: 8px 0 22px; }
.dgrp { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; margin-bottom: 12px; }
.dgrp b { font-size: 18px; } .dgrp > span { color: var(--ink2); } .dgrp code { color: var(--ink2); font-size: 12.5px; }
.dgrp .sp { flex: 1; } .dgrp .lnk, .dkc .lnk { color: var(--blue); }
.dkg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dkc { background: var(--card); border-radius: 12px; padding: 12px 16px; font-size: 13px; }
.dkc .t { display: flex; align-items: center; gap: 9px; } .dkc .t b { font-size: 15.5px; } .dkc .t span { margin-left: auto; color: var(--ink2); }
.dkc.warn .t span { color: var(--orange); }
.dkc .im { color: var(--ink2); margin: 5px 0 6px 17px; }
.dkc .ft { display: flex; justify-content: space-between; color: var(--ink2); margin-left: 17px; }
.sp2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 14px; }
.h2s { display: flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.h2s i { font-style: normal; font-size: 14px; font-weight: 500; color: var(--ink2); } .h2s i.r { color: var(--red); }
.h2s .lnk { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--blue); }
.spf { background: var(--card); border-radius: 12px; padding: 14px 18px; }
.spf .t { display: flex; align-items: center; gap: 10px; } .spf .t b { font-size: 16px; } .spf .t span { margin-left: auto; font-size: 13.5px; font-weight: 500; }
.spf .r { color: var(--red); }
.spf p { margin: 8px 0 10px 18px; font-size: 14px; line-height: 1.45; }
.spf pre { margin: 0 0 12px 18px; padding: 10px 12px; border-radius: 8px; background: color-mix(in oklab, var(--ink) 6%, var(--card)); color: var(--red); font: 12px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; white-space: pre-wrap; }
.spf .bt { display: flex; gap: 8px; margin-left: 18px; } .spf .bt span { font-size: 13px; font-weight: 500; padding: 5px 13px; border-radius: 14px; background: var(--btn); box-shadow: 0 0 0 1px var(--sep); }
.spf .bt .pri { background: var(--blue); color: #fff; box-shadow: none; }
.sprs { background: var(--card); border-radius: 12px; padding: 4px 0; }
.spr { display: flex; align-items: center; gap: 12px; padding: 9px 16px; font-size: 14px; border-bottom: 1px solid var(--sep2); }
.spr:last-child { border-bottom: 0; }
.spr .nm { flex: 1; min-width: 0; } .spr .nm b { font-weight: 600; }
.spr em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink2); padding: 1px 6px; margin-left: 8px; border-radius: 5px; background: var(--seg); }
.spr code { display: block; margin-top: 2px; color: var(--ink2); font: 12px ui-monospace, 'SF Mono', Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spr > span { text-align: right; font-size: 13px; font-weight: 500; white-space: nowrap; } .spr > span s { text-decoration: none; color: var(--ink2); font-size: 12px; font-weight: 400; }
.cfq { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 12px; margin: 8px 0 22px; }
.cfq > div { padding: 12px 16px 10px; font-size: 13.5px; color: var(--ink2); }
.cfq > div + div { border-left: 1px solid var(--sep2); }
.cfq em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--purple); margin-bottom: 4px; }
.cfq b { color: var(--ink); font-weight: 600; } .cfq span { display: block; text-align: right; margin-top: 6px; font-size: 12.5px; }
.cdays { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cday { position: relative; }
.ch { display: flex; align-items: baseline; gap: 8px; padding: 0 0 8px 14px; border-bottom: 1px solid var(--sep); }
.ch b { font-size: 18px; } .today .ch b { color: var(--red); } .ch span { color: var(--ink2); font-size: 13px; }
.cj { display: flex; gap: 14px; padding: 10px 0 9px 14px; border-bottom: 1px solid var(--sep2); font-size: 14px; }
.cj .tm { font-weight: 600; width: 40px; flex: none; }
.cj b { font-weight: 500; display: block; } .cj div span { color: var(--ink2); font-size: 12px; }
.cj.past, .cj.past b, .cj.past .tm { color: var(--ink3); font-weight: 400; }
.cnow { display: flex; align-items: center; margin-top: -1px; position: relative; top: -2px; }
.cnow b { font-size: 11px; color: #fff; background: var(--red); border-radius: 5px; padding: 1px 5px; }
.cnow i { flex: 1; height: 2px; background: var(--red); }
.cday.today .cj:nth-child(3) { margin-bottom: 0; }
.crare { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 12px 16px; margin-top: 26px; font-size: 13.5px; }
.crare b { font-weight: 600; margin-right: 6px; }
.crare > span:not(.lnk) { padding: 4px 11px; border-radius: 13px; background: var(--seg); }
.crare em { font-style: normal; color: var(--purple); font-weight: 600; margin-right: 4px; }
.crare .lnk { color: var(--blue); }
.cnote { margin-top: 18px; color: var(--ink2); font-size: 13px; }
.fwb { display: flex; gap: 8px; margin: -4px 0 18px; }
.fwb span { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 5px; color: var(--ink2); background: var(--seg); }
.fwb .ok, .cap.ok { color: var(--green); background: color-mix(in srgb, var(--green) 16%, transparent); }
.fwb .bad { color: var(--red); background: color-mix(in srgb, var(--red) 16%, transparent); }
.fwb .ts, .cap.ts { color: var(--blue); background: color-mix(in srgb, var(--blue) 16%, transparent); }
.fwtabs { margin-bottom: 26px; }
.fwh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.fwh b { font-size: 18px; } .fwh > span { color: var(--ink2); font-size: 13.5px; } .fwh .sp { flex: 1; }
.fwh.f2 { align-items: center; margin-top: 30px; } .fwh.f2 .seg2 > span { padding: 4px 13px; font-size: 13px; }
.fwt { background: var(--card); border-radius: 12px; padding: 4px 4px 10px; }
.fwr { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 150px 260px; align-items: center; gap: 10px; height: 42px; padding: 0 12px; font-size: 13.5px; border-bottom: 1px solid var(--sep2); white-space: nowrap; }
.fwr > span { overflow: hidden; text-overflow: ellipsis; }
.fwr.hd { height: 30px; color: var(--ink2); font-size: 12.5px; }
.fwr.sel { background: color-mix(in srgb, var(--blue) 14%, transparent); border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 40%, transparent); }
.fwr .pt { color: var(--ink2); } .fwr .pt b { color: var(--ink); font-size: 14.5px; }
.fwr .wh { color: var(--ink2); } .fwr .wh b { color: var(--ink); margin-right: 4px; }
.fwr .dc { color: var(--ink2); }
.cap { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.cap::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cap.ok::before { display: none; }
.cap.b { color: var(--blue); background: color-mix(in srgb, var(--blue) 16%, transparent); }
.cap.o { color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, transparent); }
.cap.w { color: var(--ink2); box-shadow: inset 0 0 0 1px var(--sep); } .cap.w::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.cap.n { color: var(--ink2); background: var(--seg); } .cap.n::before { width: 7px; height: 1.5px; border-radius: 1px; }
.fwl { display: flex; align-items: center; gap: 10px; padding: 12px 12px 2px; font-size: 13px; color: var(--ink2); }
.fwl code { font: 12.5px ui-monospace, 'SF Mono', Menlo, monospace; word-spacing: 8px; }
.fpc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fpc span { font-size: 12.5px; color: var(--ink2); padding: 4px 10px; border-radius: 7px; background: var(--card); white-space: nowrap; }
.fpc span b { color: var(--ink); } .fpc span.on { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--ink); }
.fpw { padding: 16px; }
.fpath { display: flex; align-items: stretch; }
.fpath .st { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px; background: var(--btn); box-shadow: inset 0 0 0 1.5px var(--sep); font-size: 12.5px; color: var(--ink2); }
.fpath .st em { display: block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin-bottom: 5px; }
.fpath .st b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.fpath .st s { display: block; text-decoration: none; margin-top: 3px; font-size: 11.5px; color: var(--ink3); }
.fpath .from { background: color-mix(in srgb, var(--blue) 14%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--blue); }
.fpath .to { box-shadow: inset 0 0 0 1.5px var(--green); background: color-mix(in srgb, var(--green) 8%, var(--card)); }
.fpath .ar { flex: none; width: 34px; align-self: center; height: 2px; background: var(--blue); position: relative; }
.fpath .ar::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--blue); border-right: 0; }
.fpath .ar.g { background: var(--green); } .fpath .ar.g::after { border-left-color: var(--green); }
.fsum { margin-top: 14px; font-size: 14px; } .fsum b { margin-right: 8px; }
.t-green { color: var(--green); }
.h2.ng-gap { margin-top: 22px; }

/* Database tab: the query editor — toolbar, «Compose» with AI, the SQL editor, results and the completion list */
.q-tb { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; white-space: nowrap; }
.q-tb > span:not(.ms) { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.q-tb i { font-style: normal; font-weight: 400; opacity: .75; font-size: 12px; }
.q-tb .ms { font-size: 15px; }
.q-run { background: var(--blue); color: #fff; }
.q-b { background: var(--sep2); }
.q-b.off { color: var(--ink3); }
.q-b > .ms.t-orange { font-size: 15px; } .q-tb .ms.q-dn { font-size: 13px; color: var(--ink3); margin-left: -2px; }
.q-ai-b { color: var(--purple); background: color-mix(in oklab, var(--purple) 10%, var(--page)); }
.q-tb .sp { flex: 1; }
.q-tb .q-tx { font-weight: 400; color: var(--ink2); padding: 0; }
.q-hi { color: var(--ink2); font-size: 16px !important; }
.q-ai { height: 42px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 8px; white-space: nowrap;
  background: color-mix(in oklab, var(--purple) 4%, var(--page)); border-bottom: 1px solid var(--sep2); }
.q-in { flex: 1; min-width: 0; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 10px; border-radius: 10px; background: var(--page);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--blue) 45%, var(--sep)); font-size: 13.5px; overflow: hidden; }
.q-in > .ms.p { color: var(--purple); font-size: 16px; }
.q-in .js-task { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-in .a-cur { flex: none; margin-right: auto; }
.q-model, .app .btn.agent-cap { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px; border-radius: 12px; background: var(--sep2); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.q-model .a-claude, .btn.agent-cap .a-logo { width: 14px; height: 14px; }
.q-model .g, .btn.agent-cap .g { color: var(--ink2); font-weight: 400; } .q-model .ms, .btn.agent-cap .ms { color: var(--ink3); font-size: 14px; }
.app .btn.agent-cap { height: 26px; border-radius: 13px; }
.q-go { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; }
.q-go .ms { font-size: 16px; font-weight: 600; }
.q-x { color: var(--ink2); }
.q-ed { position: relative; flex: none; height: 228px; padding: 4px 0; background: var(--page); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px;
  box-shadow: inset 3px 0 0 var(--blue); background: color-mix(in oklab, var(--blue) 4%, var(--page)); }
.ql { height: 20px; display: flex; align-items: center; white-space: pre; }
.ql > i { width: 46px; flex: none; text-align: right; padding-right: 18px; font-style: normal; font-size: 11px; color: var(--ink3); }
.ql.sel > span { background: var(--qsel); }
.ql .kw { color: var(--qkw); } .ql .fn { color: var(--qfn); } .ql .st { color: var(--qst); } .ql .nm { color: var(--qnm); } .ql .cm { color: var(--qcm); }
.app.dbwin { --qkw: #9b2393; --qfn: #6c36a9; --qst: #c41a16; --qnm: #1c00cf; --qcm: #5d6c79; --qsel: #dcdcde; }
:where(html:not(.light)) .app.dbwin { --qkw: #fc5fa3; --qfn: #a167e6; --qst: #fc6a5d; --qnm: #d0bf69; --qcm: #7f8c98; --qsel: #3f4351; }
.q-res { flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid var(--sep); }
.q-rh { height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.q-rh > span:not(.sp):not(.g):not(.q-ok) { color: var(--ink2); padding: 4px 11px; border-radius: 7px; }
.q-rh > span.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--sep); }
.q-rh .sp { flex: 1; } .q-rh .q-ok { color: var(--purple); }
.q-msg { display: flex; align-items: center; gap: 14px; padding: 6px 14px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.q-msg b { font-weight: 400; color: var(--ink); } .q-msg code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.qg { display: grid; grid-template-columns: 36px 130px 80px 80px; height: 26px; align-items: center; font-size: 13.5px; border-bottom: 1px solid var(--sep2); font-variant-numeric: tabular-nums; }
.qg > span { padding: 0 8px; text-align: right; border-right: 1px solid var(--sep2); height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.qg > span.tx { justify-content: flex-start; } .qg .qn { color: var(--ink3); font-size: 11px; }
.qg.hd { height: 36px; } .qg.hd > span { flex-direction: column; align-items: flex-end; justify-content: center; line-height: 1.15; } .qg.hd > span.tx { align-items: flex-start; }
.qg.hd b { font-weight: 600; } .qg.hd em { font-style: normal; font-size: 10.5px; color: var(--ink3); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.q-pop { position: absolute; left: 140px; top: 92px; width: 376px; padding: 4px; border-radius: 9px; background: var(--qpop); box-shadow: 0 0 0 1px var(--sep), 0 12px 30px -10px rgba(0, 0, 0, .35); z-index: 3; }
.app.dbwin { --qpop: #e8e8eb; } :where(html:not(.light)) .app.dbwin { --qpop: #2d2e33; }
.qp { height: 24px; display: flex; align-items: center; gap: 9px; padding: 0 8px; border-radius: 5px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; white-space: nowrap; }
.qp .ms { font-size: 14px; color: var(--ink2); }
.qp b { font-weight: 500; flex: 1; } .qp span { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 11.5px; color: var(--ink2); }
.qp.on { background: var(--blue); color: #fff; } .qp.on .ms, .qp.on span { color: #fff; }
.dbwin.play .js-pop:not(.in) { opacity: 0; } .js-pop { transition: opacity .25s; }
.dbwin.play .js-ql:not(.in) { visibility: hidden; }
.dbwin.play:not(.done) .js-ok { visibility: hidden; }
.dbwin.play .ql.js-ql.sel:not(.lit) > span { background: none; }

/* Redis: databases, keys with type, TTL and size, memory by key prefix */
.nt.rd { padding-left: 10px; } .t-red { color: var(--red); }
.rd-top { height: 44px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.rd-top .seg3 em { font-style: normal; font-weight: 400; color: var(--ink2); margin-left: 4px; }
.rd-top .sp { flex: 1; }
.rd-m { width: 300px; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 7px; background: var(--sep2); color: var(--ink2);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; } .rd-m b { color: var(--ink); font-weight: 500; }
.rd-mem { flex: none; padding: 4px 14px 12px; border-bottom: 1px solid var(--sep2); }
.rd-bar { display: flex; height: 9px; border-radius: 3px; overflow: hidden; gap: 2px; }
.rd-bar i, .rd-leg i { display: block; } .rd-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.rd-bar .p, .rd-leg .p { background: #b15de5; } .rd-bar .b, .rd-leg .b { background: #3b82f7; } .rd-bar .g, .rd-leg .g { background: #34c759; }
.rd-bar .o, .rd-leg .o { background: #f09a37; } .rd-bar .c, .rd-leg .c { background: #5ac8fa; } .rd-bar .n, .rd-leg .n { background: #8e8e93; }
.rd-leg { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 9px; font-size: 12.5px; white-space: nowrap; }
.rd-leg code { font-weight: 600; font-size: 12.5px; }
.rd-cap { margin-top: 3px; font-size: 12px; color: var(--ink2); }
.rd-b { flex: 1; min-height: 0; display: grid; grid-template-columns: 500px minmax(0, 1fr); }
.rd-l { position: relative; border-right: 1px solid var(--sep2); overflow: hidden; }
.rk { display: grid; grid-template-columns: 30px minmax(0, 1fr) 90px 90px; align-items: center; height: 30px; padding: 0 14px; font-size: 13px; }
.rk.hd { height: 30px; color: var(--ink2); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--sep2); }
.rk code { font-size: 12.5px; } .rk .tt { text-align: center; color: var(--ink2); } .rk .sz { text-align: right; color: var(--ink2); }
.rk .ty { width: 18px; height: 18px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; }
.rk .ty.s { background: #3b82f7; } .rk .ty.h { background: #a550e6; }
.rd-f { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; display: flex; align-items: center; padding: 0 14px; font-size: 12px; color: var(--ink2); background: var(--page); border-top: 1px solid var(--sep2); }
.rd-r { display: flex; align-items: center; justify-content: center; color: var(--ink3); font-size: 13px; }
.db-h .btn { margin-left: 4px; }

/* AI: «What the agent does in each mode» (the agent popover) and a command card checked by a second model */
.app.modes { --page: #ffffff; background: var(--page); padding: 16px 16px 14px; display: flex; flex-direction: column; }
:where(html:not(.light)) .app.modes { --page: #262729; }
.md-back { display: flex; align-items: center; color: var(--blue); font-size: 13px; } .md-back .flip { transform: scaleX(-1); font-size: 16px; }
.md-t { font-size: 14px; font-weight: 600; margin: 8px 0 10px; }
.mr { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 82px); align-items: center; min-height: 38px; }
.mr.hd { min-height: 46px; } .mr.hd > span { font-size: 11px; color: var(--ink2); text-align: center; line-height: 1.25; padding: 0 4px; }
.mr.hd > span.on { color: var(--blue); font-weight: 600; }
.ml b { display: block; font-size: 13px; font-weight: 500; } .ml span { font-size: 11px; color: var(--ink2); }
.mc { display: flex; justify-content: center; } .mc .ms { font-size: 17px; }
.md-rows { position: relative; }
.md-col { position: absolute; top: -46px; bottom: -4px; left: calc(100% - 246px); width: 82px; border-radius: 8px; background: color-mix(in oklab, var(--blue) 9%, transparent); z-index: 0; }
.mr > * { position: relative; z-index: 1; }
.ms.mo { color: #34c759; } .ms.ma { color: #f09a37; } .ms.mx { color: #eb4e3d; }
.md-in { margin-top: 10px; height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--sep); display: flex; align-items: center; padding: 0 8px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--ink2); }
.md-leg { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11.5px; color: var(--ink2); } .md-leg .ms { font-size: 14px; margin-left: 8px; } .md-leg .ms:first-child { margin-left: 0; }
.app.aipanel { display: flex; } .app.aipanel .ai-panel { --page: #ffffff; flex: 1; }
:where(html:not(.light)) .app.aipanel .ai-panel { --page: #1e1e1e; }
.ai-h b.g { color: var(--ink2); font-weight: 600; }
.ai-tg .give { margin-left: 6px; background: var(--blue); color: #fff; font-weight: 600; padding: 4px 10px; border-radius: 13px; font-size: 12.5px; }
.ai-tg .mode .a-dot.b { background: var(--blue); } .ai-tg .mode { color: var(--ink); }
.ai-card.rv { margin-left: 18px; }
.rv-box { margin: 2px 0 10px; padding: 9px 10px 8px; border-radius: 8px; background: color-mix(in oklab, var(--red) 5%, var(--page)); font-size: 12.5px; }
.rv-h { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.rv-r { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; margin-bottom: 6px; line-height: 1.35; }
.rv-r > span:first-child { color: var(--ink2); } .rv-r .r { color: var(--red); }
.rv-x { color: #c25f0e; font-weight: 500; } :where(html:not(.light)) .rv-x { color: #f0a04b; }
.ai-card .c-b .more { display: inline-flex; align-items: center; gap: 2px; background: none !important; box-shadow: none !important; margin-right: auto; }
.aipanel.play .js-rv:not(.in) { opacity: 0; transform: translateY(4px); } .js-rv { transition: opacity .35s, transform .35s; }

/* Main window with the SFTP panel beside the terminal; a sheet over the window */
.w-main.sftp .t-split.full { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 440px; }
.w-main.sftp .t-split .w-term { border-right: 1px solid var(--sep); }
.app.win .f-pane.side { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--page); }
.app.win .f-pane.side .f-list { flex: 1; }
.app.win .side .f-head, .app.win .side .f-row { grid-template-columns: minmax(0, 1fr) 62px 104px; }
.app.win .f-row.f-sel { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.app.win .f-bar .dim { color: var(--ink3); } .app.win .f-bar .sp { flex: 1; }
.w-status .pill-on { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); font-weight: 600; }
.a-row.cloud .a-nm { color: var(--ink); }
.w-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .18); z-index: 3; }
.app.w-sheet { position: absolute; left: 50%; top: 52px; width: 600px; height: 400px; margin-left: -190px; z-index: 4; border-radius: 0 0 12px 12px;
  box-shadow: 0 0 0 1px var(--win-line), 0 30px 60px -20px rgba(0, 0, 0, .45); }

/* AI panel alone: its turn plays like in the window */
.aip.play .js-step, .aip.play .js-card, .aip.play .js-wait { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.aip.play .in { opacity: 1 !important; transform: none !important; }

/* A view the agent answered with (canvas_view) */
.w-main.vwm, .w-main.cvm { background: var(--page); }
.vw { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vw-h, .cv-h { height: 40px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--sep2); }
.vw-h b, .cv-h b { flex: 1; font-size: 14px; } .cv-h b { flex: none; } .cv-h .sp { flex: 1; } .cv-h .ms { color: var(--ink2); font-size: 17px; }
.vw-b { padding: 18px 24px; display: flex; flex-direction: column; gap: 13px; }
.vw-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vw-card { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--sep); background: var(--page); padding: 14px 14px; }
.vw-m { display: flex; align-items: center; justify-content: space-between; }
.vw-l { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); }
.vw-m b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; } .vw-m b small { font-size: 13px; font-weight: 400; color: var(--ink2); }
.vw-m em { font-style: normal; font-size: 11.5px; } .vw-m em.up { color: var(--oktext); }
.vw-sp { width: 88px; height: 30px; } .vw-sp polyline { fill: none; stroke-width: 2; stroke-linecap: round; }
.vw-g { display: flex; align-items: center; gap: 12px; position: relative; padding: 8px 14px; }
.vw-g svg { width: 76px; height: 76px; transform: rotate(-90deg); } .vw-g circle { fill: none; stroke-width: 7; } .vw-g .bg { stroke: var(--sep); } .vw-g .fg { stroke: #f09a37; stroke-linecap: round; }
.vw-g .pc { position: absolute; left: 14px; width: 76px; text-align: center; font-weight: 700; font-size: 13.5px; }
.vw-g b { display: block; font-size: 14px; } .vw-g span:not(.pc) { font-size: 12.5px; color: var(--ink2); }
.vw-c b { font-size: 14px; } .vw-c svg { width: 100%; margin-top: 10px; display: block; }
.vw-c .gr line { stroke: var(--sep); stroke-width: 1; } .vw-c .gr line.v { stroke-dasharray: 3 4; }
.vw-c .gr text { font-size: 11px; fill: var(--ink2); } .vw-c .gr text.xl { text-anchor: middle; }
.vw-c .ln { fill: none; stroke: var(--blue); stroke-width: 2.2; } .vw-c .dt circle { fill: var(--blue); }
.vw-call { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: 14px;
  background: color-mix(in oklab, var(--orange) 12%, var(--page)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--orange) 35%, transparent); }
.vw-call .ms { color: var(--orange); font-size: 20px; }
.vw-sl { display: flex; justify-content: space-between; font-size: 13px; margin-top: 2px; } .vw-sl b { font-weight: 600; }
.vw-tr { position: relative; height: 18px; display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.vw-tr::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--sep); }
.vw-tr i.js-wt { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: color-mix(in oklab, var(--ink) 30%, var(--page)); width: 20%; transition: width .5s; }
.vw-th { position: absolute; top: 0; left: 20%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 1px 3px rgba(0, 0, 0, .3); transition: left .5s; z-index: 1; }
.vw-tr s { position: relative; top: 9px; width: 2px; height: 2px; border-radius: 50%; background: var(--ink3); }
.vw-tx { font-size: 14px; } .vw-tx b { font-weight: 700; }
.vw-bt { display: flex; gap: 10px; } .vw-bt > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 7px; background: var(--sep2); font-size: 14px; }
.vw-bt .bad { color: var(--red); } .vw-bt .ms { font-size: 16px; }

/* A diagram the agent drew (canvas_show) */
.cv { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cv-b { flex: 1; position: relative; overflow: hidden; background: var(--page); }
.cv-z { position: absolute; left: -6px; top: 80px; width: 1440px; height: 520px; transform: scale(.63); transform-origin: 0 0; }
.cv-g { position: absolute; border-radius: 10px; border: 1.5px solid color-mix(in oklab, var(--blue) 40%, transparent); background: color-mix(in oklab, var(--blue) 5%, transparent);
  padding: 8px 12px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; }
.cv-g.in { border: 1.5px dashed color-mix(in oklab, var(--cyan) 50%, transparent); background: color-mix(in oklab, var(--cyan) 6%, transparent); }
.cv-g b { font-weight: 600; margin-right: 8px; } .cv-g span { color: var(--ink3); }
.cv-e { position: absolute; left: 0; top: 0; width: 1440px; height: 520px; overflow: visible; }
.cv-e path { fill: none; stroke-width: 2.4; } .cv-e .gr { stroke: #34c759; } .cv-e .or { stroke: #f09a37; }
.cv-lb { position: absolute; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; color: var(--ink2); background: var(--page); padding: 1px 6px; border-radius: 6px; }
.cv-n.box span, .cv-n.box b { white-space: nowrap; }
.cv-n { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 13px; }
.cv-n b { font-size: 15px; } .cv-n span { font-size: 12px; color: var(--ink2); } .cv-n > .ms { font-size: 18px; color: var(--blue); }
.cv-n.cloud { border-radius: 46px; background: color-mix(in oklab, var(--blue) 14%, var(--page)); }
.cv-n.hex svg, .cv-n.cyl svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-n.hex polygon { fill: color-mix(in oklab, var(--orange) 12%, var(--page)); stroke: color-mix(in oklab, var(--orange) 55%, transparent); stroke-width: 1.5; }
.cv-n.cyl path { fill: color-mix(in oklab, var(--orange) 12%, var(--page)); stroke: color-mix(in oklab, var(--orange) 55%, transparent); stroke-width: 1.5; } .cv-n.cyl path.t { fill: none; }
.cv-n.hex > *:not(svg), .cv-n.cyl > *:not(svg) { position: relative; } .cv-n.hex > .ms, .cv-n.cyl > .ms { color: var(--orange); }
.cv-n.box { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 0 12px; border-radius: 9px; background: var(--page); text-align: left;
  box-shadow: 0 0 0 1px var(--sep), 0 3px 10px -4px rgba(0, 0, 0, .2); }
.cv-n.box .ci { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in oklab, var(--blue) 14%, transparent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cv-n.box .ci .ms { font-size: 16px; color: var(--blue); } .cv-n.box b { display: block; font-size: 14px; }
.cv-n.box em { display: flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--ink2); } .cv-n.box em .ms { font-size: 13px; }
.cv-n.box.warn { box-shadow: 0 0 0 2px var(--orange), 0 3px 10px -4px rgba(0, 0, 0, .2); }
/* The agent draws on request (cvai): the panel on the right, the canvas plays its steps — a step brings in its part, the rest fades */
.app.cvai { --page: #ffffff; } :where(html:not(.light)) .app.cvai { --page: #1e1e1e; }
.cvai .ai-left { background: var(--page); }
.cvai .ai-body { grid-template-columns: minmax(0, 1fr) 330px; }
.cvai .cv-z { left: -4px; top: 78px; transform: scale(.58); }
.cvai .cv-h .cv-by { font-size: 12px; white-space: nowrap; }
.cv-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-top: 1px solid var(--sep2); font-size: 12.5px; white-space: nowrap; }
.cv-bar .cv-bb { display: inline-flex; gap: 6px; } .cv-bar .cv-bb .ms { font-size: 17px; color: var(--ink2); }
.cv-bar .cv-k { color: var(--ink2); font-variant-numeric: tabular-nums; } .cv-bar b { font-weight: 600; }
.cv-bar .cv-d { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
.cv-bar .cv-all { margin-left: auto; padding-left: 8px; color: var(--blue); }
.cvai .js-cvterm { display: none; flex: 1; }
.cvai.play:not(.shown) .js-cvterm { display: block; } .cvai.play:not(.shown) .cv, .cvai.play:not(.shown) .js-cvtab { display: none; }
.cvai.play:not(.shown) .js-tt { background: var(--tabsel); color: var(--ink); font-weight: 600; }
.cvai.play [data-s] { transition: opacity .45s ease; }
.cvai.play [data-s]:not(.cs-in) { opacity: 0; }
.cvai.play [data-s].cs-in:not(.cs-hl):not(.cv-g) { opacity: .28; }
.cvai .cv-n.box.js-wk:not(.warn) { box-shadow: 0 0 0 1px var(--sep), 0 3px 10px -4px rgba(0, 0, 0, .2); }
.ai-ans { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.aiwin.play .js-ans { opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }

/* MCP: an external agent in a plain Terminal, SSHKipper's Settings → MCP beside it */
.app.mcp { background: transparent; box-shadow: none; overflow: visible; }
.mc-term { position: absolute; left: 0; top: 30px; width: 700px; height: 560px; border-radius: 12px; overflow: hidden; background: #1c1c1e; color: #e6e6e8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -20px rgba(0, 0, 0, .5); font-family: ui-monospace, 'SF Mono', Menlo, monospace; z-index: 1; }
.mc-bar { height: 30px; display: flex; align-items: center; justify-content: center; position: relative; background: #2e2e31; font: 500 12px -apple-system, sans-serif; color: #9a9aa0; }
.mc-dots { position: absolute; left: 12px; display: flex; gap: 7px; } .mc-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mc-dots i:nth-child(2) { background: #febc2e; } .mc-dots i:nth-child(3) { background: #28c840; }
.mc-body { padding: 14px 16px; font-size: 12.5px; line-height: 1.6; }
.mc-l { white-space: pre-wrap; } .mc-l.head { color: #d97757; font-weight: 700; margin-bottom: 8px; } .mc-l.pr { color: #fff; }
.mc-l.call { color: #fff; } .mc-l.call::first-letter { color: #6bd36a; } .mc-l.out { color: #9a9aa0; } .mc-l.ans { color: #e6e6e8; }
.mc-term .a-cur { background: #e6e6e8; }
.mcp.play .mc-l.js-ml:not(.in) { visibility: hidden; }
.mc-set { position: absolute; right: 0; top: 0; width: 600px; height: 640px; border-radius: 12px; background: var(--page); --page: #ffffff; overflow: hidden; z-index: 2;
  box-shadow: 0 0 0 1px var(--win-line), 0 30px 60px -20px rgba(0, 0, 0, .45); padding: 0 0 16px; }
:where(html:not(.light)) .mc-set { --page: #2a2b2f; }
.mc-sb { height: 36px; display: flex; align-items: center; justify-content: center; position: relative; } .mc-sb .a-lights { position: absolute; left: 12px; } .mc-sb b { color: var(--ink2); font-size: 13px; }
.mc-tabs { display: flex; justify-content: center; gap: 2px; padding: 0 0 10px; border-bottom: 1px solid var(--sep2); }
.mc-tabs > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 5px; border-radius: 8px; color: var(--ink2); font-size: 10.5px; white-space: nowrap; }
.mc-tabs .ms { font-size: 22px; } .mc-tabs em { font-style: normal; } .mc-tabs .on { background: var(--sep2); color: var(--ink); }
.mc-h { font-size: 13px; font-weight: 700; margin: 13px 20px 7px; }
.mc-box { margin: 0 16px; border-radius: 9px; background: color-mix(in oklab, var(--ink) 3.5%, var(--page)); padding: 4px 12px; }
.ms-r { display: flex; justify-content: space-between; align-items: center; height: 34px; font-size: 13px; border-bottom: 1px solid var(--sep2); }
.ms-r:last-child { border-bottom: 0; } .ms-r .g { color: var(--ink2); font-size: 12px; } .ms-r .ms { font-size: 14px; color: var(--ink2); }
.ms-n { font-size: 11.5px; color: var(--ink2); padding: 8px 0 6px; line-height: 1.4; }
.ms-c { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--sep2); }
.ms-c:last-child { border-bottom: 0; } .ms-c b { font-size: 12px; grid-column: 1; } .ms-c code { font-size: 11px; grid-column: 1; word-break: break-all; }
.ms-c .ms { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink2); font-size: 16px; }

/* Automation canvas: a fan of checks into AI (the morning check) */
.au-z.fan { top: 40px; height: 360px; width: 1260px; transform: scale(.74); }
.au-z.fan .ac { width: 272px; }
.autowin:not(.play) .ac.warn .ar { color: #c25f0e; } :where(html:not(.light)) .autowin:not(.play) .ac.warn .ar { color: #f0a04b; }
.au-l { position: absolute; left: 0; top: 0; width: 1260px; height: 340px; overflow: visible; }
.au-l path { fill: none; stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 2; }
.ac.ok.warn { border-color: #f0a04b; } .ac.warn .ai .ok { background: #f09a37; } .ac.ok.warn .ar { color: #c25f0e; }
:where(html:not(.light)) .ac.ok.warn .ar { color: #f0a04b; }
.ai.teal { background: color-mix(in oklab, var(--teal) 18%, transparent); color: var(--teal); }
.au-h .st .w { color: #c25f0e; } :where(html:not(.light)) .au-h .st .w { color: #f0a04b; }
.autowin:not(.play) .ac.warn { border-color: #f0a04b; }

/* tmux: the tab's mark and its sessions menu */
.tm-mark { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; color: var(--teal); font-weight: 500; }
.tm-mark .ms { font-size: 15px; }
.w-main.tmx { position: relative; }
.tm-menu { position: absolute; left: 352px; top: 104px; width: 270px; padding: 5px; border-radius: 9px; z-index: 4; font-size: 13px;
  background: color-mix(in oklab, var(--page) 92%, var(--ink)); box-shadow: 0 0 0 .5px var(--win-line), 0 12px 28px -8px rgba(0, 0, 0, .3); }
.tm-h { font-size: 11.5px; color: var(--ink2); padding: 4px 10px 5px; }
.tm-i { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 6px; border-radius: 5px; }
.tm-i > .ms, .tm-i > i { width: 16px; font-size: 14px; flex: none; } .tm-i b { font-weight: 400; } .tm-i > span:not(.ms) { margin-left: auto; color: var(--ink2); font-size: 12px; }
.tm-i.on { background: var(--blue); color: #fff; } .tm-i.on > span:not(.ms) { color: rgba(255, 255, 255, .8); }
.tm-s { height: 1px; background: var(--sep); margin: 5px 8px; }
.tmx .w-term .tl.dim { color: var(--tdim); }
/* tmux survives a drop: running → lost → back in the same session, which redraws the finished release */
.tmx .tx-ok { color: var(--tg); } .tmx .tx-run { color: var(--orange); } .tmx .tx-red { color: var(--red); }
.tmx .tx-d { color: var(--tdim); margin-left: 2ch; } .tmx .tx-bar { color: var(--tb); letter-spacing: -.5px; }
.tmx .tx-b, .tmx .tx-lost, .win.done .w-status .st-ok.tx-off { display: none; }
.app.tx-back .tmx .tx-a { display: none; } .app.tx-back .tmx .tx-b { display: block; }
.app.tx-lost .tmx .tx-lost { display: block; }
.app.tx-lost .w-status .st-ok.tx-on { display: none; } .app.tx-lost .w-status .st-ok.tx-off { display: inline-flex; }
.app.tx-lost .w-status .tm-mark { opacity: .45; }

/* A command on several servers: one row per server */
.w-main.snm { background: var(--page); }
.sn-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--sep2); }
.sn-h > div { flex: 1; } .sn-h b { display: block; font-size: 17px; } .sn-h code { font-size: 12px; color: var(--ink2); }
.sn-h .g { font-size: 13px; }
.sn-r { padding: 9px 20px 9px; border-bottom: 1px solid var(--sep2); }
.sn-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .sn-t b { font-weight: 600; }
.sn-t .sp { flex: 1; } .sn-t .g { font-size: 12.5px; } .sn-t u { text-decoration: none; color: var(--blue); font-size: 13px; }
.sn-ok { color: var(--green); font-size: 17px; } .sn-bad { color: var(--red); font-size: 17px; } .sn-e { color: var(--red); font-size: 13px; }
.sn-r code { display: block; margin: 3px 0 0 25px; font-size: 12px; color: var(--ink2); white-space: pre; }
/* Row states while the group runs: waiting (clock), connecting (spinner), then the result */
.sn-m { display: inline-flex; width: 17px; justify-content: center; } .sn-m > * { display: none; }
.sn-r.ok .sn-ok, .sn-r.bad .sn-bad { display: inline-block; }
.sn-w { color: var(--ink3); font-size: 16px; } .sn-s { display: none; color: var(--ink3); font-size: 12.5px; }
.sn-sp { width: 13px; height: 13px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--ink2) 30%, transparent); border-top-color: var(--ink2); animation: sn-spin .8s linear infinite; }
@keyframes sn-spin { to { transform: rotate(360deg); } }
.app.play .sn-r[data-st="w"] .sn-w, .app.play .sn-r[data-st="c"] .sn-sp { display: inline-block; }
.app.play .sn-r[data-st="w"] .sn-ok, .app.play .sn-r[data-st="c"] .sn-ok, .app.play .sn-r[data-st="w"] .sn-bad, .app.play .sn-r[data-st="c"] .sn-bad { display: none; }
.app.play .sn-r[data-st="w"] .sn-s:not(.c), .app.play .sn-r[data-st="c"] .sn-s.c { display: inline; }
.app.play .sn-r[data-st="w"] :is(code, .sn-e, .sn-tm, u), .app.play .sn-r[data-st="c"] :is(code, .sn-e, .sn-tm, u) { display: none; }
.app.play .sn-r[data-st="w"], .app.play .sn-r[data-st="c"] { padding-bottom: 9px; }
.sn-r code { animation: none; } .app.play .sn-r:is(.ok, .bad)[data-st] code { animation: sn-out .35s ease; }
@keyframes sn-out { from { opacity: 0; transform: translateY(-3px); } }
.app .btn.sn-stop { display: none; } .app.play.sn-going .btn.sn-stop { display: inline-flex; } .app.play.sn-going .btn.sn-fin { display: none; }
/* The phases before the run: the terminal behind the editor and the picker, the new node and tab after «Create» */
.sn-term { display: none; }
.app.play:not(.sn-p-run) .sn-term { display: block; } .app.play:not(.sn-p-run) .sn { display: none; }
.app.play:not(.sn-p-run) .js-sntab { display: none; } .app.play:not(.sn-p-run) .js-snt0 { background: var(--tabsel); color: var(--ink); font-weight: 600; }
.app.play:not(.sn-made) .js-snnode { display: none; }
.sn-dim, .snx { display: none; }
.app.play.sn-p-ed .sn-dim, .app.play.sn-p-pk .sn-dim { display: block; }
.app.play.sn-p-ed .sn-ed, .app.play.sn-p-pk .sn-pk { display: block; animation: snx-in .25s ease; }
@keyframes snx-in { from { opacity: 0; transform: translateY(-8px); } }
.snx { --sx: #ffffff; position: absolute; left: 451px; top: 52px; width: 540px; z-index: 4; background: var(--sx); border-radius: 0 0 12px 12px; font-size: 13px;
  box-shadow: 0 0 0 1px var(--win-line), 0 30px 60px -20px rgba(0, 0, 0, .45); }
:where(html:not(.light)) .snx { --sx: #2b2d38; }
.snx-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--sep2); }
.snx-h b { display: block; font-size: 17px; font-weight: 600; } .snx-h span, .snx-h code { font-size: 12.5px; color: var(--ink2); }
.snx-h.t b { font-size: 15px; margin-bottom: 2px; } .snx-h code { font-size: 11.5px; }
.snx-tile { width: 38px; height: 38px; border-radius: 9px; background: var(--orange); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.snx-tile .ms { color: #fff; font-size: 22px; }
.snx-b { padding: 12px 20px 14px; } .snx-l { font-size: 12px; font-weight: 600; color: var(--ink2); margin: 0 0 6px 2px; }
.snx-f { border-radius: 8px; background: color-mix(in oklab, var(--ink) 4%, var(--sx)); box-shadow: 0 0 0 1px var(--sep2); padding: 10px 12px; }
.snx-f code { font-size: 12.5px; color: var(--ink); white-space: pre; } .snx-f .a-cur { display: none; vertical-align: -2px; }
.app.play.sn-typing .snx-f .a-cur { display: inline-block; }
.snx-rds { display: flex; align-items: center; gap: 14px; margin-top: 52px; padding-top: 10px; border-top: 1px solid var(--sep2); font-size: 12.5px; }
.snx-rd { display: inline-flex; align-items: center; gap: 6px; } .snx-rd i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink3); }
.snx-rd.on i { box-shadow: inset 0 0 0 4px var(--blue); }
.snx-n { margin: 8px 2px 0; font-size: 11.5px; line-height: 1.45; color: var(--ink2); }
.snx-ft { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 20px 12px; border-top: 1px solid var(--sep2); }
.snx-ft .sp { flex: 1; } .snx-ft .g { font-size: 12.5px; }
.snx .btn.pri { background: var(--blue); color: #fff; transition: filter .15s, transform .15s; } .snx .btn.pri.press { filter: brightness(.85); transform: scale(.96); }
.snx-sr { display: flex; align-items: center; gap: 8px; padding: 10px 20px 6px; }
.snx-in { flex: 1; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 7px; box-shadow: 0 0 0 1px var(--sep); color: var(--ink3); }
.snx-in .ms { font-size: 15px; }
.snx-ls { padding: 4px 12px 10px; }
.snx-c { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 8px; border-radius: 6px; }
.snx-c:nth-child(odd) { background: color-mix(in oklab, var(--ink) 3.5%, transparent); } .snx-c .g { font-size: 12px; }
.snx-cb { width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ink3); display: inline-flex; align-items: center; justify-content: center; }
.snx-cb .ms { font-size: 13px; color: #fff; opacity: 0; font-weight: 700; }
.snx-c.js-snc .snx-cb { background: var(--blue); box-shadow: none; } .snx-c.js-snc .snx-cb .ms { opacity: 1; }
.app.play .snx-c.js-snc:not(.in) .snx-cb { background: none; box-shadow: inset 0 0 0 1px var(--ink3); } .app.play .snx-c.js-snc:not(.in) .snx-cb .ms { opacity: 0; }

/* Tunnels: the tunnel's card over the window, the summary in the toolbar, a switch */
.app.te { position: absolute; left: 50%; top: 70px; width: 780px; height: 500px; margin-left: -390px; z-index: 4; border-radius: 12px; display: flex; flex-direction: column;
  --page: #ffffff; background: var(--page); box-shadow: 0 0 0 1px var(--win-line), 0 30px 60px -20px rgba(0, 0, 0, .45); }
:where(html:not(.light)) .app.te { --page: #262835; }
.te-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--sep2); }
.te-logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--sep); display: flex; align-items: center; justify-content: center; }
.te-logo img { width: 26px; height: 26px; } .te-top b { display: block; font-size: 16px; } .te-top span { font-size: 12px; color: var(--ink2); }
.te-top > div { flex: 1; } .te-dots { display: flex; gap: 6px; } .te-dots i { width: 13px; height: 13px; border-radius: 50%; }
.te-dots .c0 { box-shadow: inset 0 0 0 2px var(--ink2); } .te-dots .c1 { background: #eb4e3d; } .te-dots .c2 { background: #f09a37; } .te-dots .c3 { background: #f4cf3f; }
.te-dots .c4 { background: #34c759; } .te-dots .c5 { background: #5ac8fa; } .te-dots .c6 { background: #3b82f7; } .te-dots .c7 { background: #a550e6; } .te-dots .c8 { display: none; }
.te-b { flex: 1; min-height: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.te-nav { padding: 10px 8px; border-right: 1px solid var(--sep2); }
.te-nav > span { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 13px; } .te-nav .on { background: var(--blue); color: #fff; }
.te-nav .ms { font-size: 16px; }
.te-main { padding: 12px 16px; overflow: hidden; }
.te-route { border-radius: 10px; background: color-mix(in oklab, var(--ink) 3.5%, var(--page)); padding: 10px 12px; position: relative; }
.te-h { display: flex; gap: 10px; padding: 4px 0; position: relative; }
.te-h:not(:last-of-type)::after { content: ''; position: absolute; left: 10px; top: 26px; bottom: -6px; width: 1.5px; background: var(--sep); }
.te-i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: color-mix(in oklab, var(--teal) 16%, transparent); color: var(--teal); }
.te-i .ms { font-size: 14px; } .te-h.mac .te-i { background: var(--sep2); color: var(--ink2); } .te-h.dst .te-i { background: var(--blue); color: #fff; }
.te-h b { font-size: 13px; margin-right: 6px; } .te-h code { font-size: 11.5px; color: var(--ink2); }
.te-cs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; } .te-cs em { font-style: normal; font-size: 11px; color: var(--ink3); }
.te-c { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--chip-gt); background: var(--chip-g); padding: 1px 7px; border-radius: 8px; }
.te-c .ms { font-size: 12px; } .te-l { font-size: 11px; font-weight: 600; color: var(--blue); background: color-mix(in oklab, var(--blue) 14%, transparent); padding: 1px 7px; border-radius: 8px; }
.te-ok { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink2); margin-top: 6px; } .te-ok .ms { color: var(--green); font-size: 14px; }
.te-sec { font-size: 13px; font-weight: 700; margin: 14px 0 6px 4px; }
.te-box { border-radius: 10px; background: color-mix(in oklab, var(--ink) 3.5%, var(--page)); padding: 0 12px; }
.te-r { display: flex; align-items: center; justify-content: space-between; height: 38px; font-size: 13px; border-bottom: 1px solid var(--sep2); }
.te-r:last-child { border-bottom: 0; } .te-r .ms { font-size: 14px; color: var(--ink2); } .te-r .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.te-f { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--sep2); font-size: 12.5px; } .te-f .sp { flex: 1; }
.tw { display: inline-block; width: 34px; height: 20px; border-radius: 10px; background: var(--sep); position: relative; flex: none; transition: background .3s; }
.tw i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: left .3s; }
.tw.on { background: var(--green); } .tw.on i { left: 16px; }
.a-row .tw { margin-left: auto; transform: scale(.85); }
.tp { position: absolute; right: 10px; top: 54px; width: 420px; z-index: 4; border-radius: 12px; padding: 10px 12px; font-size: 13px;
  background: color-mix(in oklab, var(--page) 94%, var(--ink)); box-shadow: 0 0 0 .5px var(--win-line), 0 16px 36px -10px rgba(0, 0, 0, .35); }
.tp-h { font-size: 11.5px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.tp-r { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--sep2); }
.tp-r img { width: 22px; height: 22px; } .tp-r div { flex: 1; min-width: 0; } .tp-r b { display: block; font-weight: 600; } .tp-r div span { font-size: 11.5px; color: var(--ink2); }
.tp-p { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; font-weight: 600; color: var(--chip-gt); background: var(--chip-g); padding: 2px 7px; border-radius: 5px; }
.tp-r > .ms { font-size: 16px; color: var(--ink2); }
.tp-f { display: flex; padding-top: 8px; font-size: 12.5px; } .tp-f u { text-decoration: none; color: var(--blue); } .tp-f u.r { color: var(--red); } .tp-f .sp { flex: 1; }
.tun.play .js-tw:not(.on) i { left: 2px; }

/* The service at the tunnel's end in a browser on this Mac (an illustration) */
.app.brw { display: flex; flex-direction: column; background: #111217; }
.br-bar { height: 44px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--bar); color: var(--ink2); }
.br-n { display: flex; gap: 10px; } .br-u { flex: 1; height: 28px; border-radius: 8px; background: var(--page); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink); }
.gf { flex: 1; padding: 14px 18px; color: #ccccdc; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.gf-h { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 14px; } .gf-h img { width: 22px; } .gf-h b { color: #fff; } .gf-h .sp { flex: 1; }
.gf-t { font-size: 12px; padding: 4px 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(204, 204, 220, .2); }
.gf-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gf-st { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.gf-s { background: #181b1f; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(204, 204, 220, .1); padding: 10px 12px; }
.gf-s span { display: block; font-size: 12.5px; } .gf-s b { display: block; margin-top: 8px; font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.gf-p { background: #181b1f; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(204, 204, 220, .1); padding: 10px 12px 8px; }
.gf-p b { font-size: 13px; font-weight: 500; color: #ccccdc; } .gf-p svg { width: 100%; height: 162px; display: block; margin-top: 6px; }
.gf-p polyline { fill: none; stroke-width: 1.6; }
.tmx .tm-menu { opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; } .app.menu .tmx .tm-menu, .app:not(.play) .tmx .tm-menu.always { opacity: 1; transform: none; }

/* Node logos (NodeIcons.brand): brand colour, deepened on light and lifted on dark; black and white brands follow the text */
svg.lgo { fill: var(--lc, currentColor); flex: none; }
.a-row svg.lgo { width: 16px; height: 16px; margin: 0 1px; }
:where(html:not(.light)) svg.lgo { fill: var(--ld, currentColor); }

/* fastfetch (gen.py, fastfetch()): its ANSI colours on the terminal's own background; «white» and «black» follow the theme */
.w-term .tl.nf { white-space: pre; font-variant-ligatures: none; }   /* the logos are ASCII art: «--», «::» stay apart */
.nf .f30 { color: #3a3a3a; } .nf .f31 { color: #c91b00; } .nf .f32 { color: #00a600; } .nf .f33 { color: #a5a100; } .nf .f34 { color: #0225c7; }
.nf .f35 { color: #b42fb2; } .nf .f36 { color: #00a5a7; } .nf .f37 { color: #8c8c8c; } .nf .f91 { color: #e8392f; } .nf .f93 { color: #a8a300; }
.nf .f202 { color: #e2570b; }

  :where(html:not(.light)) .nf .f30 { color: #686868; } :where(html:not(.light)) .nf .f31 { color: #ff5f56; } :where(html:not(.light)) .nf .f32 { color: #3ed63e; } :where(html:not(.light)) .nf .f33 { color: #e5e04a; } :where(html:not(.light)) .nf .f34 { color: #5c78ff; }
  :where(html:not(.light)) .nf .f35 { color: #e55fe3; } :where(html:not(.light)) .nf .f36 { color: #3fd8da; } :where(html:not(.light)) .nf .f37 { color: #d9d9d9; } :where(html:not(.light)) .nf .f91 { color: #ff6e67; } :where(html:not(.light)) .nf .f93 { color: #fffc67; }
  :where(html:not(.light)) .nf .f202 { color: #ff7a2e; }

.nf .b40 { background: #1e1e1e; } .nf .b41 { background: #c91b00; } .nf .b42 { background: #00c200; } .nf .b43 { background: #c7c400; }
.nf .b44 { background: #0225c7; } .nf .b45 { background: #c930c7; } .nf .b46 { background: #00c5c7; } .nf .b47 { background: #c7c7c7; }
.nf .b100 { background: #686868; } .nf .b101 { background: #ff6e67; } .nf .b102 { background: #5ffa68; } .nf .b103 { background: #fffc67; }
.nf .b104 { background: #6871ff; } .nf .b105 { background: #ff77ff; } .nf .b106 { background: #60fdff; } .nf .b107 { background: #ffffff; }

/* The live hero window (demo.js) */
.app.demo .a-row, .app.demo .w-tab, .app.demo .w-plus, .app.demo .st-r > span, .app.demo .a-rb, .app.demo .a-grp .ms,
.app.demo .w-pal, .app.demo .w-search, .app.demo .d-unlock { cursor: pointer; }
.app.demo .w-term { cursor: text; }
.app.demo .a-row:hover:not(.sel) { background: color-mix(in oklab, var(--ink) 5%, transparent); }
.app.demo .w-tab:not(.sel):hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.a-row.d-hid, .a-row.d-miss { display: none; }
.a-row.d-hit { display: flex !important; }
.d-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.d-panes { min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.d-panes.sr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .d-panes.sb { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.d-panes.sr .d-pane + .d-pane { border-left: 1px solid var(--sep); } .d-panes.sb .d-pane + .d-pane { border-top: 1px solid var(--sep); }
.d-pane { overflow: hidden; }
.d-in { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.app.demo.d-typing .d-cur .a-cur { animation: d-blink 1.05s steps(1) infinite; }
@keyframes d-blink { 50% { opacity: 0; } }
.d-state { display: inline-flex; align-items: center; gap: 7px; }
.st-r .d-sr.on, .st-r .d-sb.on { color: var(--blue); }
.w-main.d-empty { position: relative; }
.w-main.d-empty::after { content: attr(data-empty); position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: var(--ink3); font-size: 15px; }
.d-sbtn { display: none !important; } .app.win.d-noside .d-sbtn { display: inline-flex !important; margin-right: 8px; }
.app.win.d-noside { grid-template-columns: 0 minmax(0, 1fr); } .app.win.d-noside .w-side { visibility: hidden; }
.app.win { transition: grid-template-columns .3s ease; }
.d-toast { position: absolute; left: 50%; bottom: 18px; z-index: 8; transform: translate(-50%, 8px); display: flex; align-items: center; gap: 9px; max-width: 640px;
  padding: 10px 14px; border-radius: 10px; background: var(--page); box-shadow: 0 0 0 1px var(--sep), 0 12px 30px -8px rgba(0, 0, 0, .3); font-size: 13.5px;
  opacity: 0; transition: opacity .25s, transform .25s; }
.d-toast.on { opacity: 1; transform: translate(-50%, 0); } .d-toast .ms { color: var(--blue); font-size: 18px; }
.d-toast a { margin-left: 4px; color: var(--blue); font-weight: 600; white-space: nowrap; text-decoration: none; }
.d-lock { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: color-mix(in oklab, var(--page) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transition: opacity .35s; border-radius: inherit; }
.d-lock.on { opacity: 1; } .d-lock.ok { opacity: 0; }
.d-lock img { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 6px; } .d-lock b { font-size: 20px; } .d-lock > span:not(.d-unlock) { color: var(--ink2); font-size: 13.5px; }
.d-unlock { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; }
.d-unlock .ms { font-size: 20px; }
.w-bar { position: relative; }
.d-pal { position: absolute; top: 44px; z-index: 7; padding: 6px; border-radius: 12px; background: var(--page); box-shadow: 0 0 0 1px var(--sep), 0 18px 40px -12px rgba(0, 0, 0, .35); }
.d-pal-in { width: 100%; height: 30px; border: 0; outline: 0; border-radius: 8px; padding: 0 10px; background: var(--seg); color: var(--ink); font: inherit; font-size: 13.5px; }
.d-pal-l { margin-top: 6px; max-height: 300px; overflow: hidden; }
.d-pal-i { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.d-pal-i b { font-weight: 600; } .d-pal-i span:last-child { margin-left: auto; color: var(--ink2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-pal-i.on, .d-pal-i:hover { background: color-mix(in oklab, var(--blue) 16%, transparent); }
.d-pal-x { padding: 8px 10px; color: var(--ink2); font-size: 13px; }
.d-srch { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; padding: 0; }
.ai-card.d-done { border-color: color-mix(in oklab, var(--green) 55%, transparent); background: color-mix(in oklab, var(--green) 8%, var(--page)); }
.ai-card.d-off { opacity: .75; }
.ai-card .d-res { font-size: 13px; color: var(--ink); font-weight: 500; } .ai-card.d-done .d-res { color: #23863a; }
:where(html:not(.light)) .ai-card.d-done .d-res { color: #5fd07f; }
.ai-card .d-again { color: var(--blue); background: none !important; box-shadow: none !important; }
.app.demo .w-tree { overflow-y: auto; scrollbar-width: none; } .app.demo .w-tree::-webkit-scrollbar { display: none; }
.app.demo .w-tab { flex: 0 1 212px; min-width: 96px; }
.d-side-l { display: none; } .app.win.d-noside .d-side-l { display: inline-flex; margin-right: 14px; }
.ai-card .d-res { min-height: 2.9em; }
.d-pane .tl:not(.nf) { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Settings → «Безопасность» (security story): the toolbar of panes and the pane's grouped rows */
.app.secset { --page: #ffffff; --grp: #f4f4f5; display: flex; flex-direction: column; background: var(--page); }
:where(html:not(.light)) .app.secset { --page: #262833; --grp: #2e303c; }
.ss-t { height: 30px; flex: none; position: relative; display: flex; align-items: center; padding: 0 10px; }
.ss-t b { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink2); }
.ss-bar { flex: none; display: flex; justify-content: center; gap: 2px; padding: 0 10px 8px; border-bottom: 1px solid var(--sep2); }
.ss-bar > span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 6px 4px; border-radius: 8px; color: var(--ink2); min-width: 60px; }
.ss-bar .ms { font-size: 24px; }
.ss-bar em { font-style: normal; font-size: 11px; white-space: nowrap; }
.ss-bar > .on { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink); }
.ss-b { flex: 1; min-height: 0; overflow: hidden; padding: 4px 20px 0; }
.ss-h { font-size: 13px; font-weight: 700; margin: 16px 0 8px; }
.ss-g { border-radius: 10px; background: var(--grp); padding: 0 12px; }
.ss-r { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 0; font-size: 13px; border-top: 1px solid var(--sep2); }
.ss-r:first-child { border-top: 0; }
.ss-r > b { flex: 1; font-weight: 400; }
.ss-r > div { flex: 1; } .ss-r > div b { display: block; font-weight: 400; } .ss-r > div span { font-size: 11.5px; color: var(--ink2); }
.ss-r .btn { flex: none; padding: 3px 10px; border-radius: 6px; background: color-mix(in oklab, var(--ink) 8%, var(--grp)); font-size: 12.5px; }
.ss-v, .ss-pop { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink); }
.ss-v .ms, .ss-pop .ms { font-size: 15px; color: var(--ink2); }
.ss-n { margin: 6px 2px 0; font-size: 11px; line-height: 1.45; color: var(--ink2); }
.ss-n.in { margin: 0; padding: 0 0 10px; }
.ss-r .sw.on { background: var(--blue); }

/* «Описать для AI»: the unsaved draft over its cards */
.au-draft { position: absolute; left: 14px; right: 14px; top: 12px; z-index: 2; padding: 10px 14px 12px; border-radius: 12px;
  background: color-mix(in oklab, var(--purple) 7%, var(--page)); box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--purple) 55%, transparent); font-size: 12px; }
.dr-h { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.dr-h .ms { font-size: 16px; } .dr-h .g { color: var(--ink2); } .dr-h .sp { flex: 1; }
.dr-h .btn { padding: 3px 10px; border-radius: 6px; background: color-mix(in oklab, var(--ink) 8%, var(--page)); font-size: 12px; }
.dr-add { display: flex; align-items: center; gap: 5px; margin: 8px 0 6px; color: var(--green); font-weight: 600; font-size: 11.5px; }
.dr-add .ms { font-size: 14px; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dr-chips span { padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: var(--green); background: color-mix(in oklab, var(--green) 12%, transparent); }
.dr-w { font-size: 11px; color: var(--ink2); margin-bottom: 3px; }
.dr-l { line-height: 1.55; }
.au-z.fan.dr { top: 128px; }
.ac.nw { border-color: color-mix(in oklab, var(--purple) 60%, transparent); border-style: dashed; }
.au-req { position: absolute; left: 50%; bottom: 62px; transform: translateX(-62%); width: 500px; display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-req .ms { font-size: 14px; }

/* Privacy (security story): what stays on this Mac, where each thing goes, and what the developer gets */
.app.privacy { --page: transparent; background: transparent; box-shadow: none; overflow: visible; }
.pv-mac { position: absolute; left: 200px; top: 36px; width: 440px; }
.pv-lid { padding: 9px; border-radius: 16px 16px 0 0; border: 1.6px solid color-mix(in oklab, var(--ink) 28%, transparent); border-bottom: 0;
  background: color-mix(in oklab, var(--ink) 9%, var(--canvasbg, #fff)); }
.pv-scr { height: 268px; border-radius: 5px; padding: 26px 26px 0; display: flex; flex-direction: column; gap: 18px;
  background: color-mix(in oklab, var(--green) 6%, var(--canvasbg, #fff)); }
.pv-doc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--canvasbg, #fff);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--green) 40%, transparent); font-size: 15px; }
.pv-doc .ms { font-size: 20px; color: var(--green); }
.pv-doc em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--green); }
.pv-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-in > span { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; font-size: 13px; background: color-mix(in oklab, var(--ink) 5%, transparent); }
.pv-in .ms { font-size: 16px; color: var(--ink2); }
.pv-here { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: auto; padding-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--green); }
.pv-here .ms { font-size: 17px; }
.pv-deck { position: relative; display: block; height: 13px; margin: 0 -28px; border-radius: 2px 2px 9px 9px; background: color-mix(in oklab, var(--ink) 26%, var(--canvasbg, #fff)); }
.pv-deck::after { content: ''; position: absolute; left: 50%; top: 0; width: 60px; height: 4px; margin-left: -30px; border-radius: 0 0 4px 4px; background: color-mix(in oklab, var(--ink) 12%, var(--canvasbg, #fff)); }
.pv-ln { position: absolute; left: 0; top: 0; width: 1180px; height: 600px; overflow: visible; }
.pv-ln path { fill: none; stroke: color-mix(in oklab, var(--blue) 70%, transparent); stroke-width: 2.2; }
.pv-ln path.no { stroke: #e5533d; stroke-dasharray: 5 5; }
.pv-x { position: absolute; left: 409px; top: 357px; width: 22px; height: 22px; border-radius: 50%; background: #e5533d; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.pv-x .ms { font-size: 15px; }
.pv-ds { position: absolute; left: 770px; top: 56px; width: 330px; display: flex; flex-direction: column; gap: 35px; }
.pv-d, .pv-dh { display: flex; align-items: center; gap: 12px; }
.pv-d { height: 80px; padding: 0 16px; border-radius: 14px; background: var(--canvasbg, #fff); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 12%, transparent); }
.pv-i { width: 38px; height: 38px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--blue) 14%, transparent); color: var(--blue); }
.pv-i .ms { font-size: 21px; }
.pv-d.p .pv-i { background: color-mix(in oklab, var(--purple) 14%, transparent); color: var(--purple); }
.pv-d b, .pv-dh b { display: block; font-size: 15px; }
.pv-d span:not(.pv-i):not(.ms), .pv-dh div > span { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.pv-dev { position: absolute; left: 140px; top: 400px; width: 560px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in oklab, var(--ink) 4%, var(--canvasbg, #fff)); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 14%, transparent); }
.pv-dh .pv-i { background: color-mix(in oklab, #e5533d 14%, transparent); color: #e5533d; }
.pv-gs { display: flex; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); }
.pv-gs em { flex: none; font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); padding-top: 2px; }
.pv-g { flex: 1; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--ink2); }
.pv-g b { display: block; color: var(--ink); font-weight: 600; }
.app.privacy { --canvasbg: #ffffff; }
:where(html:not(.light)) .app.privacy { --canvasbg: #1b1d26; }

/* How AI works without the secrets (security story): three equal columns, two rows of cells, straight arrows on the rows */
.app.aisec { --canvasbg: #ffffff; --red: #d4402b; background: transparent; box-shadow: none; overflow: visible; }
:where(html:not(.light)) .app.aisec { --canvasbg: #1b1d26; --red: #ff7a66; }
.sd-ln { position: absolute; left: 0; top: 0; width: 1180px; height: 400px; overflow: visible; }
.sd-ln line { stroke-width: 2.4; } .sd-ln line.r { stroke: var(--red); } .sd-ln line.p { stroke: var(--purple); }
.sd-ln marker path.r { fill: var(--red); } .sd-ln marker path.p { fill: var(--purple); }
.sd-col { position: absolute; border-radius: 18px; background: var(--canvasbg); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 14%, transparent), 0 12px 32px -20px rgba(0, 0, 0, .35); }
.sd-col.mac { background: color-mix(in oklab, var(--green) 5%, var(--canvasbg)); box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--green) 40%, transparent), 0 12px 32px -20px rgba(0, 0, 0, .35); }
.sd-col.ai { background: color-mix(in oklab, var(--purple) 5%, var(--canvasbg)); box-shadow: none; outline: 1.5px dashed color-mix(in oklab, var(--purple) 55%, transparent); outline-offset: -1.5px; }
.sd-ch { position: absolute; left: 14px; right: 14px; top: 14px; height: 24px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sd-ch .ms { font-size: 20px; color: var(--ink2); }
.sd-col.mac .sd-ch .ms { color: var(--green); } .sd-col.ai .sd-ch .ms { color: var(--purple); }
.sd-ch > span:not(.ms) { margin-left: auto; font-size: 11.5px; color: var(--ink2); }
.sd-cell { position: absolute; left: 12px; right: 12px; height: 72px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 13px;
  background: var(--canvasbg); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 11%, transparent); }
.sd-cell > div { min-width: 0; }
.sd-cell b { display: block; font-size: 13.5px; white-space: nowrap; }
.sd-cell div > span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-cell code { font: 600 11.5px ui-monospace, 'SF Mono', Menlo, monospace; }
.sd-cell div > span code { font-weight: 600; color: var(--purple); }
.sd-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink2); }
.sd-ic .ms { font-size: 20px; }
.sd-ic.p { background: color-mix(in oklab, var(--purple) 13%, transparent); color: var(--purple); }
.sd-ic.k { background: color-mix(in oklab, #ff3b5c 13%, transparent); color: #ff3b5c; }
.sd-keep { position: absolute; left: 12px; right: 12px; height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px;
  border: 1.5px dashed color-mix(in oklab, var(--green) 45%, transparent); font-size: 11.5px; color: var(--green); }
.sd-keep .ms { font-size: 15px; }
.sd-chip { position: absolute; width: 180px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.sd-chip em { font-style: normal; font-size: 11.5px; color: var(--ink2); }
.sd-v { padding: 4px 9px; border-radius: 8px; background: var(--canvasbg); font: 11px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; white-space: nowrap; color: var(--ink); }
.sd-chip.r .sd-v { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--red) 55%, transparent); } .sd-chip.r b { color: var(--red); }
.sd-chip.p .sd-v { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--purple) 55%, transparent); } .sd-chip.p b { color: var(--purple); }
.sd-leg { position: absolute; left: 0; right: 0; top: 370px; display: flex; justify-content: center; gap: 22px; font-size: 12px; color: var(--ink2); }
.sd-leg span { display: inline-flex; align-items: center; gap: 7px; }
.sd-leg i { width: 18px; height: 3px; border-radius: 2px; } .sd-leg i.r { background: var(--red); } .sd-leg i.p { background: var(--purple); }

/* Modules and SDK: an agent writing a module, its section in the app, a gallery of anything, sharing */
.app.modag, .app.modgal, .app.modsh { --canvasbg: #ffffff; background: transparent; box-shadow: none; overflow: visible; }
:where(html:not(.light)) .app.modag, :where(html:not(.light)) .app.modgal, :where(html:not(.light)) .app.modsh { --canvasbg: #1e2029; }
.mx-term { position: absolute; left: 30px; top: 80px; width: 680px; height: 440px; border-radius: 14px; overflow: hidden; background: #14161d; color: #d9dce6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.mx-tt { height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 13px; }
.mx-tt img { width: 16px; height: 16px; } .mx-tt > span:not(.a-lights) { margin-left: auto; color: #8a90a2; font-size: 12px; }
.mx-tt .a-lights { margin-right: 6px; }
.mx-tb { padding: 22px 24px; font: 13.5px/1.75 ui-monospace, 'SF Mono', Menlo, monospace; }
.mx-l { white-space: normal; } .mx-l + .mx-l { margin-top: 6px; }
.mx-l.me { color: #fff; margin-bottom: 14px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.mx-l .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34c759; margin-right: 10px; vertical-align: 1px; }
.mx-l .t { color: #c792ff; } .mx-l em { font-style: normal; color: #e7c27d; } .mx-l b { color: #5fd07f; font-weight: 600; }
.mx-l.done { margin-top: 16px; color: #fff; padding: 8px 0; }
.mx-cur { display: inline-block; width: 8px; height: 16px; background: #d9dce6; vertical-align: -3px; }
.mx-arrow { position: absolute; left: 724px; top: 278px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--blue) 14%, var(--canvasbg)); color: var(--blue); }
.mx-arrow .ms { font-size: 22px; }
.mx-pkg { position: absolute; left: 778px; top: 92px; width: 370px; padding: 18px; border-radius: 16px; background: var(--canvasbg);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 13%, transparent), 0 24px 50px -30px rgba(0, 0, 0, .45); }
.mx-ph { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mx-ph > .ms { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 23px;
  background: color-mix(in oklab, var(--purple) 14%, transparent); color: var(--purple); }
.mx-ph b { display: block; font-size: 17px; } .mx-ph div span { font-size: 12px; color: var(--ink2); }
.mx-f { display: flex; align-items: center; gap: 8px; height: 30px; font: 12.5px ui-monospace, 'SF Mono', Menlo, monospace; }
.mx-f.in { padding-left: 22px; } .mx-f .ms { font-size: 16px; color: var(--ink2); }
.mx-chips { display: flex; gap: 6px; margin-top: 14px; }
.mx-chips span { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--purple); background: color-mix(in oklab, var(--purple) 12%, transparent); }

.app.modapp { display: flex; flex-direction: column; background: var(--page); }
.mx-wt { height: 40px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--sep2); background: var(--bar); font-size: 13px; }
.mx-wb { flex: 1; display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 0; }
.mx-side { background: var(--side); padding: 10px 8px; border-right: 1px solid var(--sep2); }
.mx-sr { display: flex; align-items: center; gap: 7px; height: 30px; border-radius: 7px; font-size: 13px; }
.mx-sr .ms { font-size: 17px; color: var(--ink2); } .mx-sr em { margin-left: auto; margin-right: 8px; font-style: normal; font-size: 10.5px; color: var(--ink2); }
.mx-sr.sel { background: var(--blue); color: #fff; } .mx-sr.sel .ms, .mx-sr.sel em { color: #fff; }
.mx-main { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mx-mh { display: flex; align-items: center; gap: 12px; }
.mx-tile { width: 38px; height: 38px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #326ce5; color: #fff; }
.mx-tile .ms { font-size: 22px; }
.mx-tile.green { background: #34a853; } .mx-tile.orange { background: #e8873a; } .mx-tile.blue { background: #326ce5; }
.mx-mh b { display: block; font-size: 17px; } .mx-mh div span { font-size: 12px; color: var(--ink2); }
.mx-mh .sp { flex: 1; } .mx-main .btn, .mx-gc .btn, .mx-dlg .btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 7px; font-size: 12.5px;
  background: color-mix(in oklab, var(--ink) 8%, var(--page, #fff)); }
.mx-ch { display: flex; gap: 8px; }
.mx-ch span { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.mx-ch .ok { color: #2a9d4b; background: color-mix(in oklab, #34c759 14%, transparent); } .mx-ch .warn { color: #c46f12; background: color-mix(in oklab, #f09a37 15%, transparent); }
.mx-ch .bad { color: #d4402b; background: color-mix(in oklab, #eb4e3d 14%, transparent); }
.mx-r { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px 170px 80px 80px; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.mx-r.hd { height: 26px; font-size: 11.5px; color: var(--ink2); }
.mx-r:not(.hd):nth-child(odd) { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.mx-r.sel { background: color-mix(in oklab, var(--blue) 16%, transparent) !important; }
.mx-r .n { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }
.mx-r .n i { width: 8px; height: 8px; border-radius: 50%; } .mx-r i.ok { background: #34c759; } .mx-r i.warn { background: #f09a37; } .mx-r i.bad { background: #eb4e3d; }
.mx-r .st.bad { color: #d4402b; font-weight: 600; } .mx-r .st.warn { color: #c46f12; } .mx-r .c { text-align: right; }
.mx-log { margin-top: auto; padding: 12px 14px; border-radius: 10px; background: color-mix(in oklab, var(--ink) 5%, transparent); }
.mx-lh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; } .mx-lh span:not(.btn) { color: var(--ink2); font-size: 12px; } .mx-lh .sp { flex: 1; }
.mx-log code { display: block; font: 12px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; color: #d4402b; }
.mx-main .btn.red, .mx-lh .btn.red { color: #d4402b; }
:where(html:not(.light)) .mx-ch .ok { color: #5fd07f; } :where(html:not(.light)) .mx-ch .warn { color: #f0a04b; } :where(html:not(.light)) .mx-ch .bad, :where(html:not(.light)) .mx-r .st.bad, :where(html:not(.light)) .mx-log code, :where(html:not(.light)) .mx-lh .btn.red { color: #ff7a66; } :where(html:not(.light)) .mx-r .st.warn { color: #f0a04b; }

.app.modgal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 40px 24px; align-content: center; }
.mx-g { display: flex; flex-direction: column; gap: 12px; }
.mx-ask { font-size: 17px; letter-spacing: -.01em; text-align: center; } .mx-ask b { color: #2a9d4b; }
:where(html:not(.light)) .mx-ask b { color: #5fd07f; }
.mx-gc { padding: 16px; border-radius: 16px; background: var(--canvasbg); box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 13%, transparent), 0 24px 50px -30px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; gap: 12px; height: 310px; }
.mx-gh { display: flex; align-items: center; gap: 11px; } .mx-gh b { display: block; font-size: 15px; } .mx-gh div span { font-size: 11.5px; color: var(--ink2); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.mx-gh em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--purple); background: color-mix(in oklab, var(--purple) 12%, transparent); }
.mx-ms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mx-m { padding: 10px 12px; border-radius: 10px; background: color-mix(in oklab, var(--ink) 5%, transparent); }
.mx-m span { display: block; font-size: 11.5px; color: var(--ink2); } .mx-m b { font-size: 21px; letter-spacing: -.02em; }
.mx-m.ok b { color: #2a9d4b; } .mx-m.bad b { color: #d4402b; }
:where(html:not(.light)) .mx-m.ok b { color: #5fd07f; } :where(html:not(.light)) .mx-m.bad b { color: #ff7a66; }
.mx-bar { display: grid; grid-template-columns: minmax(0, 1fr) 70px 42px; align-items: center; gap: 8px; font-size: 12px; }
.mx-bar > i { height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 10%, transparent); overflow: hidden; }
.mx-bar > i > i { display: block; height: 100%; border-radius: 3px; background: #34c759; } .mx-bar.warn > i > i { background: #f09a37; }
.mx-bar b { text-align: right; font-weight: 600; } .mx-bar.warn b { color: #c46f12; }
.mx-pl { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-pl span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 12px ui-monospace, 'SF Mono', Menlo, monospace; background: color-mix(in oklab, var(--ink) 6%, transparent); }
.mx-pl i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.mx-bt { margin-top: auto; display: flex; gap: 8px; } .mx-gc .btn { --page: var(--canvasbg); }

.mx-code { position: absolute; left: 30px; top: 150px; width: 520px; border-radius: 14px; overflow: hidden; background: #14161d; color: #d9dce6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.mx-cb { padding: 20px 22px; font: 13px/1.85 ui-monospace, 'SF Mono', Menlo, monospace; }
.mx-cb .k { color: #82aaff; } .mx-cb .v { color: #c3e88d; }
.mx-pack { position: absolute; left: 574px; top: 150px; width: 250px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mx-pack > code { font: 12px ui-monospace, 'SF Mono', Menlo, monospace; padding: 6px 10px; border-radius: 8px; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.mx-pack > i { width: 2px; height: 36px; background: color-mix(in oklab, var(--ink) 25%, transparent); }
.mx-file { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 22px; border-radius: 16px; background: var(--canvasbg);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--purple) 40%, transparent), 0 20px 40px -26px rgba(0, 0, 0, .45); }
.mx-file .ms { font-size: 34px; color: var(--purple); } .mx-file b { font: 600 14px ui-monospace, 'SF Mono', Menlo, monospace; } .mx-file span { font-size: 12px; color: var(--ink2); }
.mx-oss { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink2); } .mx-oss .ms { font-size: 17px; color: var(--ink); }
.mx-dlg { position: absolute; left: 836px; top: 100px; width: 328px; display: flex; gap: 12px; padding: 18px; border-radius: 14px; background: var(--canvasbg);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 13%, transparent), 0 30px 60px -30px rgba(0, 0, 0, .55); }
.mx-dlg > img { width: 44px; height: 44px; flex: none; }
.mx-dlg b { display: block; font-size: 13px; line-height: 1.35; } .mx-dlg p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--ink2); }
.mx-db { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; } .mx-dlg .btn { --page: var(--canvasbg); }
.mx-dlg .btn.blue { background: var(--blue); color: #fff; }
.mx-ck { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; font-size: 11.5px; line-height: 1.4; }
.mx-ck > i { width: 13px; height: 13px; flex: none; margin-top: 1px; border-radius: 4px; background: var(--canvasbg);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 30%, transparent); }

/* An extension's node type and its tab (docs/EXTENSIONS.md «Свои экраны», the SDK's node-type example): the toolbar, the
   summary, a split — the checks in a table on the left, the selected one's live chart and history on the right. */
.w-main.xn { background: var(--page); }
.a-row.xn-off .a-nm, .a-row.xn-off .a-sb { color: var(--ink3); } .a-row.xn-off .a-ic { opacity: .45; }
.xn-dbi, .xd-hi { color: var(--yellow); } .db-h .ms.xd-hi { font-size: 19px; }
.xn-scr { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 18px 14px; }
.xn-h { font-size: 17px; font-weight: 700; margin: 2px 0 10px; }
.xn-tb { display: flex; gap: 8px; }
.xn-tb > span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; background: var(--page); box-shadow: inset 0 0 0 1px var(--sep); }
.xn-tb .ms { font-size: 15px; } .xn-tb .r { color: var(--red); }
.xn-sum { margin: 12px 0 10px; font-size: 13px; } .xn-sum b { font-weight: 700; }
.xn-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 548px minmax(0, 1fr); }
.xn-l { padding-right: 12px; border-right: 1px solid var(--sep); min-width: 0; display: flex; flex-direction: column; }
.xn-rp { padding-left: 14px; min-width: 0; display: flex; flex-direction: column; }
.xn-cap { flex: none; font-size: 13px; font-weight: 700; margin: 6px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xn-t { border-radius: 6px; box-shadow: inset 0 0 0 1px var(--sep); overflow: hidden; }
.xn-l .xn-t, .xn-t.xn-hist { flex: 1; min-height: 0; }
.xn-r { display: grid; grid-template-columns: 222px 150px 46px 42px minmax(0, 1fr); height: 24px; font-size: 12.5px; }
.xn-hist .xn-r { grid-template-columns: 96px 52px minmax(0, 1fr); }
.xn-r > span { padding: 0 6px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--sep2); }
.xn-r > span:last-child { border-right: 0; } .xn-r > .n { text-align: right; font-variant-numeric: tabular-nums; }
.xn-r.hd { font-weight: 600; font-size: 12px; background: color-mix(in oklab, var(--ink) 4%, transparent); border-bottom: 1px solid var(--sep2); }
.xn-r.sel { background: color-mix(in oklab, var(--ink) 9%, transparent); } .xn-r.bad { color: var(--red); }
.xn-card { flex: none; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--sep); padding: 9px 10px 4px; }
.xn-card b { font-size: 13px; }
.xn-ch { display: block; width: 100%; height: auto; margin-top: 4px; }
.xn-ch line { stroke: var(--sep); stroke-width: 1; } .xn-ch line.v { stroke-dasharray: 2 3; }
.xn-ch text { font-size: 9.5px; fill: var(--ink2); font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; }
.xn-ch path { fill: none; stroke: var(--blue); stroke-width: 1.8; } .xn-ch circle { fill: var(--blue); }

/* A database engine from an extension in the usual tab: the editor shorter, so the week's rows fit under it */
.app.xdb .q-ed { height: 168px; }

/* Settings → Extensions (ExtensionsSettings): the window on a transparent stage */
.app.xset { --canvasbg: #ffffff; --grp: #f4f4f5; background: transparent; box-shadow: none; overflow: visible; }
:where(html:not(.light)) .app.xset { --canvasbg: #262833; --grp: #2e303c; }
.xs-win { position: absolute; left: 250px; top: 4px; width: 680px; height: 592px; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--canvasbg); box-shadow: 0 0 0 1px var(--win-line), 0 30px 60px -30px rgba(0, 0, 0, .45); }
.xs-tt { height: 28px; flex: none; position: relative; display: flex; align-items: center; padding: 0 10px; }
.xs-tt b { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink2); }
.xs-bar { flex: none; display: flex; justify-content: center; gap: 2px; padding: 0 10px 8px; border-bottom: 1px solid var(--sep2); }
.xs-bar > span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 6px 4px; border-radius: 8px; color: var(--ink2); min-width: 60px; }
.xs-bar .ms { font-size: 24px; } .xs-bar em { font-style: normal; font-size: 11px; white-space: nowrap; }
.xs-bar > .on { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink); }
.xs-seg { flex: none; align-self: center; display: flex; margin: 12px 0 2px; padding: 2px; border-radius: 7px; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.xs-seg span { padding: 2px 14px; border-radius: 5px; font-size: 12.5px; }
.xs-seg .on { background: var(--canvasbg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.xs-h { flex: none; font-size: 13px; font-weight: 700; margin: 12px 20px 8px; }
.xs-g { margin: 0 20px; border-radius: 10px; background: var(--grp); padding: 0 12px; }
.xs-r { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--sep2); }
.xs-r:first-child { border-top: 0; }
.xs-i .ms { font-size: 18px; } .xs-i.o { color: var(--orange); } .xs-i.r { color: var(--red); } .xs-i.g { color: var(--green); } .xs-i.bl { color: var(--blue); }
.xs-m { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.xs-m p { margin: 0; font-size: 12px; line-height: 1.3; }
.xs-t { display: flex; align-items: center; gap: 6px; white-space: nowrap; } .xs-t b { font-size: 13px; } .xs-t .g { font-size: 11px; }
.xs-k { display: flex; flex-wrap: wrap; gap: 4px; }
.xs-c { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 99px; font-size: 10px; font-weight: 600; white-space: nowrap;
  color: var(--ink2); background: color-mix(in oklab, var(--ink) 8%, transparent); }
.xs-c .ms { font-size: 11px; }
.xs-c.y { color: #a07200; background: color-mix(in oklab, var(--yellow) 22%, transparent); }
.xs-c.b { color: var(--blue); background: color-mix(in oklab, var(--blue) 12%, transparent); }
.xs-c.o { color: #c46f12; background: color-mix(in oklab, var(--orange) 20%, transparent); }
:where(html:not(.light)) .xs-c.y { color: var(--yellow); } :where(html:not(.light)) .xs-c.o { color: var(--orange); } :where(html:not(.light)) .xs-c.b { color: #78b0ff; }
.xs-m p.xs-sup { font-size: 11px; color: var(--ink2); }
.xs-m p.xs-f { font-size: 10.5px; color: var(--ink3); }
.xs-rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.xs-sw { width: 30px; height: 17px; border-radius: 9px; background: var(--blue); position: relative; }
.xs-sw i { position: absolute; top: 1.5px; right: 1.5px; width: 18px; height: 14px; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.xs-more { width: 17px; height: 17px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.2px var(--ink2); color: var(--ink2); }
.xs-more .ms { font-size: 13px; }

/* 2026-11-06, the app of today: an extension's screen says whose it is (ExtensionScreenStrip) */
.xn-own { height: 22px; flex: none; display: flex; align-items: center; gap: 5px; padding: 0 12px; font-size: 11px; color: var(--ink2); border-bottom: 1px solid var(--sep2); }
.xn-own .ms { font-size: 12px; }
.ms-r .sw.on { background: var(--blue); }
.au-bc { display: inline-flex; align-items: center; gap: 2px; color: var(--ink2); font-size: 14px; }
.au-bc .ms { font-size: 14px; }
.au-ls { display: flex; align-items: center; gap: 6px; }
.au-ls { margin-bottom: 8px; } .au-ls .db-s { flex: 1; min-width: 0; margin-bottom: 0; }
.au-ls > .ms { color: var(--ink2); font-size: 16px; flex: none; }

/* a module's section: the services page of the server's tab (ServicePageKit), the module's segment after supervisor */
.app.modapp { background: var(--page); }
.mxp-h { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.mxp-h b { font-size: 15px; font-weight: 700; }
.mxp-seg { display: flex; gap: 2px; padding: 3px; border-radius: 17px; background: var(--seg); margin: 0 auto; }
.mxp-seg span { padding: 6px 14px; font-size: 13.5px; font-weight: 500; border-radius: 14px; }
.mxp-seg span.on { background: var(--segon); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.mxp-h .rb { width: 32px; height: 32px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); box-shadow: 0 0 0 1px var(--sep); font-size: 16px; }
.mxp-b { flex: 1; min-height: 0; padding: 6px 36px 0; display: flex; flex-direction: column; }
.mxp-t { font-size: 27px; font-weight: 700; letter-spacing: -.01em; }
.mxp-s { font-size: 13.5px; margin: 4px 0 14px; }
.mxp-cs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mxp-c { height: 74px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--sep); padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.mxp-c > span { font-size: 10.5px; color: var(--ink2); display: flex; align-items: center; gap: 5px; }
.mxp-c > span i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.mxp-c > b { font-size: 26px; font-weight: 600; }
.mxp-c.bad > b { color: var(--red); }
.mxp-c.ring { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; position: relative; }
.mxp-c.ring svg { width: 56px; height: 56px; transform: rotate(-90deg); flex: none; }
.mxp-c.ring circle { fill: none; stroke: var(--sep); stroke-width: 4.5; } .mxp-c.ring circle.v { stroke: var(--green); stroke-linecap: round; }
.mxp-c.ring em { position: absolute; left: 14px; width: 56px; text-align: center; font-style: normal; font-size: 12px; font-weight: 600; }
.mxp-c.ring b { display: block; font-size: 13px; } .mxp-c.ring div span { font-size: 10.5px; color: var(--ink2); }
.mxp-f { width: 290px; height: 30px; margin: 14px 0 12px; border-radius: 15px; background: var(--seg); display: flex; align-items: center; gap: 6px; padding: 0 11px; color: var(--ink3); font-size: 13px; }
.mxp-sh { font-size: 15px; font-weight: 700; margin-bottom: 8px; } .mxp-sh span { font-size: 12.5px; font-weight: 400; color: var(--ink2); margin-left: 8px; }
.mxp-l { border-radius: 10px; background: color-mix(in oklab, var(--ink) 3%, var(--page)); overflow: hidden; }
.mxp-r { height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--sep2); }
.mxp-r:last-child { border-bottom: 0; }
.mxp-r.sel { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.mxp-r > i { width: 7px; height: 7px; border-radius: 50%; flex: none; } .mxp-r i.ok { background: var(--green); } .mxp-r i.bad { background: var(--red); } .mxp-r i.warn { background: var(--orange); }
.mxp-r > div { flex: 1; min-width: 0; } .mxp-r > div b { display: block; font-size: 13px; font-weight: 600; } .mxp-r > div span { font-size: 11.5px; color: var(--ink2); }
.mxp-r > em { font-style: normal; font-size: 12px; color: var(--ink2); }
.mxp-r > u { text-decoration: none; font-size: 11px; font-weight: 600; color: var(--ink2); padding: 2px 7px; border-radius: 5px; background: var(--sep2); }
.mxp-r > .ms { font-size: 17px; color: var(--ink2); }

/* the install question scrolls its facts (SSHAlert): a fixed height with the scroller, the box's note outside it */
.mx-sc { position: relative; max-height: 176px; overflow: hidden; margin-top: 2px; padding-right: 10px; }
.mx-sc .mx-sbar { position: absolute; right: 1px; top: 4px; width: 5px; height: 92px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 35%, transparent); }
.mx-dlg p.mx-bn { margin-top: 10px; }
.app.modsh .mx-dlg { top: 64px; }

.au-h:has(.au-bc) { gap: 7px; padding-right: 10px; }
.au-h:has(.au-bc) .seg2 { margin-left: 4px; }
.au-h:has(.au-bc) .seg2 > span { padding: 5px 11px; }
.au-h:has(.au-bc) .rb { margin: 0 1px; }
.app.aipanel:not(.aip) .ai-card code.c-c { padding: 3px 8px; }
.ai-m:has(.ai-cap) { padding-top: 1px; padding-bottom: 6px; }

/* point.3.connected.trianglepath.dotted: Material «share» turned so two nodes sit on top and one below */
.ms.r90 { transform: rotate(-90deg); }

/* ---------- 2FA, passwords and key passphrases for an ssh the app didn't start (TerminalCodePlate, TerminalAutofillView) ---------- */
.w-main.otm { position: relative; }
.a-dot.bl { background: var(--blue); }
.ms.flipx { transform: scaleX(-1); }
.ot-st { display: inline-flex; align-items: center; gap: 7px; }
.t-indigo { color: #5e5ce6; }
.otp .ot-s { display: none; }
.otp:not(.v2):not(.v3) .ot-s.s1, .otp.v2 .ot-s.s2, .otp.v3 .ot-s.s3 { display: block; }
.ot-p { display: inline-flex; align-items: center; gap: 10px; margin: 3px 0 5px; padding: 7px 6px 7px 12px; border-radius: 10px;
  background: color-mix(in oklab, var(--page) 88%, var(--ink) 4%); box-shadow: inset 0 0 0 1px var(--sep), 0 2px 8px rgba(0, 0, 0, .18);
  font-family: Inter, system-ui, sans-serif; white-space: nowrap; color: var(--ink); }
.ot-p > .ms:first-child { font-size: 17px; }
.ot-pt b { display: block; font-size: 12.5px; font-weight: 600; } .ot-pt span { font-size: 11px; color: var(--ink2); }
.ot-b { margin-left: 8px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 11px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }
.ot-b i { font-style: normal; font-weight: 500; opacity: .6; font-size: 11px; }
.ot-w { display: none; margin-left: 8px; font-size: 11.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ot-p.wt .ot-b { display: none; } .ot-p.wt .ot-w { display: inline; }
.ot-x { font-size: 17px; color: var(--ink2); margin-left: 4px; }
.otp.play .ot-p:not(.in), .ot-p.gone { display: none; }
/* without the animation (final frames, reduced motion): each part at its telling moment */
.otp:not(.play) .s1 .p1, .otp:not(.play) .s1 .a2,
.otp:not(.play) .s2 .a1, .otp:not(.play) .s2 .a2, .otp:not(.play) .s2 .p2 { display: none; }
.ot-dlg { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); width: 430px; display: none; gap: 14px; padding: 18px 18px 16px;
  border-radius: 14px; background: var(--page); box-shadow: 0 0 0 1px var(--sep), 0 16px 44px rgba(0, 0, 0, .28); z-index: 3; }
.otp.v2:not(.play) .ot-dlg, .otp.ot-dl .ot-dlg { display: flex; }
.ot-dlg > img { width: 46px; height: 46px; flex: none; border-radius: 10px; }
.ot-dlg b { display: block; font-size: 13.5px; } .ot-dlg p { margin: 6px 0 10px; font-size: 12px; line-height: 1.45; color: var(--ink2); }
.ot-f { display: flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--sep); background: var(--page); }
.ot-f i { font-style: normal; letter-spacing: 1px; font-size: 13px; } .ot-f i::after { content: '●●●●●●●●●●●'; }
.otp.play .ot-f i::after { content: attr(data-d); }
.ot-f u { width: 1px; height: 15px; background: var(--ink); margin-left: 1px; }
.ot-db { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ot-db span { padding: 5px 14px; border-radius: 13px; background: var(--btn); font-size: 12.5px; font-weight: 500; box-shadow: 0 0 0 .5px var(--sep); }
.ot-pop { position: absolute; top: 116px; right: 52px; width: 372px; display: none; flex-direction: column; border-radius: 12px; background: var(--page);
  box-shadow: 0 0 0 1px var(--sep), 0 14px 40px rgba(0, 0, 0, .26); z-index: 3; font-size: 12px; }
.ot-pop::before { content: ''; position: absolute; top: -7px; right: 42px; width: 14px; height: 14px; background: var(--page); transform: rotate(45deg);
  box-shadow: -1px -1px 0 0 var(--sep); }
.otp.v3:not(.play) .ot-pop, .otp.ot-on .ot-pop { display: flex; }
.otp.v3:not(.play) .ot-key, .otp.ot-on .ot-key { color: var(--blue); }
.ot-q { display: flex; align-items: center; gap: 7px; padding: 12px 14px 6px; color: var(--ink3); font-size: 13.5px; } .ot-q .ms { font-size: 17px; color: var(--ink2); }
.ot-ask { display: flex; align-items: center; gap: 6px; padding: 2px 14px 9px; color: var(--ink2); font-size: 11.5px; border-bottom: 1px solid var(--sep2); white-space: nowrap; }
.ot-tc { color: var(--blue); font-size: 12px; display: inline-flex; align-items: center; } .ot-tc i { width: 1px; height: 12px; background: currentColor; margin-left: 1px; }
.ot-ls { padding: 2px 8px 6px; }
.ot-h { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); padding: 8px 6px 4px; }
.ot-r { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 7px; transition: background .25s; }
.ot-r.sel { background: color-mix(in oklab, var(--blue) 13%, transparent); }
.ot-i { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ot-i .ms { font-size: 15px; }
.ot-i.ot-ind { color: #5e5ce6; background: rgba(94, 92, 230, .13); } .ot-i.ot-or { color: #e8810a; background: rgba(232, 129, 10, .13); } .ot-i.ot-gr { color: var(--green); background: color-mix(in oklab, var(--green) 13%, transparent); }
.ot-r > div { flex: 1; min-width: 0; } .ot-r b { display: block; font-size: 12.5px; font-weight: 500; } .ot-r > div span { font-size: 11px; color: var(--ink2); }
.ot-r em { font-style: normal; font-size: 11px; color: var(--ink2); font-variant-numeric: tabular-nums; } .ot-r > i { font-style: normal; font-size: 11px; color: var(--ink2); visibility: hidden; }
.ot-r.sel > i { visibility: visible; }
.ot-ft { display: flex; gap: 14px; padding: 8px 12px; border-top: 1px solid var(--sep2); color: var(--ink2); font-size: 11.5px; }
.ot-ft i { font-style: normal; padding: 1px 6px; border-radius: 4px; background: var(--sep2); margin-right: 5px; }
.otp .a-row.ot-new { display: none; }
.otp.v3 .a-row.ot-new, .otp.ot-sv .a-row.ot-new { display: flex; }
.otp .w-term .tl.ok { color: var(--green); }
