/*
 WopBlockStudio Generator Studio
 Clear Glass — локальная компоновка.
 Цвета, радиусы и состояния: WBS UI System.
*/

.wbs-font-tool{
  width:min(100%,1120px);
  min-width:0;
  margin-inline:auto;
  display:grid;
  gap:16px;
  color:var(--wbs-ui-ink);
}
.wbs-font-tool *{box-sizing:border-box}
.wbs-font-tool [hidden]{display:none!important}

/* Навигационная цепочка */
.wbs-font-breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  padding:0 6px;
  font-size:12px;
  color:var(--wbs-ui-ink-muted);
}
.wbs-font-breadcrumb a{
  color:inherit;
  text-decoration:none;
  transition:color var(--wbs-ui-motion-fast);
}
.wbs-font-breadcrumb a:hover{color:var(--wbs-ui-ink)}

/* Внешние поверхности — оптика утверждённого WBS Clear Glass */
.wbs-font-tool .wbs-font-hero,
.wbs-font-tool .wbs-font-workspace,
.wbs-font-tool .wbs-font-library,
.wbs-font-tool .wbs-font-help{
  min-width:0;
  padding:clamp(17px,2.5vw,26px);
  border:1px solid var(--wbs-ui-line);
  border-radius:30px;
  background:none;
  backdrop-filter:blur(8px) saturate(135%) brightness(1.4);
  -webkit-backdrop-filter:blur(8px) saturate(135%) brightness(1.4);
  box-shadow:
    0 22px 48px var(--wbs-ui-shadow),
    inset 0 2px var(--wbs-ui-highlight),
    inset 0 -2px rgba(136,218,255,.34),
    inset 2px 0 rgba(255,255,255,.25),
    inset -2px 0 rgba(177,194,255,.20);
}

/* Шапка: название слева, описание справа */
.wbs-font-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,.83fr);
  gap:24px;
  align-items:center;
}
.wbs-font-kicker{
  display:block;
  font-size:10px;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--wbs-ui-ink-soft);
}
.wbs-font-hero h1{
  margin:6px 0 4px;
  font-size:clamp(26px,3vw,37px);
  line-height:1.16;
}
.wbs-font-subtitle,
.wbs-font-muted{
  font-size:12px;
  line-height:1.55;
  color:var(--wbs-ui-ink-muted);
}
.wbs-font-hero>p{
  margin:0;
  max-width:440px;
  font-size:13px;
  line-height:1.65;
  color:var(--wbs-ui-ink-muted);
}

/* Заголовки разделов */
.wbs-font-section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}
.wbs-font-section-head h2{
  margin:5px 0 0;
  font-size:clamp(17px,2vw,21px);
}


/* Переключатель WBS — собственная фиксированная геометрия */
.wbs-font-tool label.wbs-font-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:34px;
  color:#f5f5ff;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}
.wbs-font-tool #wbs-font-reverse{
  position:absolute;
  left:0;
  top:2px;
  width:54px;
  height:30px;
  margin:0;
  opacity:0;
  z-index:2;
  cursor:pointer;
}
.wbs-font-tool .wbs-font-switch-track{
  position:relative;
  display:block;
  flex:none;
  width:54px;
  height:30px;
  border:1px solid rgba(220,237,255,.72);
  border-radius:999px;
  background:rgba(10,19,41,.40);
  box-shadow:inset 0 1px 4px rgba(0,0,0,.24);
  pointer-events:none;
  transition:background .22s ease,border-color .22s ease;
}
.wbs-font-tool .wbs-font-switch-thumb{
  display:block;
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#e9f2ff;
  box-shadow:0 2px 8px rgba(0,0,0,.38);
  transition:transform .22s ease,background .22s ease;
}
.wbs-font-tool #wbs-font-reverse:checked + .wbs-font-switch-track{
  background:rgba(65,177,109,.23);
  border-color:#baffc9;
}
.wbs-font-tool #wbs-font-reverse:checked
+ .wbs-font-switch-track .wbs-font-switch-thumb{
  transform:translateX(24px);
  background:#baffc9;
}
.wbs-font-tool #wbs-font-reverse:focus-visible
+ .wbs-font-switch-track{
  outline:2px solid #9fe8ff;
  outline-offset:3px;
}

