/* Reuse the accepted service card and native contact dialog styles. */
:is(body.home-view,.workflow-services) .home-service--planet {gap:8px;}
.home-service--planet .service-copy {display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;max-width:100%;}
.service-description {color:#626f80;font-size:12px;font-weight:400;line-height:18px;}
.service-description>span {display:inline-block;}
.planet-course-action {color:#4166d8;font-size:12px;font-weight:500;line-height:20px;}
/* Compact card extends the site's existing popover pattern and palette. */
:is(#planet-preview,#service-contact-dialog,#taobao-preview) {position:fixed;inset:auto;margin:0;left:12px;top:12px;box-sizing:border-box;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;padding:20px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;color:#283549;box-shadow:0 12px 36px #1e293b24,0 2px 8px #1e293b0a;font-family:inherit;text-align:left;}
:is(#planet-preview,#service-contact-dialog,#taobao-preview):popover-open {animation:planet-card-in 150ms ease-out;}
.planet-card-close {position:absolute;top:2px;right:2px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:#687384;font-size:24px;line-height:1;cursor:pointer;}
.planet-card-close:hover {background:#f1f3f6;}
:is(#planet-title,#service-contact-title,#taobao-title) {margin:0 32px 10px 0;font-size:17px;font-weight:650;line-height:24px;}
:is(#planet-description,#service-contact-description,#taobao-description) {margin:0;color:#626f80;font-size:13px;line-height:21px;}
.planet-courses {display:flex;justify-content:space-between;gap:8px;list-style:none;margin:16px 0 10px;padding:12px 0;border-top:1px solid #e7e9ed;border-bottom:1px solid #e7e9ed;color:#394456;font-size:12px;font-weight:600;line-height:20px;}
.planet-courses li {white-space:nowrap;}
.planet-resources {margin:0 0 16px;color:#626f80;font-size:12px;line-height:20px;}
.planet-visit {display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:9px;background:#4166d8;color:#fff;text-decoration:none;font-size:13px;font-weight:600;line-height:1.5;}
.planet-visit:hover {background:#3456c4;}
:is(#planet-preview,#service-contact-dialog,#taobao-preview) :is(button,a,input,summary):focus-visible {outline:3px solid #8096f4;outline-offset:2px;}
@keyframes planet-card-in {from{opacity:0;transform:translateY(var(--card-enter-y,6px)) scale(.98);}to{opacity:1;transform:none;}}
@media(max-width:600px){
 :is(body.home-view,.workflow-services) .home-service--planet {gap:6px;}
 .home-service--planet .service-description {font-size:11px;line-height:17px;}
 .home-service--planet .planet-subject {display:block;}
 .home-service--planet .planet-course-action {font-size:11px;line-height:18px;}
 :is(#planet-preview,#service-contact-dialog,#taobao-preview) {padding:18px;}
}
@media(prefers-reduced-motion:reduce){:is(#planet-preview,#service-contact-dialog,#taobao-preview):popover-open{animation:none;}}

/* Compact service details reuse the existing content and controls. */
#service-contact-dialog::backdrop {background:transparent;}
#service-contact-dialog .service-contact-close {top:2px;right:2px;font-size:24px;}
#service-contact-dialog .service-deployment {margin:12px 0 0;}
#service-contact-dialog .service-deployment + .service-deployment {margin-top:0;}
#service-contact-dialog .service-deployment summary {box-sizing:border-box;min-height:48px;padding:10px 0;gap:8px;}
#service-contact-dialog .service-deployment-name {font-size:13px;}
#service-contact-dialog .service-deployment-action {font-size:12px;}
#service-contact-dialog .service-deployment-content {padding-bottom:12px;font-size:12px;line-height:20px;}
#service-contact-dialog .service-deployment-content > strong {margin-bottom:6px;font-size:13px;}
#service-contact-dialog .service-deployment-content ul {margin:8px 0;padding-left:18px;}
#service-contact-dialog .service-deployment-note {margin-top:8px;font-size:12px;}
#service-contact-dialog .service-contact-label {margin:14px 0 6px;font-size:12px;line-height:20px;}
#service-contact-dialog .service-wechat-id {box-sizing:border-box;height:44px;font-size:13px;}
#service-contact-dialog .service-contact-copy {margin-top:10px;background:#277aa8;font-size:13px;cursor:pointer;}
#service-contact-dialog .service-contact-copy:hover {background:#216b94;}
#service-contact-dialog .service-contact-status {min-height:0;margin:0;font-size:12px;line-height:20px;}
#service-contact-dialog .service-contact-status:not(:empty) {margin-top:8px;}
.taobao-note {margin:12px 0 18px;color:#626f80;font-size:12px;line-height:20px;}
.taobao-visit {background:#c35b15;}
.taobao-visit:hover {background:#ab4d0f;}

/* H3 offer uses the same disclosure row as workflow consultation. */
#taobao-preview .service-deployment {margin:12px 0 0;}
#taobao-preview .service-deployment + .service-deployment {margin-top:0;}
#taobao-preview .service-deployment summary {box-sizing:border-box;min-height:48px;padding:10px 0;gap:8px;}
#taobao-preview .service-deployment-name {font-size:13px;}
#taobao-preview .service-deployment-action {font-size:12px;}
#taobao-preview .service-deployment-content {padding-bottom:12px;font-size:12px;line-height:20px;}
#taobao-preview .service-deployment-content > strong {margin-bottom:6px;font-size:13px;}
#taobao-preview .service-deployment-content ul {margin:8px 0;padding-left:18px;}
#taobao-preview .service-deployment-note {margin-top:8px;font-size:12px;}
#taobao-preview .service-price {display:inline-block;margin-left:6px;color:#c35b15;font-weight:600;white-space:nowrap;}
#taobao-preview .taobao-visit {margin-top:16px;}

/* Annual price stays visible in the existing course information card. */
#planet-preview .planet-price {margin:0 0 12px;color:#4166d8;font-size:18px;font-weight:650;line-height:24px;white-space:nowrap;}
