/* FiveDesk — tema: griuri neutre, un singur accent (indigo); culorile semantice (verde = pornit,
   galben = atentie, rosu = pericol) doar unde inseamna ceva */
:root {
  --bg: #0b0d12;
  --bg-2: #0f1218;
  --panel: #13161d;
  --panel-solid: #13161d;
  --raise: #191d26;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #e7e9ee;
  --muted: #8d94a5;
  --faint: #5f6677;
  --accent-rgb: 108 114 246;
  --accent: rgb(var(--accent-rgb));
  --accent-2: #8f95fa;
  --grad: linear-gradient(180deg, #7c81f8 0%, #666cf0 100%);
  --ok-rgb: 62 207 142;
  --ok: rgb(var(--ok-rgb));
  --warn-rgb: 229 180 84;
  --warn: rgb(var(--warn-rgb));
  --bad-rgb: 239 107 107;
  --bad: rgb(var(--bad-rgb));
  /* tipurile de medii: aceeasi culoare (iconita spune tipul) */
  --win: var(--accent); --linux: var(--accent); --browser: var(--accent);
  --gaming: var(--accent); --android: var(--accent); --app: var(--accent);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
.aurora {
  position: fixed; inset: -30vh -10vw auto; height: 60vh; z-index: -1; pointer-events: none; filter: blur(80px); opacity: .35;
  background: radial-gradient(45% 55% at 50% 20%, rgb(var(--accent-rgb) / .35), transparent 70%);
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #b9bdfc; }
h1 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin: 0; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1.05rem; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: .95rem; margin: 0 0 .75rem; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace; }
code { background: rgba(0,0,0,.35); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.muted { color: var(--muted); } .small { font-size: .84rem; } .faint { color: var(--faint); }
.secret { filter: blur(5px); cursor: pointer; transition: filter .2s; } .secret:hover, .secret:focus { filter: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bad-text { color: var(--bad); }
.disk-full, .disk-full svg { color: var(--bad); font-weight: 600; }
.hide-sm { display: inline; }

/* ---------------- header ---------------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: .7rem max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right));
  background: rgba(10, 13, 20, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-size: 1.12rem; font-weight: 650; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 750; }
.brand img { border-radius: 9px; box-shadow: 0 6px 18px -6px rgb(var(--accent-rgb) / .7); }
.nav { display: flex; gap: .25rem; margin-left: .75rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; color: var(--muted);
  font-weight: 550; font-size: .92rem; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a.on { color: var(--text); background: rgb(var(--accent-rgb) / .16); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .35); }
.nav a svg { width: 16px; height: 16px; }
.who { display: flex; align-items: center; gap: .5rem; margin: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: var(--grad); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }

/* ---------------- layout ---------------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 1.6rem 16px 3rem; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { margin: .35rem 0 0; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: .5rem; margin: 2.2rem 0 .85rem; font-size: 1.05rem; }
.section-title svg { color: var(--accent-2); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.row { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.inline { display: flex; gap: .45rem; margin: .6rem 0; }
form { margin: 0; }

/* ---------------- forms ---------------- */
label { display: grid; gap: .35rem; margin-bottom: .75rem; color: var(--muted); font-size: .85rem; font-weight: 550; }
label.check { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 500; }
input, select, textarea {
  background: rgba(5, 8, 14, .55); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .6rem .75rem; font: inherit; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: rgb(var(--accent-rgb) / .7); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .18); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); padding: 0; }
input::placeholder { color: var(--faint); }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .55rem .9rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap;
  transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent;
}
button:hover, .btn:hover { background: rgba(255,255,255,.08); border-color: rgba(165,180,252,.45); color: var(--text); }
button:active, .btn:active { transform: translateY(1px); }
button svg, .btn svg { width: 16px; height: 16px; }
.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -10px rgb(var(--accent-rgb) / .8); }
.primary:hover { background: var(--grad); filter: brightness(1.08); border-color: transparent; }
.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.ghost:hover { background: rgba(255,255,255,.06); border-color: transparent; }
.warn { color: var(--warn); border-color: rgb(var(--warn-rgb) / .35); background: rgb(var(--warn-rgb) / .06); }
.warn:hover { background: rgb(var(--warn-rgb) / .12); border-color: rgb(var(--warn-rgb) / .6); }
.danger { color: var(--bad); border-color: rgb(var(--bad-rgb) / .35); background: rgb(var(--bad-rgb) / .06); }
.danger:hover { background: rgb(var(--bad-rgb) / .14); border-color: rgb(var(--bad-rgb) / .6); }
.sm { padding: .4rem .65rem; font-size: .84rem; }
.icon-btn { padding: .5rem; }

/* ---------------- flash ---------------- */
.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1.1rem;
  border: 1px solid; backdrop-filter: blur(8px); animation: drop .25s ease-out; }
