/* ARTPIE common interaction language. Preserve native semantics and form validation. */
:root{--ap-ui-ink:#171717;--ap-ui-cream:#f2eee6;--ap-ui-orange:#f48948;--ap-ui-lime:#dfff00;--ap-ui-red:#ae2821}
body input[type="checkbox"],body input[type="radio"]{
 appearance:none!important;-webkit-appearance:none!important;display:inline-grid!important;place-content:center!important;
 width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important;
 padding:0!important;margin:2px 0!important;flex:0 0 20px!important;vertical-align:middle;
 border:1px solid #827b70!important;background:#fffdf8!important;border-radius:0!important;cursor:pointer;box-shadow:none!important;
 transition:background-color .15s,border-color .15s;
}
body input[type="checkbox"]::before{content:"";width:12px;height:8px;border-left:2px solid #f2eee6;border-bottom:2px solid #f2eee6;transform:translateY(-2px) rotate(-45deg) scale(0)}
body input[type="checkbox"]:checked,body input[type="checkbox"]:indeterminate{background:#171717!important;border-color:#171717!important;box-shadow:3px -3px 0 -1px #f48948!important}
body input[type="checkbox"]:checked::before{transform:translateY(-2px) rotate(-45deg) scale(1)}
body input[type="checkbox"]:indeterminate::before{width:10px;height:0;border-left:0;transform:none}
body input[type="radio"]{border-radius:50%!important}
body input[type="radio"]::before{content:"";width:10px;height:10px;border-radius:50%;background:#171717;transform:scale(0)}
body input[type="radio"]:checked{border-color:#171717!important;box-shadow:0 0 0 2px #dfff00!important}
body input[type="radio"]:checked::before{transform:scale(1)}
body input:is([type="checkbox"],[type="radio"]):focus-visible{outline:2px solid #b84419!important;outline-offset:4px!important}
body input:is([type="checkbox"],[type="radio"]):disabled{opacity:.45;cursor:not-allowed}
:where(label):has(>input[type="checkbox"]){display:flex;align-items:flex-start;gap:12px;line-height:1.7;cursor:pointer}
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),textarea,select){font:inherit;border-radius:0;accent-color:var(--ap-ui-orange)}
:where(input,textarea,select):focus-visible{outline:2px solid #b84419;outline-offset:3px}
:where(input,textarea,select)[aria-invalid="true"]{border-color:#ae2821!important;outline-color:#ae2821}
:where(input[type="file"])::file-selector-button{border:1px solid #171717;border-radius:0;background:#f2eee6;color:#171717;padding:10px 15px;margin-right:12px;font:inherit;cursor:pointer}
:where(select){appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23776c60' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:36px!important}
:where(button,[role="button"]){font-family:inherit}
:where(form button:not([class]),.ap-brand-action){border:1px solid #171717;background:#171717;color:#f2eee6;padding:12px 20px;min-height:44px;border-radius:0;font:inherit;cursor:pointer}
:where(button):disabled{cursor:not-allowed}
:where(button,a):focus-visible{outline:2px solid #b84419;outline-offset:4px}
:where([role="alert"]):not(:empty){border-left:3px solid #ae2821;background:#fff2e8;color:#702018;padding:14px 18px;line-height:1.7}
:where([role="status"]):not(:empty){line-height:1.7}
.ap-brand-dialog{padding:0;border:1px solid #171717;border-top:5px solid #f48948;border-radius:0;background:#f2eee6;color:#171717;width:min(480px,calc(100vw - 32px));max-height:85svh;overflow:auto;box-shadow:0 24px 80px #0005}
.ap-brand-dialog::backdrop{background:#101011b3}
.ap-brand-dialog__inner{padding:30px}
.ap-brand-kicker{font-size:10px;letter-spacing:.16em;font-weight:700;margin:0 0 22px}
.ap-brand-dialog h2{font-size:26px;letter-spacing:-.04em;margin:0 0 16px}
.ap-brand-dialog__message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px}
.ap-brand-dialog__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}
.ap-brand-dialog__actions button{min-height:44px;padding:12px 22px;border:1px solid #171717;border-radius:0;font:inherit;cursor:pointer}
.ap-brand-dialog__cancel{background:transparent;color:#171717}
.ap-brand-dialog__confirm{background:#171717;color:#f2eee6}
.ap-brand-dialog__confirm:hover{background:#2b2823}
.ap-brand-error{min-height:65svh;max-width:780px;margin:auto;padding:clamp(80px,14vw,150px) 24px;color:#171717;background:#f2eee6}
.ap-brand-error__code{font-size:clamp(70px,15vw,140px);font-weight:800;letter-spacing:-.08em;line-height:1;margin:0 0 30px}
.ap-brand-error h1{font-size:clamp(24px,5vw,40px);letter-spacing:-.04em}
.ap-brand-error p{line-height:1.8}
.ap-brand-error a,.ap-brand-error button{display:inline-flex;align-items:center;min-height:44px;margin:18px 16px 0 0;padding:12px 0;border:0;border-bottom:1px solid #171717;color:#171717;background:none;text-decoration:none;font:inherit;cursor:pointer}
.ap-brand-error__slogan{border-top:1px solid #c9c1b5;margin-top:48px;padding-top:20px;font-size:11px;letter-spacing:.1em}
.ap-brand-loading{padding:70px 24px;text-align:center;background:#f2eee6;color:#171717}
.ap-brand-loading::before{content:"";display:block;margin:0 auto 22px;width:28px;height:28px;border:2px solid #171717;border-top-color:#f48948;animation:ap-ui-spin 1s linear infinite}
@keyframes ap-ui-spin{to{transform:rotate(360deg)}}
.ap-input-error{display:block;color:#96291f;font:500 12px/1.7 Arial,'Malgun Gothic',sans-serif;border-left:2px solid #f48948;padding:5px 9px;margin:8px 0;letter-spacing:0;max-width:100%}
label:has(>input[type="checkbox"])>.ap-input-error{flex-basis:100%}
label:has(>.ap-input-error):has(>input[type="checkbox"]){flex-wrap:wrap}
@media(prefers-reduced-motion:reduce){body input,.ap-brand-loading::before{transition:none;animation:none}}
@media(forced-colors:active){body input[type="checkbox"],body input[type="radio"]{appearance:auto!important;-webkit-appearance:auto!important;box-shadow:none!important}body input[type="checkbox"]::before,body input[type="radio"]::before{display:none}.ap-brand-dialog{border:2px solid CanvasText}.ap-brand-dialog__confirm{background:ButtonFace;color:ButtonText}}
