html.kp-lock{overflow:hidden}
.kp{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;background:var(--milk);color:var(--ink);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;font-size:14px}
.kp *{min-width:0}
.kp-top{position:sticky;top:0;z-index:6;display:flex;align-items:center;gap:10px;min-height:var(--top-h);padding:6px 12px;background:var(--surface);border-bottom:1px solid var(--line)}
.kp-ttl{flex:1;display:flex;flex-direction:column;line-height:1.2}
.kp-ttl h2{font-size:15px;font-weight:700}
.kp-ttl h2:focus{outline:none}
.kp-ttl span{font-size:12px}
.kp-save{font-size:12px;text-align:right;max-width:40%}
.kp-main{display:block}
.kp-edit{display:flex;flex-direction:column;background:var(--milk)}
.kp-steps{position:sticky;top:var(--top-h);z-index:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:0 6px;background:var(--surface);border-bottom:1px solid var(--line)}
.kp-steps button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 4px;font-weight:600;font-size:12px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.kp-steps button span{display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:var(--soft);font-size:11px}
.kp-steps button.on{color:var(--ink);border-bottom-color:var(--terra)}
.kp-steps button.on span{background:var(--green);color:var(--on-green)}
.kp-form{padding:14px 12px 18px;display:flex;flex-direction:column;gap:12px}
.kp-intro h3{font-size:18px;font-weight:700;margin:2px 0 4px}
.kp-intro p{font-size:13px}
.kp-bar{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}
.kp-bar .btn{min-height:40px}

.kp .fld{display:flex;flex-direction:column;gap:5px}
.kp .fld .lbl{font-size:12px;font-weight:600;color:var(--muted)}
.kp .input,.kp .select{min-height:40px;font-size:16px}
.kp textarea.input{padding:8px 10px;min-height:0}
.kp .select{padding:0 8px;border:1px solid var(--line2);border-radius:6px;background:var(--surface);color:var(--ink)}
.kp .fld small{font-size:12px;color:var(--muted)}
.kp .fld.invalid .input,.kp .fld.invalid .select{border-color:var(--bad)}
.kp .err-t{color:var(--bad);font-size:12px;font-weight:600}
.kp .tiny{font-size:12px}
.kp .btn.wide{width:100%}
.kp .btn{min-height:36px;white-space:normal;text-align:center}
.kp-bigp{font-size:20px!important;font-weight:700;min-height:48px!important}
.kp-link{align-self:flex-start;color:var(--terra-ink);font-weight:600;font-size:13px;text-decoration:underline;text-underline-offset:3px;min-height:32px;text-align:left}
.kp-fh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}
.kp-fh b{font-size:13px}
.kp-gh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.kp-gh h4{font-size:15px;font-weight:700}
.kp-note{font-size:13px;line-height:1.4}
.kp-note b{display:block;font-size:12px;color:var(--muted);margin-bottom:2px}
.kp-notice{padding:10px 12px;border-radius:var(--r);background:var(--green-soft);font-size:13px;line-height:1.4}
.kp-notice.warn{background:var(--warn-soft);color:var(--ink);display:flex;flex-direction:column;gap:6px}
.kp-notice.warn p{font-size:13px}

.kp-media{display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.kp-media img{display:block;width:100%;height:auto;border-radius:var(--r-sm);background:var(--soft)}
.kp-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:6px}
.kp-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:110px;color:var(--muted);border:1px dashed var(--line2);border-radius:var(--r-sm);text-align:center;padding:8px}
.kp-up{position:relative;align-self:flex-start;cursor:pointer}
.kp-up:focus-within{outline:2px solid var(--terra);outline-offset:1px}
.kp-thumbs{display:flex;gap:6px;flex-wrap:wrap}
.kp-thumbs button{width:64px;height:48px;border:2px solid transparent;border-radius:6px;overflow:hidden}
.kp-thumbs button.on{border-color:var(--terra)}
.kp-thumbs img{width:100%;height:100%;object-fit:cover;display:block}

.kp-kits{display:flex;flex-direction:column;gap:6px}
.kp-kit{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line2);border-radius:var(--r);background:var(--surface);text-align:left;min-height:56px}
.kp-kit b{display:block;font-size:14px}
.kp-kit small{display:block;font-size:12px;color:var(--muted)}
.kp-kit.on{border-color:var(--green);box-shadow:0 0 0 2px var(--green-soft)}
.kp-radio{flex:0 0 auto;width:18px;height:18px;border:2px solid var(--line2);border-radius:50%;display:grid;place-items:center}
.kp-radio i{width:8px;height:8px;border-radius:50%;background:transparent}
.kp-kit.on .kp-radio{border-color:var(--green)}
.kp-kit.on .kp-radio i{background:var(--green)}