.flash.ok { background: rgb(var(--ok-rgb) / .09); border-color: rgb(var(--ok-rgb) / .35); }
.flash.ok svg { color: var(--ok); }
.flash.bad { background: rgb(var(--bad-rgb) / .09); border-color: rgb(var(--bad-rgb) / .4); }
.flash.bad svg { color: var(--bad); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------- login ---------------- */
.login { width: min(400px, 100%); padding: 2rem 1.6rem; display: grid; gap: .2rem; }
.login .brand { justify-content: center; font-size: 1.7rem; margin-bottom: .2rem; }
.login .brand img { width: 46px; height: 46px; border-radius: 13px; }
.login .tag { text-align: center; color: var(--muted); margin: 0 0 1.4rem; font-size: .92rem; }
.login button { width: 100%; padding: .75rem; margin-top: .35rem; }
.login .foot { display: flex; justify-content: center; gap: .4rem; color: var(--faint); font-size: .8rem; margin-top: 1rem; }
.login .foot svg { width: 14px; height: 14px; }

/* ---------------- quota rings ---------------- */
.quota { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.6rem; align-items: center; margin-bottom: 1.25rem; }
.quota .rings { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.ring { display: flex; align-items: center; gap: .7rem; }
.ring svg.gauge { width: 58px; height: 58px; transform: rotate(-90deg); stroke-width: 7; }
.ring .track { stroke: rgba(255,255,255,.08); }
.ring .val { stroke: url(#ring-grad); transition: stroke-dashoffset .6s ease; }
.ring.near .val { stroke: var(--warn); } .ring.over .val { stroke: var(--bad); }
.ring b { display: block; font-size: 1.05rem; }
.ring small { color: var(--muted); font-size: .8rem; }
.quota .note { color: var(--muted); font-size: .84rem; max-width: 46ch; }

/* ---------------- toolbar ---------------- */
.toolbar { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.search-box { position: relative; flex: 1 1 260px; }
.search-box svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--faint); width: 17px; height: 17px; }
input.search { padding-left: 2.3rem; margin: 0; }
.toggle { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .5rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: .86rem; cursor: pointer; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty img { width: 56px; opacity: .9; margin-bottom: .6rem; }

/* ---------------- environment cards ---------------- */
.env { --kind: var(--accent); overflow: hidden; padding: 1rem 1rem .85rem; transition: transform .15s, border-color .15s; }
.env:hover { border-color: var(--line-2); }
.env::before { content: none; }
.env.k-windows { --kind: var(--win); } .env.k-linux { --kind: var(--linux); } .env.k-browser { --kind: var(--browser); }
.env.k-gaming { --kind: var(--gaming); } .env.k-android { --kind: var(--android); }
.env.foreign { background: linear-gradient(180deg, rgb(var(--warn-rgb) / .04), transparent 40%), var(--panel); }
.env-head { display: flex; gap: .85rem; align-items: flex-start; }
.env-head > div { flex: 1; min-width: 0; }
.env-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--muted);
  background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.tile svg { width: 22px; height: 22px; }
.specs { display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin-top: .3rem; color: var(--muted); font-size: .8rem; }
.specs span { display: inline-flex; align-items: center; gap: .3rem; }
.specs svg { width: 13px; height: 13px; }
.owner { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--warn); margin: -.35rem 0 .6rem;
  padding: .15rem .55rem; border-radius: 999px; background: rgb(var(--warn-rgb) / .08); border: 1px solid rgb(var(--warn-rgb) / .25); }
.owner svg { width: 13px; height: 13px; }

.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 650; padding: .22rem .6rem;
  border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.running { color: var(--ok); border-color: rgb(var(--ok-rgb) / .35); background: rgb(var(--ok-rgb) / .08); }
.badge.running::before { box-shadow: 0 0 0 0 rgb(var(--ok-rgb) / .6); animation: ping 2s infinite; }
.badge.busy, .badge.restarting, .badge.created { color: var(--warn); border-color: rgb(var(--warn-rgb) / .35); background: rgb(var(--warn-rgb) / .07); }
.badge.busy::before { animation: blink 1s infinite; }
.badge.bad { color: var(--bad); border-color: rgb(var(--bad-rgb) / .4); background: rgb(var(--bad-rgb) / .07); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(var(--ok-rgb) / .55); } 70% { box-shadow: 0 0 0 7px rgb(var(--ok-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--ok-rgb) / 0); } }
@keyframes blink { 50% { opacity: .3; } }

details { border-top: 1px solid var(--line); margin-top: .6rem; }
details > summary { list-style: none; cursor: pointer; padding: .65rem 0 .1rem; color: var(--muted); font-size: .86rem; font-weight: 600;
  display: flex; align-items: center; gap: .45rem; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid;
  transform: rotate(45deg); transition: transform .2s; opacity: .7; }
details[open] > summary::after { transform: rotate(-135deg); }
details > summary svg { width: 15px; height: 15px; }
details > summary:hover { color: var(--text); }
details[open] > summary { color: var(--text); margin-bottom: .55rem; }
form.resources { margin-top: .3rem; }
.snap { display: flex; gap: .45rem; align-items: center; padding: .45rem 0; border-top: 1px dashed var(--line); }
.snap span { flex: 1; min-width: 0; }
.danger-zone { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed rgb(var(--bad-rgb) / .25); }
.cred { margin: .75rem 0 .2rem; font-size: .84rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* progress */
.task-line { display: grid; gap: .35rem; margin-top: .8rem; font-size: .82rem; }
.task-line:empty { display: none; }
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.08); }
progress::-webkit-progress-bar { background: rgba(255,255,255,.08); }
progress::-webkit-progress-value { background: var(--grad); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--grad); border-radius: 999px; }
progress:not([value])::-webkit-progress-bar { background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / .6), transparent) 0 0/40% 100% no-repeat, rgba(255,255,255,.08); animation: slide 1.2s infinite linear; }
@keyframes slide { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
meter { width: 100%; height: 8px; }

/* dialog */
dialog { color: var(--text); width: min(560px, calc(100% - 32px)); background: var(--panel-solid); border: 1px solid var(--line-2);
  border-radius: 20px; padding: 1.4rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
dialog::backdrop { background: rgba(5,7,12,.7); backdrop-filter: blur(4px); }
dialog h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 45%), 1fr)); gap: .5rem; margin-bottom: 1rem; }
.type { position: relative; margin: 0; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type span { display: flex; align-items: center; gap: .55rem; padding: .65rem .7rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02); color: var(--text); font-size: .85rem; font-weight: 550; cursor: pointer; line-height: 1.25; height: 100%; }
.type span svg { color: var(--kind); width: 20px; height: 20px; }
.type.k-windows { --kind: var(--win); } .type.k-linux { --kind: var(--linux); } .type.k-browser { --kind: var(--browser); }
.type.k-gaming { --kind: var(--gaming); } .type.k-android { --kind: var(--android); }
.type.k-app, .env.k-app { --kind: var(--app); }
.type[hidden] { display: none; }   /* label are display:grid, care altfel ar castiga peste [hidden] */
.more-apps { padding: 0; border: 0; background: none; text-align: left; font: inherit; }
.more-apps span { border-style: dashed; flex-wrap: wrap; }
.more-apps small { width: 100%; color: var(--muted); font-weight: 400; font-size: .72rem; margin-left: 28px; margin-top: -.3rem; }
.more-apps svg { color: var(--app); }
dialog.wide { width: min(760px, calc(100% - 32px)); }
.app-search { display: flex; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
.app-search input { flex: 1 1 220px; min-width: 0; }
.app-search select { flex: 0 1 auto; width: auto; }
.app-list { display: grid; gap: .4rem; max-height: min(60vh, 560px); overflow: auto; margin-bottom: .8rem; padding-right: .2rem; }
.app-row { display: flex; gap: .75rem; align-items: flex-start; justify-content: flex-start; width: 100%; white-space: normal;
  font-weight: 400; text-align: left; padding: .6rem .7rem; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text); font: inherit; cursor: pointer; }
