
.qform-hint-link:hover{ color:var(--text-heading); text-decoration:underline; }

/* --- гайд "Как найти свой Discord ID" (модалка) --- */
.dc-guide-steps{ display:flex; flex-direction:column; }
.dc-guide-step{
  display:flex; align-items:flex-start; gap:14px;
  padding:14px 2px; border-bottom:1px solid var(--border-soft);
}
.dc-guide-step:last-child{ border-bottom:none; padding-bottom:2px; }
.dc-guide-num{
  flex-shrink:0; width:28px; height:28px; border-radius:50%;
  background:var(--accent); color:#fff; font-weight:800; font-size:13px;
  display:flex; align-items:center; justify-content:center;
}
.dc-guide-text{ padding-top:3px; font-size:13.5px; color:var(--text-body); line-height:1.55; }
.dc-guide-text b{ color:var(--text-heading); }
.dc-guide-done{
  display:flex; align-items:center; gap:12px; margin-top:16px;
  padding:14px 16px; border-radius:var(--radius-md);
  background:var(--green-soft); border:1px solid rgba(52,211,153,.25);
}
.dc-guide-done svg{ flex-shrink:0; color:var(--green); }
.dc-guide-done-text{ font-size:13px; color:var(--text-body); line-height:1.5; }
.dc-guide-done-text b{ color:var(--green); }

/* --- чекбокс согласия / флаги в формах --- */
.qform-check-label,
.field .qform-check-label{
  display:flex; align-items:flex-start; gap:12px; cursor:pointer;
  font-size:13px; line-height:1.5; font-weight:500; letter-spacing:normal;
  color:var(--text-body); text-align:left; text-transform:none; margin:10px 0 0;
}
.qform-check-label input[type="checkbox"],
.field .qform-check-label input[type="checkbox"]{
  margin-top:2px;
}
.qform-consent{
  padding:16px 18px;
  background:linear-gradient(180deg, rgba(124,92,252,.08), var(--bg-card));
  border-color:rgba(167,139,250,.22);
}
.qform-consent .qform-check-label{
  margin:0;
  align-items:center;
  gap:14px;
  width:100%;
  font-size:13.5px;
  font-weight:600;
  color:var(--text-heading);
  line-height:1.45;
}
.qform-consent .qform-check-label span{ flex:1; min-width:0; }
.qform-consent .qform-check-label input[type="checkbox"]{
  margin-top:0;
  flex-shrink:0;
  width:20px;
  height:20px;
}
.auth-card .qform-check-label{ font-size:12.5px; color:var(--text-muted); margin-bottom:18px; }