.kp-sections{display:flex;flex-direction:column;gap:6px}
.kp-acc{border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.kp-acc>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 12px;font-weight:700;font-size:14px;cursor:pointer;list-style:none}
.kp-acc>summary::-webkit-details-marker{display:none}
.kp-acc>summary::after{content:"";flex:0 0 auto;width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg) translate(-2px,-2px);transition:transform .2s var(--ease)}
.kp-acc[open]>summary::after{transform:rotate(225deg)}
.kp-acc>summary .badge{margin-left:auto;margin-right:6px}
.kp-acc.sub{background:var(--surface2)}
.kp-acc-in{display:flex;flex-direction:column;gap:10px;padding:4px 12px 12px}
.kp-opt{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.kp-acc-in>.kp-opt,.kp-acc .kp-opt{background:var(--surface2)}
.kp-off{opacity:.5}
.kp-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px}
.kp-toggle b{font-size:14px}
.kp-toggle small{display:block;font-size:12px;color:var(--muted)}
.kp-sw,.kp-swl{position:relative;flex:0 0 auto;width:44px;height:26px;border-radius:13px;background:var(--line2);transition:background .2s;cursor:pointer;display:block}
.kp-sw i,.kp-swl i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:var(--shadow);transition:transform .2s var(--ease)}
.kp-sw[aria-checked="true"],.kp-swl:has(input:checked){background:var(--green)}
.kp-sw[aria-checked="true"] i,.kp-swl input:checked+i{transform:translateX(18px)}
.kp-swl:has(input:focus-visible){outline:2px solid var(--terra);outline-offset:2px}
.kp-check{display:flex;align-items:center;gap:10px;min-height:36px;font-weight:600;cursor:pointer}
.kp-check input{width:20px;height:20px;flex:0 0 auto;accent-color:var(--green)}
.kp-xt{display:flex;align-items:center;justify-content:space-between;gap:8px}
.kp-xsum{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border-radius:var(--r);background:var(--soft);font-size:14px}
.kp-trow{display:flex;flex-direction:column;gap:6px;padding:8px 0;border-bottom:1px solid var(--line)}
.kp-trow.off textarea{opacity:.5}
.kp-tact{display:flex;gap:12px;flex-wrap:wrap}
.kp-xps{display:flex;flex-direction:column;gap:10px}

