/* ============================================================
   HUDDLE — Funcționalități: desktopul firmei.
   Folderele sunt desenate din straturi (spate, foi, față), ca să
   poată fi animate separat. Fereastra se deschide din folder.
   ============================================================ */

/* Pe această pagină, cremul e cu o nuanță mai deschis, iar fereastra e albă. */
.page-desktop { --bg-page: #fafbf7; background: var(--bg-page); }

.desk-page {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(16px, 4vh, 48px)) var(--gutter) clamp(72px, 10vh, 120px);
}
/* aceeași grilă de puncte ca pe home, foarte discretă */
.desk-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, var(--green-700) 1px, transparent 1.6px);
  background-size: 32px 32px;
  opacity: .09;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 10%, transparent 90%);
}

/* ---------- introducerea ---------- */
.desk-intro { max-width: 980px; margin: 0 auto; text-align: center; }
.desk-eyebrow { color: var(--accent-ink); }
.desk-title, .desk-lead { display: grid; }
.desk-title > span, .desk-lead > span {
  grid-area: 1 / 1;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.desk-title {
  margin-top: 12px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 500;
}
.desk-title em { color: #3f7424; letter-spacing: -.01em; }
.desk-lead { margin-top: 10px; font-size: 17px; color: var(--text-secondary); }
.title-process, .lead-process { opacity: 0; transform: translateY(10px); }
.is-process .title-features, .is-process .lead-features { opacity: 0; transform: translateY(-10px); }
.is-process .title-process, .is-process .lead-process { opacity: 1; transform: none; }

/* comutatorul Funcționalități | Procese */
.mode-switch {
  position: relative; isolation: isolate;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-top: 18px; padding: 4px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: #fbfcf7;
}
.mode-btn {
  position: relative; z-index: 1;
  border: 0; background: none; cursor: pointer;
  padding: 9px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: color .3s;
}
.mode-btn[aria-pressed="true"] { color: #fff; }
.mode-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--green-700);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.is-process .mode-thumb { transform: translateX(100%); }

/* ---------- desktopul ---------- */
.desktop { position: relative; max-width: 1320px; margin: clamp(34px, 5.5vh, 60px) auto 0; }
/* Rânduri centrate: 7 foldere pe rând pe ecrane late, ultimul rând rămâne la mijloc. */
.folders {
  --per: 7;
  --col-gap: clamp(8px, 1.4vw, 24px);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: clamp(14px, 2.6vh, 32px) var(--col-gap);
}
.folder-slot {
  display: flex; justify-content: center;
  width: calc((100% - (var(--per) - 1) * var(--col-gap)) / var(--per));
  will-change: transform;
}

.folder {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: 230px;
  padding: 12px 10px 14px;
  border-radius: 18px;
  color: inherit;
  transition: background-color .3s, opacity .4s;
  animation: folder-settle .8s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 70ms + 120ms) both;
}
@keyframes folder-settle {
  0% { opacity: 0; transform: translateY(-28px) scale(.94) rotate(-1.5deg); }
  55% { transform: translateY(5px) scale(1.01); }
  100% { transform: none; }
}
.folder:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* desenul folderului */
.folder-art {
  position: relative; display: block;
  width: 152px; height: 112px;
  margin-bottom: 14px;
  perspective: 620px;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.folder-art::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 16px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20, 44, 36, .24), transparent 70%);
  filter: blur(2px);
  transition: transform .5s, opacity .5s;
}
.folder-back { position: absolute; inset: 0; width: 100%; height: 100%; fill: #3b7a2e; }
/* Foile din folder: fiecare poartă în colț numele unei secțiuni din meniul secundar. */
.folder-sheet {
  position: absolute; left: 50%; top: 15px;
  width: 104px; height: 74px; margin-left: -52px;
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 10px;
  background: #fbfcf6; border-radius: 5px;
  box-shadow: 0 1px 2px rgba(20, 44, 36, .14);
  transform: translate(var(--x, 0), var(--y, 4px)) rotate(var(--r, 0deg));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), box-shadow .4s;
}
.folder-sheet b {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2;
  color: var(--green-700);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(3px);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.folder-sheet i { display: block; height: 3px; width: 72%; border-radius: 2px; background: #dbe5cf; }
.folder-sheet i:nth-of-type(2) { width: 52%; }
.sheet-1 { --x: -10px; --y: 3px; --r: -3deg; background: #eef4e6; }
.sheet-2 { --x: 2px; --y: 5px; --r: 1deg; background: #f5f8ef; }
.sheet-3 { --x: 10px; --y: 7px; --r: 3deg; }
.folder-front {
  position: absolute; left: 1px; right: 1px; bottom: 0; height: 83px;
  display: flex; align-items: flex-end; padding: 13px 14px;
  border-radius: 8px 8px 11px 11px;
  background: linear-gradient(176deg, #6dbb51 0%, #5aa742 52%, #4c9737 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .06), 0 14px 22px -14px rgba(20, 44, 36, .6);
  transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), filter .4s;
}
.folder-icon { width: 26px; height: 26px; fill: none; stroke: #f1fbe9; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* la trecerea cursorului: clapeta se lasă, foile urcă în trepte și își arată numele în colț */
.folder:hover .folder-front, .folder:focus-visible .folder-front { transform: rotateX(-26deg); filter: brightness(1.03); }
.folder:hover .sheet-1, .folder:focus-visible .sheet-1 { --x: -16px; --y: -58px; --r: -5deg; --d: .02s; }
.folder:hover .sheet-2, .folder:focus-visible .sheet-2 { --x: 2px; --y: -36px; --r: 1.5deg; --d: .08s; }
.folder:hover .sheet-3, .folder:focus-visible .sheet-3 { --x: 16px; --y: -14px; --r: 4deg; --d: .14s; }
.folder:hover .folder-sheet, .folder:focus-visible .folder-sheet { box-shadow: 0 10px 18px -10px rgba(20, 44, 36, .45); }
.folder:hover .folder-sheet b, .folder:focus-visible .folder-sheet b { opacity: 1; transform: none; transition-delay: .18s; }
.folder:hover .folder-art, .folder:focus-visible .folder-art { transform: translateY(-3px); }
.folder:hover .folder-art::after { transform: scaleX(.92); opacity: .8; }

.folder-name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.folder-desc { margin-top: 5px; max-width: 210px; font-size: 14px; line-height: 1.45; color: var(--text-secondary); transition: opacity .3s; }

/* ---------- folderul AI: același desen, altă lumină ---------- */
.is-ai .folder-art::before {
  content: ""; position: absolute; inset: -14px -10px -6px; z-index: -1;
  background: radial-gradient(ellipse at 50% 60%, rgba(166, 238, 121, .55), transparent 65%);
  filter: blur(10px);
  animation: ai-glow 3.2s ease-in-out infinite;
}
@keyframes ai-glow { 0%, 100% { opacity: .45; transform: scale(.96); } 50% { opacity: .9; transform: scale(1.04); } }
.is-ai .folder-back { fill: #122a1e; }
.is-ai .folder-front {
  overflow: hidden;
  background: linear-gradient(176deg, #24502f 0%, #183823 55%, #102a1c 100%);
  box-shadow: inset 0 1px 0 rgba(166, 238, 121, .45), inset 0 0 0 1px rgba(166, 238, 121, .22), 0 16px 28px -14px rgba(60, 140, 50, .7);
}
.is-ai .folder-front::after {
  content: ""; position: absolute; inset: -20% -60%;
  background: linear-gradient(105deg, transparent 40%, rgba(166, 238, 121, .32) 50%, transparent 60%);
  transform: translateX(-70%);
  animation: ai-sheen 4.2s ease-in-out 1.6s infinite;
}
@keyframes ai-sheen { 0% { transform: translateX(-70%); } 45%, 100% { transform: translateX(70%); } }
.is-ai .folder-icon { stroke: var(--lime-300); }
/* Fișele H.AI devin etichete care plutesc în jurul robotului. */
.is-ai .folder-sheet {
  width: auto; height: auto; margin-left: 0; padding: 6px 11px;
  border-radius: 999px;
  background: #142c24;
  box-shadow: inset 0 0 0 1px rgba(166, 238, 121, .5), 0 0 18px rgba(166, 238, 121, .3);
  --y: 34px;
  transform: translate(-50%, 0) translate(var(--x, 0), var(--y)) rotate(var(--r, 0deg));
  transition: transform .7s cubic-bezier(.34, 1.4, .64, 1) var(--d, 0s);
}
.is-ai .folder-sheet b { color: var(--lime-300); font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; }
.is-ai .folder-sheet i { display: none; }
.folder:hover .is-ai, .folder-slot.is-ai:hover { z-index: 5; }
.folder-slot.is-ai { position: relative; }
.is-ai .folder:hover .sheet-1, .is-ai .folder:focus-visible .sheet-1 { --x: -78px; --y: -30px; --r: -9deg; --d: .22s; }
.is-ai .folder:hover .sheet-2, .is-ai .folder:focus-visible .sheet-2 { --x: 0px; --y: -90px; --r: 0deg; --d: .3s; }
.is-ai .folder:hover .sheet-3, .is-ai .folder:focus-visible .sheet-3 { --x: 78px; --y: -30px; --r: 9deg; --d: .38s; }

/* Robotul H.AI: stă ascuns în folder și iese la hover. */
.ai-bot {
  position: absolute; left: 50%; top: 4px;
  width: 72px; height: 72px; margin-left: -36px;
  overflow: visible;
  transform: translateY(40px) scale(.86);
  transition: transform .75s cubic-bezier(.34, 1.56, .64, 1) .04s;
}
.is-ai .folder:hover .ai-bot, .is-ai .folder:focus-visible .ai-bot { transform: translateY(-47px) scale(1); }
.bot-head { fill: #1b3826; stroke: rgba(166, 238, 121, .6); stroke-width: 1.5; }
.bot-face { fill: #0b1c13; }
.bot-ear { fill: #2b5a35; }
.bot-eyes circle { fill: var(--lime-300); filter: drop-shadow(0 0 3px rgba(166, 238, 121, .9)); }
.bot-eyes { transform-box: fill-box; transform-origin: center; }
.bot-antenna, .bot-mouth { fill: none; stroke: var(--lime-300); stroke-width: 2; stroke-linecap: round; }
.bot-light { fill: var(--lime-300); filter: drop-shadow(0 0 4px #a6ee79); }
.is-ai .folder:hover .bot-eyes { animation: bot-blink 3s ease-in-out .8s infinite; }
.is-ai .folder:hover .bot-light { animation: bot-pulse 1.4s ease-in-out infinite; }
@keyframes bot-blink { 0%, 8%, 100% { transform: scaleY(1); } 4% { transform: scaleY(.1); } }
@keyframes bot-pulse { 50% { opacity: .35; } }

/* folderul deschis „devine” fereastra */
.folder-slot.is-open .folder-art { visibility: hidden; }

/* ---------- modul Procese: aceleași funcționalități, pas cu pas ---------- */
.desk-page.is-process .desktop { display: none; }
.desk-page.has-js:not(.is-process) .procs { display: none; }
.procs { max-width: 1180px; margin: clamp(30px, 5vh, 54px) auto 0; }
.procs-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 26px; font-size: 14px; color: var(--text-secondary); }
.procs-legend span { display: inline-flex; align-items: center; gap: 7px; }
.procs-legend svg, .step-who svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.procs-legend .is-auto svg, .step.is-auto .step-who svg { fill: currentColor; stroke: none; }
.procs-legend .is-auto { color: var(--green-600); font-weight: 600; }
.procs-legend .is-ai { color: #5b4bb5; font-weight: 600; }
.procs-legend .is-ai svg, .step.is-ai .step-who svg { fill: currentColor; stroke: none; }
.proc-group { margin: 14px 14px 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.proc-group:first-child { margin-top: 0; }
.proc-group.is-ai { color: #5b4bb5; }

.procs-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.proc-tabs { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 4px; }
.proc-tab {
  display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--text-secondary);
  font-size: 16px; font-weight: 500; line-height: 1.3;
  transition: background var(--dur-ui), color var(--dur-ui);
}
.proc-tab:hover { background: rgba(38, 61, 40, .06); color: var(--text-primary); }
.proc-tab[aria-selected="true"] { background: var(--green-800); color: #f0f7ea; }
.proc-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); }
.proc-tab[aria-selected="true"] .proc-num { color: var(--lime-300); }

.proc { padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--rule); }
.proc-head h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.proc-head p { margin-top: 8px; font-size: 18px; color: var(--text-secondary); }
.proc-auto { display: inline-flex; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--lime-100); font-size: 13px; color: var(--green-700); }
.proc-auto b { font-weight: 700; }

.steps { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: pas; }
.step {
  position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 18px; align-items: baseline;
  padding: 14px 16px 14px 46px; border-radius: 14px; counter-increment: pas;
}
.step::before {
  content: counter(pas); position: absolute; left: 10px; top: 13px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; background: #eef3e6; color: var(--green-700);
}
.step:not(:last-child)::after { content: ""; position: absolute; left: 21.5px; top: 40px; bottom: -14px; width: 1px; background: #d6e2cb; }
.step + .step { margin-top: 2px; }
.step.is-auto { background: linear-gradient(90deg, #f1f9e8, rgba(241, 249, 232, 0)); }
.step.is-auto::before { background: var(--lime-300); color: var(--green-800); }
.step-who { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.step.is-contabil .step-who { color: var(--green-700); }
.step.is-auto .step-who { color: var(--green-600); }
.step.is-admin .step-who { color: var(--green-700); }
.step.is-ai { background: linear-gradient(90deg, #f1effc, rgba(241, 239, 252, 0)); }
.step.is-ai::before { background: #d9d3f6; color: #3b2f86; }
.step.is-ai .step-who { color: #5b4bb5; }
.step p { font-size: 17px; line-height: 1.45; color: var(--text-primary); }
.step-where {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  padding: 4px 10px; border-radius: 8px; border: 1px solid var(--rule); background: #fbfcf8;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
  transition: border-color var(--dur-ui), color var(--dur-ui), background var(--dur-ui);
}
.step-where span { color: var(--green-400); }
.step-where:hover { border-color: var(--green-400); color: var(--text-primary); background: #fff; }

.proc-ai { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--green-950); color: #d9f2cc; }
.proc-ai-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--lime-300); }
.proc-ai-q { margin-top: 8px; font-size: 19px; line-height: 1.35; color: #f0f7ea; }
.proc-ai-q::before { content: "> "; font-family: var(--font-mono); color: var(--lime-300); }
.proc-ai-note { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-on-dark-muted); }

.procs-more {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  margin-top: clamp(28px, 4vw, 44px); padding: clamp(26px, 4vw, 44px); border-radius: 26px; background: var(--green-800); color: #f0f7ea;
}
.procs-more .eyebrow { color: var(--lime-300); }
.procs-more h3 { margin-top: 10px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.procs-more h3 em { color: var(--lime-300); }
.procs-more-text > p:last-child { margin-top: 12px; max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--text-on-dark-muted); }
.procs-more-actions { display: grid; justify-items: start; gap: 14px; }
.procs-more-link { font-size: 15px; font-weight: 500; color: var(--text-on-dark-muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(166, 238, 121, .5); }
.procs-more-link:hover { color: #fff; }

/* ---------- fereastra ---------- */
.win-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(245, 246, 239, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.win {
  position: fixed; inset: 0; z-index: 61; margin: auto;
  width: min(1080px, 94vw); height: min(700px, 88svh);
  transform-origin: 0 0;
}
.win[hidden], .win-backdrop[hidden] { display: none; }
.win-surface {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(38, 61, 40, .1);
  border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(20, 44, 36, .38), 0 2px 6px rgba(20, 44, 36, .06);
  overflow: hidden;
}
.win.is-moving .win-bar, .win.is-moving .win-body { opacity: 0; }
.win-bar, .win-body { transition: opacity .25s; }
.win-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px 14px 24px;
  border-bottom: 1px solid var(--rule);
}
.win-crumb { color: var(--text-secondary); letter-spacing: .1em; }
.win-crumb strong { color: var(--green-700); font-weight: 500; }
.win-close {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--rule); background: #fff; cursor: pointer;
  transition: background-color .2s, transform .3s var(--ease-out);
}
.win-close:hover { background: #eef4e4; transform: rotate(90deg); }
.win-close svg { width: 18px; height: 18px; stroke: var(--green-700); stroke-width: 1.8; stroke-linecap: round; }
.win-body { flex: 1; overflow: auto; padding: clamp(22px, 3.2vw, 44px); overscroll-behavior: contain; }

.win-grid { display: grid; grid-template-columns: minmax(260px, .9fr) 1.3fr; gap: clamp(24px, 4vw, 60px); }
.win-folder-mark, .win-soon-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(176deg, #6dbb51, #4c9737);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.win-icon { width: 26px; height: 26px; fill: none; stroke: #f1fbe9; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.win-side h1, .win-side h2, .win-soon h2 { margin: 20px 0 12px; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.win-side h1 em, .win-side h2 em { color: #3f7424; letter-spacing: -.01em; }
.win-intro { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

.entries { display: grid; gap: 6px; margin-top: 26px; }
.entry {
  position: relative;
  display: grid; gap: 3px; text-align: left;
  padding: 13px 16px 13px 20px;
  border: 1px solid transparent; border-radius: 14px;
  background: transparent; cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.entry::before {
  content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px;
  background: var(--green-400); transform: scaleY(0); transition: transform .35s var(--ease-out);
}
.entry:hover { background: #f1f6ea; }
.entry[aria-selected="true"] { background: #eaf2df; border-color: rgba(78, 127, 53, .22); }
.entry[aria-selected="true"]::before { transform: scaleY(1); }
.entry-name { font-size: 16px; font-weight: 600; }
.entry-line { font-size: 14px; color: var(--text-secondary); }

.detail.is-entering { animation: detail-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes detail-in { from { opacity: 0; transform: translateY(10px); } }
.detail-text { font-size: 17px; line-height: 1.55; margin-bottom: 20px; max-width: 560px; }
.shot { margin: 0; }
.shot-frame {
  background: #fff; border: 1px solid rgba(38, 61, 40, .1); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(20, 44, 36, .35);
}
.shot-head {
  display: flex; gap: 10px; align-items: baseline;
  padding: 13px 18px; border-bottom: 1px solid rgba(38, 61, 40, .08);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
}
.shot-head b { color: var(--green-700); font-weight: 500; }
.mock-list { list-style: none; margin: 0; padding: 0; }
.mock-list li {
  display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start;
  padding: 14px 18px; border-bottom: 1px solid rgba(38, 61, 40, .06);
}
.mock-list li:last-child { border-bottom: 0; }
.mock-list b { display: block; font-size: 14px; font-weight: 600; }
.mock-list span { display: block; font-size: 13.5px; color: var(--text-secondary); margin-top: 2px; }
.mock-list time { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.star::before { content: "★"; color: #4e8f3a; font-style: normal; font-size: 14px; line-height: 1.4; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: #4cae6e; }
li:nth-child(2) > .dot { background: #e0a83a; } li:nth-child(3) > .dot { background: #b8433b; }
.docmark { width: 14px; height: 17px; margin-top: 2px; border-radius: 2px 6px 2px 2px; border: 1.5px solid #6b8f5a; }
.mock-status .st-0 { box-shadow: inset 3px 0 0 #e0a83a; }
.mock-status .st-1 { box-shadow: inset 3px 0 0 #b8433b; }
.mock-status .st-2 { box-shadow: inset 3px 0 0 #4cae6e; }
.mock-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding: 16px; }
.tile { background: #f3f7ec; border-radius: 10px; padding: 12px 12px 8px; }
.tile span { font-size: 13px; font-weight: 600; }
.tile svg { display: block; width: 100%; height: 34px; margin-top: 8px; fill: none; stroke: #4e8f3a; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.mock-search { padding: 16px 0 0; }
.search-field { display: flex; align-items: center; gap: 10px; margin: 0 16px 6px; padding: 11px 14px; border: 1px solid rgba(38, 61, 40, .16); border-radius: 10px; font-size: 14px; color: var(--text-secondary); }
.search-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mock-chat { display: grid; gap: 10px; padding: 18px; }
.bubble { max-width: 85%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bubble-me { justify-self: end; background: #eaf2df; border-bottom-right-radius: 4px; }
.bubble-ai { justify-self: start; background: #163222; color: #eaf6e2; border-bottom-left-radius: 4px; }
.ai-spark { display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--lime-300); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.bubble-typing { justify-self: start; display: flex; gap: 4px; padding: 10px 12px; background: #f1f6ea; }
.bubble-typing i { width: 6px; height: 6px; border-radius: 50%; background: #6b8f5a; animation: typing 1.2s ease-in-out infinite; }
.bubble-typing i:nth-child(2) { animation-delay: .15s; } .bubble-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.win-panel[data-panel="ai"] .win-folder-mark { background: linear-gradient(176deg, #24502f, #102a1c); box-shadow: inset 0 0 0 1px rgba(166, 238, 121, .3), 0 0 24px rgba(166, 238, 121, .35); }
.win-panel[data-panel="ai"] .win-icon { stroke: var(--lime-300); }
.dot-a { background: #e0a83a; } .dot-b { background: #b8433b; } .dot-c { background: #4cae6e; }
.mock-depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.mock-depts > div { background: #f3f7ec; border-radius: 10px; padding: 12px; }
.mock-depts b { font-size: 13px; font-weight: 600; }
.bar { display: block; height: 10px; width: calc(var(--w) * 100%); margin-top: 10px; border-radius: 5px; background: #d3e3c3; }
.shot figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* ---------- ilustrații după aplicația reală: Comunicare (feed, mesaje importante, departamente) ---------- */
.mk { --d-cont: #e0a83a; --d-hr: #b8433b; --d-adm: #4e8f3a; font-size: 13.5px; }
.mk .shot-head { align-items: center; }
.mk-search { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f3f7ec; font-size: 11.5px; color: var(--text-secondary); }
.mk-search svg, .mk-ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mk-body { padding: 14px; display: grid; gap: 10px; background: #f6f8f2; }
.av { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10.5px; font-weight: 700; color: #fff; background: #3f6b45; }
.av.av-b { background: #8a6d3b; } .av.av-c { background: #5b6f8f; }
img.av { display: block; object-fit: cover; background: none; }
.mk-role { padding: 1px 7px; border-radius: 999px; background: #eef3e6; font-size: 11px; font-weight: 500; color: #4f5f4c; white-space: nowrap; }
.mk-card { background: #fff; border-radius: 12px; border: 1px solid rgba(38, 61, 40, .08); box-shadow: 0 6px 16px -12px rgba(20, 44, 36, .35); }
.mk-compose { position: relative; padding: 10px 12px; display: grid; gap: 10px; }
.mk-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk-input { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-green { color: #3f7424; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.mk-send { position: relative; margin-left: auto; }
.mk-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: #3f7d2c; color: #fff; font-weight: 600; white-space: nowrap; }
.mk-menu-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 2; margin: 0; padding: 8px 6px; width: 168px; background: #fff; border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(20, 44, 36, .45); border: 1px solid rgba(38, 61, 40, .08); }
.mk-menu-box ul { list-style: none; margin: 0; padding: 0; }
.mk-menu-box p { margin: 0 0 4px; padding: 0 8px; font-size: 11.5px; color: var(--text-secondary); }
.mk-menu-box li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-weight: 600; }
.mk-menu-box li:first-of-type { background: #fdf6e8; }
.dep { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dep-cont { background: var(--d-cont); } .dep-hr { background: var(--d-hr); } .dep-adm { background: var(--d-adm); }
.t-cont { color: #8a5d12; } .t-hr { color: #a63a33; } .t-adm { color: #3f7424; }
.mk-sep { display: flex; align-items: center; gap: 10px; margin: 2px 2px 0; font-size: 11.5px; color: var(--text-secondary); }
.mk-sep::after { content: ""; flex: 1; height: 1px; background: rgba(38, 61, 40, .12); }
.mk-post { overflow: hidden; }
.mk-post.is-cont { border-top: 2px solid var(--d-cont); } .mk-post.is-hr { border-top: 2px solid var(--d-hr); } .mk-post.is-adm { border-top: 2px solid var(--d-adm); }
.mk-post header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid rgba(38, 61, 40, .06); }
.mk-post header b { font-weight: 600; }
.mk-pin { width: 12px; height: 12px; fill: #7d8a7a; flex: none; }
.mk-tag { padding: 1px 7px; border-radius: 6px; background: #3f7d2c; color: #fff; font-size: 11px; font-weight: 600; }
.mk-dep { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.mk-post > p { padding: 9px 12px 0; margin: 0; }
.mk-doc { margin: 9px 12px 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #f3f7ec; font-weight: 500; }
.mk-doc .mk-file { width: 14px; height: 17px; border-radius: 2px 5px 2px 2px; border: 1.5px solid #6b8f5a; flex: none; }
.mk-post footer { display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 8px 12px; border-top: 1px solid rgba(38, 61, 40, .06); color: var(--text-secondary); }
.mk-post footer .mk-green { margin-left: auto; }
.mk-stage { position: relative; min-height: 150px; place-items: center; background: linear-gradient(180deg, #e9eee3, #dfe6d8); }
.mk-modal { width: min(92%, 330px); padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -18px rgba(20, 44, 36, .55); }
.mk-modal small { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }
.mk-modal p { margin: 8px 0 12px; font-size: 14px; line-height: 1.45; }
.mk-note { padding: 8px 14px 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); background: #fff; }
.mk-split { display: grid; grid-template-columns: 150px 1fr; background: #f6f8f2; }
.mk-side { margin: 0; padding: 12px 8px; background: #eef2e8; border-right: 1px solid rgba(38, 61, 40, .08); }
.mk-side ul { list-style: none; margin: 0; padding: 0; }
.mk-side p { margin: 0 0 6px; padding: 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.mk-side li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-weight: 500; }
.mk-side li.is-on { background: #fff; box-shadow: 0 4px 12px -8px rgba(20, 44, 36, .5); font-weight: 600; }
.mk-split .mk-body { min-width: 0; }
@media (max-width: 560px) {
  .mk-split { grid-template-columns: 1fr; }
  .mk-side { border-right: 0; border-bottom: 1px solid rgba(38, 61, 40, .08); }
  .mk-side ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .mk-search span { display: none; }
}

/* ---------- ilustrații după aplicația reală: Documente (foldere, stare și acțiuni, arhivă) ---------- */
.mk { --st-nou: #e0a83a; --st-neclar: #b8433b; --st-gata: #4e8f3a; }
.mk-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: #fff; border: 1px solid rgba(38, 61, 40, .12); font-size: 12px; font-weight: 500; white-space: nowrap; }
.mk-chip.is-on { background: #3f7d2c; border-color: #3f7d2c; color: #fff; }
.mk-chip .mk-ic { width: 12px; height: 12px; }
.mk-dots { display: inline-flex; gap: 7px; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid rgba(38, 61, 40, .12); }
.st-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; display: inline-block; }
.st-nou { background: var(--st-nou); } .st-neclar { background: var(--st-neclar); } .st-gata { background: var(--st-gata); }
.mk-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mk-docs figure, .mk-docs > div { margin: 0; min-width: 0; }
.mk-thumb { position: relative; aspect-ratio: 4 / 3.3; padding: 10px 10px 8px; border-radius: 8px; background: #fff; border: 1px solid rgba(38, 61, 40, .1); box-shadow: 0 6px 14px -10px rgba(20, 44, 36, .4); display: grid; align-content: start; gap: 4px; }
.mk-thumb .st-dot { position: absolute; top: 7px; right: 7px; width: 10px; height: 10px; }
.mk-thumb i { display: block; height: 3px; border-radius: 2px; background: #e3e9dc; width: var(--w, 80%); }
.mk-thumb i.lg { height: 6px; width: 38%; background: #b9d7a6; margin: 0 auto 4px; }
.mk-thumb i.tot { margin-top: 4px; margin-left: auto; width: 32%; background: #cfdac6; }
.mk-docname { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-act { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.mk-actmenu { background: #fff; border-radius: 12px; padding: 10px 6px 6px; box-shadow: 0 16px 30px -14px rgba(20, 44, 36, .5); border: 1px solid rgba(38, 61, 40, .08); }
.mk-actmenu .mk-states { display: flex; justify-content: space-around; padding: 2px 6px 10px; border-bottom: 1px solid rgba(38, 61, 40, .08); }
.mk-states span { display: grid; justify-items: center; gap: 4px; font-size: 10.5px; color: var(--text-secondary); }
.mk-states .st-dot { width: 16px; height: 16px; }
.mk-states .is-on .st-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--st-nou); }
.mk-actmenu ul { list-style: none; margin: 6px 0 0; padding: 0; }
.mk-actmenu li { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; font-weight: 500; color: #3f7424; }
.mk-actmenu li:first-child { background: #f1f6ea; }
.mk-scroll { overflow-x: auto; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
.mk-table th { text-align: left; font-weight: 600; padding: 9px 12px; border-bottom: 1px solid rgba(38, 61, 40, .1); white-space: nowrap; }
.mk-table td { padding: 8px 12px; border-bottom: 1px solid rgba(38, 61, 40, .06); white-space: nowrap; }
.mk-table tr:last-child td { border-bottom: 0; }
.mk-dl { display: inline-block; padding: 5px 10px; border-radius: 7px; background: #3f7d2c; color: #fff; font-weight: 600; font-size: 12px; }
.mk-pass { display: inline-flex; align-items: center; gap: 8px; padding: 4px 9px; border-radius: 7px; border: 1px solid rgba(38, 61, 40, .14); color: var(--text-secondary); letter-spacing: .08em; }
@media (max-width: 560px) {
  .mk-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-docs > :nth-child(n+5) { display: none; }
  .mk-act { grid-template-columns: 1fr; }
  .mk-act > :first-child { max-width: 60%; }
  .mk-table .mk-hide { display: none; }
  .mk-table td:first-child { white-space: normal; }
  .mk-table th, .mk-table td { padding: 8px 9px; }
}

/* ---------- ilustrații după aplicația reală: Facturare (facturi, recurente, furnizori, registru de casă) ---------- */
.mk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mk-bar .mk-right { margin-left: auto; }
.mk-btn.is-ghost { background: #fff; color: #2e3f2b; border: 1px solid rgba(38, 61, 40, .16); }
.mk-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.mk-pill.ok { background: #e3f1da; color: #2f6a1f; } .mk-pill.wait { background: #eef0eb; color: #5c6a59; }
.mk-pill.no { background: #f8e3e0; color: #9a3129; } .mk-pill.warn { background: #fbefd9; color: #8a5d12; }
.mk-by { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 11.5px; color: var(--text-secondary); }
.mk-by img.av { width: 20px; height: 20px; }
.mk-table td.num, .mk-table th.num { text-align: right; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-tile { padding: 9px 11px; border-radius: 10px; background: #fff; border-left: 3px solid var(--c, #4e8f3a); box-shadow: 0 6px 14px -12px rgba(20, 44, 36, .5); min-width: 0; }
.mk-tile small { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tile b { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--c-t, #2f6a1f); white-space: nowrap; }
.mk-recur { padding: 12px 14px; display: grid; gap: 8px; }
.mk-kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 12.5px; }
.mk-kv dt { color: var(--text-secondary); } .mk-kv dd { margin: 0; font-weight: 600; }
.mk-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; }
.mk-flow span { padding: 4px 9px; border-radius: 999px; background: #eaf3e2; color: #2f6a1f; font-weight: 600; }
.mk-flow i { color: #8aa37f; font-style: normal; }
.mk-note2 { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px dashed rgba(38, 61, 40, .2); font-size: 12px; color: var(--text-secondary); }
.mk-note2 b { color: var(--text-primary); font-weight: 600; }
.win-proc { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 600; color: #3f7424; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--lime-300); }
@media (max-width: 560px) {
  .mk-tiles { grid-template-columns: 1fr 1fr; }
  .mk-tiles > :nth-child(3) { grid-column: 1 / -1; }
  .mk-kv { grid-template-columns: 1fr; }
}

/* ---------- ilustrații după aplicația reală: H.AI (răspunsuri, balanță, chat, documente) ---------- */
.mk-hai { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #3f7424; }
.mk-hai .mk-ic { width: 14px; height: 14px; }
.mk-draft { padding: 10px 12px; display: grid; gap: 8px; border: 1px solid #cfe3bf; background: #f7fbf2; border-radius: 12px; }
.mk-draft > small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-secondary); }
.mk-draft p { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid rgba(38, 61, 40, .12); line-height: 1.45; }
.mk-draft p::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #3f7424; animation: mk-caret 1s steps(1) infinite; }
@keyframes mk-caret { 50% { opacity: 0; } }
.mk-draft .mk-bar { justify-content: flex-end; }
.mk-report { padding: 12px 14px; display: grid; gap: 8px; font-size: 12.5px; }
.mk-report .mk-h4 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.mk-report .mk-h5 { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.mk-ok { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: #e9f4e1; color: #2f6a1f; font-weight: 600; }
.mk-issue { padding: 8px 10px; border-radius: 8px; background: #fff; border-left: 3px solid var(--c, #b8433b); box-shadow: 0 4px 12px -10px rgba(20, 44, 36, .5); }
.mk-issue b { display: block; font-weight: 700; }
.mk-issue span { display: block; margin-top: 2px; color: var(--text-secondary); line-height: 1.4; }
.mk-issue em { font-style: normal; font-weight: 600; color: var(--text-primary); }
.mk-chat { display: grid; grid-template-rows: auto 1fr auto; background: #fff; }
.mk-chat-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #1d2b22; color: #fff; }
.mk-chat-head .mk-hai { color: #fff; }
.mk-beta { padding: 1px 6px; border-radius: 6px; background: #6fbf4f; color: #10210f; font-size: 10px; font-weight: 700; }
.mk-prof { display: flex; gap: 6px; margin-left: auto; }
.mk-prof span { padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 600; background: #ffffff1a; }
.mk-prof span.is-on { background: #fff; color: #1d2b22; }
.mk-msgs { padding: 12px; display: grid; gap: 8px; background: #f6f8f2; }
.mk-msg { display: flex; gap: 8px; align-items: flex-end; }
.mk-msg.me { justify-content: flex-end; }
.mk-msg p { margin: 0; max-width: 82%; padding: 8px 11px; border-radius: 12px; line-height: 1.45; }
.mk-msg.me p { background: #e3f1da; border-bottom-right-radius: 4px; }
.mk-msg.ai p { background: #1d2b22; color: #eaf6e2; border-bottom-left-radius: 4px; }
.mk-msg .mk-hai-dot { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e9f4e1; color: #3f7424; }
.mk-msg .mk-hai-dot .mk-ic { width: 13px; height: 13px; }
.mk-input2 { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid rgba(38, 61, 40, .08); color: var(--text-secondary); }
.mk-input2 .mk-btn { margin-left: auto; padding: 5px 9px; }
.mk-gr { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; align-items: start; }
.mk-paper { padding: 11px 12px; border-radius: 8px; background: #fff; border: 1px solid rgba(38, 61, 40, .12); box-shadow: 0 6px 14px -10px rgba(20, 44, 36, .4); font-size: 10.5px; line-height: 1.45; color: #3a463a; }
.mk-paper b { display: block; font-size: 11.5px; letter-spacing: .02em; color: #1f2a1f; }
.mk-paper .rw { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; margin-top: 4px; border-top: 1px dashed rgba(38, 61, 40, .18); }
.mk-paper .rw:first-of-type { border-top: 0; }
.mk-ans { padding: 10px 12px; border-radius: 12px; background: #1d2b22; color: #eaf6e2; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.5; }
.mk-ans .mk-hai { color: var(--lime-300); }
.mk-ans b { color: #fff; font-weight: 600; }
.mk-ans small { color: #b3c8b0; font-size: 11px; }
@media (max-width: 560px) {
  .mk-gr { grid-template-columns: 1fr; }
  .mk-prof span:first-child { display: none; }
}
/* ---------- ilustrații după aplicația reală: Rapoarte (dashboard, raport balanță, verificare balanță) ---------- */
.mk-fbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; }
.mk-fbar i { flex: var(--w) 1 0; background: var(--c); }
.mk-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-secondary); }
.mk-legend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mk-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.mk-legend b { color: var(--text-primary); font-weight: 600; }
.mk-pad { padding: 9px 12px 4px; }
.mk-cap { font-size: 13px; font-weight: 700; }
.mk-filters .mk-chip { padding: 3px 8px; font-size: 11px; }
.mk-spark { display: block; width: 90px; height: 20px; fill: none; stroke: #3f7d2c; stroke-width: 1.6; stroke-linejoin: round; }
.mk-inds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-ind { padding: 9px 11px; border-radius: 10px; background: #fff; border: 1px solid rgba(38, 61, 40, .08); display: grid; gap: 3px; justify-items: start; min-width: 0; }
.mk-ind small { font-size: 11px; color: var(--text-secondary); }
.mk-ind b { font-size: 17px; font-weight: 700; color: #2f6a1f; letter-spacing: -.01em; }
.mk-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mk-chk { position: relative; padding: 7px 10px 7px 30px; border-radius: 8px; background: #f3f8ee; border-left: 3px solid #4e8f3a; }
.mk-chk::before { content: "✓"; position: absolute; left: 10px; top: 7px; font-weight: 700; color: #2f6a1f; }
.mk-chk b { display: block; font-weight: 700; }
.mk-chk span { display: block; color: var(--text-secondary); font-size: 11.5px; line-height: 1.4; }
.mk-chk.is-no { background: #fbeeec; border-left-color: #b8433b; }
.mk-chk.is-no::before { content: "✕"; color: #9a3129; }
.mk-an { margin: 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.45; }
.mk-an b { color: #245d8f; font-weight: 700; }
@media (max-width: 560px) {
  .mk-inds { grid-template-columns: 1fr 1fr; }
  .mk-inds > :nth-child(3) { grid-column: 1 / -1; }
  .mk-checks { grid-template-columns: 1fr; }
  .mk-spark { width: 60px; }
  .mk-ctx { display: none; }
}
/* ---------- ilustrații după aplicația reală: ANAF (depunere, raport, mesaje SPV, SAF-T) ---------- */
.mk-flow.mk-right { margin-left: auto; }
.mk-decl .mk-grp td { background: #f6f8f2; display: table-cell; }
.mk-grp td > * { vertical-align: middle; }
.mk-grp b { margin: 0 10px 0 6px; font-weight: 700; }
.mk-grp .mk-pill { margin-right: 6px; }
.mk-caret { display: inline-block; color: #6b7a68; font-weight: 700; }
.mk-grp.is-open .mk-caret { transform: rotate(90deg); }
.mk-dtype { display: inline-block; padding: 1px 7px; border-radius: 5px; background: #2f6fa8; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.mk-rec { display: inline-flex; gap: 10px; color: #3f7424; }
.mk-rec .mk-ic { width: 15px; height: 15px; }
.mk-rec .is-share { color: #6b7a68; }
.mk-note2 .av.mk-av-in { display: inline-block; width: 18px; height: 18px; margin: 0 4px; vertical-align: -4px; }
.mk-sub { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--text-secondary); }
.mk-who { display: inline-flex; align-items: center; gap: 8px; }
.mk-who .av { width: 22px; height: 22px; font-size: 9.5px; }
.mk-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; }
.mk-prog i { width: 80px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #3f7d2c calc(var(--p) * 1%), #e6ebe1 0); }
.mk-msgl { display: grid; }
.mk-mrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid rgba(38, 61, 40, .06); }
.mk-mrow:last-child { border-bottom: 0; }
.mk-mrow b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-mrow > span:not(.mk-green) { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-mrow time { font-size: 11.5px; color: var(--text-secondary); }
.mk-mrow .mk-green { font-size: 12px; }
.mk-mrow.is-new b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #3f7d2c; vertical-align: 1px; }
.mk-req { padding: 10px 12px; display: grid; gap: 6px; }
.mk-req .mk-h5 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.mk-rq { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 10px; }
.mk-rq > span:first-child { font-weight: 600; }
.mk-rq .mk-by { margin-left: auto; }
.mk-chk.is-warn { background: #fdf5e6; border-left-color: #e0a83a; }
.mk-chk.is-warn::before { content: "!"; color: #8a5d12; left: 12px; }
@media (max-width: 560px) {
  .mk-flow.mk-right { margin-left: 0; }
  .mk-mrow { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .mk-mrow > span:not(.mk-green) { grid-column: 1; grid-row: 2; }
  .mk-mrow .mk-green { grid-column: 2; grid-row: 2; }
  .mk-prog i { width: 44px; }
  .mk-rq { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-rq .mk-by { margin-left: 0; grid-row: 2; }
}
/* ---------- ilustrații după aplicația reală: Bănci (tranzacții, conectare, conexiuni) ---------- */
.mk-bk { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; margin-right: 6px; border-radius: 6px; background: #eef3e6; color: #2e3f2b; font-size: 10px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.mk-table td.mk-in { color: #2f6a1f; font-weight: 600; }
.mk-both { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mk-both .mk-by { margin-left: 0; }
.mk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-secondary); }
.mk-steps li { display: inline-flex; align-items: center; gap: 6px; }
.mk-steps i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e6ebe1; font-style: normal; font-size: 11px; font-weight: 700; }
.mk-steps .is-on { color: #2f6a1f; font-weight: 700; }
.mk-steps .is-on i { background: #3f7d2c; color: #fff; }
.mk-search.mk-search-wide { margin-left: 0; border-radius: 8px; padding: 7px 10px; background: #fff; border: 1px solid rgba(38, 61, 40, .12); }
.mk-banks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mk-more { margin: -2px 0 0; font-size: 11.5px; color: var(--text-secondary); }
.mk-banks > div { display: flex; align-items: center; padding: 7px 8px; border-radius: 9px; background: #fff; border: 1px solid rgba(38, 61, 40, .1); min-width: 0; }
.mk-banks b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-conn { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 140px; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(38, 61, 40, .06); }
.mk-conn:last-child { border-bottom: 0; }
.mk-conn .mk-bk { width: 34px; height: 30px; margin: 0; font-size: 11px; }
.mk-conn b { display: block; font-weight: 600; }
.mk-conn small { display: block; font-size: 11.5px; color: var(--text-secondary); }
.mk-conn .mk-green { font-size: 12px; text-align: right; }
@media (max-width: 560px) {
  .mk-banks { grid-template-columns: 1fr 1fr; }
  .mk-conn { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mk-conn > :last-child { grid-column: 2 / -1; text-align: left; }
  .mk-conn > :last-child:empty { display: none; }
}
/* ---------- ilustrații după aplicația reală: CRM (taskuri, dashboard, timp lucrat, comunicări) ---------- */
.mk-dept { padding: 4px 12px 8px; }
.mk-dh { display: flex; justify-content: space-between; margin: 8px 0 2px; padding: 6px 10px; border-radius: 8px; background: #eaf1f6; color: #245d8f; font-size: 12px; }
.mk-dh b { font-weight: 700; }
.mk-dh span { font-weight: 600; }
.mk-dept ul { list-style: none; margin: 0; padding: 0; }
.mk-dept li { display: grid; grid-template-columns: minmax(0, 1fr) 56px 82px; gap: 8px; align-items: center; padding: 5px 2px; border-bottom: 1px solid rgba(38, 61, 40, .06); }
.mk-dept li:last-child { border-bottom: 0; }
.mk-dept li small { text-align: right; color: var(--text-secondary); font-size: 11.5px; }
.mk-dept li .mk-pill { justify-self: end; }
.mk-vec { font-style: normal; font-weight: 700; color: #2f6a1f; }
.mk-who-l { margin-left: 0; font-size: 12.5px; color: var(--text-primary); font-weight: 600; }
.mk-who-l img.av { width: 22px; height: 22px; }
.mk-tl { padding: 8px 12px 10px; display: grid; gap: 6px; position: relative; }
.mk-tlr { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: center; }
.mk-tld { font-size: 12px; font-weight: 600; white-space: nowrap; }
.mk-tld i { font-style: normal; font-size: 10.5px; padding: 0 5px; border-radius: 99px; background: #e3f1da; color: #2f6a1f; }
.mk-tlt { position: relative; height: 22px; background: repeating-linear-gradient(90deg, rgba(38, 61, 40, .08) 0 1px, transparent 1px 20%); }
.mk-tlh .mk-tlt { height: 16px; background: none; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-secondary); }
.mk-tlh i { font-style: normal; }
.mk-tb { position: absolute; top: 2px; bottom: 2px; left: var(--l); width: var(--w); border-radius: 99px; background: #3f8fc9; color: #fff; font-size: 10px; font-weight: 600; line-height: 18px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tb.is-nf { background: #7a63c7; }
.mk-tip { justify-self: center; display: grid; gap: 1px; padding: 6px 10px; border-radius: 8px; background: #1d2b22; color: #eaf6e2; font-size: 11.5px; }
.mk-tip b { color: #fff; font-weight: 600; }
.mk-tix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-tk { position: relative; display: grid; grid-template-rows: auto 1fr auto; background: #fff; border-radius: 10px; border: 1px solid rgba(38, 61, 40, .1); overflow: hidden; }
.mk-tk.is-open::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 16px 16px 0; border-color: transparent #c0453b transparent transparent; }
.mk-tk header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 9px 10px 4px; }
.mk-tk header b { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tk header small { display: block; font-size: 10.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tk header .mk-dep { grid-column: 1 / -1; margin-left: 0; font-size: 11px; }
.mk-tk p { margin: 0; padding: 4px 10px 8px; font-size: 12.5px; line-height: 1.4; }
.mk-tk footer { display: flex; justify-content: space-between; padding: 6px 10px; background: #f6f8f2; font-size: 11px; color: var(--text-secondary); }
.mk-tk footer .mk-green { display: inline-flex; align-items: center; gap: 3px; }
@media (max-width: 560px) {
  .mk-dept li { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-dept li small { display: none; }
  .mk-tlr { grid-template-columns: 56px minmax(0, 1fr); }
  .mk-tld i { display: none; }
  .mk-tb { font-size: 0; padding: 0; }
  .mk-tix { grid-template-columns: 1fr; }
  .mk-tk-3 { display: none; }
}
/* ---------- ilustrații după aplicația reală: Clienți noi (lead-uri, acceptă/refuză, recomandări) ---------- */
.mk-acts { display: inline-flex; gap: 6px; }
.mk-acts .mk-btn { padding: 4px 9px; font-size: 11.5px; }
.mk-btn.is-no { color: #9a3129; border-color: rgba(154, 49, 41, .35); }
.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.mk-dec { padding: 12px 14px; display: grid; gap: 8px; justify-items: start; font-size: 12.5px; }
.mk-dec > b { font-size: 14px; font-weight: 700; }
.mk-dec p { margin: 0; color: var(--text-secondary); line-height: 1.45; }
.mk-dec .mk-h5 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.mk-dec .mk-h5.is-ok { color: #2f6a1f; } .mk-dec .mk-h5.is-no { color: #9a3129; }
.mk-dec .mk-h5 .mk-who { text-transform: none; letter-spacing: 0; font-size: 12px; }
.mk-dec .mk-kv { grid-template-columns: 70px 1fr; align-items: center; width: 100%; }
.mk-who img.av { width: 20px; height: 20px; }
.mk-field { display: grid; gap: 2px; width: 100%; padding: 6px 9px; border-radius: 8px; border: 1px solid rgba(38, 61, 40, .14); background: #fff; }
.mk-field small { font-size: 10.5px; color: var(--text-secondary); }
.mk-stack { display: grid; gap: 10px; }
.mk-set { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.mk-set b { display: block; font-weight: 700; }
.mk-set small { display: block; font-size: 11.5px; color: var(--text-secondary); }
.mk-toggle { flex: none; margin-left: auto; width: 34px; height: 20px; border-radius: 99px; background: #c9d1c4; position: relative; }
.mk-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.mk-toggle.is-on { background: #3f7d2c; } .mk-toggle.is-on::after { left: 16px; }
@media (max-width: 560px) {
  .mk-two { grid-template-columns: 1fr; }
}
/* ---------- ilustrații după aplicația reală: Companii (portofoliu, rapoarte, remindere, setări) ---------- */
.mk-count { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(38, 61, 40, .1); font-size: 12px; color: var(--text-secondary); }
.mk-count b { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.mk-count.is-warn { background: #fdf3e3; border-color: #f2dcb4; color: #8a5d12; }
.mk-count.is-warn b { color: #8a5d12; }
.mk-warn-t { font-size: 12px; font-weight: 600; color: #8a5d12; }
.mk-table tr.is-off td { color: var(--text-secondary); }
.mk-table tr.is-off b { font-weight: 600; }
.mk-tree, .mk-tree ul { list-style: none; margin: 0; padding: 0; }
.mk-tree { display: grid; gap: 5px; width: 100%; }
.mk-tree b { font-weight: 700; }
.mk-tree b::before { content: ""; display: inline-block; width: 12px; height: 9px; margin-right: 7px; border-radius: 2px; background: #9cc77f; vertical-align: 0; }
.mk-tree ul { padding-left: 19px; color: var(--text-secondary); }
.mk-tree ul li::before { content: "└ "; color: #b7c2b2; }
/* ---------- ilustrații după aplicația reală: Verificare partener ---------- */
.mk-grow { flex: 1; }
.mk-firm { padding: 12px 14px; display: grid; gap: 6px; }
.mk-firm > b { font-size: 15px; font-weight: 700; }
.mk-firm small { font-size: 12px; color: var(--text-secondary); }
.mk-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-scores > div { padding: 9px 10px; border-radius: 10px; background: #fff; border-top: 3px solid #4e8f3a; box-shadow: 0 6px 14px -12px rgba(20, 44, 36, .5); text-align: center; display: grid; gap: 2px; }
.mk-scores small { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.mk-scores b { font-size: 18px; font-weight: 700; color: #2f6a1f; }
.mk-scores em { font-style: normal; font-size: 11px; color: #2f6a1f; }
.mk-chart { display: block; width: 100%; height: 120px; }
.mk-chart polyline { fill: none; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mk-chart .c-ca { stroke: #2f6fa8; } .mk-chart .c-de { stroke: #c0453b; } .mk-chart .c-pr { stroke: #3f8f4f; stroke-dasharray: 4 3; }
.mk-years { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-secondary); }
.mk-map { padding: 8px 12px 10px; display: grid; gap: 6px; }
.mk-map svg { display: block; width: 100%; height: auto; font-family: var(--font-sans); }
.mk-map .ln path { fill: none; stroke: #d06aa7; stroke-width: 1.4; }
.mk-map text { font-size: 11px; font-weight: 700; text-anchor: middle; }
.mk-map .pp rect { fill: #7fd09a; } .mk-map .pp text { fill: #10301a; }
.mk-map .fa rect { fill: #1d2b22; } .mk-map .fa rect.me { fill: #2f6a1f; } .mk-map .fa text { fill: #fff; }
.mk-map .fo rect { fill: #a7b0a4; } .mk-map .fo text { fill: #1d2b22; }
.mk-report .mk-mrow { padding: 6px 2px; grid-template-columns: auto minmax(0, 1fr) auto; }
.mk-report .mk-mrow > :last-child:empty { display: none; }
@media (max-width: 560px) {
  .mk-scores { grid-template-columns: 1fr 1fr; }
  .mk-report .mk-mrow { grid-template-columns: minmax(0, 1fr) auto; }
}
/* ---------- ilustrații după aplicația reală: Certificat constatator ---------- */
.mk-cc { gap: 10px; }
.mk-steps .is-done i { background: #e3f1da; color: #2f6a1f; }
/* ---------- ilustrații după aplicația reală: Utilizatori ---------- */
.mk-role-c { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: #f6f8f2; width: 100%; }
.mk-role-c b { font-weight: 700; }
.mk-role-c span { color: var(--text-secondary); line-height: 1.4; font-size: 12px; }
.mk-pick { list-style: none; margin: 0; padding: 0; width: 100%; border: 1px solid rgba(38, 61, 40, .12); border-radius: 8px; overflow: hidden; }
.mk-pick li { padding: 6px 10px 6px 30px; position: relative; border-bottom: 1px solid rgba(38, 61, 40, .06); }
.mk-pick li:last-child { border-bottom: 0; }
.mk-pick li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px; border: 1.5px solid #a7b0a4; }
.mk-pick li.is-on { background: #f3f8ee; }
.mk-pick li.is-on::before { background: #3f7d2c; border-color: #3f7d2c; }
.mk-move { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; }
.mk-move .is-old { color: var(--text-secondary); text-decoration: line-through; }
.mk-move .av { width: 22px; height: 22px; font-size: 9.5px; }
.mk-arrow { color: #3f7424; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mk-draft p::after { animation: none; } }

.win-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); }
.win-sum { max-width: 820px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.win-sum strong { font-weight: 600; color: var(--text-primary); }
.win-more { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.win-more small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: #eef3e3; }

.win-soon { max-width: 560px; margin: clamp(10px, 8vh, 90px) auto; text-align: center; display: grid; justify-items: center; }
.win-soon .eyebrow { margin-top: 18px; color: var(--accent-ink); }
.win-soon h2 { margin-top: 10px; }
.win-soon p { color: var(--text-secondary); }

/* ---------- ecrane mici ---------- */
@media (max-width: 1179px) {
  .folders { --per: 5; }
}
@media (max-width: 900px) {
  .folders { --per: 4; }
  .procs-grid { grid-template-columns: 1fr; }
  .procs-more { grid-template-columns: 1fr; }
  .proc-tabs { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .proc-tab { flex: none; width: auto; padding: 10px 14px; white-space: nowrap; background: #fff; border: 1px solid var(--rule); }
  .proc-group { flex: none; align-self: center; margin: 0 2px 0 8px; }
  .proc-group:first-child { margin-left: 0; }
  .step { grid-template-columns: 1fr; padding-left: 44px; }
  .step-where { grid-column: 1; }
  .win-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .desk-page { padding-top: calc(var(--header-h) + 64px); }
  .folders { --per: 2; --col-gap: 12px; row-gap: 26px; }
  .folder { padding: 8px 4px 10px; }
  .folder-art { width: 132px; height: 98px; margin-bottom: 12px; }
  .folder-sheet { width: 84px; height: 62px; margin-left: -42px; top: 12px; padding: 7px 8px; gap: 5px; }
  .folder-front { height: 72px; padding: 10px 11px; }
  .folder-icon { width: 22px; height: 22px; }
  .folder-name { font-size: 16px; }
  .folder-desc { font-size: 13px; }
  .win { inset: 5svh 0 0 0; width: 100%; height: auto; margin: 0; }
  .win-surface { border-radius: 22px 22px 0 0; }
  .mock-depts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .folder { animation: none; }
}

/* ============================================================
   Conexiuni: API și MCP, „prizele” desktopului
   ============================================================ */
.connect { max-width: 1120px; margin: clamp(72px, 11vh, 128px) auto 0; padding-top: 44px; border-top: 1px solid var(--rule); }
.connect-head { text-align: center; }
.connect-head .eyebrow { color: var(--accent-ink); }
.connect-head h2 { margin-top: 10px; font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.connect-head h2 em { color: #3f7424; letter-spacing: -.01em; }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: 36px; }
.port {
  display: grid; grid-template-rows: auto 1fr;
  background: #fbfcf7; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.port:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(20, 44, 36, .45); }
.port-visual {
  position: relative; display: grid; place-items: center;
  height: 230px; padding: 24px;
  background: #142c24;
  background-image: radial-gradient(circle, rgba(166, 238, 121, .16) 1px, transparent 1.6px);
  background-size: 22px 22px;
}
.port-text { padding: 24px 28px 28px; }
.port-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em;
  background: var(--lime-300); color: var(--green-700);
}
.port-text h3 { margin: 14px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.port-text p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 16px; }

/* API: un terminal în care cererile se scriu singure */
.term { width: 100%; max-width: 440px; background: #0b1c13; border: 1px solid rgba(166, 238, 121, .2); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(166, 238, 121, .1); }
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.term-bar span { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: #8fb08a; }
.term-body { margin: 0; padding: 14px 16px 18px; font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: #d9f2cc; white-space: pre; overflow: hidden; }
.t-line { display: inline-block; clip-path: inset(0 100% 0 0); }
.t-line[data-line="1"] { --n: 1; } .t-line[data-line="2"] { --n: 2; } .t-line[data-line="3"] { --n: 3; }
.connect.is-visible .t-line { animation: t-type .7s steps(26) forwards; animation-delay: calc(var(--n, 0) * .8s + .3s); }
@keyframes t-type { to { clip-path: inset(0 0 0 0); } }
.t-verb { color: var(--lime-300); font-weight: 500; }
.t-ok { color: #8fb08a; }
.t-caret { display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -2px; background: var(--lime-300); animation: t-blink 1s steps(2, start) infinite; }
@keyframes t-blink { to { visibility: hidden; } }

/* MCP: Huddle în centru, asistenții AI legați de el */
.mcp-map { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.mcp-wire { fill: none; stroke: rgba(166, 238, 121, .45); stroke-width: 1.5; stroke-dasharray: 3 5; }
.mcp-pulse { fill: var(--lime-300); filter: drop-shadow(0 0 4px #a6ee79); }
.mcp-hub rect { fill: #24502f; stroke: var(--lime-300); stroke-width: 1.5; }
.mcp-hub text { fill: #f0f7ea; font-family: var(--font-sans); font-size: 15px; font-weight: 600; text-anchor: middle; }
.mcp-node rect { fill: #0b1c13; stroke: rgba(166, 238, 121, .35); }
.mcp-node text { fill: #cfe6c4; font-family: var(--font-mono); font-size: 11px; text-anchor: middle; }
.port-mcp:hover .mcp-wire { stroke: rgba(166, 238, 121, .8); }

@media (max-width: 860px) {
  .connect-grid { grid-template-columns: 1fr; }
  .port-visual { height: 200px; }
  .term-body { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-line { clip-path: none; }
  .mcp-pulse { display: none; }
}

/* ---------- finalul paginii ---------- */
.desk-final {
  position: relative; isolation: isolate; overflow: hidden;
  margin: clamp(80px, 12vh, 140px) calc(-1 * var(--gutter)) calc(-1 * clamp(72px, 10vh, 120px));
  padding: clamp(80px, 13vh, 140px) var(--gutter);
  text-align: center;
  background: var(--green-800); color: #f4f8ef;
}
.desk-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, #a6ee79 1px, transparent 1.6px);
  background-size: 32px 32px; opacity: .12;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
}
.desk-final h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; margin-bottom: 36px; }
.desk-final h2 em { color: var(--lime-300); letter-spacing: -.01em; }
.desk-final .btn-primary:focus-visible { outline-color: var(--lime-300); }
.connect { scroll-margin-top: calc(var(--header-h) + 16px); }
