/* About uses the same light panels and 36px actions as Mainboard and Drivers. */
.rocodeAboutDialog {
    box-sizing: border-box;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #aac5d5;
    border-radius: 12px;
    color: #294b61;
    background: #ecf8ff;
    font: 14px/1.5 var(--rocode-font-family);
    box-shadow: 2px 2px 10px rgb(0 0 0 / 19%);
}
.rocodeAboutDialog::backdrop { background: rgb(59 59 59 / 60%); }
.rocodeAboutDialog [hidden] { display: none !important; }
.rocodeAboutHeader { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #c6dae6; background: #d6e9f4; }
.rocodeAboutHeader h2 { flex: 1; margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.rocodeAboutClose { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; color: #587184; background: transparent; font-size: 24px; line-height: 32px; cursor: pointer; }
.rocodeAboutClose:hover { color: var(--rocode-action); background: #fff; }
.rocodeAboutBrand { padding: 20px; text-align: center; color: #fff; background: #4f95ff; }
.rocodeAboutBrand img { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 auto 12px; }
.rocodeAboutBrand h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 28px; }
.rocodeAboutBrand p { margin: 4px 0 0; }
.rocodeAboutBody { padding: 20px; }
.rocodeAboutBody p { margin: 0 0 12px; }
.rocodeAboutBody h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 600; line-height: 24px; }
.rocodeAboutBody a { color: #2854c7; text-decoration: underline; }
.rocodeAboutCredits { margin: 0 0 12px; padding-inline-start: 20px; }
.rocodeAboutCredits li { margin: 4px 0; }
.rocodeAboutLegal { padding: 12px; border: 1px solid #c6dae6; border-radius: 4px; background: #fff; }
.rocodeAboutLegal summary { min-height: 24px; padding: 4px 0; color: #2854c7; font-weight: 600; cursor: pointer; }
.rocodeAboutLegal > p { margin: 8px 0; }
.rocodeAboutLegal details { padding: 4px 0; border-top: 1px solid #d6e9f4; }
.rocodeAboutLegal pre { margin: 8px 0; font: 12px/1.6 var(--rocode-font-family); white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; user-select: text; }
.rocodeAboutDisclaimer { margin-top: 16px !important; font-size: 12px; }
.rocodeAboutActions { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid #d6e9f4; background: #fff; }
.rocodeAboutButton { box-sizing: border-box; min-height: 36px; min-width: 84px; padding: 7px 12px; border: 1px solid var(--rocode-action); border-radius: 4px; color: #fff; background: var(--rocode-action); font: 600 12px/20px var(--rocode-font-family); cursor: pointer; }
.rocodeAboutButton:hover { border-color: var(--rocode-action-hover); background: var(--rocode-action-hover); }
.rocodeAboutButton:active { border-color: var(--rocode-action-pressed); background: var(--rocode-action-pressed); }
.rocodeAboutDialog :is(button, a, summary):focus-visible { outline: 3px solid var(--rocode-focus); outline-offset: 2px; }
@media (max-width: 420px) {
    .rocodeAboutBody { padding: 16px; }
    .rocodeAboutHeader { padding: 12px; }
}