.kp-total{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;border-radius:var(--r);background:var(--green);color:var(--on-green)}
.kp-total span{font-weight:600}
.kp-total b{font-size:20px;font-variant-numeric:tabular-nums}
.kp-pay{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);margin-top:10px}
.kp-payrow{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}
.kp-payrow small{display:block;font-size:12px;color:var(--muted)}
.kp-payrow.tot{border-bottom:0;font-size:15px}
.kp-n{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--soft);font-size:12px;font-weight:700}
.kp-export{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.kp-export h4{font-size:15px}

.kp-prev{background:var(--soft);border-top:1px solid var(--line);padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.kp-prevbar{position:sticky;top:var(--top-h);z-index:3;display:flex;flex-direction:column;gap:6px;padding:8px 12px;background:var(--soft);border-bottom:1px solid var(--line)}
.kp-live{display:flex;align-items:center;gap:6px;font-weight:700;font-size:13px}
.kp-live i{width:8px;height:8px;border-radius:50%;background:var(--ok)}
.kp-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.kp-tabs button{min-height:36px;padding:0 4px;border-radius:6px;border:1px solid var(--line2);background:var(--surface);font-weight:600;font-size:12px}
.kp-tabs button.on{background:var(--green);border-color:var(--green);color:var(--on-green)}

.kp-paper{display:flex;flex-direction:column;gap:12px;padding:12px;max-width:820px;margin:0 auto;color:#232620;font-size:13px}
.kp-sheet{background:#fffefb;border:1px solid #d9d6ca;border-radius:6px;padding:18px 16px;box-shadow:0 1px 3px rgba(35,38,32,.12);overflow:hidden}
.kp-brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.06em;font-size:13px;color:#2f3c34}
.kp-brand small{display:block;font-weight:500;letter-spacing:0;color:#6b6e65;font-size:12px}
.kp-logo{color:#588f27;display:grid}
.kp-dtitle{margin:16px 0 12px}
.kp-dtitle .eyebrow{color:#8f4f33}
.kp-dtitle h2{font-size:24px;line-height:1.15;margin:4px 0;color:#232620;overflow-wrap:anywhere}
.kp-dtitle p{color:#6b6e65;font-size:14px}
.kp-photo{display:block;width:100%;height:auto;border-radius:4px}
.kp-ph{display:grid;place-items:center;min-height:140px;border:1px dashed #cbc8bb;border-radius:4px;color:#6b6e65;text-align:center;padding:8px}
.kp-cover{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #e0ddd2}
.kp-cover span{display:flex;flex-direction:column;gap:2px;color:#6b6e65;font-size:12px}
.kp-cover b{color:#232620;font-size:15px;overflow-wrap:anywhere}
.kp-dh{font-size:20px;color:#2f3c34;margin-bottom:8px}
.kp-sub{color:#6b6e65;margin-bottom:10px}
.kp-dplans{display:flex;flex-direction:column;gap:12px}
.kp-dplans img{display:block;width:100%;height:auto}
.kp-dplans figcaption{font-weight:700;margin-bottom:4px;color:#6b6e65;font-size:12px}
.kp-dplans figure{margin:0}
.kp-spec section{margin-top:12px}
.kp-spec h3{font-size:12px;letter-spacing:.08em;color:#8f4f33;padding-bottom:4px;border-bottom:2px solid #2f3c34;margin-bottom:2px}
.kp-sr{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:6px 0;border-bottom:1px solid #e0ddd2}
.kp-sr span:first-child{font-weight:700}
.kp-sr span:last-child{white-space:pre-line;overflow-wrap:anywhere;color:#3a3d36}
.kp-cd{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:12px}
.kp-cd div{display:flex;flex-direction:column;gap:2px;padding:8px 10px;background:#f4f1ea;border-radius:4px}
.kp-cd span,.kp-ps span{font-size:12px;color:#6b6e65}
.kp-cd b{overflow-wrap:anywhere}
.kp-ps{display:grid;gap:6px;margin-bottom:10px}
.kp-ps div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #e0ddd2}
.kp-dprice{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px;background:#2f3c34;color:#fff;border-radius:4px}
.kp-dprice strong{font-size:20px;font-variant-numeric:tabular-nums}
.kp-dst{margin:14px 0 4px;font-size:15px;color:#2f3c34}
.kp-dp{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid #e0ddd2}
.kp-dp span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e3e9e0;font-weight:700;font-size:12px}
.kp-dp strong{font-variant-numeric:tabular-nums}
.kp-mgr{display:flex;flex-direction:column;gap:2px;margin-top:14px;padding:10px 12px;background:#f2e3d9;border-radius:4px}
.kp-mgr span{font-size:12px;color:#6b6e65}
.kp-foot{text-align:center;color:#6b6e65;font-size:12px;padding:4px 0 8px}

.kp-confirm{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:16px;background:var(--scrim)}
.kp-confirm[hidden]{display:none}
.kp-confirm-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--shadow-lg)}
.kp-confirm-card h3{font-size:16px}
.kp-confirm-act{display:flex;flex-direction:column;gap:8px}

@media (min-width:980px){
  .kp{overflow:hidden}
  .kp-top{position:static}
  .kp-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(400px,540px) minmax(0,1fr)}
  .kp-edit{min-height:0;border-right:1px solid var(--line)}
  .kp-steps{position:static}
  .kp-steps button{font-size:13px}
  .kp-form{flex:1;min-height:0;overflow-y:auto;padding:16px}
  .kp-bar{position:static}
  .kp .input,.kp .select{font-size:14px;min-height:34px}
  .kp-bar .btn{min-height:34px}
  .kp-prev{min-height:0;overflow-y:auto;border-top:0;padding-bottom:24px}
  .kp-prevbar{top:0;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px}
  .kp-tabs{display:flex}
  .kp-tabs button{padding:0 14px}
  .kp-paper{padding:16px}
  .kp-sheet{padding:28px 30px}
  .kp-sr{grid-template-columns:minmax(0,34%) minmax(0,1fr);gap:16px}
  .kp-dtitle h2{font-size:30px}
  html.kp-lock #toasts{left:auto;right:16px;bottom:16px;transform:none;align-items:flex-end}
}
html.kp-lock #toasts{bottom:calc(68px + env(safe-area-inset-bottom))}
@media (max-width:429px){
  .kp-steps button span{display:none}
}
@media (prefers-reduced-motion:reduce){
  .kp *,.kp *::before,.kp *::after{transition:none!important;animation:none!important}
}