/* Рабочая область */
.wbs-font-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.wbs-font-tool .wbs-font-field{
  min-width:0;
  padding:15px;
  border:1px solid var(--wbs-ui-line-soft);
  border-radius:22px;
  background:rgba(10,16,35,.10);
  box-shadow:
    inset 0 1px rgba(255,255,255,.23),
    inset 0 -1px rgba(142,215,255,.10);
}
.wbs-font-field-head,
.wbs-font-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.wbs-font-field-head label{
  font-size:13px;
  font-weight:700;
}
.wbs-font-field textarea{
  display:block;
  width:100%;
  min-height:125px;
  margin-top:10px;
  padding:12px;
  resize:vertical;
  border:1px solid var(--wbs-ui-line-soft);
  border-radius:14px;
  background:rgba(7,11,25,.23);
  color:var(--wbs-ui-ink);
  font:500 17px/1.55 "Segoe UI","Noto Sans",sans-serif;
  transition:border-color var(--wbs-ui-motion-fast),
             box-shadow var(--wbs-ui-motion-fast);
}
.wbs-font-field textarea:focus{
  border-color:var(--wbs-ui-focus);
  box-shadow:0 0 0 2px rgba(149,231,255,.12);
}
.wbs-font-field #wbs-font-output{
  font-family:"Segoe UI Symbol","Cambria Math",
    "Noto Sans Math","Segoe UI",sans-serif;
  font-size:20px;
}
.wbs-font-field textarea::placeholder{
  color:var(--wbs-ui-ink-soft);
}

/* Единые стеклянные кнопки */
.wbs-font-tool .wbs-font-control,
.wbs-font-tool .wbs-font-filters button{
  position:relative;
  isolation:isolate;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:9px 14px;
  overflow:hidden;
  border:1px solid var(--wbs-ui-line-soft);
  border-radius:14px;
  background:none;
  background-color:transparent;
  color:var(--wbs-ui-ink);
  font:inherit;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  box-shadow:
    inset 0 1px rgba(255,255,255,.26),
    inset 0 -1px rgba(142,215,255,.13);
  backdrop-filter:blur(5px) brightness(1.12);
  -webkit-backdrop-filter:blur(5px) brightness(1.12);
  transition:
    transform var(--wbs-ui-motion-fast) var(--wbs-ui-ease),
    border-color var(--wbs-ui-motion-fast),
    box-shadow var(--wbs-ui-motion-fast);
}
.wbs-font-tool .wbs-font-control::before,
.wbs-font-tool .wbs-font-filters button::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,.15) 50%,
    transparent 78%
  );
  transform:translateX(-115%);
  transition:transform var(--wbs-ui-motion-glint) var(--wbs-ui-ease);
}
.wbs-font-tool .wbs-font-control:hover,
.wbs-font-tool .wbs-font-filters button:hover{
  transform:translateY(-2px);
  border-color:var(--wbs-ui-line);
  box-shadow:
    0 9px 22px rgba(0,0,0,.15),
    inset 0 1px rgba(255,255,255,.35),
    inset 0 -1px rgba(142,215,255,.19);
}
.wbs-font-tool .wbs-font-control:hover::before,
.wbs-font-tool .wbs-font-filters button:hover::before{
  transform:translateX(115%);
}
.wbs-font-tool .wbs-font-control:active,
.wbs-font-tool .wbs-font-filters button:active{
  transform:translateY(0);
}
.wbs-font-tool .wbs-font-control-primary{
  border-color:var(--wbs-ui-line);
}
.wbs-font-tool button:disabled{
  opacity:.48;
  cursor:not-allowed;
  transform:none;
}
.wbs-font-actions{
  justify-content:flex-start;
  margin-top:11px;
}
.wbs-font-actions-end{justify-content:flex-end}
.wbs-font-tool svg{
  width:18px;
  height:18px;
  flex:none;
}
.wbs-font-work-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.wbs-font-work-foot p{margin:0}
#wbs-font-notice{
  min-height:18px;
  font-size:12px;
}

/* Библиотека и поиск */
.wbs-font-library-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
}
.wbs-font-search-box{
  display:flex;
  align-items:center;
  flex:1 1 230px;
  min-width:0;
  gap:9px;
  padding:10px 13px;
  border:1px solid var(--wbs-ui-line-soft);
  border-radius:var(--wbs-ui-radius-pill);
  background:rgba(9,15,33,.10);
}
.wbs-font-search-box input{
  width:100%;
  min-width:0;
  border:none;
  outline:none;
  background:transparent;
  color:var(--wbs-ui-ink);
  font:inherit;
  font-size:13px;
}
.wbs-font-search-box input::placeholder{
  color:var(--wbs-ui-ink-soft);
}
.wbs-font-filters{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.wbs-font-tool .wbs-font-filters button{
  min-height:36px;
  border-radius:999px;
  padding:7px 12px;
}
.wbs-font-tool .wbs-font-filters button[aria-pressed=true]{
  border-color:var(--wbs-ui-on);
  box-shadow:
    inset 0 0 0 1px rgba(186,255,159,.15),
    0 0 10px rgba(112,213,117,.09);
}




/* Компактные карточки WBS Clear Glass */

/* Сетка */
.wbs-font-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}

