/* Native dialog must override the application's reset margin. */
dialog.kale-platform-dialog{position:fixed;inset:0;margin:auto;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #ffffff16;border-radius:24px;background:linear-gradient(145deg,#20252e,#15181f 65%);color:#eef2f6;box-shadow:0 32px 100px #0007;font:14px/1.6 Inter,"Microsoft YaHei",sans-serif}
dialog.kale-platform-dialog::backdrop{background:#06090dbc;backdrop-filter:blur(8px)}
.kale-platform-dialog header{padding:24px 28px 0;border:0;align-items:flex-start}
.kale-platform-dialog header h2{font-size:24px;line-height:1.4;letter-spacing:-.5px;margin:8px 0 0;font-weight:650}
.kale-eyebrow{font-size:11px;letter-spacing:1.5px;color:#8994a5}
.kale-platform-dialog header>button{padding:0;width:32px;height:32px;border-radius:50%;color:#abb3c0;background:#ffffff06;border:1px solid #ffffff12;font-size:20px}
.kale-platform-dialog section{padding:24px 28px 28px}
.kale-model-summary{display:flex;gap:14px;align-items:center;margin-bottom:22px}
.kale-model-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#25c7cb12;color:#63dedb;font-size:26px;border:1px solid #25c7cb22}
.kale-model-summary strong{font-size:14px;font-weight:600}
.kale-model-summary p{margin:3px 0 0;color:#939eae;font-size:12px}
.kale-price-summary{border:1px solid #ffffff0e;border-radius:18px;background:#ffffff04;text-align:center;padding:20px}
.kale-price-summary>span{color:#9ba6b5;font-size:12px}
.kale-price-summary>div{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:4px 0}
.kale-price-summary strong{font-size:48px;line-height:1.3;font-weight:600;letter-spacing:-2px;color:#77e5dc;font-variant-numeric:tabular-nums}
.kale-price-summary>div>span{font-size:12px;color:#a0b4b9}
.kale-price-summary p{font-size:12px;color:#8994a5;margin:8px 0 0}.kale-price-summary b{font-weight:500;color:#c4ccd7}
.kale-confirm-note{font-size:11px;line-height:1.8;color:#8994a5;margin:16px 4px 22px}
.kale-platform-dialog footer{display:grid;grid-template-columns:1fr 1.7fr;gap:12px;margin:0;padding:0;border:0}
.kale-platform-dialog footer button{min-height:46px;border-radius:12px;font-size:14px;font-weight:600;background:#ffffff05;border:1px solid #ffffff14;color:inherit}
.kale-platform-dialog footer button.primary{background:#90ece0;border-color:#90ece0;color:#103632;box-shadow:0 4px 18px #58ddc818}
.kale-platform-dialog footer button:hover{filter:brightness(1.1)}
.kale-platform-dialog button:focus-visible,.kale-task-tray button:focus-visible{outline:2px solid #49cbbc;outline-offset:3px}
.kale-task-tray{position:fixed;right:24px;bottom:24px;width:min(350px,calc(100vw - 32px));max-height:65dvh;overflow:auto;z-index:9000;background:#1a1e26;color:#edf1f6;border:1px solid #ffffff18;border-radius:18px;box-shadow:0 16px 60px #0005;font:13px/1.5 Inter,"Microsoft YaHei",sans-serif}
.kale-task-tray[hidden]{display:none}.kale-task-tray header{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff0c}.kale-task-tray header span{color:#77e5dc;margin-left:6px}
.kale-task-tray button{border:0;cursor:pointer;background:transparent;color:inherit;padding:4px 8px;border-radius:6px}
.kale-task-tray article{display:flex;gap:12px;padding:16px;border-bottom:1px solid #ffffff0c}.kale-task-tray article>button{align-self:flex-start;color:#a0aab8}
.kale-task-visual{width:60px;height:60px;flex:none;background:#0d131c;border-radius:12px;display:grid;place-items:center;color:#77e5dc;overflow:hidden;font-size:24px}.kale-task-visual img{width:100%;height:100%;object-fit:cover}
.kale-task-copy{min-width:0;flex:1}.kale-task-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.kale-task-copy>span{display:block;color:#77e5dc;margin-top:3px}.kale-task-copy small{display:block;color:#97a4b4;font-size:11px;margin-top:3px}.kale-task-copy button{color:#9ddfd8;font-size:11px;padding:5px 0 0}
.kale-task-spinner{width:22px;height:22px;border-radius:50%;border:2px solid #77e5dc30;border-top-color:#77e5dc;animation:kale-task-spin 1s linear infinite}@keyframes kale-task-spin{to{transform:rotate(360deg)}}
html.theme-light dialog.kale-platform-dialog{background:linear-gradient(145deg,#fff,#f6f8fa);color:#1e2937;border-color:#dfe5e9;box-shadow:0 32px 100px #15253740}
html.theme-light .kale-platform-dialog header>button{color:#647180;border-color:#dce3e9;background:#eef2f5}
html.theme-light .kale-price-summary{background:#edf6f5;border-color:#ddecea}html.theme-light .kale-price-summary strong{color:#118b7e}html.theme-light .kale-price-summary b{color:#3c5060}
html.theme-light .kale-platform-dialog footer button{background:#fff;border-color:#dde3e9;color:#344452}html.theme-light .kale-platform-dialog footer button.primary{background:#177f76;border-color:#177f76;color:white}
html.theme-light .kale-task-tray{background:#fff;color:#243340;border-color:#dee5eb;box-shadow:0 16px 60px #15253725}html.theme-light .kale-task-tray header,html.theme-light .kale-task-tray article{border-color:#e8edf1}html.theme-light .kale-task-copy>span,html.theme-light .kale-task-copy button{color:#177f76}
@media(max-width:540px){.kale-task-tray{right:16px;bottom:16px}dialog.kale-platform-dialog header{padding:22px 22px 0}.kale-platform-dialog section{padding:22px}.kale-platform-dialog header h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.kale-task-spinner{animation:none}}
