.style-pack-dialog{width:min(100%,560px);max-width:100%;height:min(94dvh,960px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;border:1px solid #d8d9cd;border-radius:24px;background:#f7f4eb;color:#213e35;overflow:hidden}
.style-pack-dialog[open]{display:flex;flex-direction:column}.style-pack-dialog::backdrop{background:rgba(15,32,28,.65)}
.sp-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px 16px;border-bottom:1px solid #deded4;flex-shrink:0}.sp-header small{font:600 10px system-ui;letter-spacing:2px;color:#78633e}.sp-header h2{font-size:23px;margin:7px 0 0}.sp-header>button{width:44px;height:44px;min-width:44px;border:0;border-radius:50%;background:#ebeade;color:#213e35;font-size:30px}
.sp-body{padding:20px 24px;overflow:auto;overscroll-behavior:contain;min-height:0}.sp-art{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 8px 25px #243e3514}.sp-includes{font-size:13px;margin:20px 0;color:#5c685e}
.sp-choices{border:0;padding:0;margin:22px 0;display:flex;gap:8px;flex-wrap:wrap}.sp-choices legend{padding:0;margin-bottom:10px;font-size:15px;font-weight:650}.sp-choices button{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 13px;border:1px solid #d3d7cb;background:#fffdf7;border-radius:12px;color:#273e35;font-size:14px}.sp-choices button[aria-pressed=true]{border-color:#254d3d;background:#e6ece0;box-shadow:inset 0 0 0 1px #254d3d}.sp-dot{width:17px;height:17px;border-radius:50%;border:1px solid #213e3577}.sp-note{font-size:12px;line-height:1.65;color:#687267}
.sp-footer{padding:8px 24px max(14px,env(safe-area-inset-bottom));border-top:1px solid #deded4;background:#f7f4eb;flex-shrink:0}.sp-status{font-size:13px;line-height:1.5;margin:3px 0 8px;min-height:0}.sp-status:empty{display:none}.sp-footer [data-sp-main]{display:block;width:100%;min-height:49px;border:0;border-radius:13px;background:#244e3d;color:white;font-size:16px;font-weight:650}.sp-footer [data-sp-restore]{display:block;min-height:44px;margin:3px auto 0;padding:8px 15px;border:0;background:transparent;color:#365d4c;font-size:13px}.style-pack-dialog button:disabled{opacity:.55;cursor:default}.style-pack-dialog button:focus-visible{outline:3px solid #b69555;outline-offset:3px}
.style-pack-entry{min-height:44px;padding:10px 15px;border:1px solid #c8d0c3;border-radius:12px;color:#234d3d;background:#f5f4e9;font-size:14px}.sp-card-options{margin:16px 0}.sp-card-options button{width:100%}
.sp-empty{padding:40px 22px;background:#eeeee5;border-radius:14px;min-height:190px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.sp-empty h3{font-size:21px;margin:0 0 12px}.sp-empty p,.sp-media-note{font-size:13px;line-height:1.6;color:#657267}.sp-empty button,.sp-toggle,.sp-frames button{min-height:44px;padding:10px 14px;border:1px solid #cbd3c8;border-radius:10px;background:#fffdf7;color:#234d3d}.sp-source{display:block;font-size:13px;margin-bottom:14px}.sp-source select{display:block;width:100%;min-height:44px;margin-top:7px;border:1px solid #cbd3c8;border-radius:10px;padding:10px;background:#fffdf7;color:#234d3d;font-size:14px}.sp-frames{display:flex;gap:8px;overflow-x:auto;margin:12px 0}.sp-frames button{flex-shrink:0}.sp-toggle[aria-pressed=true],.sp-frames button[aria-pressed=true]{background:#e6ece0;border-color:#254d3d}.sp-art[hidden]{display:none}.sp-header h2{margin:0}.sp-art{box-shadow:none;border-radius:6px}
@media(max-width:600px){.style-pack-dialog{width:100%;height:100dvh;max-height:calc(100dvh - env(safe-area-inset-top));margin:auto 0 0;border-radius:20px 20px 0 0}.sp-header{padding:16px 18px}.sp-body{padding:16px 18px}.sp-footer{padding-left:18px;padding-right:18px}}