.app-row:hover, .app-row:focus-visible { border-color: var(--app); background: color-mix(in srgb, var(--app) 10%, transparent); }
.app-row img { width: 36px; height: 36px; object-fit: contain; flex: none; border-radius: 8px; background: rgba(255,255,255,.06); padding: 3px; }
.app-txt { display: grid; gap: .25rem; min-width: 0; flex: 1; }
.app-txt b { font-weight: 650; }
.app-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; }
.app-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.app-tags .chip { font-size: .7rem; padding: .1rem .45rem; }
.app-tags .chip.warn { color: var(--warn); }
.app-tags .chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.app-row.unsupported { opacity: .6; cursor: not-allowed; }
.app-row.unsupported:hover { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.app-ports { margin: .3rem 0 .8rem; display: grid; gap: .3rem; }
.app-ports p { margin: 0; }
.app-ports p svg { width: 16px; height: 16px; color: var(--app); vertical-align: -3px; margin-right: .3rem; }
.app-ports code.off { text-decoration: line-through; opacity: .6; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; font-weight: 400; width: 100%; }
.type input:checked + span { border-color: var(--kind); background: color-mix(in srgb, var(--kind) 12%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--kind) 20%, transparent); }
.type input:focus-visible + span { outline: 2px solid var(--accent); }
.free { display: flex; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.chip svg { width: 13px; height: 13px; }
.chip b { color: var(--text); }

/* ---------------- admin ---------------- */
.stats { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.stat { display: grid; gap: .3rem; }
.stat .lbl { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .lbl svg { width: 15px; height: 15px; color: var(--accent-2); }
.stat b { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.3; }
.stat small { color: var(--muted); }
.stat b.multi { font-size: 1.02rem; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650;
  padding: .75rem .7rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); white-space: nowrap; }
td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.015); }
td input[type=number] { width: 78px; padding: .4rem .5rem; }
td input[type=password] { min-width: 140px; padding: .4rem .55rem; }
td form { display: inline-block; }
td small.muted { display: block; font-size: .74rem; }
td .actions { flex-wrap: nowrap; }
.table.small td { font-size: .82rem; padding: .45rem .7rem; }
.badge.mini { font-size: .7rem; padding: .1rem .5rem; }