/* Нейтральное стекло: фон виден, но текст не теряется */
.wbs-font-tool .wbs-font-choice {
  position:relative;
  display:block;
  min-width:0;
  min-height:134px;
  padding:14px;
  overflow:hidden;

  border:1px solid var(--wbs-ui-line-soft,rgba(235,229,255,.32));
  border-top-color:rgba(250,248,255,.60);
  border-radius:22px;

  background:
    linear-gradient(
      180deg,
      rgba(8,15,37,.42),
      rgba(6,13,33,.34)
    );

  box-shadow:
    0 8px 20px rgba(0,0,0,.09),
    inset 0 1px rgba(255,255,255,.34),
    inset 0 -1px rgba(136,218,255,.15);

  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

/* Один мягкий блик при наведении */
.wbs-font-tool .wbs-font-choice::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(
    110deg,
    transparent 20%,
    rgba(255,255,255,.105) 49%,
    transparent 78%
  );
  transform:translateX(-120%);
  transition:transform 500ms cubic-bezier(.2,.8,.2,1);
}

@media(hover:hover) {
  .wbs-font-tool .wbs-font-choice:hover {
    transform:translateY(-2px);
    border-color:rgba(216,236,255,.72);
    box-shadow:
      0 13px 25px rgba(0,0,0,.15),
      inset 0 1px rgba(255,255,255,.46),
      inset 0 -1px rgba(136,218,255,.22);
  }

  .wbs-font-tool .wbs-font-choice:hover::before {
    transform:translateX(120%);
  }
}

