body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f6f7;
  color: #1b1f23;
  --pg-header-h: 56px;
  padding-top: var(--pg-header-h);
}

html {
  scroll-behavior: smooth;
}

.pg-header {
  background: #0d6efd;
  color: #fff;
  height: var(--pg-header-h);
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
}

.pg-header__wrap {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  gap: 10px;
}

.pg-header__left,
.pg-header__center,
.pg-header__right {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.pg-header__left {
  justify-content: flex-start;
}

.pg-header__center {
  justify-content: center;
}

.pg-header__right {
  justify-content: flex-end;
  gap: 8px;
}

.pg-header__title {
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}


.pg-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
}

.pg-header__logo {
  height: 24px;
  width: auto;
  flex: 0 0 auto;
}

.pg-header__version {
  font-size: 0.86em;
  opacity: 0.8;
  margin-left: 2px;
  white-space: nowrap;
}

.pg-header__profile-meta {
  font-size: 0.95em;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* max-width: 360px; */
}

.pg-header__save-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.pg-header__save-profile-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.pg-header__save-profile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pg-header__result-link,
.pg-header__sections-btn,
.pg-header__logout {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.pg-header__result-link:hover,
.pg-header__sections-btn:hover,
.pg-header__logout:hover {
  background: #fff;
  color: #0d6efd;
}

@media (max-width: 900px) {
  .pg-header {
    padding: 0 12px;
  }

  .pg-header__version {
    display: none;
  }

  .pg-header__result-link {
    font-size: 13px;
    padding: 5px 8px;
  }

  .pg-header__sections-btn,
  .pg-header__logout {
    padding: 5px 9px;
  }
}

@media (max-width: 700px) {
  .pg-header__center {
    display: none;
  }
}

.pg-login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.pg-login {
  background: #fff;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 360px;
  max-width: 90%;
}

.pg-login__title {
  margin: 0 0 24px;
  font-size: 22px;
  text-align: center;
  letter-spacing: 0.6px;
}

.pg-login__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pg-login__label {
  font-size: 12px;
  letter-spacing: 1px;
  color: #5b6674;
}

.pg-login__input {
  padding: 12px;
  border: 1px solid #ccd1d7;
  border-radius: 6px;
  font-size: 14px;
}

.pg-login__input:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.pg-login__error {
  color: #d93025;
  font-size: 13px;
}

.pg-login__button {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: background 0.2s ease;
}

.pg-login__button:hover {
  background: #0b5ed7;
}

.pg-main {
  max-width: 90%;
  margin: 24px auto;
  padding: 0 16px 40px;
}

.pg-sidepanel{
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  width: 500px;
  transition: transform .2s ease;
}

.pg-sidepanel--collapsed{
  transform: translate(calc(-100% + 30px), -50%);
}

.pg-sidepanel__body{
  background: rgba(18, 22, 32, 0.7);
  color: #fff;
  border-radius: 0 14px 14px 0;
  padding: 12px 10px;
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow-x: hidden;
}

.pg-sidepanel__toggle{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(100%, -50%);
  width: 30px;
  height: 62px;
  border: 1px solid #afc3ff;
  border-radius: 0 8px 8px 0;
  background: #edf2ff;
  color: #13399a;
  font-weight: 700;
  cursor: pointer;
}

.pg-sidepanel__title{
  font-weight: 700;
  margin-bottom: 0;
}


.pg-sidepanel__head,
.pg-sidepanel__row{
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.pg-sidepanel__head{
  margin-bottom: 6px;
}

.pg-sidepanel__head > .pg-sidepanel__title,
.pg-sidepanel__row > .pg-sidepanel__name{
  flex: 1 1 auto;
  min-width: 0;
}

.pg-sidepanel__head > .pg-sidepanel__check--master,
.pg-sidepanel__row > .pg-sidepanel__check{
  flex: 0 0 92px;
  min-width: 0;
}

.pg-sidepanel__head > .pg-sidepanel__sort-head,
.pg-sidepanel__row > .pg-sidepanel__sort-input{
  flex: 0 0 56px;
  min-width: 0;
}

.pg-sidepanel__check--master{
  font-weight: 700;
}

.pg-sidepanel__list{
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-x: hidden;
}

.pg-sidepanel__row{
  margin: 0;
  padding: 1px 0;
}

.pg-sidepanel__name{
    color: #90efff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: .4px;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-sidepanel__name:hover{
  text-decoration: underline;
}

.pg-sidepanel__check{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  min-width: 0;
}

.pg-sidepanel__check input{
  margin: 0;
}


.pg-sidepanel__sort-head{
  font-size: 12px;
  text-align: center;
  font-weight: 700;
}

.pg-sidepanel__sort-input{
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 20px;
  line-height: 18px;
  text-align: center;
  padding: 0 1px;
  font-size: 12px;
  border-radius: 4px;
  box-sizing: border-box;
}

.pg-sidepanel__sort-input::-webkit-outer-spin-button,
.pg-sidepanel__sort-input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.pg-sidepanel__sort-input[type="number"]{
  -moz-appearance: textfield;
}

.pg-sidepanel__row.is-hidden .pg-sidepanel__sort-input{
  opacity: .55;
}

.pg-sidepanel__row.is-hidden .pg-sidepanel__name{
  pointer-events: none;
  opacity: .55;
  text-decoration: none;
}

.pg-sidepanel__row.pg-sidepanel__item--active .pg-sidepanel__name,
.pg-sidepanel__row.pg-sidepanel__row--active .pg-sidepanel__name{
  color: #ffffff;
  font-weight: 700;
}

.pg-sidepanel__row.pg-sidepanel__item--active,
.pg-sidepanel__row.pg-sidepanel__row--active{
  background: rgba(94, 176, 255, 0.26);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(159, 211, 255, 0.65);
}

.pg-section--hidden-by-panel{
  display: none;
}

.pg-section {
  background: #fff;
  border: 1px solid #d8dee4;
  /* border-radius: 10px; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  scroll-margin-top: calc(var(--pg-header-h) + 12px);
}

.pg-section__header {
  border-bottom: 1px solid #e6ebf1;
  padding: 16px 20px;
}

.pg-section__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.4px;
}

.pg-section__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pg-block {
  border: 1px dashed #cbd2da;
  border-radius: 10px;
  padding: 10px;
  background: #f9fafb;
}

.pg-block--primary {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
}

.pg-block--secondary {
  padding: 12px 16px;
  background: #fff;
}

.pg-block__column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-block__row {
  border: 1px solid #d8dee4;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.pg-block__row--fixed {
  height: 50px;
  display: flex;
  align-items: center;
}

.pg-block__row--input {
  display: flex;
  align-items: center;
}

.pg-block__row--fill {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.pg-block__row--nested {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: #f4f6f8;
}

.pg-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pg-inline--end {
  justify-content: flex-end;
}

.pg-inline--start {
  justify-content: flex-start;
}

.pg-inline--center {
  justify-content: center;
}

.pg-input {
  padding: 5px 12px;
  border: 1px solid #cbd2da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-input:focus,
.pg-select:focus,
.pg-textarea:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.pg-input--text {
  width: 80%;
}

.pg-input--number {
  width: 80px;
  text-align: center;
}

.pg-textarea {
  width: 100%;
  border: 1px solid #cbd2da;
  /* border-radius: 8px; */
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  font-size: 14px;
  /* padding: 12px; */
}

.pg-textarea--spaced {
  margin: 0 10px 10px;
  width: calc(100% - 20px);
  height: 100%;
}

.pg-textarea--compact {
  min-height: 120px;
}

.pg-select {
  padding: 5px 12px;
  border: 1px solid #cbd2da;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
}

.pg-button {
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pg-button--ghost {
  background: #fff;
}

.pg-button--ghost:hover {
  background: #eef2f6;
  border-color: #b6bec8;
}

.pg-button--primary {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.pg-button--primary:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
}

.pg-label--title {
  font-weight: 700;
  letter-spacing: 0.6px;
}


.pg-section__body{
  padding: 5px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}



.pg-secbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  /* padding: 10px 12px; */
  background:#fff;
  /* border:1px dashed #cbd2da; */
  border-radius:10px;
}

.pg-secbar__right{
  display:flex;
  align-items:center;
  gap: 12px;
}

.pg-title{
  font-weight:700;
  letter-spacing:.6px;
}
.pg-ghost{
  opacity:.85;
}

.pg-grid3{
  display:grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #cbd2da;
  /* border-radius: 10px; */
  background:#f9fafb;
}

.pg-col{
  display:flex;
  flex-direction:column;
  /* gap: 0px; */
}

.pg-col__top{
  height:50px; 
  background:#fff;
  border-radius:8px;
  border: 1px solid #e6ebf1;
}

.pg-col__body{
  background:#fff;
  /* border-radius:8px; */
  /* border: 1px solid #e6ebf1; */
  /* padding: 5px 0px; */
  display:flex;
  gap: 10px;
  width: 100%;
}

.pg-col__body--end{
  justify-content:flex-end;
  align-items:center;
}

.pg-col__body--fill{
  /* padding: 10px; */
}

.pg-col__body--fill--caret{
  position: relative;
}

.pg-main-caret{
  position: absolute;
  z-index: 5;
  font-weight: 700;
  color: #111;
  pointer-events: none;
  opacity: 0;
}

.pg-main-caret.is-visible{
  animation: pg-caret-blink 1s steps(1, end) infinite;
  opacity: 1;
}

@keyframes pg-caret-blink{
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* nested ÑÐ¿Ñ€Ð°Ð²Ð° */
.pg-nested{
  background:#f4f6f8;
  /* border-radius:8px; */
  padding: 0px 0px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  /* border: 1px solid #e6ebf1; */
}

.pg-nested__top{
  display:flex;
  align-items:center;
  gap: 5px;
  justify-content: space-between;
}

.pg-nested__bottom{
  display:flex;
  align-items:stretch;
  gap:10px;
}

.pg-input--text{ width:80%; padding:5px 12px; }
.pg-input--number{ width:80px; text-align:center; }

.pg-select{width: 90%;}

.pg-textarea{
  width:100%;
  min-height: 188px;
  border:1px solid #cbd2da;
  /* border-radius:8px; */
  resize: vertical;
  font-family: inherit;
  font-size:14px;
  /* padding:12px; */
}

.pg-textarea--compact{
  min-height: 140px;
}

.pg-secfooter{
  display:flex;
  justify-content:flex-end;
  /* padding: 10px 0 0; */
}


footer.pg-footer {
    height: 100px;
    background-color: #0d6efd;
    display: flex;
    align-content: center;
    justify-content: center;
}

.pg-footer__wrap {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
}

.pg-footer__left {
    color: white;
    letter-spacing: 2px;
}

main.pg-main {
    min-height: 70vh;
}

.pg-col__body.pg-col__body--plus {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.pg-markers-panel{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.pg-marker-btn{
  font-size: 12px;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .pg-markers-panel,
  .pg-service-panel{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.pg-service-panel{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.pg-service-token-btn{
  font-size: 12px;
  padding: 3px 5px;
  line-height: 1.1;
  border-color: #bac7da;
  background: #eef3fb;
  color: #253449;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-service-token-btn:hover{
  background: #e3ebf7;
}


.pg-param-insert-row{
  display:grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 6px;
  align-items:center;
  margin-bottom: 8px;
}

.pg-param-insert-row .pg-select{
  width: 100%;
}

.pg-input-params-footer{
  justify-content: flex-start !important;
}

.pg-input-param-row__key{
  max-width: 240px;
}

.pg-single-phrases{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-bottom: 8px;
}

.pg-single-phrase-row{
  display:flex;
  align-items:center;
  gap: 10px;
}

.pg-single-phrase-row__value{
  flex: 1 1 auto;
  display:flex;
  align-items:center;
  gap: 6px;
  min-width: 0;
}

.pg-single-phrase-row__input{
  flex: 1 1 auto;
  width: 100%;
}

.pg-single-int__input{
  width: 82px;
  text-align: center;
}

.pg-single-int__btn{
  width: 30px;
  height: 30px;
  font-weight: 700;
}

.pg-single-int__name{
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-single-phrase-row__copy-btn{
  flex: 0 0 auto;
}

.pg-btn{
  width: 34px;
  height: 30px;
  border: 1px solid #bfc6cf;
  background: #f6f7f9;
  color: #1f2937;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pg-btn:hover{
  background: #e9edf2;
}

.pg-btn:disabled{
  opacity: .5;
  cursor: not-allowed;
}

/*-----Section result----*/

/* =========================
   Секция: Результирующий промт
========================= */
.pg-section--result .pg-section__body{
  gap: 10px;
}

.pg-result__row{
  display:flex;
  align-items:center;
  gap: 12px;
}

.pg-result__row--modes{
  gap: 10px;
}

.pg-result__mode{
  display:flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
}

.pg-result__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 3px;
    border: 1px solid #cbd2da;
    background: #fff3cd;
    /* border-radius: 4px; */
    font-weight: 500;
    min-width: 90px;
    font-size: small;
}

.pg-result__label{
  font-weight:700;
  letter-spacing:.6px;
  background:#e9ecef;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.pg-result__name-input{
  width: 100%;
}

.pg-result__section-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width: 100%;
  gap: 12px;
}

.pg-result__section-box{
  display:flex;
  align-items:center;
  gap: 10px;
  width: 100%;
  border: 1px solid #cbd2da;
  background: #fff;
  padding: 8px 10px;
}

.pg-result__section-title{
  flex: 1;
  font-weight: 600;
}



.pg-result__editor{
  position: relative;
  width: 100%;
  border: 1px solid #111;
  background:#fdffe19c;
  padding: 12px;
  /* min-height: 320px; */
}

.pg-result__textarea{
  min-height: 260px;
  background: transparent;
}

.pg-result__hint{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}

.pg-result__hint-box{
  max-width: 520px;
  text-align:center;
  background:#cfe2ff;
  border: 1px solid #9ec5fe;
  padding: 14px 16px;
}

.pg-result__hint-title{
  font-weight: 700;
  margin-bottom: 8px;
}

.pg-result__hint-sub{
  font-weight: 600;
}

.pg-result__row--footer{
  justify-content:flex-end;
}

.pg-result__save-btn{
  min-width: 200px;
}


.pg-result__section-select{
  width: 140px;      /* или 160px — как тебе по месту */
  min-width: 140px;
}


.pg-result__section-line{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* 1) Секция — занимает всё свободное место */
.pg-result__section-select--full{
  flex: 1 1 auto;
  width: 100%;
  min-width: 0; /* важно, чтобы flex реально сжимался и не ломал ряд */
}

/* 2) Вариант — как “маленький” селект справа */
.pg-result__variant-select{
  flex: 0 0 160px;     /* подгони: 140-180px */
  width: 160px;
}

/* 3) Кнопка справа */
.pg-result__load-btn{
  flex: 0 0 140px;     /* можно 150-170px если нужно */
  white-space: nowrap;
}



.pg-result__profile-line{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pg-result__profile-select{
  flex: 1 1 auto;
  width: 100%;
  min-width: 0; /* чтобы не ломало flex */
}

.pg-result__profile-select--native{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pg-profile-combobox{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.pg-profile-combobox__trigger{
  width: 100%;
  text-align: left;
  position: relative;
  padding-right: 30px;
}

.pg-profile-combobox__trigger::after{
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #667085;
  pointer-events: none;
}

.pg-profile-combobox__trigger[aria-expanded="true"]::after{
  content: "▴";
}

.pg-profile-combobox__panel{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  border: 1px solid #cbd2da;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  padding: 8px;
}

.pg-profile-combobox__search{
  width: 100%;
  margin-bottom: 8px;
}

.pg-profile-combobox__list{
  max-height: 280px;
  overflow: auto;
}

.pg-profile-combobox__option,
.pg-profile-combobox__empty{
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.pg-profile-combobox__option{
  cursor: pointer;
}

.pg-profile-combobox__option:hover,
.pg-profile-combobox__option.is-active{
  background: #eef2f6;
}

.pg-profile-combobox__empty{
  color: #6b7280;
}

.pg-result__load-profile-btn{
  flex: 0 0 auto;
  white-space: nowrap;
}

.pg-result__delete-profile-btn{
  flex: 0 0 auto;
  white-space: nowrap;
}


.pg-sortbox{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pg-sortbox__save{
  padding: 6px 10px; /* подгоняй под твой размер кнопок */
}

.pg-icon{
  line-height: 1;
  font-size: 16px;
}


button.pg-button.pg-button--primary {
    padding: 1px 13px;
    font-size: 13px;
    font-weight: 500;
    font-family: system-ui;
}

button.pg-button.pg-button--ghost.pg-sortbox__save {
    padding: 3px 3px;
}

button.pg-button.pg-button--primary.pg-result__save-btn {
    padding: 5px 5px;
}

.pg-result__row--modes{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pg-result__modes-left{
  display: flex;
  align-items: center;
  gap: 18px;
}

.pg-result__modes-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}


.pg-result__row--footer{
  display:flex;
  justify-content:flex-end;
  gap: 12px;
  margin-top: 12px;
}


.pg-button--success{
  background: #198754;
  border-color: #198754;
  color: #fff;
}
.pg-button--success:hover{
  background: #157347;
  border-color: #157347;
}

input.pg-input.pg-result__topic-input {
    width: 100%;
}
.pg-hidden{
  display: none;
}

.pg-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.pg-modal.is-open{
  display: block;
}

.pg-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.pg-modal__dialog{
  position: relative;
  max-width: 520px;
  margin: 80px auto 0;
  background: #eef8df;
  border: 1px dashed #95b87c;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pg-modal__title{
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.pg-modal__section{
  text-align: center;
  color: #cf2b2b;
  font-weight: 700;
  border: 1px solid #5d87c9;
  background: #d8e7ff;
  padding: 2px 10px;
}

.pg-modal__textarea{
  min-height: 120px;
}

.pg-modal__actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pg-modal__dialog--section{
  width: 700px;
  max-width: 95vw;
}

.pg-section-modal__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.pg-section-modal__field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.pg-section-modal__field--full{
  grid-column: 1 / -1;
}


.pg-section-modal__hint{
  grid-column: 1 / -1;
  font-size: 12px;
  color: #556172;
}

.pg-sections-manage__list{
  max-height: 260px;
  overflow: auto;
  border: 1px solid #d4dec7;
  background: #fff;
  padding: 8px;
}

.pg-sections-manage__row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px dashed #d7e0cb;
}

.pg-sections-manage__row:last-child{
  border-bottom: 0;
}

.pg-sections-manage__meta{
  font-size: 12px;
  color: #556172;
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 8px;
}

.pg-sections-manage__actions{
  display: inline-flex;
  gap: 6px;
}

.pg-scroll-buttons{
  position: fixed;
  right: 28px;
  bottom: 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 850;
}

.pg-scroll-buttons__btn{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(95, 95, 95, 0.6);
  background: rgba(95, 95, 95, 0.55);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.pg-scroll-buttons__btn:hover{
  background: rgba(95, 95, 95, 0.75);
}


.pg-sections-manage__table-wrap{
  max-height: 300px;
  overflow: auto;
  border: 1px solid #d4dec7;
  background: #fff;
}

.pg-sections-manage__table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.pg-sections-manage__col--check{ width: 36px; }
.pg-sections-manage__col--name{ width: 50%; min-width: 260px; }
.pg-sections-manage__col--key{ width: 28%; min-width: 180px; }
.pg-sections-manage__col--sort{ width: 100px; }
.pg-sections-manage__col--id{ width: 68px; }

.pg-sections-manage__table th,
.pg-sections-manage__table td{
  padding: 6px 8px;
  border-bottom: 1px solid #e4eadb;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pg-sections-manage__th--center,
.pg-sections-manage__cell--center{
  text-align: center;
}

.pg-sections-manage__table th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f8ed;
}

.pg-sections-manage__table tr.is-dirty{
  background: #fff8e4;
  box-shadow: inset 3px 0 0 #f0b429;
}

.pg-sections-manage__table .pg-input{
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.pg-sections-manage__name-input,
.pg-sections-manage__sort-input{
  min-width: 0;
}

.pg-sections-manage__sort-input{
  text-align: center;
}

.pg-sections-manage__cell-id{
  color: #6f7d8f;
  font-size: 12px;
}

.pg-sections-manage__cell-key{
  font-family: monospace;
  color: #39506f;
}

.pg-sections-manage__key-text{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px){
  .pg-sections-manage__table{
    min-width: 680px;
  }
}


.pg-result__param-warning{
  color: #b42318;
  font-size: 13px;
  margin-left: 8px;
  display: none;
}

.pg-result__param-warning.is-visible{
  display: block;
}



button.pg-button.pg-button--ghost.pg-param-insert-btn:not(:disabled) {
    background-color: #d6ffe1a6;
	color: #FF0000;
}

button.pg-button.pg-button--ghost.pg-param-insert-value-btn:not(:disabled) {
    background-color: #acfbff61;
	color: #0000FF;
}


input.pg-input.pg-single-phrase-row__input.pg-input-param-row__key:read-write {
    background-color: #faebd7c4;
}

input.pg-input.pg-single-phrase-row__input:read-write {
    background-color: #faebd7c4;
}


.pg-single-phrase-row.pg-input-param-row input.pg-input.pg-single-phrase-row__input.pg-input-param-row__key:read-only {
    background-color: #dbfc903d;
	color: darkred;
}

.pg-single-phrase-row.pg-input-param-row input.pg-input.pg-single-phrase-row__input:read-only {
    background-color: #f3feff;
	color: darkblue;
}

body > header > div > div.pg-header__left > div > div:nth-child(2) {
    padding-right: 10px;
    border-right: 1px solid #fff;
}

.pg-header__wrap > :nth-child(1),
.pg-header__wrap > :nth-child(3){
  flex: 1 1 0;
  min-width: 0;
}

.pg-header__wrap > :nth-child(2){
  flex: 0 0 auto;
}
