.sp-dialog {
  width: min(390px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 1px solid #34353c; border-radius: 13px; background: #1f1f21; color: #f3f3f5; color-scheme: dark;
  box-shadow: 0 24px 80px #10111c66; font: 13px/1.5 "Microsoft YaHei", "PingFang SC", sans-serif;
}
.sp-dialog::backdrop { background: #11132180; backdrop-filter: blur(3px); }
.sp-dialog [hidden] { display: none !important; }
.sp-dialog * { box-sizing: border-box; }
.sp-dialog button, .sp-dialog input { font: inherit; }
.sp-dialog button { cursor: pointer; }
.sp-dialog button:disabled { cursor: wait; opacity: .55; }
.sp-dialog button:focus-visible, .sp-dialog input:focus-visible { outline: 2px solid #9ba7ff; outline-offset: 3px; }
.sp-header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 62px; margin: 0 16px; border-bottom: 1px solid #303035; }
.sp-header h2 { margin: 0; font-size: 19px; font-weight: 650; color: #f5f5f8; }
.sp-close, .sp-back { position: absolute; display: grid; place-items: center; top: 14px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #b6b6c0; }
.sp-close { right: -4px; }.sp-back { left: -4px; }.sp-back svg { transform: rotate(180deg); }.sp-close:hover, .sp-back:hover { background: #33343b; color: #fff; }
.sp-body { padding: 20px 12px 24px; }
.sp-types { display: grid; gap: 12px; }
.sp-type { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 75px; padding: 13px 14px; border: 1px solid transparent; border-radius: 11px; background: #252527; color: inherit; text-align: left; }
.sp-type:hover { border-color: #535b8c; background: #2b2c33; }
.sp-type-icon { display: grid; place-items: center; width: 42px; height: 46px; flex-shrink: 0; border-radius: 11px; }
.sp-blue { color: #cfeaff; background: linear-gradient(150deg, #8aceff, #3970de); box-shadow: inset 0 0 0 2px #b6d7ff80, 0 4px 13px #428bff25; transform: rotate(-5deg); }
.sp-pink { color: #ffe9f5; background: linear-gradient(145deg, #ffa6d6, #cb5297); box-shadow: inset 0 0 0 2px #ffc9e580, 0 4px 13px #f77cb325; transform: rotate(5deg); }
.sp-type-copy { min-width: 0; flex: 1; }.sp-type-copy strong, .sp-type-copy small { display: block; }.sp-type-copy strong { font-size: 14px; font-weight: 600; color: #dfdfe6; }.sp-type-copy small { margin-top: 3px; color: #93939e; font-size: 11px; }
.sp-contact { flex-shrink: 0; display: grid; place-items: center; width: 84px; height: 30px; border-radius: 9px; background: #6273ff; font-weight: 600; color: #fff; font-size: 12px; }
.sp-type:hover .sp-contact { background: #7584ff; }
.sp-dialog.sp-orders-open { width: min(560px, calc(100vw - 28px)); }
.sp-orders .sp-intro { color: #a4a7b7; margin: 0 5px 16px; font-size: 12px; }
.sp-search { display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid #42444f; border-radius: 8px; color: #999faf; background: #282a31; }
.sp-search input { min-width: 0; width: 100%; border: 0; outline: none; background: transparent; color: #f1f1f7; }.sp-search input::placeholder { color: #9399ab; }
.sp-order-list { display: grid; gap: 10px; max-height: min(410px, calc(100dvh - 280px)); overflow-y: auto; padding: 3px; scrollbar-width: thin; }
.sp-order { display: block; width: 100%; padding: 14px; border: 1px solid #3b3e4b; border-radius: 9px; text-align: left; color: #e3e5ef; background: #282a31; }
.sp-order:hover { border-color: #8593ff; background: #2e3245; }
.sp-order-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.sp-order-heading strong { font-size: 13px; overflow-wrap: anywhere; }.sp-status { flex-shrink: 0; padding: 2px 7px; border-radius: 5px; color: #b5bfff; background: #3a405c; font-size: 10px; }
.sp-order-id { display: block; margin: 6px 0 11px; color: #949aaf; font-size: 11px; overflow-wrap: anywhere; }
.sp-order-details { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; }.sp-order-details small { display: block; margin-top: 4px; color: #8e95ab; font-size: 10px; }.sp-order-contact { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: #aab5ff; font-size: 11px; }
.sp-general { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 4px 0; border: 0; background: none; color: #aab6ff; font-size: 12px !important; }
.sp-loading, .sp-empty { margin: 12px 4px; padding: 18px 12px; border-radius: 8px; background: #282a31; color: #a6adc1; text-align: center; line-height: 1.8; font-size: 12px; }
.sp-error { margin: 14px 4px 0; color: #ffb7b0; font-size: 12px; }.sp-connecting { margin: 14px 4px 0; color: #aeb8ff; text-align: center; font-size: 12px; }
@media(max-width: 420px) { .sp-type { padding: 12px; gap: 11px; }.sp-type-icon { width: 36px; height: 41px; }.sp-contact { width: 76px; }.sp-type-copy small { font-size: 10px; }.sp-order { padding: 12px; } }
