:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --panel: #111113;
  --line: #222227;
  --text: #e6e6ea;
  --muted: #7d7d86;
  --dim: #55555d;
  --accent: #8fb4ff;
  --branch: #c3a6ff;
  --sel: #1c1d2b;
  --ok: #57d38c;
  --busy: #f2c14e;
  --warn: #ff8a5c;
  --off: #55555d;
  /* the rest of the palette; every value here is overwritten by the theme (theme.js, themes/*.json) */
  --hover: #18181c;
  --soft: #c9c9d0;
  --on-accent: #0b0b10;
  --selection: #2f4a8a;
  --selection-text: #ffffff;
  --plus-bg: rgba(87, 211, 140, .13);
  --plus-text: #b8f0cf;
  --minus-bg: rgba(255, 138, 92, .13);
  --minus-text: #ffc3ab;
  --hunk-bg: rgba(143, 180, 255, .07);
  --shade: rgba(0, 0, 0, .5);
  --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 14px/1.4 var(--mono); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
kbd { border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
/* what you select with the mouse: the theme says both colors, so it reads on a light theme too */
::selection { background: var(--selection); color: var(--selection-text); }

/* the phone's status bar and gesture bar: the app draws behind them (Android 15+), so it starts below
   and ends above, and the strips take the theme's background. In the Android app Capacitor gives the
   sizes as --safe-area-inset-*; a browser gives env(); a computer, 0 */
/* the shape of the window, which a theme can change too (themes/README.md, «forma»): these defaults are
   Atril's flat look; neon.json floats the sidebar and the terminals as rounded windows with gaps and a
   glowing edge on the one in focus, as a tiling Linux desktop (Hyprland) does */
:root {
  --gap: 0px;                      /* around the sidebar and the terminal */
  --radius: 0px;                   /* their corners, and the board's panes */
  --edge: 0px;                     /* their edge; the one in focus is painted with focus-edge */
  --edge-color: var(--line);
  --focus-edge: var(--accent);     /* a color or a gradient */
  --glow: none;                    /* a box-shadow around the one in focus */
  --side-edge: 0 1px 0 0;          /* the sidebar's border widths */
  --tab-radius: 0px; --tab-margin: 0px; --tab-sep: 1px solid var(--line);
  --accent-fill: var(--accent);    /* the tab on screen: a color or a gradient */
  --pane-gap: 1px; --board-pad: 0px; --board-bg: var(--line);
}
:root { --sat: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); --sab: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)); }
#app { display: flex; height: 100dvh; box-sizing: border-box; padding-top: var(--sat); padding-bottom: var(--sab); }

/* sidebar */
#side { width: 280px; flex: none; background: var(--panel); border-style: solid; border-color: var(--edge-color); border-width: var(--side-edge); display: flex; flex-direction: column; padding: 14px 10px; gap: 6px; position: relative; }
#side.collapsed { width: 0; padding: 0; overflow: hidden; border: 0; }
.brand { font-weight: 700; padding: 0 8px 10px; letter-spacing: .5px; }
.brand .ext { color: var(--muted); font-weight: 400; }
.brand .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.label { color: var(--muted); padding: 12px 8px 4px; font-weight: 600; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.label.split { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label.split > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label.split .mini { flex: none; white-space: nowrap; }
.label .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.mini { color: var(--accent); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.mini:hover { text-decoration: underline; }
.search { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 4px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--dim); font-size: 13px; text-align: left; }
.search:hover { border-color: var(--muted); color: var(--muted); }
.search kbd { font-size: 10px; color: var(--dim); }

/* devices: this computer first, then the connected ones */
#devices li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 0 6px; padding: 7px 8px; border-radius: 4px; cursor: pointer; border-left: 2px solid transparent; }
#devices li:hover { background: var(--hover); }
#devices li.on { background: var(--sel); border-left-color: var(--accent); }
#devices li.on .dn { font-weight: 700; color: var(--text); }
#devices .ic { color: var(--muted); display: flex; }
#devices li.on .ic { color: var(--accent); }
#devices .dn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
#devices .ds { font-size: 11px; color: var(--dim); }
#devices .ds.warn { color: var(--warn); }
#devices .ds.busy { color: var(--busy); }
#devices .ds.upd { color: var(--accent); }
.addrow { margin: 2px 2px 0; padding: 7px 10px; border: 1px dashed var(--line); border-radius: 5px; color: var(--muted); font-size: 13px; text-align: left; }
.addrow:hover { border-color: var(--accent); color: var(--accent); }
.st.none { background: transparent; }
.row { display: flex; justify-content: space-between; padding: 8px 8px 6px; border-bottom: 1px solid var(--line); margin-top: auto; }
.link { color: var(--muted); padding: 2px 0; }
.link:hover { color: var(--text); }
.small { position: absolute; bottom: 10px; right: 12px; }

#spaces li { padding: 6px 8px; border-radius: 3px; cursor: pointer; display: grid; grid-template-columns: 14px 1fr auto; gap: 0 6px; align-items: baseline; }
#spaces li:hover { background: var(--hover); }
#spaces li.on { background: var(--sel); }
#spaces li.on .name { font-weight: 700; }
#spaces .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#spaces .meta { color: var(--dim); font-size: 12px; }
#spaces .branch { grid-column: 2 / 4; color: var(--branch); font-size: 13px; }
#spaces .branch:empty { display: none; }
#spaces li.more { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 28px; color: var(--muted); font-size: 12px; }
#spaces li.more:hover { color: var(--text); }
#spaces li.more .st { margin-left: -16px; }
#spaces { overflow-y: auto; max-height: 45%; }
#agents .none { color: var(--dim); font-size: 12px; cursor: default; display: block; }
/* the list ends above «tema · presentación · «», which sit in the bottom of the sidebar: a margin and
   not a padding, so what scrolls never passes behind them */
#agents { overflow-y: auto; flex: 1; min-height: 0; margin-bottom: 22px; padding-bottom: 4px; }
#agents li { padding: 6px 8px; border-radius: 3px; cursor: pointer; display: grid; grid-template-columns: 14px 1fr auto; gap: 0 6px; align-items: baseline; }
#agents li:hover { background: var(--hover); }
#agents li.open { background: var(--sel); }
#agents .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#agents .sub { grid-column: 2 / 4; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#agents .meta { color: var(--dim); font-size: 12px; }
#agents .group { color: var(--dim); font-size: 12px; padding: 8px 8px 2px; cursor: default; display: block; }

.st { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--off); }
/* one color per meaning, and solid in every theme: working is the accent, finished-and-not-seen is
   green, only a real call for you is orange, and it rings around the dot instead of fading it */
.st.working { background: var(--accent); }
.st.idle, .st.done { background: var(--ok); }
.st.wait { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dim); }
.st.bell { background: var(--warn); animation: ring 1.4s ease-out infinite; }
.st.exited { background: var(--off); }
@keyframes pulse { to { opacity: .4; } }
@keyframes ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 60%, transparent); } to { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .st.bell { animation: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 35%, transparent); } }

