/* KT Lab · form completion v1. Additive: no global element overrides. */
.kt-result-host{display:flow-root;position:relative;min-width:0;overflow-anchor:none}
.kt-result-host>form[hidden],.kt-result[hidden],.kt-result [hidden],.kt-send-state[hidden],.kt-send-state [hidden]{display:none!important}
.kt-result-host>form{scroll-margin-top:110px}
.kt-result-host[data-kt-form="order"]{margin-top:30px}
.kt-result-host>form.order-form{margin-top:0}
.kt-result-host>form[data-kt-locked="true"] .drop-target{pointer-events:none}
.kt-result-host>form[data-kt-locked="true"] :is(input,textarea){cursor:default}
.kt-result-host>form[data-kt-locked="true"] button[type="submit"]{cursor:wait;transform:none;box-shadow:none;opacity:.68}
.kt-result-host>form[data-kt-uncertain="true"] button[type="submit"]{display:none}
.kt-result-host>form .form-status:empty{display:none}
.kt-result,.kt-send-state{--ktr-paper:#f5f3ee;--ktr-ink:#111114;--ktr-muted:#62636a;--ktr-line:#dedbd4;--ktr-orange:#ff6500;--ktr-cta:#c65300;--ktr-focus:#994000;color:var(--ktr-ink);font-family:inherit;font-size:1rem;line-height:1.5;text-align:left;min-width:0}
.kt-result *,.kt-send-state *{box-sizing:border-box;min-width:0}
.kt-result{margin:0 0 22px;border:1px solid var(--ktr-line);border-radius:24px;background:#fff;box-shadow:0 18px 55px rgba(17,17,20,.055);overflow:visible}
.kt-result__card{padding:32px;position:relative}
.kt-result__layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.42fr);gap:36px;align-items:stretch}
.kt-result__heading{display:flex;gap:18px;align-items:flex-start}
.kt-result__symbol{display:grid;place-items:center;flex:0 0 auto;width:52px;height:52px;border-radius:50%;background:#ff6500;color:#111114}
.kt-result svg,.kt-send-state svg{display:block;width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kt-result__symbol svg{width:27px;height:27px;stroke-width:2.2}
.kt-result .kt-result__title{margin:0;padding:0;font-size:clamp(1.75rem,2.7vw,2.25rem);line-height:1.13;font-weight:650;letter-spacing:-.04em;color:var(--ktr-ink)}
.kt-result__intro{margin:12px 0 0;color:var(--ktr-muted);max-width:530px;line-height:1.6}
.kt-result__details{margin:28px 0 0 70px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:26px}
.kt-result__detail{padding-top:17px;border-top:1px solid var(--ktr-line)}
.kt-result__label{display:block;font-size:.75rem;font-weight:600;color:var(--ktr-muted)}
.kt-result__detail strong{display:block;margin-top:7px;font-weight:600;font-size:.9375rem;line-height:1.5}
.kt-result__detail p{margin:6px 0 0;font-size:.8125rem;color:var(--ktr-muted);line-height:1.6}
.kt-result__ticket{background:var(--ktr-paper);border:1px solid #e7e4de;border-radius:16px;padding:22px 24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.kt-result__number{display:block;max-width:100%;margin:5px 0 9px;font-size:2.125rem;line-height:1.18;font-weight:650;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;word-break:normal;user-select:all}
.kt-result .kt-result__copy{margin-left:-10px;background:transparent;border:1px solid transparent;border-radius:10px;min-height:44px;padding:8px 10px;font-size:.8125rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;color:var(--ktr-ink)}
.kt-result .kt-result__copy:hover{background:#e9e6de;border-color:#d8d4ca}
.kt-result__copy svg{width:17px;height:17px}
.kt-result__copy-message{margin:6px 0 0;font-size:.75rem;line-height:1.45;color:var(--ktr-muted)}
.kt-result__files{display:flex;align-items:flex-start;gap:10px;margin:22px 0 0;padding:15px 0 0;border-top:1px solid #dcd8d0;width:100%;font-size:.8125rem}
.kt-result__files svg{width:18px;height:18px;margin-top:2px}
.kt-result__files strong{font-size:.8125rem;font-weight:600;display:block}
.kt-result__files p{margin:5px 0 0;line-height:1.6;color:var(--ktr-muted);font-size:.8125rem}
.kt-result__files--warning{margin:22px 0 0;padding:16px;border:1px solid #e9bf96;border-radius:12px;background:#fff3e7}
.kt-result__files--warning svg{color:#8a3b08;flex:0 0 auto}
.kt-result__files--warning strong{color:#7c3308}
.kt-result__files--warning p{color:#69492f}
.kt-result__footer{display:flex;gap:12px;align-items:center;margin:28px 0 0;padding-top:22px;border-top:1px solid var(--ktr-line);flex-wrap:wrap}
.kt-result .kt-result__button,.kt-send-state .kt-result__button{min-height:48px;min-width:44px;display:inline-flex;justify-content:center;align-items:center;gap:10px;max-width:100%;padding:11px 22px;border:1px solid var(--ktr-ink);border-radius:999px;background:var(--ktr-ink);color:#fff;font-family:inherit;font-size:.875rem;font-weight:600;line-height:1.4;cursor:pointer;text-align:center;white-space:normal;transition:background .15s ease,box-shadow .15s ease}
.kt-result .kt-result__button:hover,.kt-send-state .kt-result__button:hover{background:#303034;box-shadow:0 5px 14px #11111413}
.kt-result .kt-result__button--secondary{background:transparent;color:var(--ktr-ink);border-color:#d2cfc8}
.kt-result .kt-result__button--secondary:hover{background:var(--ktr-paper)}
.kt-result .kt-result__button--quiet{background:transparent;color:var(--ktr-muted);border-color:transparent}
.kt-result .kt-result__button--quiet:hover{color:var(--ktr-ink);background:var(--ktr-paper)}
.kt-result__footer-note{margin:0 0 0 auto;max-width:300px;font-size:.75rem;color:var(--ktr-muted);line-height:1.5}
.kt-result__compact{padding:20px 24px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.kt-result__compact .kt-result__symbol{width:36px;height:36px}
.kt-result__compact .kt-result__symbol svg{width:21px;height:21px}
.kt-result__compact-copy{flex:1 1 180px;overflow-wrap:anywhere}
.kt-result__compact-title{margin:0;font-weight:600;font-size:1rem;line-height:1.45}
.kt-result__compact-note{margin:4px 0 0;color:var(--ktr-muted);font-size:.8125rem}
.kt-result__compact-actions{display:flex;gap:6px;flex-wrap:wrap}
.kt-result__compact--warning{border-left:3px solid #c65300;border-radius:22px}
.kt-result :is(button,a):focus-visible,.kt-send-state :is(button,a):focus-visible{outline:3px solid var(--ktr-focus);outline-offset:4px}
.kt-result [tabindex="-1"]:focus{outline:none}
.kt-result [tabindex="-1"]:focus-visible{outline:2px solid var(--ktr-focus);outline-offset:6px;border-radius:3px}
.kt-result__sr,.kt-send-state__sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.kt-result--enter .kt-result__card{animation:ktr-enter .2s ease-out}
@keyframes ktr-enter{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
/* Status stays in its owner form. It is not a modal and carries no fake percentage. */
.kt-send-state{grid-column:1/-1;display:flex;align-items:flex-start;gap:14px;margin-top:8px;padding:18px 20px;background:#f5f3ee;border:1px solid #d8d4ca;border-radius:14px}
.kt-send-state__content{flex:1}
.kt-send-state__title{margin:0!important;font-size:1rem!important;font-weight:600;line-height:1.45!important;letter-spacing:-.015em!important;color:#111114!important}
.kt-send-state__text,.kt-send-state__long{margin:6px 0 0!important;color:#62636a!important;font-size:.8125rem!important;line-height:1.6!important}
.kt-send-state__long{border-top:1px solid #dad6ce;padding-top:10px;margin-top:10px!important}
.kt-send-state__spinner{width:20px;height:20px;flex:0 0 20px;margin-top:2px;border:2px solid #c9c3b8;border-top-color:#994000;border-radius:50%;animation:ktr-spin 1s linear infinite}
@keyframes ktr-spin{to{transform:rotate(360deg)}}
.kt-send-state--uncertain{background:#fff6ed;border-color:#dfbb99}
.kt-send-state--uncertain .kt-send-state__spinner{border:0;animation:none;width:24px;height:24px;background:#7c3308;color:#fff;display:grid;place-items:center;font-weight:700;font-size:.875rem}
.kt-send-state .kt-result__button{margin-top:14px}
.kt-send-state [tabindex="-1"]:focus{outline:2px solid #994000;outline-offset:4px;border-radius:2px}
/* Optional B exploration only. Production recommendation does not create a dialog. */
dialog.kt-result-dialog{padding:0;margin:auto;border:0;border-radius:24px;max-width:min(640px,calc(100% - 40px));width:640px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;background:#fff;color:#111114;box-shadow:0 30px 100px #0005;overscroll-behavior:contain}
dialog.kt-result-dialog:not([open]){display:none}
dialog.kt-result-dialog::backdrop{background:rgba(17,17,20,.62)}
.kt-result-dialog .kt-result{margin:0;border:0;box-shadow:none}
.kt-result-dialog .kt-result__card{padding:38px}
.kt-result-dialog .kt-result__layout{display:flex;flex-direction:column;gap:24px}
.kt-result-dialog .kt-result__heading{padding-right:22px}
.kt-result-dialog .kt-result__details{margin:24px 0 0;gap:24px}
.kt-result-dialog .kt-result__ticket{padding:20px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.kt-result-dialog .kt-result__ticket>.kt-result__label{grid-column:1/-1}
.kt-result-dialog .kt-result__number{font-size:1.875rem;margin-bottom:0}
.kt-result-dialog .kt-result__files,.kt-result-dialog .kt-result__copy-message{grid-column:1/-1}
.kt-result-dialog .kt-result__footer{margin-top:24px}
.kt-result-dialog .kt-result__footer-note{flex-basis:100%;max-width:none;margin:0}
.kt-result .kt-result__close{position:absolute;right:15px;top:15px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:#f5f3ee;color:#111114;cursor:pointer}
.kt-result__close:hover{background:#e7e3da}
@media(max-width:1000px){.kt-result__layout{grid-template-columns:minmax(0,1fr) minmax(218px,.45fr);gap:24px}.kt-result__details{margin-left:0}.kt-result__card{padding:28px}}
@media(max-width:760px){
 .kt-result{border-radius:20px}.kt-result__card{padding:24px}.kt-result__layout{display:flex;flex-direction:column;gap:24px}
 .kt-result__heading{gap:14px}.kt-result__symbol{width:44px;height:44px}.kt-result__symbol svg{width:24px;height:24px}
 .kt-result__intro{font-size:.9375rem;margin-top:10px}.kt-result__details{margin:22px 0 0;gap:20px}
 .kt-result__ticket{padding:18px 20px}.kt-result__number{font-size:1.875rem}.kt-result__footer{margin-top:24px;padding-top:20px;gap:8px}
 .kt-result__footer-note{margin:4px 0 0;max-width:none;flex-basis:100%}
 .kt-result__compact{padding:18px;gap:12px;align-items:flex-start}.kt-result__compact-actions{padding-left:48px}
 .kt-result__compact-actions .kt-result__button{padding-inline:15px}
}
@media(max-width:520px){
 .kt-result__details{grid-template-columns:1fr;gap:17px}.kt-result__detail{padding-top:13px}.kt-result__detail strong{margin-top:4px}
 .kt-result__card{padding:22px 20px}.kt-result__footer>.kt-result__button{width:100%}.kt-result__footer-note{text-align:center}
 .kt-result__title{overflow-wrap:normal}.kt-result__heading{display:block}.kt-result__symbol{margin-bottom:17px}
 .kt-result__compact .kt-result__symbol{margin:0}.kt-result__compact-actions{padding-left:0;flex:1 1 100%}.kt-result__compact-actions .kt-result__button{flex:1 1 auto}
 .kt-send-state{padding:15px 14px;gap:10px}.kt-send-state .kt-result__button{width:100%;padding-inline:14px}
 dialog.kt-result-dialog{margin:0;max-width:100%;width:100%;max-height:100vh;max-height:100dvh;border-radius:0;min-height:100vh;min-height:100dvh}
 .kt-result-dialog .kt-result{border-radius:0}.kt-result-dialog .kt-result__card{padding:calc(28px + env(safe-area-inset-top,0px)) 24px calc(24px + env(safe-area-inset-bottom,0px))}
 .kt-result-dialog .kt-result__details{grid-template-columns:1fr}.kt-result-dialog .kt-result__ticket{display:flex}.kt-result-dialog .kt-result__heading{padding-right:30px}
 .kt-result-dialog .kt-result__close{top:calc(12px + env(safe-area-inset-top,0px));right:12px}
}
@media(max-height:500px){dialog.kt-result-dialog{margin:10px auto;max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);min-height:0}.kt-result-dialog .kt-result__card{padding:24px}.kt-result-dialog .kt-result__heading{padding-right:30px}}
@media(prefers-reduced-motion:reduce){.kt-result--enter .kt-result__card,.kt-send-state__spinner{animation:none}.kt-result .kt-result__button{transition:none}}
@media(forced-colors:active){.kt-result,.kt-send-state,.kt-result__ticket{border:1px solid CanvasText}.kt-result__symbol{background:Canvas;color:CanvasText;border:2px solid CanvasText}.kt-result .kt-result__button{border:1px solid ButtonText}.kt-send-state__spinner{border-color:CanvasText}}
/* Static headings receive programmatic focus, but are not interactive focus targets. */
.kt-result [tabindex="-1"]:focus,.kt-result [tabindex="-1"]:focus-visible,.kt-send-state [tabindex="-1"]:focus{outline:none}
.kt-result__copy-message:empty{display:none}
@media(max-width:760px){
 .kt-result__main{display:contents}
 .kt-result__heading{order:0}
 .kt-result__ticket{order:1}
 .kt-result__files--warning{order:2;margin-top:0}
 .kt-result__details{order:3;margin-top:0}
 .kt-result__layout{gap:20px}
}
@media(max-width:520px){
 .kt-result__heading{display:flex;gap:12px}
 .kt-result__heading .kt-result__symbol{width:36px;height:36px;margin:0}
 .kt-result .kt-result__title{font-size:1.625rem}
 .kt-result__ticket{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:16px 18px;align-items:center}
 .kt-result__ticket>.kt-result__label{grid-column:1/-1}
 .kt-result__ticket .kt-result__files,.kt-result__ticket .kt-result__copy-message{grid-column:1/-1}
 .kt-result__ticket .kt-result__files{margin-top:12px;padding-top:12px}
 .kt-result__number{margin:5px 0 0;font-size:1.75rem}
 .kt-result-dialog .kt-result__ticket{display:grid}
}
