/* The portal has its own editorial layout; shared application tokens stay unchanged. */
body[data-surface="portal"]{background:var(--ios-bg)}
.portal-header,.portal-main,.portal-footer{width:min(1240px,calc(100% - 96px))}
.portal-header{min-height:100px;border-bottom:1px solid var(--ios-line)}
.portal-brand>span{width:43px;height:43px;border-radius:14px;box-shadow:0 5px 13px #1262d51c}
.portal-brand strong{display:flex;flex-direction:column;gap:4px;font-size:18px}
.portal-brand small{font-size:8px;letter-spacing:.22em;font-weight:600;color:var(--ios-tertiary)}
.portal-nav{display:flex;gap:32px;margin-left:auto;margin-right:40px}
.portal-nav a{display:flex;align-items:center;min-height:44px;color:var(--ios-secondary);font-size:13px;text-decoration:none}
.portal-nav a:hover{color:var(--ios-blue)}
.portal-account{padding:0 16px;border:1px solid var(--ios-line);border-radius:12px;color:var(--ios-label);background:var(--ios-group);gap:18px}
.portal-main{display:block;padding:0 0 60px}
.portal-intro{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:40px;padding:46px 0 35px}
.portal-eyebrow{font-size:10px;letter-spacing:.17em;line-height:1.6;color:var(--ios-secondary);margin:0 0 20px}
.portal-hero-copy>.portal-eyebrow{display:flex;align-items:center;gap:9px}
.portal-hero-copy>.portal-eyebrow>span{width:6px;height:6px;border-radius:50%;background:#226be2;box-shadow:0 0 0 4px #226be212}
.portal-intro h1{font-size:clamp(48px,5.1vw,72px);line-height:1.14;font-weight:650;letter-spacing:-.055em}
.portal-intro h1>span{color:var(--ios-blue)}
.portal-lead{font-size:15px;line-height:1.9;margin:25px 0 25px;letter-spacing:0}
.portal-hero-actions{display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.portal-primary{background:#175fda;min-height:50px;padding:0 22px;border-radius:13px;font-size:13px;gap:26px;box-shadow:0 5px 14px #175fda16}
.portal-secondary{display:inline-flex;align-items:center;min-height:44px;gap:22px;color:var(--ios-secondary);text-decoration:none;font-size:12px}
.portal-secondary:hover{color:var(--ios-blue)}
.portal-note{font-size:11px;margin-top:20px;color:var(--ios-tertiary)}
.portal-hero-art{position:relative;max-width:450px;width:100%;justify-self:center}
.portal-hero-art>svg{display:block;width:100%;height:auto}
.hero-orbit{stroke:var(--ios-line);stroke-dasharray:3 7}
.art-caption{display:flex;justify-content:space-between;gap:12px;margin:0 50px;color:var(--ios-tertiary);font-size:9px;letter-spacing:.09em}
.art-caption span:last-child{letter-spacing:.02em}
.portal-workspace{scroll-margin-top:24px}
.portal-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-bottom:24px;padding-top:32px;border-top:1px solid var(--ios-line)}
.portal-section-heading .portal-eyebrow{margin-bottom:8px;font-size:9px}
.portal-section-heading h2{margin:0;font-size:25px;line-height:1.4;font-weight:600;letter-spacing:-.025em}
.portal-section-heading>p{margin:0;color:var(--ios-tertiary);font-size:11px;line-height:1.8}
.portal-services{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:22px;align-items:stretch}
.portal-service{display:flex;flex-direction:column;padding:0;border-radius:22px;overflow:hidden;min-width:0;transition:border-color .2s,box-shadow .2s,transform .2s}
.portal-service:hover{border-color:color-mix(in srgb,var(--ios-blue) 40%,var(--ios-line));transform:translateY(-4px);box-shadow:0 16px 36px #1937560c}
.service-art{height:206px;position:relative;overflow:hidden;flex:none;background:#edf2e9}
.service-art>svg{position:absolute;width:100%;height:100%;inset:0;max-width:420px;margin:auto;transition:transform .35s}
.portal-service:hover .service-art>svg{transform:translateY(-3px)}
.service-ai .service-art{background:#e9effc}.service-xs .service-art{background:#f1eae1}
.service-art-code{position:absolute;right:17px;top:11px;font-size:60px;line-height:1;font-weight:650;color:#4664470d;letter-spacing:-.06em}
.service-ai .service-art-code{color:#2457b90d}.service-xs .service-art-code{color:#755c370d}
.service-art-label{position:absolute;bottom:11px;left:20px;color:#5f705f;font-size:9px;letter-spacing:.05em}
.service-ai .service-art-label{color:#60769c}.service-xs .service-art-label{color:#8b7964}
.service-copy{padding:25px 26px 0;display:flex;flex-direction:column;flex:1}
.service-title-row{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.service-code{font-size:10px;font-weight:700;border:1px solid var(--ios-line);border-radius:5px;padding:3px 6px;line-height:1;color:var(--ios-label)}
.service-category{font-size:8px;letter-spacing:.13em;color:var(--ios-tertiary)}
.service-copy h3{font-size:25px;font-weight:650;letter-spacing:-.04em;line-height:1.3;margin:0}
.service-copy>p{font-size:12px;color:var(--ios-secondary);line-height:1.85;margin:13px 0 20px}
.service-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;margin-bottom:24px}
.service-tags>span{font-size:9px;line-height:1.4;padding:5px 8px;border-radius:6px;color:var(--ios-secondary);background:var(--ios-inset)}
.portal-service-link{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--ios-line);font-size:11px;min-height:58px;color:var(--ios-label)}
.portal-service-link>span{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--ios-line);border-radius:50%;font-size:16px;color:var(--ios-blue)}
.portal-service-status{display:flex;align-items:center;gap:20px;min-height:154px;padding:30px;border-radius:22px}
.portal-status-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;background:var(--ios-tint);color:var(--ios-blue);font-size:23px}
.portal-service-status p{font-size:14px}.portal-service-status>a{margin-left:auto;min-height:44px;display:flex;align-items:center;gap:15px;color:var(--ios-blue);text-decoration:none;font-size:12px;white-space:nowrap}
.portal-principles{display:grid;grid-template-columns:1fr 1fr 1fr;gap:40px;align-items:start;margin-top:66px;padding:38px 0 8px;border-top:1px solid var(--ios-line)}
.portal-principles .portal-eyebrow{font-size:9px;margin:0 0 10px}.portal-principles h2{font-size:26px;margin:0;font-weight:550;line-height:1.4}
.principle>span{color:var(--ios-tertiary);font-size:10px;letter-spacing:.1em}
.principle h3{font-size:14px;margin:17px 0 12px;font-weight:600;letter-spacing:0}
.principle p{font-size:12px;color:var(--ios-secondary);line-height:1.8;margin:0;max-width:260px}
.portal-footer{min-height:90px;gap:28px}.footer-brand{font-weight:650;font-size:13px;color:var(--ios-label)}.footer-brand small{margin-left:10px;font-size:8px;letter-spacing:.12em;font-weight:500;color:var(--ios-tertiary)}.portal-footer>a{gap:15px}
:root[data-theme="dark"] .portal-hero-art>svg{filter:brightness(.87)}
:root[data-theme="dark"] .service-art{background:#27362e}:root[data-theme="dark"] .service-ai .service-art{background:#202e49}:root[data-theme="dark"] .service-xs .service-art{background:#3b3028}
:root[data-theme="dark"] .service-art-code{color:#ffffff0e}:root[data-theme="dark"] .service-art-label{color:#ccd6db}:root[data-theme="dark"] .service-art>svg{filter:brightness(.82)}
@media(min-width:801px){
 .portal-services:not(:has(>.portal-service:not([hidden]) ~ .portal-service:not([hidden])))>.portal-service{display:grid;grid-template-columns:1fr 1.1fr}
 .portal-services:not(:has(>.portal-service:not([hidden]) ~ .portal-service:not([hidden])))>.portal-service .service-art{height:100%;min-height:280px}
}
@media(max-width:1080px){.portal-header,.portal-main,.portal-footer{width:calc(100% - 56px)}.portal-nav{gap:22px;margin-right:16px}.portal-intro{gap:12px;padding:50px 0}.portal-intro h1{font-size:54px}.portal-hero-actions{gap:15px}.portal-secondary{gap:12px}.portal-services{gap:16px}.service-copy{padding:22px 20px 0}.service-art{height:184px}.service-copy h3{font-size:23px}.portal-principles{gap:28px}}
@media(max-width:800px){.portal-header{min-height:82px}.portal-nav{display:none}.portal-intro{grid-template-columns:1fr .85fr}.portal-intro h1{font-size:45px}.portal-lead{font-size:13px}.portal-hero-actions{gap:8px}.portal-secondary{font-size:11px}.portal-primary{padding:0 15px;gap:15px}.portal-hero-art{min-width:0}.art-caption{margin:0 12px}.art-caption span:last-child{display:none}.portal-services{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}.portal-section-heading>p{max-width:190px}.portal-principles{grid-template-columns:1fr 1fr}.portal-principles>div:first-child{grid-column:1/-1}.portal-principles h2 br{display:none}.portal-principles{margin-top:44px}}
@media(max-width:580px){.portal-header,.portal-main,.portal-footer{width:calc(100% - 40px)}.portal-brand{gap:9px}.portal-brand>span{width:36px;height:36px;border-radius:11px;font-size:20px}.portal-brand strong{font-size:15px}.portal-brand small{font-size:7px}.portal-account{padding:0 10px;gap:9px;font-size:11px}.portal-header .yili-theme-label{display:none}.portal-header .yili-theme-toggle{padding:0 11px}.portal-intro{display:block;padding:43px 0 30px}.portal-intro h1{font-size:54px}.portal-eyebrow{font-size:8px}.portal-lead{font-size:13px;line-height:1.9;margin:23px 0}.portal-hero-art{max-width:330px;margin:10px auto -5px}.portal-hero-art>svg{height:235px}.art-caption{justify-content:center}.portal-note{margin-top:15px;font-size:10px}.portal-hero-actions{gap:21px}.portal-primary{padding:0 17px;gap:18px;font-size:12px}.portal-secondary{gap:9px}.portal-section-heading{align-items:start;margin-bottom:21px;padding-top:25px}.portal-section-heading h2{font-size:23px}.portal-section-heading>p{display:none}.portal-services{grid-template-columns:1fr;gap:22px}.service-art{height:202px}.service-copy{padding:24px 24px 0}.service-copy h3{font-size:26px}.service-copy>p{font-size:13px}.service-tags>span{font-size:10px}.portal-service-link{font-size:12px;min-height:63px}.portal-service-status{flex-wrap:wrap;gap:15px;padding:23px;min-height:165px}.portal-service-status>div{flex:1;min-width:0}.portal-service-status p{font-size:13px}.portal-service-status>a{margin-left:63px;white-space:normal;font-size:12px}.portal-principles{grid-template-columns:1fr;gap:28px;margin-top:36px;padding-top:28px}.portal-principles h2{font-size:23px}.principle h3{margin-top:11px}.principle p{max-width:none}.portal-footer{min-height:83px;gap:9px;padding:15px 0}.footer-brand small{display:none}.portal-footer>a{font-size:10px}.portal-main{padding-bottom:35px}}
@media(max-width:350px){.portal-header,.portal-main,.portal-footer{width:calc(100% - 28px)}.portal-brand small{display:none}.portal-intro h1{font-size:clamp(40px,13vw,45px)}.portal-hero-actions{gap:10px}.portal-primary{padding:0 13px;gap:12px}.portal-secondary{gap:6px}.portal-header .top-actions{gap:4px}.portal-account{padding:0 7px}}
@media(prefers-reduced-motion:reduce){.portal-service,.service-art>svg{transition:none}.portal-service:hover{transform:none}}

@media(min-width:801px){.portal-services:has(>.service-ms:not([hidden])):has(>.service-ds:not([hidden])):has(>.service-xs:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}}