/* tabs + terminal */
#main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#tabs { display: flex; align-items: stretch; height: 30px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 6px; }
#tablist { display: flex; overflow-x: auto; scrollbar-width: none; }
.tab { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; color: var(--muted); border-right: var(--tab-sep); border-radius: var(--tab-radius); margin: var(--tab-margin); white-space: nowrap; max-width: 220px; }
.tab .t { overflow: hidden; text-overflow: ellipsis; }
.tab.on { background: var(--accent-fill); color: var(--on-accent); font-weight: 700; }
.tab .x { opacity: .5; padding: 0 2px; }
.tab .x:hover { opacity: 1; }
#menu, #expand { padding: 0 12px; color: var(--muted); font-size: 16px; }
#menu:hover, #expand:hover { color: var(--text); }
#plus { margin: 4px 6px; padding: 0 12px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; justify-content: center; line-height: 1; }
#plus span { font-size: 15px; font-weight: 700; }
#plus:hover { background: var(--accent); color: var(--on-accent); }
#stage { flex: 1; position: relative; min-height: 0; overflow: hidden; margin: var(--gap); border: var(--edge) solid transparent; border-radius: var(--radius);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--focus-edge) border-box; box-shadow: var(--glow); }
/* on the board each pane is a window of its own: the stage only holds them */
.boarding #stage { border-color: transparent; background: none; box-shadow: none; }
/* content-box: xterm's fit reads the height of this box and does not take its padding off; with the
   border-box of everything else it counted the padding as room for rows, and the last row was cut */
.term { position: absolute; inset: 0; padding: 6px 0 4px 8px; box-sizing: content-box; }
.term .ended { position: absolute; right: 16px; bottom: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 6px 6px 6px 12px; border-radius: 4px; display: flex; gap: 12px; align-items: center; z-index: 2; }
.term .ended button { background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 4px 10px; border-radius: 3px; }
#empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 16px; color: var(--text); }
#empty p { margin: 6px 0; }
#empty .bigbtn { justify-self: center; margin: 14px 0 4px; padding: 11px 22px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700; }
#empty .bigbtn:hover { filter: brightness(1.1); }
#empty .small-hint { font-size: 12px; margin-bottom: 18px; }