/* ---------------- activity / logs ---------------- */
.task { margin-bottom: .6rem; padding: .85rem 1rem; }
.task details { border: 0; margin: 0; }
.task summary { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--text); padding: 0; }
.task summary::after { display: none; }
.task .right { margin-left: auto; }
.task.error { border-color: rgb(var(--bad-rgb) / .35); }
pre.log { background: rgba(3,5,10,.7); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; color: #c9d4ee;
  font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto; margin: .7rem 0 0; }
pre.log.tall { max-height: calc(100vh - 280px); min-height: 320px; }

/* account */
.qr { background: #fff; border-radius: 14px; padding: 12px; width: max-content; margin: .6rem 0 .9rem; box-shadow: var(--shadow); }
/* codul QR: fara stilul iconitelor (linii groase, capete rotunde) - altfel nu se poate scana */
.qr svg { display: block; width: auto; height: auto; }
.qr svg, .qr svg * { stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; fill: none; }
ol.steps { padding-left: 1.2rem; margin: .5rem 0; color: var(--muted); } ol.steps li { margin: .3rem 0; }
.status-line { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; }

/* ---------------- RDP page ---------------- */
body.rdp { overflow: hidden; background: #000; overscroll-behavior: none; touch-action: none; position: fixed; inset: 0; }
body.rdp .aurora { display: none; }
#display { position: fixed; top: 0; left: 0; right: 0; height: 100vh; outline: none; display: grid; place-items: center; }
#display canvas, #display > div { touch-action: none; }
.overlay { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(4,6,12,.78); backdrop-filter: blur(6px); padding: 16px; z-index: 20; }
.overlay[hidden] { display: none; }
.overlay .card { max-width: 460px; }
.overlay h2 { margin-bottom: .5rem; font-size: 1.2rem; }
#menu-btn { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); opacity: .45; z-index: 5;
  padding: 4px 16px; border-radius: 999px; background: rgba(22,27,40,.8); backdrop-filter: blur(8px); }
#menu-btn:hover { opacity: 1; }
#menu { position: fixed; top: 0; left: 0; bottom: 0; width: min(350px, 100%); background: rgba(16,20,30,.96); backdrop-filter: blur(16px);
  border-right: 1px solid var(--line); padding: 1rem; padding-top: max(1rem, env(safe-area-inset-top));
  display: grid; gap: .55rem; align-content: start; z-index: 10; overflow-y: auto; touch-action: auto; }
#menu[hidden] { display: none; }
#menu .btn, #menu button { justify-content: flex-start; }
#menu .files-box { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .45rem; }
#menu .files-box h4 { margin: 0; }
#file-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: .25rem; }
#file-list li { display: flex; align-items: center; gap: .45rem; font-size: .85rem; }
#file-list li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#file-list li button { flex: none; padding: .15rem .45rem; justify-content: center; }
#drop-hint { position: fixed; inset: 12px; z-index: 6; border: 3px dashed var(--accent-2); border-radius: 18px; display: grid;
  place-items: center; font-size: 1.3rem; font-weight: 600; color: #fff; background: rgba(10,14,24,.75); pointer-events: none; }
#drop-hint[hidden] { display: none; }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.menu-head button { justify-content: center !important; }
#ime { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; }
#bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; }
#touchbar { display: flex; gap: 5px; padding: 5px; padding-bottom: max(5px, env(safe-area-inset-bottom)); overflow-x: auto;
  background: rgba(14,18,28,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); touch-action: pan-x; scrollbar-width: none; }
#touchbar[hidden] { display: none; }
#touchbar button { flex: 0 0 auto; min-width: 44px; height: 40px; padding: 0 11px; border-radius: 10px; }
#touchbar button.on { background: var(--grad); border-color: transparent; color: #fff; }
#osk { position: relative; background: linear-gradient(180deg, rgba(20,25,38,.97), rgba(9,12,19,.98)); border-top: 1px solid var(--line-2);
  padding: 6px 5px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--osk-gap, 5px); padding-bottom: max(6px, env(safe-area-inset-bottom));
  touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 -12px 30px -10px rgba(0,0,0,.7);
  --osk-h: clamp(32px, 6.2vh, 48px); --osk-fs: clamp(13px, 3.6vw, 18px); --osk-gap: 5px; }