/* Один акцент для выбранной карточки */
.wbs-font-tool .wbs-font-choice:has(
  [data-select][aria-pressed="true"]
) {
  border-color:var(--wbs-ui-on,#baff9f);
  box-shadow:
    inset 0 0 0 1px rgba(186,255,159,.11),
    inset 0 1px rgba(255,255,255,.42),
    0 10px 23px rgba(0,0,0,.12);
}

/* Заголовок и крупный образец */
.wbs-font-choose {
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  width:100%;
  padding:15px 14px 35px;
  border:0;
  background:transparent;
  color:inherit;
  text-align:center;
  cursor:pointer;
}

.wbs-font-choose strong {
  display:block;
  max-width:calc(100% - 94px);
  margin-inline:auto;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
  color:var(--wbs-ui-ink,#f6f3ff);
}

.wbs-font-choose span {
  display:block;
  width:100%;
  margin-top:17px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;

  color:#fafbff;
  text-align:center;
  font:500 clamp(21px,2.05vw,27px)/1.35
    "Segoe UI Symbol",
    "Cambria Math",
    "Noto Sans Math",
    "Segoe UI",
    sans-serif;

  text-shadow:0 2px 9px rgba(2,6,21,.68);
}

/* Действия справа сверху */
.wbs-font-mini-actions {
  position:absolute;
  z-index:3;
  top:9px;
  right:10px;
  display:flex;
  align-items:center;
  gap:5px;
}

.wbs-font-icon {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:9px;
  border:1px solid rgba(238,242,255,.24);
  border-radius:12px;
  background:rgba(10,17,39,.18);
  color:#e9eeff;
  cursor:pointer;

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.wbs-font-icon:hover {
  transform:translateY(-1px);
  border-color:rgba(240,247,255,.68);
  background:rgba(255,255,255,.105);
}

.wbs-font-icon:active {
  transform:translateY(0);
}

.wbs-font-icon[aria-pressed="true"] {
  color:#ffd1e9;
  border-color:rgba(255,193,222,.60);
}

.wbs-font-icon[data-copy-state="copied"] {
  border-color:var(--wbs-ui-on,#baff9f);
  color:var(--wbs-ui-on,#baff9f);
}

/* Четыре читаемых индикатора */
.wbs-font-card-support {
  position:absolute;
  z-index:2;
  right:12px;
  bottom:10px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  pointer-events:none;
}

.wbs-font-card-chip {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:37px;
  min-height:24px;
  padding:4px 8px;

  border:1px solid;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  line-height:1.1;
  white-space:nowrap;

  background:rgba(8,13,29,.20);
}

.wbs-font-card-chip[data-state="yes"] {
  border-color:rgba(146,240,168,.75);
  color:#d8ffe2;
  background:rgba(45,141,83,.18);
}

.wbs-font-card-chip[data-state="partial"] {
  border-color:rgba(250,207,128,.75);
  color:#ffe8ba;
  background:rgba(172,115,41,.16);
}

.wbs-font-card-chip[data-state="keep"] {
  border-color:rgba(255,154,169,.68);
  color:#ffd3da;
  background:rgba(155,57,75,.15);
}

/* Низ библиотеки */
.wbs-font-library-bottom {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.wbs-font-library-bottom p { margin:0 }

.wbs-font-empty {
  padding:20px;
  text-align:center;
  color:var(--wbs-ui-ink-muted,#d5cfe8);
}

/* Телефон */
@media(max-width:580px) {
  .wbs-font-list {
    grid-template-columns:1fr;
  }

  .wbs-font-tool .wbs-font-choice {
    min-height:130px;
  }

  .wbs-font-choose span {
    font-size:clamp(20px,5vw,25px);
  }
}

/* Доступность */
@media(prefers-reduced-motion:reduce) {
  .wbs-font-tool .wbs-font-choice,
  .wbs-font-tool .wbs-font-choice::before,
  .wbs-font-icon {
    transition:none!important;
    transform:none!important;
  }
}

/* Справка */
.wbs-font-help details{
  padding:15px 0;
  border-bottom:1px solid var(--wbs-ui-line-soft);
}
.wbs-font-help details:last-child{border:0}
.wbs-font-help summary{
  cursor:pointer;
  font-size:13px;
  font-weight:700;
}
.wbs-font-help details p{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.65;
  color:var(--wbs-ui-ink-muted);
}
.wbs-font-tool :focus-visible{
  outline:2px solid var(--wbs-ui-focus);
  outline-offset:3px;
}

@keyframes wbs-font-reveal{
  from{opacity:.3;transform:translateY(5px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:800px){
  .wbs-font-hero,
  .wbs-font-grid{grid-template-columns:1fr}
  .wbs-font-hero{gap:10px}
}
@media(max-width:580px){
  .wbs-font-list{grid-template-columns:1fr}
  .wbs-font-tool .wbs-font-hero,
  .wbs-font-tool .wbs-font-workspace,
  .wbs-font-tool .wbs-font-library,
  .wbs-font-tool .wbs-font-help{padding:16px}
  .wbs-font-library-tools{align-items:stretch}
}
@media(prefers-reduced-motion:reduce){
  .wbs-font-tool *,
  .wbs-font-tool *::before,
  .wbs-font-tool *::after{
    transition:none!important;
    animation:none!important;
  }
}


/* WBS FONT FAQ GROUPS 6L — scoped category layout */
.wbs-font-help .wbs-font-faq-group {
  margin:0 0 12px;
  overflow:hidden;
  border:1px solid rgba(226,238,255,.34);
  border-top-color:rgba(255,255,255,.55);
  border-radius:18px;
  background:rgba(13,20,43,.19);
  box-shadow:inset 0 1px rgba(255,255,255,.16);
}

.wbs-font-help .wbs-font-faq-group > summary {
  padding:15px 18px;
  cursor:pointer;
  font-weight:700;
}

.wbs-font-help .wbs-font-faq-count {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-width:25px;
  min-height:23px;
  margin-left:8px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(180,211,255,.12);
  border:1px solid rgba(220,236,255,.26);
  font-size:11px;
}

.wbs-font-help .wbs-font-faq-entries {
  padding:0 12px 12px;
}

.wbs-font-help .wbs-font-faq-entries > details {
  margin:0;
  border:0;
  border-top:1px solid rgba(218,228,255,.14);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.wbs-font-help .wbs-font-faq-entries > details > summary {
  padding:13px 7px;
  font-weight:500;
}

.wbs-font-help .wbs-font-faq-entries > details > p,
.wbs-font-help .wbs-font-faq-entries > details > ol {
  margin:0 7px 14px;
  padding:0;
  color:rgba(237,243,255,.88);
  font-family:inherit;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.6 !important;
  letter-spacing:normal;
  text-transform:none;
}

/* Нумерованная инструкция выглядит как обычный ответ FAQ */
.wbs-font-help .wbs-font-faq-entries > details > ol {
  padding-left:24px;
  list-style:decimal outside;
}

.wbs-font-help .wbs-font-faq-entries > details > ol > li {
  display:list-item !important;
  margin:0 0 5px;
  padding:0;
  color:inherit;
  font-family:inherit !important;
  font-size:13px !important;
  font-weight:400 !important;
  line-height:1.6 !important;
  letter-spacing:normal;
  text-transform:none;
  list-style-type:decimal;
}

.wbs-font-help .wbs-font-faq-entries > details > ol > li::marker {
  font-size:12px;
  font-weight:400;
  color:rgba(205,219,255,.75);
}

@media(max-width:580px) {
  .wbs-font-help .wbs-font-faq-group > summary {
    padding:14px 12px;
  }
  .wbs-font-help .wbs-font-faq-entries {
    padding:0 8px 8px;
  }
}
