/* Barre latérale « zone Integrated Tools » (style proche du rail YouTube) */
.it-zone {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
  align-items: stretch;
}

.it-rail {
  width: var(--it-rail-w, 232px);
  flex-shrink: 0;
  background: var(--surface, #ffffff);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 10px 20px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.it-rail__label {
  margin: 4px 10px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted, #5c5c5c);
}

.it-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.it-rail__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink, #0d0d0d);
  text-decoration: none;
  text-align: left;
  line-height: 1.3;
  transition: background 0.15s ease, color 0.15s ease;
}

.it-rail__link:hover {
  background: rgba(0, 0, 0, 0.06);
}

.it-rail__link:focus-visible {
  outline: 2px solid var(--gold-line, rgba(138, 112, 56, 0.35));
  outline-offset: 1px;
}

.it-rail__link.is-active {
  background: rgba(0, 0, 0, 0.07);
  font-weight: 600;
}

.it-rail__ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted, #5c5c5c);
}

.it-rail__link.is-active .it-rail__ico {
  color: var(--gold, #8a7038);
}

.it-rail__ico svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.it-rail__link--tutorial {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #0d0d0d;
  font-weight: 600;
}

.it-rail__link--tutorial .it-rail__ico {
  color: #0d0d0d;
}

.it-rail__tutorial-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.it-rail__tutorial-i svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.it-zone > .main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.it-welcome {
  max-width: 520px;
  padding: 8px 4px 32px;
}

.it-welcome h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink, #0d0d0d);
}

.it-welcome p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-muted, #5c5c5c);
}

@media (max-width: 720px) {
  .it-zone {
    flex-direction: column;
  }
  .it-rail {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .it-rail__label {
    margin: 0 8px 8px;
  }
  .it-rail__nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    padding-bottom: 2px;
  }
  .it-rail__link {
    flex-shrink: 0;
    white-space: nowrap;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .it-rail__link span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .it-rail__link--tutorial {
    margin-top: 0;
    padding-top: 10px;
    border-top: none;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 12px;
    margin-left: 4px;
  }
}