/* palette + context menu */
#palette { position: fixed; inset: 0; background: var(--shade); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; z-index: 10; }
#palette .box { width: min(560px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
#q { width: 100%; background: var(--bg); color: var(--text); border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; font: inherit; outline: none; }
#results li { padding: 8px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
#results li.sel, #results li:hover { background: var(--sel); }
#results .meta { margin-left: auto; color: var(--dim); font-size: 12px; }
/* new space: the folder picker */
#picker { position: fixed; inset: 0; background: var(--shade); display: flex; justify-content: center; align-items: flex-start; padding-top: 10vh; z-index: 10; }
#picker .wide { width: min(680px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; max-height: 78vh; }
.ph { padding: 12px 14px 8px; font-weight: 700; }
.ph .muted { font-weight: 400; }
#pq { width: 100%; background: var(--bg); color: var(--text); border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 11px 14px; font: inherit; outline: none; }
#pcrumb { padding: 8px 14px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); word-break: break-all; }
#pcrumb .branch { color: var(--branch); }
#plist { overflow-y: auto; flex: 1; min-height: 120px; }
#plist li { padding: 7px 14px; display: grid; grid-template-columns: 18px 1fr auto; gap: 0 8px; align-items: baseline; cursor: pointer; }
#plist li.sel, #plist li:hover { background: var(--sel); }
#plist .ic { color: var(--dim); }
#plist .repo .ic { color: var(--branch); }
#plist .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#plist .br { color: var(--branch); font-size: 12px; }
#plist .pa { grid-column: 2 / 4; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#plist .go { color: var(--accent); font-size: 12px; margin-left: 8px; }
.pfoot { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.pfoot #pmsg { flex: 1; font-size: 12px; }
.pfoot button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; }
.pfoot button:disabled { opacity: .45; cursor: progress; }
.pfoot .primary { background: var(--accent); color: var(--on-accent); font-weight: 700; border-color: var(--accent); }
#newtitle, .tab input { background: var(--bg); color: var(--text); border: 1px solid var(--accent); border-radius: 3px; font: inherit; padding: 2px 8px; margin: 3px 4px; outline: none; }
#newtitle { width: 240px; }
.tab input { width: 160px; margin: 0; padding: 1px 6px; }

/* machines: one tab each, + connects another */
#mtabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px 6px 8px; }
#mtabs button { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; }
#mtabs button span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
#mtabs button.on { color: var(--text); border-color: var(--accent); background: var(--sel); font-weight: 700; }
#mtabs button.add { color: var(--dim); }
#mtabs button.add:hover, #mtabs button:hover { color: var(--text); }
#spaces li.mempty { color: var(--dim); font-size: 12px; padding: 4px 8px 8px; cursor: default; display: block; }
#agents li.outside { cursor: help; opacity: .6; }
#agents li.outside .name { font-weight: 400; }

/* machines */
#spaces li.mhead { display: flex; gap: 8px; align-items: center; padding: 10px 8px 4px; cursor: default; color: var(--muted); font-size: 12px; font-weight: 700; }
#spaces li.mhead:hover { background: none; }
#spaces li.mhead .mst { font-weight: 400; margin-left: auto; color: var(--dim); }
#spaces li.mhead.down .mst { color: var(--warn); }
#spaces li.mhead + li.mempty { color: var(--dim); font-size: 12px; padding: 2px 8px 6px 30px; cursor: default; display: block; }
.add { text-align: left; padding: 6px 8px 2px; font-size: 13px; }
.st.up { background: var(--ok); }
.st.connecting { background: var(--busy); animation: pulse 1s infinite alternate; }
.st.down { background: var(--warn); }

/* connect a machine */
#conn { position: fixed; inset: 0; background: var(--shade); display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; z-index: 10; }
#conn .wide { width: min(560px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; }
.cform { display: grid; grid-template-columns: 1fr 90px; gap: 10px 12px; padding: 4px 14px 12px; }
.cform label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.cform label:nth-child(3) { grid-column: 1 / 3; }
.cform input, #cpass input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit; outline: none; }
.cform input:focus, #cpass input:focus { border-color: var(--accent); }
#clog { padding: 0 14px; max-height: 30vh; overflow-y: auto; font-size: 13px; }
#clog li { padding: 3px 0; color: var(--muted); }
#clog li.ok { color: var(--ok); }
#clog li.err { color: var(--warn); }
#cinstall { padding: 6px 14px 10px; }
#cinstall p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
#cinstall .row-btns { display: flex; gap: 8px; justify-content: flex-end; }
#cinstall button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; }
#cinstall .primary { background: var(--accent); color: var(--on-accent); font-weight: 700; border-color: var(--accent); }
#cpass { display: flex; gap: 8px; align-items: center; padding: 10px 14px; }
#cpass label { font-size: 13px; color: var(--text); }
#cpass input { flex: 1; }
#cpass button { padding: 7px 12px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* Atril's own dialogs, instead of the browser's */
#dialog { position: fixed; inset: 0; background: var(--shade); display: flex; justify-content: center; align-items: flex-start; padding-top: 18vh; z-index: 20; }
#dialog .box { width: min(460px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
#dtext { margin: 0 0 16px; line-height: 1.55; white-space: pre-line; }
#dtext .dcheck { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; cursor: pointer; }
#dbtns { display: flex; gap: 8px; justify-content: flex-end; }
#dbtns button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; }
#dbtns .primary { background: var(--accent); color: var(--on-accent); font-weight: 700; border-color: var(--accent); }
#dbtns .danger { background: var(--warn); color: var(--on-accent); font-weight: 700; border-color: var(--warn); }

