dialog.calculator-dialog {
    box-sizing: border-box;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #555;
    color: #222;
    background: #fff;
}

.calculator-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

#calculator-help[open] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: 80vw;
    height: 80vh;
}

#calculator-help iframe {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
}

#calculator-error {
    width: 440px;
}

#calculator-error p {
    color: #a00000;
    overflow-wrap: anywhere;
}

#calculator-error[data-warning] p {
    color: #855200;
}

#calculator-error [data-error-message] {
    white-space: pre-line;
}
