.v3-free-controls { opacity: .48; transition: opacity .2s ease; }
.v3-free-controls:hover,
.v3-free-controls:focus-within,
.v3-free-controls:has(.screen-library-button.active) { opacity: 1; }
.v3-free-controls { gap: 10px; }
.v3-free-controls .demo-button {
  min-width: 0;
  padding: 12px 20px;
  border: 1px solid #002a80;
  border-radius: 24px;
  background: linear-gradient(to right, #002a80 0%, #802eea 50%, #802eea 100%);
  color: #fff;
  font: 500 14px/21px "IBM Plex Mono", monospace;
  text-transform: uppercase;
  white-space: nowrap;
}
.v3-free-controls .demo-button:hover { border-color: #002a80; background: linear-gradient(to right, #002a80 0%, #802eea 50%, #802eea 100%); box-shadow: 0 3px 12px rgba(0,42,128,.24); }
.v3-free-controls .demo-button:focus-visible { outline: 2px solid #7e2ee9; outline-offset: 3px; }
.v3-free-controls .screen-library-button { font: 500 14px/21px "IBM Plex Mono", monospace; text-transform: uppercase; }

.v3-free-controls .feedback-button {
  position: relative;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b6073;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.v3-free-controls .feedback-button::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -7px;
  width: 1px;
  height: 24px;
  background: #d8d8e3;
}
.v3-free-controls .feedback-button:hover,
.v3-free-controls .feedback-button:focus-visible {
  background: #f5f1ff;
  color: var(--violet-dark);
}
.v3-free-controls .feedback-button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.feedback-modal .conversion-modal__header .feedback-modal__context { margin-top: 5px; color: #5b6073; font-size: 13px; }

.screen-catalog--skills { bottom: 98px; width: min(390px, calc(100% - 40px)); max-height: calc(100vh - 118px); padding: 18px 20px 20px; }
.screen-catalog--skills header { align-items: flex-start; margin-bottom: 16px; }
.screen-catalog--skills h2 { margin: 0; max-width: 275px; font-size: 21px; line-height: 1.2; }
.screen-catalog__role { border-bottom: 1px solid #ececf2; }
.screen-catalog__role summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 7px 2px; list-style: none; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.screen-catalog__role summary::-webkit-details-marker { display: none; }
.screen-catalog__role summary::after { content: '⌄'; margin-left: 10px; color: var(--muted); font-size: 17px; line-height: 1; transition: transform .2s ease; }
.screen-catalog__role[open] summary::after { transform: rotate(180deg); }
.screen-catalog__role summary span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
.screen-catalog__role summary:hover { color: var(--violet-dark); }
.screen-catalog__role summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.screen-catalog__role-list { padding-bottom: 7px; }
.screen-catalog__role button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 38px; padding: 6px 10px; border: 0; background: transparent; color: var(--ink); text-align: left; font-size: 13px; font-weight: 500; }
.screen-catalog__role button:last-child { border-bottom: 0; }
.screen-catalog__role button:hover, .screen-catalog__role button.active { border-radius: 8px; background: #f5f1ff; color: var(--violet-dark); }
.screen-catalog__role button.active { box-shadow: inset 3px 0 var(--violet); }
.screen-catalog__role button span:last-child { color: var(--violet-dark); font-size: 17px; font-weight: 400; }
.screen-catalog--skills .screen-catalog__role:last-of-type { border-bottom: 0; }
.screen-catalog__missing { display: flex; justify-content: flex-end; margin-top: 6px; padding: 0 2px; }
.screen-catalog__missing button { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: transparent; color: #707588; cursor: pointer; font-size: 11px; font-weight: 500; }
.screen-catalog__missing button span { margin-left: 5px; }
.screen-catalog__missing button:hover { color: var(--violet-dark); text-decoration: underline; text-underline-offset: 3px; }
.screen-catalog__missing button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.skills-path-choices { padding: 0 0 13px; margin-bottom: 16px; border-bottom: 1px solid #ececf2; }
.skills-path-choices h3 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 7px; color: var(--ink); font-size: 12px; }
.skills-path-choices h3 span { color: var(--muted); font-weight: 500; }
.skills-path-choices button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 8px 16px; border: 1px solid #d8d8e3; border-radius: 24px; background: #fff; color: var(--navy); text-align: left; cursor: pointer; }
.skills-path-choices button + button { margin-top: 8px; }
.skills-path-choices button:hover { border-color: #7e2ee9; background: #faf7ff; }
.skills-path-choices button:focus-visible { outline: 2px solid #7e2ee9; outline-offset: 2px; }
.skills-path-choices button strong { display: block; font: 600 14px/21px "IBM Plex Mono", monospace; text-transform: uppercase; }
.skills-path-choices button small { display: block; margin-top: 1px; color: var(--muted); font: 400 11px/1.3 Figtree, sans-serif; }
.skills-path-choices button > span:last-child { color: #7e2ee9; font-size: 18px; }
.skills-path-toolkit { position: absolute; z-index: 20; right: 20px; bottom: 20px; display: flex; max-width: calc(100% - 40px); flex-direction: column; align-items: flex-end; gap: 8px; }
.skills-path-toolkit .free-controls { position: static; max-width: 100%; opacity: 1; }
.skills-path-toolkit .free-controls:hover,
.skills-path-toolkit .free-controls:focus-within { opacity: 1; }
.skills-path-context { width: min(360px, 100%); padding: 14px 16px; border: 1px solid #d8d8e3; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 10px 32px rgba(20,12,74,.18); backdrop-filter: blur(12px); }
.skills-path-context__step { color: var(--violet-dark); font: 600 10px/1.3 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.skills-path-context h2 { margin: 6px 0 0; color: var(--navy); font-size: 16px; line-height: 1.2; }
.skills-path-context p { margin: 6px 0 0; color: #4c5062; font-size: 13px; line-height: 1.4; }
.skills-customer-story { margin-top: 11px; padding-top: 9px; border-top: 1px solid #ececf2; }
.skills-customer-story__label { display: block; margin-bottom: 7px; color: var(--violet-dark); font-size: 12px; font-weight: 700; }
.skills-customer-story__content { padding: 10px 12px; border-radius: 8px; background: #f7f5ff; }
.skills-customer-story__content strong { color: var(--navy); font-size: 12px; }
.skills-path-context .skills-customer-story__content p { margin-top: 4px; font-size: 12px; }
.skills-path-context__navigation { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ececf2; }
.skills-path-context__navigation button { min-height: 44px; padding: 8px 4px; border: 0; border-radius: 4px; background: transparent; color: #4c5062; font: 600 13px/1.2 Figtree, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.skills-path-context__navigation button:hover { background: #f5f1ff; color: var(--violet-dark); }
.skills-path-context__navigation button:focus-visible { outline: 2px solid #7e2ee9; outline-offset: 2px; }
.skills-path-context__navigation .skills-path-next { color: var(--violet-dark); font-weight: 700; }

.feedback-request-form { display: grid; gap: 18px; padding: 26px 28px 28px; }
.feedback-request-form label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.feedback-request-form textarea,
.feedback-request-form input { width: 100%; padding: 12px 14px; border: 1px solid #cfcfd9; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }
.feedback-request-form textarea { min-height: 120px; resize: vertical; }
.feedback-request-form input { min-height: 46px; }
.feedback-request-form textarea:focus,
.feedback-request-form input:focus { outline: 2px solid var(--violet); outline-offset: 2px; }
.feedback-request-form__notice { margin: -2px 0 0; color: #5b6073; font-size: 12px; line-height: 1.45; }
.feedback-request-form__actions { display: flex; justify-content: space-between; gap: 10px; }
.feedback-request-form__actions button:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 680px) {
  .screen-catalog--skills { bottom: 84px; width: calc(100% - 20px); max-height: calc(100vh - 104px); padding: 16px 18px 18px; }
  .feedback-request-form { padding: 20px; }
  .feedback-request-form__actions { flex-direction: column; }
  .skills-path-toolkit { right: 10px; left: 10px; bottom: 10px; max-width: none; }
  .skills-path-toolkit .free-controls { width: 100%; }
}

@media (max-width: 500px) {
  .v3-free-controls { gap: 4px; padding: 6px; opacity: .92; }
  .v3-free-controls .demo-button { padding-inline: 9px; white-space: nowrap; }
  .v3-free-controls .screen-library-button { width: 44px; flex: 0 0 44px; justify-content: center; padding: 0; }
  .v3-free-controls .screen-library-button span { display: none; }
  .v3-free-controls .feedback-button { width: 44px; flex: 0 0 44px; overflow: hidden; padding: 0; font-size: 0; text-decoration: none; }
  .v3-free-controls .feedback-button::after { content: "?"; font-size: 16px; font-weight: 700; }
}

@media (max-width: 360px) {
  .v3-free-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: calc(100% - 20px); border-radius: 20px; }
  .skills-path-toolkit .v3-free-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-free-controls .paths-button,
  .v3-free-controls .screen-library-button,
  .v3-free-controls .feedback-button,
  .v3-free-controls .v2-icon-button { width: 100%; min-width: 0; padding: 0; justify-content: center; }
  .v3-free-controls .paths-button { font-size: 0; }
  .v3-free-controls .paths-button::after { content: "←"; font-size: 16px; }
  .v3-free-controls .demo-button { grid-column: 1 / -1; width: 100%; }
  .screen-catalog--skills { bottom: 132px; max-height: calc(100vh - 152px); }
}

@media (hover: none) {
  .v3-free-controls { opacity: 1; }
}