/* --- права ГМП в ролях --- */
.perm-card-gmp{
  grid-column: 1 / -1;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg-input);
}
.perm-card-gmp .perm-card-flags,
.perm-card-gmp .perm-card-flags-col{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:6px 14px;
  align-items:start;
}
.perm-card-gmp .perm-flag,
.field .perm-card-gmp .perm-flag{
  align-items:flex-start;
  line-height:1.35;
}
@media (min-width:720px){
  .perm-card-gmp .perm-card-flags,
  .perm-card-gmp .perm-card-flags-col{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}
.perm-profile-scope + .perm-profile-scope{ margin-top:14px; }
.perm-profile-scope-title{
  font-size:12px;
  font-weight:600;
  color:var(--text-muted);
  margin-bottom:8px;
}

/* --- ГМП --- */
.gmp-staff-pick{
  max-height:260px; overflow:auto; border:1px solid var(--border);
  border-radius:var(--radius-md); padding:8px; display:flex; flex-direction:column; gap:4px;
}
/* .field label (uppercase/display:block) не должен ломать строки staff */
.gmp-staff-row,
.field .gmp-staff-row{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(108px,132px);
  gap:10px; align-items:center;
  font-size:13px; font-weight:500; letter-spacing:normal; text-transform:none;
  color:var(--text-body); margin:0;
  padding:8px 10px; border-radius:8px; min-height:40px;
}
.gmp-staff-row:hover,
.field .gmp-staff-row:hover{ background:var(--bg-card-2); }
.gmp-staff-check,
.field .gmp-staff-check{
  display:grid; grid-template-columns:18px minmax(0,1fr); gap:10px; align-items:center;
  min-width:0; margin:0; cursor:pointer;
  font:inherit; font-weight:500; letter-spacing:normal; text-transform:none;
  color:inherit;
}
.gmp-staff-check > span,
.field .gmp-staff-check > span,
.gmp-staff-row > span,
.field .gmp-staff-row > span{
  min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  line-height:1.3;
}
.gmp-staff-row select.input,
.field .gmp-staff-row select.input{
  width:100%; min-width:0; margin:0;
  padding:6px 28px 6px 10px; font-size:12.5px; border-radius:8px;
  line-height:1.2;
}
.gmp-table input[type="checkbox"]{ display:inline-block; vertical-align:middle; }
.gmp-add-player{ display:flex; gap:8px; margin-bottom:12px; max-width:360px; }
.gmp-table-wrap{
  overflow:auto; border:1px solid var(--border);
  border-radius:var(--radius-md); background:var(--bg-card-2);
}
.gmp-table{
  width:100%; border-collapse:separate; border-spacing:0; font-size:13px;
}
.gmp-table th,.gmp-table td{
  border-right:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:10px 12px; text-align:center; vertical-align:middle;
}
.gmp-table th:last-child,.gmp-table td:last-child{ border-right:0; }
.gmp-table tbody tr:last-child td{ border-bottom:0; }
.gmp-table th:first-child,.gmp-table td:first-child{ text-align:left; white-space:nowrap; }
.gmp-table th{
  color:var(--text-muted); font-weight:600; background:rgba(0,0,0,.18);
  position:sticky; top:0; z-index:1; white-space:nowrap;
}
.gmp-table tbody tr:hover td{ background:rgba(255,255,255,.02); }
.gmp-table tbody tr.is-blocked td{
  background:rgba(248,113,113,.12);
}
.gmp-table tbody tr.is-blocked:hover td{
  background:rgba(248,113,113,.18);
}
.gmp-status-cell{
  text-align:left !important; min-width:160px; max-width:260px;
  white-space:normal !important;
}
.gmp-block-info{ display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.gmp-block-reason{
  font-size:12.5px; color:var(--text-heading); line-height:1.35;
  word-break:break-word;
}
.gmp-block-meta{ font-size:11.5px; color:var(--text-muted); line-height:1.3; }
.gmp-actions-cell{
  white-space:nowrap; display:flex; align-items:center; justify-content:center; gap:6px;
}
.gmp-winners-grid{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px;
}
.gmp-checkpoint-list{
  margin:0; padding-left:1.2em; display:flex; flex-direction:column; gap:6px;
  color:var(--text-body); font-size:13.5px; line-height:1.4;
}
.gmp-stats-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.gmp-charts{
  display:grid; grid-template-columns:minmax(200px,260px) 1fr; gap:14px; margin-bottom:8px;
}
.gmp-chart-card{
  border:1px solid var(--border); border-radius:var(--radius-md);
  background:var(--bg-card-2); padding:14px 14px 12px;
}
.gmp-chart-title{
  font-size:13px; font-weight:600; color:var(--text-muted); margin-bottom:10px;
}
.gmp-donut-wrap{ position:relative; width:140px; height:140px; margin:0 auto 10px; }
.gmp-donut{ width:140px; height:140px; transform:rotate(-90deg); }
.gmp-donut-track,.gmp-donut-value{
  fill:none; stroke-width:14;
}
.gmp-donut-track{ stroke:rgba(255,255,255,.08); }
.gmp-donut-value{
  stroke:var(--green); stroke-linecap:round;
  transition:stroke-dasharray .35s ease;
}
.gmp-donut-center{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:2px; pointer-events:none;
}
.gmp-donut-center strong{ font-size:22px; line-height:1.1; color:var(--text-body); }
.gmp-donut-center span{ font-size:12px; color:var(--text-muted); }
.gmp-chart-legend{
  display:flex; flex-wrap:wrap; gap:10px 14px; justify-content:center;
  font-size:12px; color:var(--text-muted);
}
.gmp-dot{
  display:inline-block; width:8px; height:8px; border-radius:50%;
  margin-right:6px; vertical-align:middle;
}
.gmp-dot-finish{ background:var(--green); }
.gmp-dot-progress{ background:var(--accent-light); }
.gmp-dot-rest{ background:rgba(255,255,255,.18); }
.gmp-dot-blocked{ background:var(--red); }
.gmp-bars{
  display:flex; align-items:flex-end; gap:10px; min-height:160px;
  padding:4px 2px 0; overflow-x:auto;
}
.gmp-bar-col{
  flex:1 0 44px; max-width:72px; display:flex; flex-direction:column;
  align-items:center; gap:6px; min-width:44px;
}
.gmp-bar-value{ font-size:11px; color:var(--text-muted); }
.gmp-bar-track{
  width:100%; height:120px; border-radius:8px 8px 4px 4px;
  background:rgba(255,255,255,.06); display:flex; align-items:flex-end; overflow:hidden;
}
.gmp-bar-fill{
  width:100%; border-radius:8px 8px 4px 4px;
  background:linear-gradient(180deg, var(--accent-light), var(--accent));
  min-height:4px; transition:height .35s ease;
}
.gmp-bar-label{
  font-size:11px; color:var(--text-muted); text-align:center;
  max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
@media (max-width:760px){
  .gmp-charts{ grid-template-columns:1fr; }
}

/* Компактные карточки ЧС */
.bl-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px 14px;
  margin-bottom:8px;
  padding:10px 12px;
}
.bl-card-main{ min-width:0; flex:1; }
.bl-card-title-row{
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.bl-card-title{
  margin:0;
  font-size:13.5px;
  font-weight:700;
  line-height:1.25;
  color:var(--text-heading);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:100%;
}
.bl-card-nick{
  font-size:11.5px;
  color:var(--text-muted);
  white-space:nowrap;
}
.bl-card-ids{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:6px;
}
.bl-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  max-width:100%;
  padding:2px 7px 2px 5px;
  border-radius:6px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  font-size:11.5px;
  line-height:1.3;
  color:var(--text);
}
.bl-chip-muted{ color:var(--text-muted); }
.bl-chip-k{
  flex-shrink:0;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--accent-light);
  opacity:.95;
}
.bl-chip-v{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-family:var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size:11px;
}
.bl-card-meta{
  margin-top:5px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  font-size:11px;
  color:var(--text-muted);
  line-height:1.3;
}
.bl-author-link{
  color:var(--text-muted);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.bl-author-link:hover{
  color:var(--accent-light);
  border-bottom-color:rgba(167,139,250,.45);
}
.bl-dot{ opacity:.55; }
.bl-card-actions{
  display:flex;
  align-items:center;
  gap:2px;
  flex-shrink:0;
  margin-top:1px;
}
.bl-card-actions .icon-btn{
  width:30px;
  height:30px;
}

@media (max-width:560px){
  .bl-card{ flex-wrap:wrap; }
  .bl-card-actions{ width:100%; justify-content:flex-end; }
}

/* Компактные карточки Discord-МП */
.devent-card{
  margin-bottom:8px;
  padding:12px 14px;
}
.devent-toolbar{
  align-items:flex-start;
}
.devent-toolbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:1 1 420px;
  min-width:0;
  flex-wrap:nowrap;
}
.devent-toolbar-actions .search-input{
  flex:1 1 160px;
  min-width:140px;
  max-width:260px;
}
.devent-toolbar-status{
  flex:0 1 168px;
  min-width:140px;
  max-width:200px;
}
.devent-toolbar-btns{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  flex-wrap:nowrap;
}
@media (max-width:900px){
  .devent-toolbar-actions{
    flex-wrap:wrap;
    justify-content:flex-start;
    width:100%;
    flex:1 1 100%;
  }
  .devent-toolbar-actions .search-input{
    flex:1 1 200px;
    max-width:none;
  }
  .devent-toolbar-status{
    flex:1 1 160px;
    max-width:none;
  }
  .devent-toolbar-btns{
    margin-left:auto;
  }
}
.devent-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.devent-card-main{ min-width:0; flex:1 1 220px; }
.devent-card-main h3{
  margin:0;
  font-size:14.5px;
  font-weight:700;
  line-height:1.25;
  color:var(--text-heading);
}
.devent-card-meta{
  margin-top:3px;
  font-size:11.5px;
  color:var(--text-muted);
  line-height:1.35;
}
.devent-card-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  flex-shrink:0;
}
.devent-card-actions .ui-select{ width:auto; min-width:132px; max-width:160px; }
.devent-card-actions .ui-select-trigger{
  min-height:32px;
  padding:4px 10px;
  font-size:12.5px;
}
.devent-card-body{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--border);
}
.devent-card .roster-row{ padding:6px 0; }

