:root{
  --bg: #f3f4f6;
  --bg-elevated: #fafafa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
  --shadow-tile: 0 1px 0 rgba(255,255,255,0.9) inset, 0 18px 40px rgba(15, 23, 42, 0.06);

  --brand: #0f172a;
  --brand-2: #1e293b;
  --accent: #b08d57;
  --accent-soft: rgba(176, 141, 87, 0.14);

  --info-bg: #e8f4fc;
  --info-br: #b6e0f7;
  --error-bg:#fef2f2;
  --error-br:#fecaca;
  --success-bg:#ecfdf5;
  --success-br:#86efac;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;

  --container: 1040px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Literata", "Georgia", "Times New Roman", serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 480px at 12% -8%, rgba(176, 141, 87, 0.09), transparent 55%),
    radial-gradient(ellipse 800px 500px at 92% 0%, rgba(15, 23, 42, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 45%, #eef1f5 100%);
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1{ font-size: clamp(1.55rem, 2.4vw, 2rem); margin: 0 0 12px; }
h2{ font-size: 1.25rem; margin: 0 0 10px; }
h3{ font-size: 1.05rem; margin: 0 0 8px; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 18px 72px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.topbar-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color: inherit;
}
.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.brand-mark img{ width: 100%; height: 100%; object-fit: cover; }
.brand-title{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: 1.15rem;
}
.brand-sub{
  display:block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.nav{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.row{
  display:flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.hint{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.kicker{
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.lead{
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 52ch;
  line-height: 1.55;
}

/* Тексты в карточках визарда заявки: на всю ширину карточки, по ширине блока (последняя строка — по левому краю) */
.inline-link{
  color: var(--brand-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover{
  color: var(--accent);
}

.card .card-body-text{
  max-width: none;
  text-align: justify;
  text-align-last: left;
  line-height: 1.62;
  white-space: normal;
}
.card .card-body-text.lead{
  color: var(--muted);
}
.field-hint{
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: none;
  text-align: left;
  text-align-last: auto;
}

/* Анкета и «Мои данные»: на телефоне/планшете — на всю ширину; на ПК — на всю ширину карточки (≈1,5× и больше прежних ~220px) */
.client-data-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.client-data-form select,
.client-data-form textarea{
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 900px){
  .client-data-form{
    --client-data-field-max: 660px; /* на ПК: в 2× шире прежнего лимита 330px */
  }
  .client-data-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .client-data-form select,
  .client-data-form textarea{
    max-width: min(100%, var(--client-data-field-max));
  }
}

.page-intro{
  margin-bottom: 22px;
}

.info,.error,.success{
  padding: 14px 16px;
  border-radius: var(--r-sm);
  margin: 14px 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.55;
}
.info{ background: var(--info-bg); border: 1px solid var(--info-br); color: #0c4a6e; }
.error{ background: var(--error-bg); border: 1px solid var(--error-br); color: #991b1b; }
.success{ background: var(--success-bg); border: 1px solid var(--success-br); color: #14532d; }

label{
  display:block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}
input,select,textarea{
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
  min-width: 220px;
  outline: none;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus,select:focus,textarea:focus{
  border-color: rgba(176, 141, 87, 0.65);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button, .btn{
  padding: 11px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
button{
  border: 0;
  background: linear-gradient(165deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}
button:hover, .btn:hover{ transform: translateY(-1px); }
button.secondary{
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn{
  background: linear-gradient(165deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}
.btn.secondary{
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn.ghost{
  background: transparent;
  color: var(--text);
  border-color: transparent;
  box-shadow: none;
  font-weight: 500;
  padding-inline: 12px;
}
.btn.ghost:hover{
  background: rgba(15, 23, 42, 0.05);
  border-color: transparent;
}
.btn:focus, button:focus{
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 22px rgba(15, 23, 42, 0.15);
}

hr{
  border:0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.hero{
  display:grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items:center;
  margin: 16px 0 22px;
}
@media (min-width: 900px){
  .hero{ grid-template-columns: 1.15fr 0.85fr; }
}
.img{
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  object-fit: cover;
}

/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.modal-backdrop.open{ display: flex; }
.modal{
  width: min(860px, 100%);
  max-height: min(85vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}
.modal-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
}
.modal-title{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}
.modal-body{ padding: 18px; }
.modal-close{
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  box-shadow: none;
}

.row[style*="align-items:center"] button{ align-self: center; }

.grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px){
  .grid.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tile{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 44px 18px 18px;
  text-decoration:none;
  box-shadow: var(--shadow-tile);
  display:block;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tile::after{
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0.55;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}
.tile:hover{
  border-color: rgba(176, 141, 87, 0.45);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.tile:hover::after{
  border-color: var(--accent);
  opacity: 1;
}
.tile-title{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.tile-desc{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.tile--compact{
  padding: 14px 40px 14px 16px;
}
.tile--compact .tile-title{
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.tile--compact .tile-desc{
  font-size: 12px;
}

.tile.tile--accent{
  background: linear-gradient(
    165deg,
    rgba(176, 141, 87, 0.16) 0%,
    rgba(176, 141, 87, 0.08) 38%,
    var(--surface) 72%
  );
  border-color: rgba(176, 141, 87, 0.5);
  box-shadow:
    var(--shadow-tile),
    0 0 0 1px rgba(176, 141, 87, 0.12);
}
.tile.tile--accent::after{
  border-color: var(--accent);
  opacity: 0.9;
}
.tile.tile--accent:hover{
  border-color: var(--accent);
  background: linear-gradient(
    165deg,
    rgba(176, 141, 87, 0.22) 0%,
    rgba(176, 141, 87, 0.12) 42%,
    var(--surface) 78%
  );
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(176, 141, 87, 0.2);
}
.tile.tile--accent .tile-title{
  color: var(--brand);
}

.documents-memo-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 2px;
}
.btn.btn--accent{
  background: linear-gradient(
    165deg,
    rgba(176, 141, 87, 0.16) 0%,
    rgba(176, 141, 87, 0.08) 38%,
    var(--surface) 72%
  );
  color: var(--brand);
  border-color: rgba(176, 141, 87, 0.5);
  box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.12);
}
.btn.btn--accent:hover{
  border-color: var(--accent);
  background: linear-gradient(
    165deg,
    rgba(176, 141, 87, 0.22) 0%,
    rgba(176, 141, 87, 0.12) 42%,
    var(--surface) 78%
  );
  box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.2);
}
.btn.btn--sm{
  padding: 8px 13px;
  font-size: 12px;
  line-height: 1.35;
}

.clients-locked-card .tile{
  text-align: center;
  padding-inline: 16px;
}
.clients-locked-card .tile::after{
  display: none;
}
.clients-locked-card .tile-title,
.clients-locked-card .tile-desc{
  text-align: center;
}
.clients-locked-card .row .btn{
  justify-content: center;
  text-align: center;
}

.section-label{
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 8px 0 12px;
}

.doc-item{
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin: 12px 0;
  background: #fff;
}
.doc-actions{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.prose{
  max-width: 68ch;
}
.prose p{
  margin: 0 0 12px;
}

/* Тексты разделов (menu_doc, оферта и т.п.) — на всю ширину карточки */
.doc-content{
  width: 100%;
  max-width: none;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  white-space: pre-wrap;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}
.card .info.doc-content,
.card .error.doc-content,
.card .success.doc-content,
.card .surface-panel.doc-content{
  max-width: none;
  text-align: justify;
  text-align-last: left;
}

/* Вторичные панели, предупреждения, списки админки */
.surface-panel{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.admin-row{
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin: 12px 0;
  background: var(--surface);
}
.notice-warn{
  border-left: 3px solid #b45309;
  padding: 12px 14px;
  margin: 12px 0;
  background: rgba(180, 83, 9, 0.08);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.card .notice-warn{
  text-align: justify;
  text-align-last: left;
}
.table-simple-wrap{
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin: 12px 0;
}
table.table-simple{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.table-simple th{
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-strong);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
table.table-simple td{
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.table-simple tr:last-child td{
  border-bottom: none;
}
/* Жалоба: перечень нарушений (dropdown + строки) */
.violation-add-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.violation-pick{
  flex: 1 1 280px;
  min-width: min(100%, 220px);
  max-width: 100%;
}
.violation-episodes-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.violation-episode-row{
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.violation-episode-row__text{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.violation-episode-row__fields{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}
.violation-episode-row__label{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-weight: 400;
  color: inherit;
}
.violation-episode-row__label input{
  min-width: 0;
}
.violation-episode-row__label:not(.violation-episode-row__label--place) input{
  width: 14ch;
  max-width: 14ch;
}
.violation-episode-row__label--place{
  flex: 1 1 200px;
}
.violation-episode-row__label--place input{
  width: 100%;
  min-width: min(100%, 180px);
}
.violation-episode-remove{
  flex: 0 0 auto;
  align-self: flex-end;
}
.violation-episodes-empty{
  margin: 10px 0 0;
}

/* Справочник 16 нарушений (страница просмотра) */
.complaint-violations-reference{
  margin: 0;
  padding: 0 0 0 1.35em;
  list-style: decimal;
}
.complaint-violations-reference__item{
  margin: 0 0 14px;
  padding-left: 0.35em;
  line-height: 1.6;
}
.complaint-violations-reference__item:last-child{
  margin-bottom: 0;
}
.complaint-violations-reference__text{
  display: block;
  color: var(--text);
  font-size: 15px;
}
.complaint-violations-reference__item--terms{
  position: relative;
}

/* Подсказки к терминам (справочник нарушений) */
.term-tip{
  position: relative;
  display: inline;
  white-space: normal;
}
.term-tip__btn{
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--brand-2);
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.term-tip__btn:hover,
.term-tip__btn:focus{
  color: var(--accent);
  outline: none;
}
.term-tip__btn:focus-visible{
  box-shadow: 0 0 0 2px var(--accent-soft);
  border-radius: 2px;
}
.term-tip__popup{
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(320px, calc(100vw - 48px));
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.term-tip:hover .term-tip__popup,
.term-tip:focus-within .term-tip__popup,
.term-tip.is-open .term-tip__popup{
  display: block;
}
@media (hover: hover) and (pointer: fine){
  .term-tip.is-open .term-tip__popup{
    display: none;
  }
  .term-tip.is-open:hover .term-tip__popup,
  .term-tip.is-open:focus-within .term-tip__popup{
    display: block;
  }
}
@media (max-width: 720px){
  .term-tip__popup{
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }
  .term-tip:hover .term-tip__popup,
  .term-tip:focus-within .term-tip__popup{
    display: none;
  }
  .term-tip.is-open .term-tip__popup{
    display: block;
  }
}

/* Жалоба: черновик «нарушения нет в списке» */
.violation-custom-draft{
  margin: 12px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.violation-custom-draft[hidden]{
  display: none !important;
}
.violation-custom-draft textarea{
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
  font-family: var(--font-sans);
  font-size: 15px;
  resize: vertical;
}
.violation-custom-draft__fields{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
}
.status-ok{
  font-weight: 700;
  color: #15803d;
}
.service-result{
  text-align: center;
}
.service-result__icon{
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: block;
}
.service-result h1{
  margin-top: 0;
}
.service-result .doc-content,
.service-result .surface-panel{
  text-align: left;
}
.service-result__actions{
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.messenger-block{
  text-align: center;
}
.messenger-block__hint{
  margin: 0 auto 0;
  max-width: 420px;
}
.messenger-actions{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.messenger-actions > .btn,
.messenger-actions > button{
  width: min(100%, 420px);
  box-sizing: border-box;
}
.messenger-actions__divider{
  width: min(100%, 420px);
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Подключение мессенджеров в личном кабинете */
.messenger-connect-row{
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}
.messenger-connect-item{
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}
.messenger-connect-item form{
  margin: 0;
}
.messenger-connect-item .success{
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
}
.messenger-connected{
  gap: 10px;
  padding: 10px 14px;
  font-weight: 600;
}
.messenger-connected__icon{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}
.messenger-connect-btn{
  width: 100%;
  box-sizing: border-box;
}

/* «Начало работы» на главной (welcome_home): как кнопки в блоке мессенджеров */
.cabinet-start-actions{
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.creditor-manual-details{
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.creditor-manual-details > summary{
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.creditor-manual-details > summary::-webkit-details-marker{
  display: none;
}
.creditor-manual-details > summary::before{
  content: "▼";
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.creditor-manual-details[open] > summary::before{
  transform: rotate(180deg);
}
.creditor-manual-details__body{
  margin-top: 14px;
}

.link-bot-more-details{
  margin-top: 10px;
}
.link-bot-more-details > summary{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.link-bot-more-details > summary::-webkit-details-marker{
  display: none;
}
.link-bot-more-details > summary::after{
  content: "▼";
  font-size: 0.65rem;
  transition: transform 0.15s ease;
}
.link-bot-more-details[open] > summary::after{
  transform: rotate(180deg);
}
.link-bot-more-details[open] > summary{
  color: var(--text);
}
.link-bot-more-details__body{
  margin-top: 12px;
}
.link-bot-more-details__body p{
  margin: 0 0 10px;
}
.link-bot-more-details__body p:last-child{
  margin-bottom: 0;
}

.admin-danger-zone{
  margin-top: 14px;
}
.admin-danger-zone > summary{
  cursor: pointer;
  color: #92400e;
  user-select: none;
}
.admin-danger-zone__body{
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 12px;
  background: rgba(180, 83, 9, 0.06);
}

.cabinet-start-actions > .tile.tile--cabinet-start{
  width: min(100%, 420px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 44px;
}
.cabinet-start-actions > .tile.tile--cabinet-start .tile-desc{
  color: var(--muted);
}
.cabinet-start-actions .tile-title,
.cabinet-start-actions .tile-desc{
  width: 100%;
  text-align: center;
  text-align-last: center;
}
.cabinet-start-actions .tile-desc{
  white-space: normal;
}
.btn__icon{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  object-fit: contain;
}
.code-block{
  white-space: pre-wrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-top: 10px;
  max-height: 360px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.45;
}
.stack-links a{
  display: block;
  margin: 8px 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-2);
}
.stack-links a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}