#osk[hidden] { display: none; }
#osk[data-size="s"] { --osk-h: clamp(26px, 4.8vh, 38px); --osk-fs: clamp(11px, 3vw, 15px); --osk-gap: 3px; }
#osk[data-size="l"] { --osk-h: clamp(38px, 7.4vh, 58px); --osk-fs: clamp(14px, 4vw, 20px); }
#osk.no-fn .osk-fn { display: none; }
.osk-row { display: flex; gap: var(--osk-gap); min-width: 0; }
.osk-key { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; height: var(--osk-h); padding: 0 1px; font-weight: 500;
  font-size: var(--osk-fs); line-height: 1; border-radius: 8px; color: #eef1f8; overflow: hidden; white-space: nowrap;
  background: linear-gradient(180deg, #2a3144, #222939); border: 0; box-shadow: 0 1.5px 0 #0b0e15, inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-tap-highlight-color: transparent; transition: background .06s, transform .06s; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; }
.osk-key:hover { background: linear-gradient(180deg, #2f3750, #262e40); border: 0; }
.osk-key small { font-size: .62em; color: var(--faint); font-weight: 500; }
.osk-key.fnk { background: linear-gradient(180deg, #1f2534, #191e2b); color: #aeb8d0; font-size: calc(var(--osk-fs) * .82); }
.osk-key.long { font-size: calc(var(--osk-fs) * .7); letter-spacing: -.02em; }
.osk-key.tool { color: #8fa0c8; }
.osk-key.accent { background: var(--grad); color: #fff; }
.osk-key.space .bar { width: 38%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); }
.osk-key.down { background: linear-gradient(180deg, #4a5373, #3b4360); transform: translateY(1px); box-shadow: 0 .5px 0 #0b0e15; }
.osk-key.on { background: rgb(var(--accent-rgb) / .35); color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.osk-key.lock { background: var(--grad); color: #fff; box-shadow: 0 0 12px -2px rgb(var(--accent-rgb) / .8); }
.osk-key.lock::before { content: ""; position: absolute; top: 4px; left: 50%; width: 12px; height: 2px; margin-left: -6px; border-radius: 2px; background: #fff; }
.osk-bubble { position: absolute; z-index: 3; display: flex; gap: 2px; padding: 4px; border-radius: 12px; pointer-events: none;
  background: #f4f6fb; color: #0b0e15; box-shadow: 0 10px 28px -6px rgba(0,0,0,.75); }
.osk-bubble[hidden] { display: none; }
.osk-bubble span { min-width: 42px; height: 50px; display: grid; place-items: center; font-size: 26px; font-weight: 500; border-radius: 8px; }
@media (orientation: landscape) and (max-height: 500px) {
  #osk, #osk[data-size="m"] { --osk-h: clamp(22px, 7vh, 34px); --osk-fs: 13px; --osk-gap: 3px; padding-top: 4px; }
  #osk[data-size="s"] { --osk-h: clamp(20px, 5.6vh, 28px); --osk-fs: 12px; }
  #osk[data-size="l"] { --osk-h: clamp(26px, 8.4vh, 40px); --osk-fs: 15px; }
  .osk-bubble span { height: 40px; font-size: 22px; }
}
@media (max-width: 420px) {
  #osk { padding-left: 3px; padding-right: 3px; --osk-gap: 4px; }
  .osk-key { border-radius: 6px; padding: 0; }
  .osk-key.long { font-size: calc(var(--osk-fs) * .6); letter-spacing: -.04em; }
}
@media (min-width: 900px) { #osk { padding-left: max(5px, calc((100vw - 1100px) / 2)); padding-right: max(5px, calc((100vw - 1100px) / 2)); } }

/* ---------------- dashboard extras ---------------- */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: .45rem;
  box-shadow: 0 0 0 0 rgb(var(--ok-rgb) / .6); animation: ping 2s infinite; vertical-align: middle; }
.page-head p b { color: var(--text); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); gap: 2px; }
.seg button { min-height: 0 !important; padding: .38rem .85rem; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: .84rem; }
.seg button:hover { background: rgba(255,255,255,.05); border: 0; }
.seg button.on { background: rgb(var(--accent-rgb) / .2); color: var(--text); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .4); }
.grid[data-show="running"] .env:not([data-st="running"]),
.grid[data-show="stopped"] .env[data-st="running"] { display: none; }
.env:not([data-st="running"]) .if-on, .env[data-st="running"] .if-off { display: none !important; }
.env:not([data-st="running"]) .tile { filter: saturate(.5); opacity: .8; }
.env[data-st="running"] { border-color: rgb(var(--accent-rgb) / .3); }
.env[data-st="running"] .tile { color: var(--accent-2); background: rgb(var(--accent-rgb) / .12); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .4); }

/* ---------------- admin extras ---------------- */
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 .85rem; }
.section-row .section-title { margin: 0; }
.count { font-size: .74rem; font-weight: 650; color: var(--muted); background: rgba(255,255,255,.06); border: 1px solid var(--line);
  padding: .05rem .5rem; border-radius: 999px; }
.users { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.ucard.off { opacity: .65; }
.ucard-head { display: flex; gap: .8rem; align-items: center; }
.ucard-head .grow { flex: 1; min-width: 0; }
.ucard-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar.lg { width: 42px; height: 42px; font-size: 1rem; border-radius: 13px; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 650; padding: .12rem .5rem; border-radius: 999px;
  color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.tag svg { width: 11px; height: 11px; }
.tag.accent { color: var(--accent-2); border-color: rgb(var(--accent-rgb) / .4); background: rgb(var(--accent-rgb) / .12); }
.tag.ok { color: var(--ok); border-color: rgb(var(--ok-rgb) / .35); background: rgb(var(--ok-rgb) / .08); }
.tag.gpu { color: var(--accent-2); border-color: rgb(var(--accent-rgb) / .35); background: rgb(var(--accent-rgb) / .1); }
.tag.win { color: var(--accent-2); border-color: rgb(var(--accent-rgb) / .35); background: rgb(var(--accent-rgb) / .08); }
.tag.bad { color: var(--bad); border-color: rgb(var(--bad-rgb) / .4); background: rgb(var(--bad-rgb) / .08); }
.ubars { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; margin: 1rem 0 .3rem; }
.ubar-top { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-bottom: .3rem; }
.ubar-top b { color: var(--text); font-weight: 650; }
.ubar .track { height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.ubar .track i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.ubar.near .track i { background: var(--warn); } .ubar.over .track i { background: var(--bad); }
.ubar.over .ubar-top b { color: var(--bad); }
.switches { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .1rem 0 .8rem; }
.switches label { margin: 0; }
dialog .row + .row { margin-top: .1rem; }

/* ---------------- responsive ---------------- */
@media (pointer: coarse) {
  button, .btn { min-height: 42px; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: .5rem .75rem; padding-top: .6rem; padding-bottom: .5rem; }
  .nav { order: 3; flex: 1 0 100%; margin: 0 -4px; padding-bottom: 2px; }
  .who { margin-left: auto; }
  .hide-sm { display: none; }
  .nav a { padding: .4rem .6rem; font-size: .86rem; gap: .35rem; }
  .quota { grid-template-columns: 1fr; gap: .9rem; }
  .quota .rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .ring { flex-direction: column; text-align: center; gap: .4rem; }
  .ring b { font-size: .95rem; } .ring b .faint { display: block; font-size: .78rem; font-weight: 500; }
  .quota .note { font-size: .8rem; }
  dialog { padding: 1.1rem; }
  .wrap { padding-top: 1.1rem; }
}
@media (max-width: 600px) {
  .card { padding: .95rem; }
  .ubars { gap: .6rem .8rem; }
  .section-row { margin-top: 1.8rem; }
  .task .right { margin-left: 0; width: 100%; }
  .ring svg.gauge { width: 52px; height: 52px; }
  .type span { padding: .55rem .6rem; font-size: .8rem; }
}
@media (max-width: 440px) {
  .nav a svg { display: none; }
  .nav a { padding: .4rem .55rem; }
  .brand span { font-size: 1.02rem; }
  .seg button { padding: .38rem .65rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
@media (max-width: 600px) {
  .toolbar .search-box { order: -1; flex-basis: 100%; }
  .toolbar .toggle { margin-left: auto; }
}
@media (max-width: 760px) {
  /* admin: tabelul cu toate mediile devine lista de carduri */
  #envs-table, #envs-table tbody, #envs-table tr, #envs-table td { display: block; }
  #envs-table thead { display: none; }
  #envs-table tr[hidden] { display: none; }
  #envs-table tr { position: relative; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
  #envs-table tr:last-child { border-bottom: 0; }
  #envs-table td { border: 0; padding: .1rem 0; }
  #envs-table td:nth-child(1) { font-size: .78rem; color: var(--muted); }
  #envs-table td:nth-child(1)::before { content: "Owner · "; }
  #envs-table td:nth-child(2) { font-size: 1rem; padding-right: 7rem; }
  #envs-table td:nth-child(3), #envs-table td:nth-child(4) { font-size: .82rem; color: var(--muted); }
  #envs-table td:nth-child(4) small { display: inline; margin-left: .3rem; }
  #envs-table td:nth-child(5) { position: absolute; top: .8rem; right: .9rem; padding: 0; }
  #envs-table td:nth-child(6) { margin-top: .55rem; }
  #envs-table td .actions { flex-wrap: wrap; }
}
@media (max-width: 760px) { #envs-table td .actions > * { flex: 1 1 0; } #envs-table td .actions button, #envs-table td .actions .btn { width: 100%; } }

/* ---------------- Linux (Selkies) in cadru FiveDesk ---------------- */
body.desk #frame { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; border: 0; display: block; background: #000; }
/* sub manerul (toggle-handle) al barii laterale Selkies, care e pe mijlocul marginii din
   stanga (60px inaltime): cele doua nu se suprapun */
#pill { position: fixed; left: 0; top: calc(50% + 40px); z-index: 7; display: flex; flex-direction: column; gap: 2px;
  padding: 3px; border-radius: 0 14px 14px 0; background: rgba(16,20,30,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-left: 0; opacity: .5; transition: opacity .2s; padding-left: max(3px, env(safe-area-inset-left)); }
#pill:hover, #pill:focus-within { opacity: 1; }
#pill button { flex-direction: column; gap: 0; min-height: 0 !important; padding: 7px 8px; border-radius: 10px; line-height: 1.1; border: 0; background: transparent; font-size: .82rem; }
#pill button.on { background: var(--grad); color: #fff; }
#toast { position: fixed; left: 50%; top: 52px; transform: translateX(-50%); z-index: 30; padding: .55rem .9rem; border-radius: 12px;
  background: rgba(22,27,40,.95); border: 1px solid var(--line-2); font-size: .86rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
#toast[hidden] { display: none; }
.btn.disabled { opacity: .55; cursor: not-allowed; filter: saturate(.4); }

/* admin: coada de descarcari */
.q-settings { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; }
.q-settings label { margin: 0; flex-direction: row; display: flex; align-items: center; gap: .45rem; }
.q-settings select { width: auto; padding: .35rem .5rem; }
.q-table td.q-prog { min-width: 220px; }
.q-table td.q-prog small { display: block; margin-bottom: .25rem; color: var(--muted); }
@media (max-width: 760px) { .q-table td.q-prog { min-width: 140px; } }
@media (max-width: 760px) {
  .section-row { flex-wrap: wrap; }
  .section-row .section-title { flex: 1 0 100%; }
  .q-settings { flex: 1 0 100%; }
  .q-table table, .q-table tbody, .q-table tr, .q-table td { display: block; }
  .q-table tr { position: relative; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
  .q-table tr:last-child { border-bottom: 0; }
  .q-table td { border: 0; padding: .15rem 0; }
  .q-table td:nth-child(1) { padding-right: 7.5rem; }
  .q-table td:nth-child(2) { position: absolute; top: .8rem; right: .9rem; padding: 0; }
  .q-table td.q-prog { min-width: 0; }
  .q-table td:nth-child(4) { margin-top: .4rem; }
}
/* cat timp mediul lucreaza (creare, pornire...), Start/Stop/Restart nu se pot apasa;
   Delete / Full reset raman: opresc operatia in curs */
.env[data-busy] .actions form:not(.if-busy) button { opacity: .4; pointer-events: none; filter: saturate(.3); }
.env:not([data-busy]) .if-busy { display: none !important; }
.specs .gpu-chip { color: var(--gaming); font-weight: 650; }

/* admin: email */
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); margin-bottom: 1rem; }
.mail-templates details.card { padding: .4rem 1rem .8rem; margin-bottom: .6rem; }
.mail-templates summary { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--text); }
.mail-templates textarea { width: 100%; font-family: inherit; resize: vertical; }
.mail-templates .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.ip-pool { margin-bottom: .8rem; display: grid; gap: .6rem; }
.ip-pool-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ip-pool form.inline { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ip-pool form.inline input { flex: 1; min-width: 180px; }
.ip-pool select { width: auto; }
.security-card { display: grid; gap: .7rem; margin-bottom: 1rem; }
.security-card label.check { align-items: flex-start; }
.security-card label.check input { margin-top: .2rem; }
.reach { display: flex; gap: .35rem; align-items: center; margin: .2rem 0 .4rem; }
.reach svg { width: 14px; height: 14px; }

.node-grid { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); margin-bottom: .8rem; }
.node { display: grid; gap: .6rem; }
.node-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.node .specs { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .82rem; color: var(--muted); }
.node .specs span { display: inline-flex; align-items: center; gap: .3rem; }
.node .specs svg { width: 14px; height: 14px; }
.node .actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.node .actions form.inline { display: flex; gap: .3rem; }
.node .actions form.inline input { width: 150px; }
pre.cmd { white-space: pre-wrap; word-break: break-all; font-size: .78rem; padding: .6rem .7rem; border-radius: 10px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line-2); margin: 0; user-select: all; }

/* ---------------- butoanele cardului: actiunea principala + unelte colorate, pe un rand ---------------- */
.env-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: .4rem; margin: .8rem 0 .2rem; }
.env-actions .main { flex: 1 1 96px; display: flex; min-height: 42px; border-radius: 11px; font-size: .92rem; }
.env-actions .main button { flex: 1; border-radius: 11px; font-size: .92rem; }
.act-open { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -12px rgb(var(--accent-rgb) / .9); }
.act-open:hover { background: var(--grad); border-color: transparent; color: #fff; filter: brightness(1.1); }
.act-start { background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px -10px rgb(var(--accent-rgb) / .8); }
.act-start:hover { background: var(--grad); border-color: transparent; color: #fff; filter: brightness(1.1); }
.act-start svg { fill: currentColor; }
.tools { display: flex; gap: .4rem; flex: 0 1 auto; }
.tools > form { display: flex; }
.tool {
  --c: var(--muted);
  width: 56px; min-width: 0; flex-direction: column; gap: .1rem; padding: .3rem .2rem; line-height: 1.1;
  color: var(--text); border-radius: 11px; background: var(--raise); border-color: var(--line-2);
}
.tool:hover { color: var(--text); background: rgb(var(--accent-rgb) / .1); border-color: rgb(var(--accent-rgb) / .5); }
.tool:hover svg { color: var(--accent-2); }
.tool svg { width: 16px; height: 16px; color: var(--c); transition: color .15s; }
.tool b { font-size: .7rem; font-weight: 650; }
.t-force { --c: var(--bad); border-color: rgb(var(--bad-rgb) / .45); background: rgb(var(--bad-rgb) / .08); }
.t-force:hover { border-color: rgb(var(--bad-rgb) / .7); background: rgb(var(--bad-rgb) / .14); }
.t-force:hover svg { color: var(--bad); }
.t-force { box-shadow: 0 0 0 1px rgb(var(--bad-rgb) / .35), 0 0 18px -6px rgb(var(--bad-rgb) / .7); }

/* Info / Resources / Snapshots: un rand de butoane mici; cel deschis se intinde dedesubt */
.env-more { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.env-more > details { border: 0; margin: 0; }
.env-more > details[open] { order: 1; flex: 1 0 100%; margin-top: .2rem; }
.env-more > details[open] > summary { display: inline-flex; margin-bottom: .45rem; }
.env-more > details > summary {
  padding: .3rem .65rem; border-radius: 999px; font-size: .78rem; gap: .35rem;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
}
.env-more > details > summary::after { display: none; }
.env-more > details > summary svg { width: 13px; height: 13px; }
.env-more > details[open] > summary { color: var(--text); background: rgb(var(--accent-rgb) / .16); border-color: rgb(var(--accent-rgb) / .45); }
.env-more .reach { margin: .1rem 0 .3rem; }
.env-more .cred { margin: .3rem 0 0; }

/* procesor / memorie / disc: trei coloane egale, cu bara dedesubt (live cand mediul ruleaza) */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .75rem; }
.metric { display: grid; gap: .3rem; min-width: 0; color: var(--muted); font-size: .78rem; }
.metric > span { display: flex; align-items: center; gap: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric svg { width: 13px; height: 13px; flex: none; }
.metric .meter { display: block; height: 4px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.metric .meter > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .6s ease; }
.metric[data-disk] .meter > i { background: var(--accent-2); opacity: .8; }
.metric:not(.live)[data-live] .meter > i { width: 0 !important; }
.metric.live [data-now] { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.metric.hot .meter > i { background: var(--warn); }
.metric.hot [data-now] { color: var(--warn); }
.metric.disk-full, .metric.disk-full svg { color: var(--bad); }
.metric.disk-full .meter > i { background: var(--bad); }
/* numele imaginii pe primul rand, intreg; serverul (pe alt server) dedesubt */
.env-head .specs { flex-wrap: wrap; min-width: 0; row-gap: .3rem; }
.specs .tpl { flex: 1 0 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.specs .chip { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; }
/* GPU: insigna mica pe coltul iconitei (detaliile in tooltip) */
.tile { position: relative; }
.gpu-dot { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--raise); color: var(--accent-2); border: 1px solid var(--line-2);
  box-shadow: 0 0 10px -2px color-mix(in srgb, var(--gaming) 70%, transparent); cursor: help; }
.tile .gpu-dot svg { width: 12px; height: 12px; }

/* file (cu JavaScript): butoanele raman pe loc, sub ele doar sectiunea deschisa */
.env-more.tabbed > details { flex: 1 0 100%; order: 0; margin: 0; }
.env-more.tabbed > details:not([open]) { display: none; }
.env-more.tabbed > details > summary { display: none; }
.env-more.tabbed > details[open] { margin-top: .35rem; }
.tabs { display: flex; flex-wrap: nowrap; gap: .3rem; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .55rem; min-height: 0; border-radius: 999px; flex: none;
  font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); background: transparent; }
.tab svg { width: 12px; height: 12px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); background: rgb(var(--accent-rgb) / .16); border-color: rgb(var(--accent-rgb) / .5); }

/* Info: randuri eticheta - valoare */
.kv { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: .5rem; margin: 0 0 .35rem; font-size: .84rem; }
.kv[hidden] { display: none; }
.kv > span:first-child { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); white-space: nowrap; }
.kv svg { width: 14px; height: 14px; }
.kv code { justify-self: start; }
.kv-note { margin: 0 0 .4rem; }

/* "Open as admin" (mediul altui utilizator): galben, ca eticheta "Owner" */
.act-admin { background: rgb(var(--warn-rgb) / .1); border-color: rgb(var(--warn-rgb) / .45); color: var(--warn);
  box-shadow: 0 8px 22px -12px rgb(var(--warn-rgb) / .9); }
.act-admin:hover { background: rgb(var(--warn-rgb) / .16); border-color: rgb(var(--warn-rgb) / .7); color: var(--warn); }

/* Schedule (programari) */
.sched { display: flex; align-items: center; gap: .45rem; padding: .5rem 0; border-top: 1px dashed var(--line); }
.sched:first-of-type { border-top: 0; }
.sched-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; font-size: .86rem; }
.sched-main small { flex-basis: 100%; }
.sched.off .sched-main { opacity: .55; }
.sched-form { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.sched-form label[hidden] { display: none; }
.sched-form input[readonly] { opacity: .75; }
.snap-use { margin: 0 0 .4rem; }
.chip.auto { font-size: .68rem; padding: .02rem .4rem; }
@media (max-width: 600px) { .tabs { flex-wrap: wrap; overflow: visible; } }