/* Выплаты хелперам */
.payout-table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg-card);
}
.payout-table{
  width:100%;
  border-collapse:collapse;
  font-size:12.5px;
  min-width:980px;
}
.payout-table-wide{ min-width:1280px; }
.payout-table th,
.payout-table td{
  border-bottom:1px solid var(--border);
  padding:8px 8px;
  text-align:left;
  vertical-align:middle;
  white-space:nowrap;
}
.payout-table th{
  background:var(--bg-card-2);
  color:var(--text-muted);
  font-size:10.5px;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-weight:700;
  position:sticky;
  top:0;
  z-index:1;
}
.payout-h-rep{ background:rgba(140,100,220,.18) !important; color:#d4c2ff !important; }
.payout-h-fixed{ background:rgba(160,120,40,.18) !important; color:#f0d89f !important; }
.payout-h-events{ background:rgba(70,120,220,.18) !important; color:#b8d0ff !important; }
.payout-h-bonus{ background:rgba(50,160,180,.18) !important; color:#9fe7f0 !important; }
.payout-h-comp{ background:rgba(180,70,110,.18) !important; color:#f0b8cb !important; }
.payout-cell{
  min-width:72px;
  max-width:110px;
  padding:7px 8px !important;
  font-size:12.5px;
}
.payout-cell-note{
  min-width:120px;
  max-width:180px;
}