/**
 * PIO Standalone — Varianta A (șablon familie)
 * Antet: [siglă Piogrup cu wordmark] [nume modul] ……………… [limbă]
 */
:root {
  --pio-brand: #2c4f7c;
  --pio-brand-strong: #1e3a5f;
  --pio-champagne: #b8956a;
  --pio-ink: #17202a;
  --pio-muted: #64748b;
  --pio-line: #d8e1ec;
  /* Chrome compact EXE — drum scurt spre zona de lucru */
  --pio-mark-size: 40px;
  --pio-mark-inner: 32px;
}

.pio-app-chrome {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 6px;
  min-height: 48px;
  padding: 4px 0;
  border-bottom: 1px solid var(--pio-line);
}

.pio-app-brand {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  flex: 0 1 auto;
  min-width: 0;
}

.pio-app-mark {
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--pio-mark-size);
  height: calc(var(--pio-mark-size) * 1.12);
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.pio-app-mark > img,
.pio-app-mark > svg {
  grid-area: 1 / 1;
  display: block;
  width: var(--pio-mark-inner);
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 657 / 720;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.pio-app-mark-fallback {
  display: none !important;
}

.pio-app-mark.is-fallback .pio-app-mark-fallback {
  display: block !important;
}

.pio-app-mark.is-fallback > img {
  display: none !important;
}

.pio-app-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pio-app-family {
  display: none;
}

.pio-app-module {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--pio-brand-strong);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pio-app-lead {
  margin: 0 0 14px;
  color: var(--pio-muted);
  font-size: 14px;
  max-width: 62ch;
  line-height: 1.45;
}

.pio-app-lang {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
  margin-left: auto;
}

.pio-app-lang label {
  font-size: 11px;
  font-weight: 700;
  color: var(--pio-muted);
}

.pio-app-lang select {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #c5d0db;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--pio-brand-strong);
  background: #fff;
  cursor: pointer;
}

@media (max-width: 720px) {
  .pio-app-chrome {
    flex-wrap: wrap;
  }
  .pio-app-lang {
    width: auto;
    margin-left: 0;
  }
}
