/* Presentation only: preserve calculator state, arithmetic, macros and tape export. */
@layer sentriiq-precision {
html:root dialog.accounting-tape-dialog[data-accounting-window]{width:400px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:12px!important;overflow:hidden!important;color:#243448!important;background:#f7f9fc!important;container-type:inline-size}
html:root dialog.accounting-tape-dialog[data-expanded=true]{width:760px!important}
html:root .accounting-tape-dialog .accounting-window-header{padding:6px 8px!important;gap:6px!important;background:#243448!important;border-radius:6px;color:white!important;cursor:move}
html:root .accounting-tape-dialog .accounting-window-header strong{font:600 14px/1.3 Arial,sans-serif!important;color:white!important;-webkit-text-fill-color:white!important}
html:root .accounting-tape-dialog>p[role=status]{margin:5px 0 8px!important;font:11px/1.4 Arial,sans-serif!important;color:#526278!important}
html:root .accounting-tape-dialog .accounting-tape-columns{gap:12px!important;align-items:start!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
html:root .accounting-tape-dialog .accounting-tape-columns>*{min-width:0;box-sizing:border-box}
html:root .accounting-tape-dialog .accounting-tape-columns h2{font-size:16px!important;margin:0 0 6px!important}
html:root .accounting-tape-dialog .accounting-tape-columns>div>h2{display:none}
html:root .accounting-tape-dialog .accounting-tape-columns p{font:12px/1.4 Arial,sans-serif!important;margin:6px 0!important}
html:root .accounting-tape-dialog .accounting-tape-columns p:empty{display:none}
html:root .accounting-tape-dialog button{min-width:0!important;min-height:30px!important;padding:5px 8px!important;margin:0!important;white-space:normal!important;font:13px/1.3 Arial,sans-serif!important;box-shadow:none!important;overflow-wrap:anywhere}
html:root .accounting-tape-dialog button:focus-visible{outline:2px solid #1c69d4!important;outline-offset:1px!important}
html:root .accounting-tape-dialog :is(input,select,textarea){min-width:0!important;width:100%!important;max-width:100%!important;padding:6px 8px!important;box-sizing:border-box!important;font-size:14px!important}
html:root .accounting-tape-dialog label{font:500 12px/1.4 Arial,sans-serif!important;color:#243448!important}
html:root .accounting-tape-dialog output[aria-label="Running register"]{font:600 21px/1.4 Consolas,monospace!important;margin:8px 0!important;padding:6px 8px;background:#eaf1fb;border-radius:5px;color:#172b43!important}
html:root .accounting-tape-dialog .accounting-tape-columns>div>div:first-of-type{height:80px!important;min-height:40px;border:1px solid #d4dfeb;border-radius:5px;padding:6px!important}
html:root .accounting-tape-dialog .accounting-tape-columns>div>div:last-of-type{gap:5px!important}
html:root .accounting-tape-dialog input[aria-label=Amount]{font:18px/1.3 Consolas,monospace!important;margin:8px 0!important;height:36px}
html:root .accounting-tape-dialog details{padding:10px!important;margin:0!important;border:1px solid #d4dfeb!important;border-radius:7px!important;background:#fff;color:#243448!important}
html:root .accounting-tape-dialog summary{font:600 13px/1.4 Arial,sans-serif!important;cursor:pointer;padding:4px 0;color:#174f9c!important}
html:root .accounting-tape-dialog details>button{margin:3px!important}
html:root .accounting-tape-dialog section[aria-label="Scientific calculator keypad"]{padding:10px!important;margin:8px 0!important;border:1px solid #ccd6e2!important;border-radius:8px!important;background:#eaf0f7!important;box-shadow:none!important;color:#243448!important}
html:root .accounting-tape-dialog section[aria-label="Scientific calculator keypad"]>div:first-child{font:600 12px/1.4 Arial,sans-serif!important;letter-spacing:0!important;color:#243448!important;-webkit-text-fill-color:#243448!important;margin-bottom:6px!important}
html:root .accounting-tape-dialog section[aria-label="Scientific calculator keypad"]>div:last-of-type{gap:4px!important}
html:root .accounting-tape-dialog section[aria-label="Scientific calculator keypad"] :is(p,output){color:#243448!important;-webkit-text-fill-color:#243448!important}
html:root .accounting-tape-dialog output[aria-label="Scientific result"]{background:#fff!important;border:1px solid #ccd6e2;min-height:28px!important;font:16px/1.4 Consolas,monospace!important;margin:0 0 6px!important}
html:root .accounting-tape-dialog output[aria-label="Calculator status"]{font:11px/1.3 Arial,sans-serif!important;min-height:16px!important}
html:root .accounting-tape-dialog textarea[aria-label="Auto Sum values"]{min-height:90px;height:100px;max-height:180px;resize:vertical}
html:root .accounting-tape-dialog label:has([aria-label="Auto Sum values"]),html:root .accounting-tape-dialog label:has([aria-label="Macro name"]){border-top:1px solid #ccd6e2;padding-top:12px!important;margin-top:14px!important}
html:root #accounting-tape-shortcuts{max-height:min(240px,50dvh)!important;overflow:auto!important;background:#fff!important;color:#243448!important;border:1px solid #ccd6e2!important;border-radius:6px!important;padding:4px!important}
html:root #accounting-tape-shortcuts button{padding:7px 10px!important;min-height:32px!important;font-size:13px!important;line-height:1.4!important;color:#243448!important;background:#fff!important;text-align:left;white-space:normal}
html:root #accounting-tape-shortcuts button:hover{background:#eaf1fb!important;color:#174f9c!important}
@media(min-width:801px){html:root .accounting-tape-dialog[data-expanded=true] .accounting-tape-columns{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;overflow:hidden!important}html:root .accounting-tape-dialog[data-expanded=true] .accounting-tape-columns>*{max-height:calc(100dvh - 124px);overflow:auto;scrollbar-gutter:stable}}
@media(max-width:800px){html:root .accounting-tape-dialog .accounting-tape-columns{grid-template-columns:minmax(0,1fr)!important}html:root dialog.accounting-tape-dialog[data-expanded=true]{width:480px!important}}
@media(max-width:480px){html:root .accounting-tape-dialog :is(input,textarea,select){font-size:16px!important}html:root .accounting-tape-dialog button{min-height:34px!important}}
}
