/* Apenas seletor de placas e sua ação na barra; não redefine o layout do editor. */
.board-picker { width: min(880px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 26px; color: #243655; background: transparent; overflow: visible; isolation: isolate; opacity: 1; transition: opacity .18s ease, transform .18s ease; }
.board-picker-surface { position: relative; z-index: 1; max-height: inherit; padding: 30px; border: 1px solid #dce6fa; border-radius: inherit; background: #f7faff; box-shadow: 0 24px 90px #122d6c50; overflow: auto; }
.board-picker-mascot { display: none; position: absolute; z-index: 0; pointer-events: none; user-select: none; }
.board-picker.has-mascot-space .board-picker-mascot { display: block; }
.board-picker-mascot svg { display: block; width: 100%; height: 100%; transform-origin: 50% 75%; transform: rotate(var(--mascot-tilt,0deg)); animation: board-mascot-peek 7s ease-in-out infinite; }
@keyframes board-mascot-peek { 0%,100% { transform: translateY(0) rotate(var(--mascot-tilt,0deg)); } 50% { transform: translateY(-2px) rotate(var(--mascot-tilt,0deg)); } }
.board-picker::backdrop { background: #122d70a8; backdrop-filter: blur(6px); }
.board-picker[open] { animation: board-picker-enter .25s ease both; }
.board-picker.is-leaving { animation: none; opacity: 0; transform: translateY(8px); }
.board-picker-heading { position: relative; text-align: center; padding: 0 32px 22px; }
.board-picker-symbol { display: grid; place-items: center; width: 49px; height: 49px; margin: 0 auto 13px; border-radius: 16px; color: #8050cf; background: #eee5ff; font-size: 29px; }
.board-picker h2 { margin: 0; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.7px; }
.board-picker-heading p { margin: 9px 0 0; color: #627492; font-size: 16px; }
.board-picker-cancel { position: absolute; top: 0; right: -12px; min-height: 40px; width: 40px; padding: 0; background: #e8effa; color: #536983; font-size: 23px; }
.board-picker-cancel[hidden] { display: none; }
.board-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 20px; }
.board-card { --board-accent: #2667dd; --board-tint: #edf4ff; --board-ink: #215691; position: relative; display: flex; flex-direction: column; padding: 17px; border: 2px solid #dfE7f4; border-radius: 20px; background: white; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.board-card[data-accent="purple"] { --board-accent: #8050cf; --board-tint: #f2edff; --board-ink: #62409d; }
.board-card:hover, .board-card:focus-within { transform: translateY(-4px); border-color: var(--board-accent); box-shadow: 0 10px 25px #244b8514; }
.board-card.is-selected { border-color: #20996e; box-shadow: 0 0 0 3px #32bf8c24; }
.board-picture { position: relative; height: 173px; display: grid; place-items: center; background: var(--board-tint); border-radius: 14px; overflow: hidden; }
.board-picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 12px; object-fit: contain; object-position: center; }
.board-picture img[hidden], .board-placeholder[hidden] { display: none; }
.board-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.board-picture-spark { position: absolute; right: 23px; top: 13px; font-size: 29px; color: var(--board-accent); opacity: .5; }
.board-placeholder-caption { position: absolute; bottom: 10px; font-size: 10px; letter-spacing: .4px; color: #63748c; }
.board-drawing { position: relative; width: 161px; height: 99px; border-radius: 13px 20px 13px 13px; background: #2ca8b2; border: 3px solid #228b9a; rotate: -8deg; box-shadow: 0 10px 0 #acd3de55; }
.board-drawing::before, .board-drawing::after { content: ''; position: absolute; left: 32px; right: 12px; height: 9px; border-radius: 2px; background: repeating-linear-gradient(90deg,#263d53 0 5px,#a5cbd5 5px 8px); }
.board-drawing::before { top: 5px; }.board-drawing::after { bottom: 5px; }
.board-drawing[data-shape="compact"] { width: 85px; height: 126px; rotate: 12deg; border-radius: 9px; }
.board-drawing[data-shape="compact"]::before, .board-drawing[data-shape="compact"]::after { top: 20px; bottom: 6px; width: 7px; height: auto; right: auto; left: 3px; background: repeating-linear-gradient(#263d53 0 5px,#a5cbd5 5px 8px); }
.board-drawing[data-shape="compact"]::after { left: auto; right: 3px; }
.board-usb { position: absolute; top: 16px; left: -8px; width: 30px; height: 27px; border: 4px solid #dce8ef; border-radius: 3px; background: #728c9d; }
[data-shape="compact"] .board-usb { top: -6px; left: 27px; width: 27px; height: 25px; }
.board-processor { position: absolute; top: 32px; left: 58px; display: grid; place-items: center; width: 49px; height: 37px; border: 3px solid #a1d1ce; background: #25475c; border-radius: 4px; color: #b4f8e9; font: bold 17px monospace; }
[data-shape="compact"] .board-processor { top: 43px; left: 20px; width: 40px; height: 42px; font-size: 15px; }
.board-light { position: absolute; right: 14px; top: 26px; width: 7px; height: 7px; border-radius: 50%; background: #ffe173; box-shadow: 0 0 0 3px #ffe17325; }
.board-traces { position: absolute; left: 18px; bottom: 24px; width: 25px; height: 19px; border-left: 2px solid #b0efe0; border-bottom: 2px solid #b0efe0; }
.board-card-caption { margin: 17px 0 6px; font-size: 11px; font-weight: 700; color: var(--board-ink); }
.board-card-title { margin: 0; font-size: 25px; letter-spacing: -.6px; }
.board-card-description { flex: 1; color: #63718a; font-size: 14px; line-height: 1.6; margin: 9px 0 0; }
.board-selected { display: block; min-height: 32px; padding: 9px 0 4px; font-size: 12px; font-weight: 700; color: #17865f; }
.board-choice { width: 100%; min-height: 48px; color: white; background: var(--board-accent); border-radius: 12px; font-size: 15px; }
.board-choice:hover:not(:disabled) { filter: brightness(1.08); }
.board-card.is-selected .board-choice { background: #17865f; }
.board-picker-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; color: #63748c; font-size: 12px; text-align: center; line-height: 1.5; }
.board-picker-note strong { padding: 4px 7px; border-radius: 6px; background: #ece4ff; color: #7642b9; font-size: 10px; }
.board-picker-status { min-height: 20px; margin: 12px 0 0; color: #167c58; text-align: center; font-size: 13px; font-weight: 650; }
.topbar .board-change { min-height: 36px; padding: 7px 9px; color: white; background: #ffffff16; border: 1px solid #9cbcff70; border-radius: 8px; font-size: 11px; }
.topbar .board-change:hover:not(:disabled) { background: #ffffff30; }
@keyframes board-picker-enter { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* Menos espaço vertical em notebooks, mantendo largura, tipografia e botões.
   overflow:auto continua disponível quando a altura não comportar o conteúdo. */
@media (min-width: 901px) and (max-height: 850px) {
  .board-picker-surface { padding-top: 18px; padding-bottom: 18px; }
  .board-picker-heading { padding-bottom: 12px; }
  .board-picker-symbol { margin-bottom: 6px; }
  .board-picker-heading p { margin-top: 5px; }
  .board-card { padding-top: 14px; padding-bottom: 14px; }
  .board-picture { height: 165px; }
  .board-card-caption { margin-top: 10px; margin-bottom: 4px; }
  .board-card-description { margin-top: 6px; }
  .board-selected { min-height: 26px; padding-top: 5px; padding-bottom: 3px; }
  .board-picker-note { margin-top: 10px; }
  .board-picker-status { margin-top: 4px; }
  .board-picker-status:empty { min-height: 0; margin-top: 0; }
}
@media(max-width:600px) { .board-picker { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }.board-picker-surface { padding: 22px 16px; }.board-picker-heading { padding: 0 20px 20px; }.board-picker-heading p { font-size: 14px; }.board-cards { grid-template-columns: 1fr; gap: 14px; }.board-picture { height: 150px; }.board-picker-note { align-items: flex-start; }.board-card:hover { transform: none; } }
@media(prefers-reduced-motion:reduce) { .board-picker,.board-picker * { animation:none !important; transition:none !important; }.board-card:hover,.board-card:focus-within,.board-picker.is-leaving { transform:none; } }
