/* kn-dialogs.css — 2026-11-15 owner picked 方案 C「置中霧面＋按鈕軌道」 for every pop-up box (「這個跳出方框的設計…外框設計或是按鈕
   設計，都不符合我對質感定義…很多地方的跳出方框都是長這樣，請全面檢視並修正」). knConfirm/knAlert draw it themselves (kn-feedback.js);
   this layer gives the shared Modal (.knm) and the pages' own kit sheets the same material: frosted card washed by two theme glows,
   lit top edge + hairline + long soft shadow, radius 28, no divider lines, sans titles, round icon disc with a halo, pill buttons —
   the main one a solid night pill; a footer of only buttons becomes one well track with equal halves. Structure (forms, bottom
   sheets on phones) is unchanged. `:not(#kdl)` + !important outrank the pages' injected <style> tags and the polish layers. */
:is(.kpo-sheet,.ksn-sheet,.keg-sheet,.khm-sheet,.ksl-sheet,.kpm-sheet,.kpc-sheet,.ktp-sheet,.klt-sheet,.kxs-sheet,.krh-sheet,.kls-sheet,.ktr-dlg,.kmb-sheet,.kup-dlg,.knm-card):not(#kdl){border:0!important;border-radius:28px!important;background:radial-gradient(420px 200px at 50% -12%,color-mix(in oklab,var(--accent,#F6C343) 20%,transparent),transparent 70%),radial-gradient(320px 200px at 100% 110%,color-mix(in oklab,var(--accent2,var(--accent,#F6C343)) 10%,transparent),transparent 70%),color-mix(in oklab,var(--surface,#FFFDF8) 94%,transparent)!important;-webkit-backdrop-filter:blur(20px) saturate(1.2);backdrop-filter:blur(20px) saturate(1.2);box-shadow:0 1px 0 rgba(255,255,255,.5) inset,inset 0 0 0 1px color-mix(in oklab,var(--ink,#1D1D1B) 8%,transparent),0 40px 80px -36px color-mix(in oklab,var(--ink,#1D1D1B) 60%,transparent)!important}
:is(.kpo-sheet__hd,.ksn-sheet__hd,.keg-sheet__hd,.khm-sheet__hd,.ksl-sheet__hd,.kpm-sheet__hd,.kpc-sheet__hd,.ktp-sheet__hd,.klt-sheet__hd,.kxs-sheet__hd,.krh-sheet-hd,.kls-sheet-hd,.kmb-sheet__hd,.knm-head):not(#kdl){border-bottom:0!important;box-shadow:none!important;background:transparent!important}
.knm-head.is-scrolled:not(#kdl){box-shadow:0 1px 0 color-mix(in oklab,var(--ink,#1D1D1B) 7%,transparent)!important}
:is(.kpo-sheet__hd,.ksn-sheet__hd,.keg-sheet__hd,.khm-sheet__hd,.ksl-sheet__hd,.kpm-sheet__hd,.kpc-sheet__hd,.ktp-sheet__hd,.klt-sheet__hd,.kxs-sheet__hd,.krh-sheet-hd,.kls-sheet-hd,.kmb-sheet__hd,.knm-head):not(#kdl) :is(h2,h3){font-family:-apple-system,BlinkMacSystemFont,'PingFang TC','Noto Sans TC','Helvetica Neue',sans-serif!important;font-weight:600!important;letter-spacing:-.015em!important}
:is(.kpo-sheet__hd,.ksn-sheet__hd,.keg-sheet__hd,.khm-sheet__hd,.ksl-sheet__hd,.kpm-sheet__hd,.kpc-sheet__hd,.ktp-sheet__hd,.klt-sheet__hd,.kxs-sheet__hd,.krh-sheet-hd,.kls-sheet-hd,.kmb-sheet__hd,.knm-head):not(#kdl) button:is([class*="__x"],[class*="-x"],[aria-label="關閉"],[aria-label="Close"]):not(#kdl){border-radius:999px!important;border:0!important}
.knm-ic:not(#kdl){border-radius:999px!important;background:var(--surface,#FFFDF8)!important;box-shadow:0 0 0 5px color-mix(in oklab,var(--accent,#F6C343) 16%,transparent),0 10px 22px -12px color-mix(in oklab,var(--ink,#1D1D1B) 50%,transparent)!important}
.knm-ic.is-plain:not(#kdl){box-shadow:0 0 0 5px color-mix(in oklab,var(--ink,#1D1D1B) 6%,transparent),0 10px 22px -12px color-mix(in oklab,var(--ink,#1D1D1B) 45%,transparent)!important}
:is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl){border-top:0!important;background:transparent!important;box-shadow:none!important}
:is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl) button{border-radius:999px!important}
:is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl) button:is([class*="--main"],[class*="--night"],[class*="--pri"],[class*="--primary"],[class*="--gold"],[class*="--ink"],[class*="--acc"],.is-night,.is-main):not(:disabled){background:var(--btn-bg,#252523)!important;background-image:none!important;color:var(--btn-text,#F4F2EC)!important;border-color:transparent!important;box-shadow:0 6px 14px -8px var(--btn-bg,#252523),inset 0 1px 0 rgba(255,255,255,.14)!important}
:is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl) button:is([class*="--danger"],.is-danger):not(:disabled){background:var(--danger,#B5412F)!important;background-image:none!important;color:#fff!important;border-color:transparent!important;box-shadow:0 6px 14px -8px var(--danger,#B5412F)!important}
/* a footer holding only two or three buttons = one well track, equal halves (as knConfirm) */
:is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl):has(> button + button):not(:has(> :not(button)),:has(> button + button + button + button)){display:flex!important;gap:4px!important;padding:4px!important;border-radius:999px!important;background:color-mix(in oklab,var(--ink,#1D1D1B) 6%,transparent)!important;box-shadow:inset 0 1px 2px color-mix(in oklab,var(--ink,#1D1D1B) 8%,transparent)!important;margin-left:22px!important;margin-right:22px!important;margin-bottom:18px!important}
:is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl):has(> button + button):not(:has(> :not(button)),:has(> button + button + button + button)) > button{flex:1 1 0!important;min-width:0!important;justify-content:center!important;border:0!important}
:is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl):has(> button + button):not(:has(> :not(button)),:has(> button + button + button + button)) > button:not([class*="--main"],[class*="--night"],[class*="--pri"],[class*="--primary"],[class*="--gold"],[class*="--ink"],[class*="--acc"],.is-night,.is-main):not([class*="--danger"],.is-danger){background:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--muted,#5C5A54)!important}
:is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl):has(> button + button):not(:has(> :not(button)),:has(> button + button + button + button)) > button:not([class*="--main"],[class*="--night"],[class*="--pri"],[class*="--primary"],[class*="--gold"],[class*="--ink"],[class*="--acc"],.is-night,.is-main):not([class*="--danger"],.is-danger):hover{color:var(--ink,#1D1D1B)!important;background:color-mix(in oklab,var(--surface,#FFFDF8) 75%,transparent)!important}
/* the kits focus the card itself when it opens (keyboard / screen reader start) — no ring around the whole box */
:is(.kpo-sheet,.ksn-sheet,.keg-sheet,.khm-sheet,.ksl-sheet,.kpm-sheet,.kpc-sheet,.ktp-sheet,.klt-sheet,.kxs-sheet,.krh-sheet,.kls-sheet,.ktr-dlg,.kmb-sheet,.kup-dlg,.knm-card):is(:focus,:focus-visible):not(#kdl){outline:none!important}
:is(.kpo-sheet__bd,.ksn-sheet__bd,.keg-sheet__bd,.khm-sheet__bd,.ksl-sheet__bd,.kpm-sheet__bd,.kpc-sheet__bd,.ktp-sheet__bd,.klt-sheet__bd,.kxs-sheet__bd,.krh-sheet-bd,.kls-sheet-bd,.kmb-sheet__body,.knm-body):not(#kdl){border-bottom:0!important;border-top:0!important}
@media (max-width:720px){
  :is(.kpo-sheet,.ksn-sheet,.keg-sheet,.khm-sheet,.ksl-sheet,.kpm-sheet,.kpc-sheet,.ktp-sheet,.klt-sheet,.kxs-sheet,.krh-sheet,.kls-sheet,.ktr-dlg,.kmb-sheet,.kup-dlg,.knm-card):not(#kdl):not(.ktr-dlg,.kmb-sheet){border-radius:28px 28px 0 0!important}
  :is(.kpo-sheet__ft,.ksn-sheet__ft,.keg-sheet__ft,.khm-sheet__ft,.ksl-sheet__ft,.kpm-sheet__ft,.kpc-sheet__ft,.ktp-sheet__ft,.klt-sheet__ft,.kxs-sheet__ft,.krh-sheet-ft,.kls-sheet-ft,.ktr-dlg__foot,.knm-foot):not(#kdl):has(> button + button):not(:has(> :not(button)),:has(> button + button + button + button)){margin-left:16px!important;margin-right:16px!important;margin-bottom:calc(14px + env(safe-area-inset-bottom))!important}
}