#ctx { position: fixed; z-index: 11; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; min-width: 170px; padding: 4px 0; }
#ctx button { text-align: left; padding: 6px 12px; }
#ctx button:hover { background: var(--sel); }
#ctx .danger { color: var(--warn); }

/* files: the panel on the right (files.js) */
#filesbtn { margin: 4px 0 4px auto; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }
#filesbtn:hover { color: var(--text); border-color: var(--muted); }
#filesbtn.on { color: var(--accent); border-color: var(--accent); }
/* the file minimized: its name, to open it again where you left it */
#vchips { display: flex; gap: 6px; margin: 4px 0 4px auto; min-width: 0; overflow: hidden; }
#vchips:not(:empty) + #filesbtn { margin-left: 6px; }
.vchip { display: flex; align-items: center; min-width: 0; max-width: 200px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); font-size: 13px; }
.vchip:hover { background: var(--hover); }
.vchip .n { padding: 0 4px 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.vchip .x { padding: 0 7px 0 3px; color: var(--muted); }
.vchip .x:hover { color: var(--text); }
#files { flex: none; position: relative; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
#fgrip { position: absolute; left: -3px; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 3; }
#fgrip:hover { background: var(--accent); opacity: .35; }
.fh { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 12px; border-bottom: 1px solid var(--line); flex: none; }
.fh .ft { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.fh .sp, .vh .sp { flex: 1; }
.fh button { color: var(--muted); padding: 2px 6px; font-size: 15px; }
.fh button:hover { color: var(--text); }
#freload.spin { animation: spin .5s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
#fgit { display: flex; gap: 6px; align-items: baseline; font-size: 12px; min-width: 0; white-space: nowrap; overflow: hidden; }
#fgit .br { color: var(--branch); overflow: hidden; text-overflow: ellipsis; }
#fgit b { font-weight: 700; }
.gM { color: var(--busy); }
.gN { color: var(--ok); }
.gD { color: var(--warn); }
b.ok { color: var(--ok); }
#fchanges { flex: none; max-height: 40%; overflow-y: auto; border-bottom: 1px solid var(--line); }
#fchanges:empty { display: none; }
#ftree { flex: 1; overflow: auto; padding-bottom: 20px; }
.fsec { padding: 8px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; user-select: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ftree .fsec { cursor: default; color: var(--text); }
.fsec .tw { display: inline-block; width: 14px; color: var(--dim); }
.flist { padding-bottom: 6px; }
.fr { display: flex; align-items: baseline; gap: 6px; padding: 2px 10px 2px 8px; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--text); }
.fr:hover { background: var(--hover); }
.fr.on { background: var(--sel); }
.fr.sel { box-shadow: inset 2px 0 0 var(--accent); }
#ftree:focus, #fchanges:focus { outline: none; }
#ctx button:has(kbd) { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; white-space: nowrap; }
#ctx button kbd { color: var(--dim); font: 11px var(--mono); }
.term.fdrop { outline: 2px dashed var(--accent); outline-offset: -4px; }
#ftoast { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(90vw, 640px); padding: 7px 14px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 24px rgba(0,0,0,.35); pointer-events: none; transition: opacity .2s; }
#ftoast[hidden] { display: block; opacity: 0; }
.fr.flash { background: var(--sel); transition: background .2s; }
.fr .tw { flex: none; width: 10px; color: var(--dim); font-size: 11px; }
.fr .nm { overflow: hidden; text-overflow: ellipsis; }
.fr.dir .nm { color: var(--soft); }
.fr .dn { flex: 1; min-width: 0; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.fr .gs { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; padding-left: 6px; }
.fr.gM .nm { color: var(--busy); }
.fr.gN .nm { color: var(--ok); }
.fr.gD .nm { color: var(--warn); }
.fr.gone .nm { text-decoration: line-through; }
.fr.none { color: var(--dim); cursor: default; }
.flist .fr { padding-left: 14px; }
.fnote { padding: 10px 12px; color: var(--muted); font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.fnote.err { color: var(--warn); }

/* the viewer: a file or its diff, over the terminals */
#viewer { position: absolute; inset: 0; z-index: 4; background: var(--bg); display: flex; flex-direction: column; }
.vh { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); flex: none; font-size: 13px; }
#vpath { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; min-width: 0; }
#vmeta { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vmeta b { font-weight: 700; }
.vh .warn, #vmeta .warn { color: var(--busy); }
#vmode { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; flex: none; }
#vmode button { padding: 2px 10px; color: var(--muted); font-size: 12px; }
#vmode button.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.vh .vbtn { color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; flex: none; }
.vh .vbtn:hover { color: var(--text); border-color: var(--muted); }
#vbody { flex: 1; overflow: auto; min-height: 0; outline: none; }
#vbody pre { margin: 0; font: 13px/1.55 var(--mono); tab-size: 4; }
.src { position: relative; display: flex; min-width: max-content; min-height: 100%; }
/* a file as it looks: a PDF fills the viewer (its own toolbar scrolls it); an image sits in the middle
   on a checkerboard, so a transparent one shows what is transparent */
#vbody:has(> .docpdf) { overflow: hidden; }
.docpdf { display: block; width: 100%; height: 100%; border: 0; background: var(--panel); }
.docimg { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: repeating-conic-gradient(var(--panel) 0 25%, var(--bg) 0 50%) 0 0 / 16px 16px; }
.docimg img { max-width: 100%; max-height: calc(100vh - 140px); height: auto; box-shadow: 0 1px 8px var(--shade); }
.docimg img.svg { width: min(480px, 100%); }   /* an SVG with only a viewBox has no size of its own */
/* a Markdown file, drawn to be read: a column of text in the theme's colors */
.md { max-width: 860px; margin: 0 auto; padding: 22px 32px 60px; font: 15px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 1.5em 0 .6em; line-height: 1.25; font-weight: 700; }
.md h1 { font-size: 1.9em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.md h2 { font-size: 1.45em; padding-bottom: .25em; border-bottom: 1px solid var(--line); }
.md h3 { font-size: 1.2em; }
.md h4, .md h5, .md h6 { font-size: 1em; }
.md h6 { color: var(--muted); }
.md p, .md ul, .md ol, .md blockquote, .md table, .md pre { margin: 0 0 1em; }
.md ul { list-style: disc; }
.md ol { list-style: decimal; }
.md ul, .md ol { padding-left: 1.8em; }
.md li + li { margin-top: .25em; }
.md li > ul, .md li > ol { margin: .25em 0 0; }
.md li:has(> input[type=checkbox]) { list-style: none; margin-left: -1.4em; }
.md input[type=checkbox] { margin: 0 .45em 0 0; vertical-align: -1px; }
.md a { color: var(--accent); text-decoration: none; }
.md a:hover { text-decoration: underline; }
.md strong { font-weight: 700; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.md blockquote { padding: 0 1em; color: var(--muted); border-left: 3px solid var(--line); }
.md code { font: .88em var(--mono); padding: .15em .35em; border-radius: 4px; background: var(--hover); }
.md pre { padding: 12px 14px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); overflow: auto; }
#vbody .md pre { margin: 0 0 1em; font: 13px/1.5 var(--mono); }
.md pre code { padding: 0; background: none; font-size: inherit; }
.md table { border-collapse: collapse; display: block; max-width: 100%; overflow: auto; }
.md th, .md td { padding: 6px 12px; border: 1px solid var(--line); }
.md th { font-weight: 700; background: var(--panel); }
.md img { max-width: 100%; }
@media (max-width: 720px) { .md { padding: 16px 16px 48px; } }
.src .vline { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--accent) 16%, transparent); pointer-events: none; }
.src .gut { position: sticky; left: 0; flex: none; padding: 10px 14px 10px 12px; text-align: right; color: var(--dim); background: var(--bg); border-right: 1px solid var(--line); user-select: none; }
.src .txt { padding: 10px 16px; }
.src code { font: inherit; }
.diff { min-width: max-content; padding: 6px 0 16px; font: 13px/1.55 var(--mono); }
.dl { display: flex; white-space: pre; }
.dl .o, .dl .n { position: sticky; flex: none; width: 5ch; padding-right: 8px; text-align: right; color: var(--dim); background: var(--bg); user-select: none; box-sizing: content-box; }
.dl .o { left: 0; padding-left: 8px; }
.dl .n { left: calc(5ch + 16px); border-right: 1px solid var(--line); }
.dl .c { padding: 0 16px 0 10px; flex: 1; }
.dl.plus .c { background: var(--plus-bg); color: var(--plus-text); }
.dl.minus .c { background: var(--minus-bg); color: var(--minus-text); }
.dl.plus .n { color: var(--ok); }
.dl.minus .o { color: var(--warn); }
.dl.hunk .c { color: var(--accent); background: var(--hunk-bg); }
.dl.hunk { margin-top: 6px; }
.dl.note .c { color: var(--dim); font-style: italic; }

/* highlight.js, in Atril's colors */
.hljs { color: var(--text); background: transparent; }
.hljs-comment, .hljs-quote, .hljs-meta { color: var(--muted); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-tag, .hljs-name, .hljs-doctag, .hljs-section, .hljs-template-tag { color: var(--accent); }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-symbol, .hljs-bullet, .hljs-link { color: var(--ok); }
.hljs-number, .hljs-literal, .hljs-built_in, .hljs-type, .hljs-attr, .hljs-attribute, .hljs-selector-class, .hljs-selector-id, .hljs-variable, .hljs-template-variable, .hljs-property { color: var(--busy); }
.hljs-title, .hljs-title.function_, .hljs-title.class_ { color: var(--branch); }
.hljs-deletion, .hljs-keyword.security_ { color: var(--warn); }
.hljs-subst, .hljs-punctuation, .hljs-operator { color: var(--soft); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

/* the files panel floating over the terminal (the default: the terminal keeps its size, so a TUI
   that lays itself out by width, like OpenCode, does not change), or docked beside it */
#app { position: relative; }
#files.float { position: absolute; right: 0; top: 31px; bottom: 0; z-index: 6; box-shadow: -8px 0 24px var(--shade); }
/* with a theme that has gaps (neon) the files panel is one more window: floating or docked */
@media (min-width: 721px) {
  #files { margin: var(--gap) var(--gap) var(--gap) 0; border-radius: var(--radius); overflow: hidden; }
  #files.float { margin: 0; top: calc(31px + var(--gap)); right: var(--gap); bottom: var(--gap); }
}
.fh #fpin { font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; }
.fh #fpin:hover { border-color: var(--muted); }

/* themes: the menu at the bottom of the sidebar */
#themebtn { position: absolute; bottom: 10px; left: 14px; font-size: 13px; }
/* presentation mode: its button beside the theme's, its panel over the bottom of the sidebar */
#presentbtn { position: absolute; bottom: 10px; left: 84px; font-size: 13px; white-space: nowrap; }
#presentbtn.on { color: var(--warn); font-weight: 700; }
#present { position: absolute; left: 8px; bottom: 38px; z-index: 12; width: 300px; max-height: 80vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px 10px; box-shadow: 0 8px 24px var(--shade); font-size: 12px; }
#present .pt { padding: 10px 0 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
#present .pd { margin: 0 0 8px; line-height: 1.45; color: var(--soft); }
#present .pd.warn { color: var(--warn); margin-top: 10px; }
#present #ptoggle { width: 100%; padding: 6px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.present-on #present #ptoggle { background: var(--warn); }
#present textarea, #present input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; font: 12px var(--mono); }
#present textarea { resize: vertical; }
.present-on #present textarea:not(:focus) { filter: blur(4px); }
#present .pa { display: grid; grid-template-columns: 90px 1fr; gap: 6px; align-items: center; margin-bottom: 5px; }
#present .pn { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.present-on #present .pn { filter: blur(4px); }
.present-on #present input::placeholder { color: transparent; }
/* the pairing QR, blurred while presenting until you click it: whoever sees it could pair a phone */
.present-on #qrbox:not(.reveal):not(.used) > * { filter: blur(12px); }
.present-on #qrbox:not(.reveal):not(.used) { cursor: pointer; position: relative; }
.present-on #qrbox:not(.reveal):not(.used)::after { content: "clic para mostrar"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 12px; }
/* the relay's address too: it leads to your server (its IP, its domain) */
.present-on #relayhost:not(.reveal) { filter: blur(5px); cursor: pointer; user-select: none; }
#themes { position: absolute; left: 8px; bottom: 38px; z-index: 12; width: 262px; max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; box-shadow: 0 8px 24px var(--shade); }
#themes .th { padding: 8px 12px 3px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
#themes button { display: grid; grid-template-columns: 16px 1fr; gap: 0 6px; width: 100%; text-align: left; padding: 5px 12px; }
#themes button:hover { background: var(--hover); }
#themes button.on .tl { font-weight: 700; color: var(--accent); }
#themes .ck { color: var(--accent); }
#themes .ts { grid-column: 2; color: var(--dim); font-size: 11px; }
#themes .tf { padding: 8px 12px 6px; color: var(--dim); font-size: 11px; border-top: 1px solid var(--line); margin-top: 4px; line-height: 1.45; }

/* phones */
#keys { display: flex; gap: 4px; padding: 6px; border-top: 1px solid var(--line); background: var(--panel); overflow-x: auto; }
#keys button { flex: 1 0 auto; min-width: 44px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 4px; }
#keys button.on { background: var(--accent); color: var(--on-accent); }
.only-narrow { display: none; }
@media (hover: hover) and (pointer: fine) { .only-touch { display: none !important; } }
@media (max-width: 720px) {
  .only-narrow { display: block; }
  #side { position: fixed; inset: 0 auto 0 0; z-index: 5; width: min(86vw, 320px); transform: translateX(-100%); transition: transform .15s; padding-top: calc(14px + var(--sat)); padding-bottom: calc(14px + var(--sab)); box-sizing: border-box; }
  #side.show { transform: none; }
  #side .small { display: none; }
  #files { position: fixed; inset: 0 0 0 auto; z-index: 6; width: min(90vw, 360px) !important; top: var(--sat) !important; bottom: var(--sab) !important; }
  #fgrip { display: none; }
  /* a phone: ☰ on the left opens the sidebar over the terminal, + and archivos on the right */
  #menu { order: -1; padding: 0 14px 0 8px; font-size: 18px; }
  #side.show { z-index: 8; }
  #app:has(#side.show)::after { content: ""; position: fixed; inset: 0; background: var(--shade); z-index: 7; }
  #find kbd { display: none; }
  #fpin { display: none; }
  #plus .lbl { display: none; }
  #plus { padding: 0 12px; }
  #plus span { font-size: 17px; line-height: 1; }
}
@media (pointer: coarse) {
  #tabs { height: 42px; }
  .tab { padding: 0 12px 0 14px; }
}

/* the note that asks for a star (star.js): a corner, above the terminal, never in the way of typing */
#star { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 360px; max-width: calc(100vw - 36px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px var(--shade); padding: 14px 16px; color: var(--text); }
#star .sh { font-weight: 600; margin-bottom: 6px; }
#star .si { color: var(--warn); }
#star p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
#star .sr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#star .go { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 5px; padding: 6px 12px; font-weight: 600; white-space: nowrap; }
#star .later { border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; color: var(--soft); }
#star .never { margin-left: auto; color: var(--muted); font-size: 11px; text-decoration: underline; white-space: nowrap; }
#star .sx { position: absolute; top: 6px; right: 10px; color: var(--muted); }
#star .ok { color: var(--ok); }

/* add a device: a phone (QR) or a machine (SSH) */
#conn .wide { max-height: 86vh; overflow-y: auto; }
.ctabs { display: flex; gap: 4px; padding: 10px 14px 4px; }
.ctabs button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--soft); }
.ctabs button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.pv { padding: 8px 14px 6px; }
.pv h3 { margin: 6px 0 8px; font-size: 15px; color: var(--text); }
#cphone p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
#cphone .muted { color: var(--soft); opacity: .8; }
.card { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.45; }
.card:hover:not(:disabled) { border-color: var(--accent); }
.card:disabled { opacity: .45; cursor: not-allowed; }
.card b { font-size: 14px; }
.card .why { color: var(--soft); font-size: 12px; }
.pv .back.mini { margin-top: 2px; }
#worklog { margin: 0 0 10px; font-size: 13px; }
#worklog li { padding: 2px 0; color: var(--soft); }
#worklog li::before { content: "✓ "; color: var(--ok); }
#cphone .row-btns { display: flex; gap: 8px; justify-content: flex-end; }
#cphone .row-btns button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); }
#cphone .row-btns .primary { background: var(--accent); color: var(--on-accent); font-weight: 700; border-color: var(--accent); }
.rurl { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.rurl input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit; outline: none; }
.rurl input:focus { border-color: var(--accent); }
.qrrow { display: flex; gap: 16px; align-items: flex-start; }
#qrbox { flex: none; width: 196px; height: 196px; border-radius: 6px; overflow: hidden; background: var(--bg); }
#qrbox svg { width: 100%; height: 100%; display: block; }
#qrbox.used svg { opacity: .12; filter: blur(2px); }
.qrside { flex: 1; min-width: 0; }
#cphone .ok { color: var(--ok); }
#cphone .warn { color: var(--warn); opacity: 1; }
#relayline { margin-top: 10px !important; }
.clabel { padding: 8px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#phones { padding: 0 0 6px; font-size: 13px; }
#phones li { padding: 4px 0; display: flex; align-items: baseline; gap: 6px; color: var(--text); }
#phones li .muted { flex: 1; }
.mini.danger { color: var(--warn); }
#cphone .pfoot #phint { flex: 1; font-size: 12px; }
#cphone .loading { color: var(--soft); display: flex; align-items: center; gap: 10px; }
#cphone .loading::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
#worklogin { margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 6px; }
#logincode { font: 700 22px/1.2 var(--mono); letter-spacing: .12em; color: var(--text); margin: 6px 0 !important; }
#loginurl { color: var(--accent); word-break: break-all; }
@media (max-width: 520px) { .qrrow { flex-direction: column; align-items: center; } }

/* the board (board.js): up to four terminals of any space and device. Its panes take their place by
   how many there are: 2 side by side, 3 with the third along the bottom, 4 in a square */
.boardrow { display: flex; align-items: center; gap: 8px; margin: 0 2px 2px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 13px; text-align: left; }
.boardrow:hover { border-color: var(--muted); color: var(--text); }
.boardrow .muted { margin-left: auto; font-size: 12px; }
.boardrow.on { background: var(--sel); border-color: var(--accent); color: var(--text); font-weight: 700; }
.boardrow.on .lay { color: var(--accent); }
.boardrow.drop, .dragging .boardrow { border-style: dashed; border-color: var(--accent); color: var(--accent); }
.lay { flex: none; }
#board { position: absolute; inset: 0; display: grid; gap: var(--pane-gap); padding: var(--board-pad); background: var(--board-bg); }
#board.n0 { display: grid; place-content: center; background: var(--bg); }
#board.n1 { grid-template: "p0" 1fr / 1fr; }
#board.n2 { grid-template: "p0 p1" 1fr / 1fr 1fr; }
#board.n3 { grid-template: "p0 p1" 1fr "p2 p2" 1fr / 1fr 1fr; }
#board.n4 { grid-template: "p0 p1" 1fr "p2 p3" 1fr / 1fr 1fr; }
#bempty { text-align: center; padding: 0 16px; line-height: 1.5; }
#bempty .lay { width: 48px; height: 42px; color: var(--accent); }
#bempty p { margin: 6px 0; }
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: var(--edge) solid transparent; border-radius: var(--radius);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--edge-color) border-box; }
.pane.focus { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--focus-edge) border-box; box-shadow: var(--glow); }
.pane .bh { flex: none; display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 4px 0 10px; border-bottom: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; cursor: grab; user-select: none; }
.pane.focus .bh { color: var(--text); box-shadow: inset 0 2px 0 var(--accent); }
.pane .bdev { flex: none; color: var(--dim); }
.pane.focus .bdev { color: var(--accent); }
.pane .bsp { color: var(--branch); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pane .bt { font-weight: 700; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-right: auto; }
.pane .bh button { flex: none; color: var(--muted); padding: 0 6px; font-size: 14px; }
.pane .bh button:hover { color: var(--text); }
.pane .bb { flex: 1; position: relative; min-height: 0; }
/* the last line of a pane keeps clear of the pane below it */
.pane .term { padding-bottom: 8px; }
.pane .bwait { position: absolute; inset: 0; margin: 0; display: grid; place-content: center; color: var(--dim); font-size: 13px; }
.pane.drop { outline: 2px dashed var(--accent); outline-offset: -3px; }
.pane:not(.focus) .term { opacity: .82; }
.btitle { display: flex; align-items: center; gap: 7px; padding: 0 12px 0 6px; color: var(--accent); font-weight: 700; white-space: nowrap; border-right: 1px solid var(--line); }
.btitle .bn, .btitle .bc { display: none; }
.btitle:hover { background: var(--hover); }
/* the list of the board's terminals, under its title */
#bmenu { position: fixed; z-index: 11; width: min(300px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; box-shadow: 0 8px 24px var(--shade); }
#bmenu button { display: grid; grid-template-columns: 14px 1fr; gap: 0 8px; align-items: baseline; width: 100%; text-align: left; padding: 8px 12px; }
#bmenu button:hover, #bmenu button.on { background: var(--sel); }
#bmenu button.on .bmn { font-weight: 700; color: var(--accent); }
#bmenu .bmn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bmenu .bmw { grid-column: 2; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bmenu p { margin: 8px 12px; font-size: 12px; }
#boardx, #boardclose { margin: 4px 0 4px 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 13px; white-space: nowrap; }
#boardx:hover, #boardclose:hover { color: var(--text); border-color: var(--muted); }
#plus.full { opacity: .5; }
/* the files and the viewer belong to one space: not on the board */
.boarding #filesbtn, .boarding #vchips, .boarding #files, .boarding #viewer { display: none !important; }
.boarding #boardx { margin-left: auto; }
/* a tab held still: it sinks a little while you hold, then comes off the bar */
.tab { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .12s, box-shadow .12s; }
.tab.holding { transform: translateY(2px); transition: transform .45s ease-in; }
.tab.lift { transform: translateY(8px) scale(1.06); box-shadow: 0 10px 22px var(--shade); position: relative; z-index: 3; }
/* dragging something onto the terminal of a space: letting go makes a board */
#bdrop { position: absolute; inset: 10px; z-index: 7; display: grid; place-content: center; text-align: center; border: 2px dashed var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--bg) 82%, transparent); pointer-events: none; }
#bdrop div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#bdrop .lay { width: 48px; height: 42px; color: var(--accent); }
#bdrop span { color: var(--muted); font-size: 13px; }
/* a phone: one pane at a time, the chips on top switch between them */
@media (max-width: 720px) {
  #board.n1, #board.n2, #board.n3, #board.n4 { grid-template: "p0" 1fr / 1fr; }
  #board .pane { grid-area: p0 !important; }
  #board .pane:not(.focus) { display: none; }
  /* a phone: how many terminals, and a click lists them; no chips, there is no room */
  .btitle .bl { display: none; }
  .btitle .bn, .btitle .bc { display: inline; }
  .btitle .bc { color: var(--muted); font-size: 11px; }
  .boarding #tablist .tab { display: none; }
  #boardclose .lbl { display: none; }
  #tablist { min-width: 0; }
}

/* a phone: no gaps around the sidebar (it slides over everything) nor around the terminal (no room) */
@media (max-width: 720px) { #side { margin: 0 !important; border-radius: 0; } #stage { margin: 0; border-radius: 0; border-width: 0; } }
@media (min-width: 721px) { #side { margin: var(--gap) 0 var(--gap) var(--gap); border-radius: var(--radius); } #side.collapsed { margin: 0; } }

/* on a phone: pairing and connecting machines are done from the computer */
.atril-phone #adddev { display: none; }
