/* A calmer working layer on top of the approved visual language. */
.brand b .brand-90 { display: inline; color: #b89df3; font-size: inherit; }
.work-page > .head { padding-bottom: 30px; margin-bottom: 26px; }
.work-page .head h1 { font-size: 36px; }
.work-page .dayh .shield { width: 55px; height: 58px; font-size: 34px; color: #241c16; }
.work-page .head .sub { font-size: 16px; }
.work-page .head .goalline { font-size: 12px; color: #9a9fb2; }
.work-page .head-stats .stat { min-width: 75px; }
.work-page .head-stats .stat b { font-size: 26px; }
.work-page .head-stats .route-wrap { max-width: 320px; }
.work-layout { display: grid; grid-template-columns: 185px minmax(0,1fr); gap: 44px; margin: 28px 0 70px; align-items: start; }
.work-nav { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 108px; }
.work-nav-caption { color: #656d85; font-size: 9px; letter-spacing: 1.5px; padding: 4px 12px 15px; }
.work-tab { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid transparent; background: transparent; color: #9199ae; padding: 16px 12px; border-radius: 9px; cursor: pointer; min-height: 52px; }
.work-tab b { font-weight: 550; font-size: 14px; }
.work-tab-number { color: #69708a; font: 9px var(--mono); }
.work-tab:hover { border-color: #353649; color: #efecf8; }
.work-tab[aria-selected="true"] { border-color: #655578; background: #292336; color: #f1e9ff; }
.work-tab[aria-selected="true"] .work-tab-number { color: #b6a1db; }
.work-count { margin-left: auto; font: 10px var(--mono); padding: 2px 5px; border-radius: 3px; background: #40304a; color: #d9c6f2; }
.work-panel[hidden] { display: none !important; }
.work-panel-heading { margin: 0 0 25px; }
.work-panel-heading h2 { font-size: 24px; font-weight: 650; letter-spacing: -.5px; }
.work-panel-heading p { color: #8c94aa; font-size: 13px; margin: 8px 0 0; }
.work-fold { background: #10141f; border: 1px solid #323447; border-radius: 12px; margin: 0 0 13px; overflow: clip; }
.work-fold-summary { display: flex; align-items: center; gap: 18px; padding: 23px 24px; list-style: none; cursor: pointer; min-height: 84px; }
.work-fold-summary::-webkit-details-marker { display: none; }
.work-fold-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.work-fold-text b { font-size: 16px; line-height: 1.6; color: #e0e3ee; font-weight: 600; }
.work-fold-text > span { font-size: 11px; color: #7a839c; line-height: 1.65; }
.work-status { font-size: 10px; color: #b9add2; background: #282436; border: 1px solid #4b405c; padding: 5px 9px; border-radius: 5px; white-space: nowrap; }
.work-open { color: #f2d790; font-size: 11px; white-space: nowrap; }
.work-open::after { content: ' ＋'; color: #9c8dba; }
.work-fold[open] { border-color: #726081; }
.work-fold[open] > .work-fold-summary { background: #201c2b; border-bottom: 1px solid #443b51; }
.work-fold[open] > .work-fold-summary .work-open::after { content: ' −'; }
.work-fold-inside { padding: 22px 24px; }
.work-fold-inside > .task, .work-fold-inside > .panel, .work-fold-inside > .banner, .work-fold-inside > .care, .work-fold-inside > .peak { margin: 0; padding: 0; border: none; background: transparent; }
.work-fold-inside > .task > h3 { display: none; }
.work-fold-inside .task .kind { margin: 0 0 17px; }
.work-fold-inside .task .do { font-size: 16px; line-height: 1.85; }
.work-fold-inside .fam, .work-fold-inside .grad, .work-fold-inside .src { font-size: 11px; }
.work-fold-inside .when { margin: 22px 0 16px; }
.work-fold-inside .choice.status { margin: 24px 0; }
.work-fold-inside .choice.status button { padding: 12px 20px; font-size: 14px; min-height: 45px; }
.work-fold-inside .choice button, .work-fold-inside .btn { min-height: 40px; }
.work-task .work-fold-text b { max-width: 34em; }
.work-notice { display: flex; justify-content: space-between; gap: 20px; padding: 13px 18px; width: 100%; background: #1f1a2a; color: #bfb1d5; border: 1px solid #534562; border-radius: 7px; font-size: 12px; cursor: pointer; }
.work-notice b { color: #e7d69d; font-size: 11px; font-weight: 500; }
.work-help-card { border: 1px solid #404156; background: #141826; border-radius: 12px; padding: 25px; margin-bottom: 20px; }
.work-help-card h3 { font-size: 19px; }
.work-help-card p { font-size: 14px; line-height: 1.9; color: #adb4c9; margin: 15px 0 22px; }
.work-help-card small { display: block; color: #7d849b; font-size: 10px; margin-top: 18px; line-height: 1.8; }
.work-safety-list p { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid #303246; padding: 10px 0; font-size: 13px; }
.work-safety-list p span { color: #aab0c2; line-height: 1.8; }
.work-adjust { border: none; margin: 0; background: transparent; overflow: visible; }
.work-adjust > summary { min-height: 0; padding: 9px 10px; border: 1px solid #47405c; border-radius: 5px; }
.work-adjust .work-fold-text b { font-size: 11px; font-weight: 500; }
.work-adjust .work-open { display: none; }
.work-adjust > .work-fold-inside { padding: 12px 0 0; }
.work-adjust .ab-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.work-adjust[open] > summary { border-bottom: 1px solid #47405c; }
.work-nav-more { position: relative; margin-left: 8px; font-size: 12px; color: #a1a7bb; }
.work-nav-more summary { cursor: pointer; padding: 8px 9px; list-style: none; }
.work-nav-more summary::after { content: ' ﹀'; font-size: 9px; }
.work-more-menu { position: absolute; right: 0; top: 40px; z-index: 60; min-width: 160px; padding: 8px; background: #181b29; border: 1px solid #404355; border-radius: 9px; box-shadow: 0 15px 30px #0006; }
.work-more-menu a, .work-more-menu button { display: flex; margin: 0; width: 100%; text-align: left; border: none; color: #c5cada; padding: 11px 12px; background: transparent; font-size: 12px; }
.work-demo-tools { position: fixed; bottom: 18px; left: 22px; z-index: 49; max-width: calc(100vw - 100px); }
.work-demo-tools > summary { cursor: pointer; list-style: none; background: #151725ef; border: 1px solid #3b3d51; border-radius: 7px; padding: 10px 14px; font: 10px var(--sans); color: #9ea0b7; }
.work-demo-tools > summary::after { content: ' ⌃'; margin-left: 18px; }
.work-demo-tools[open] > summary::after { content: ' ⌄'; }
.work-demo-tools .demobar { position: static; transform: none; margin-top: 8px; display: flex; max-width: 350px; flex-wrap: wrap; padding: 12px; }
.work-demo-tools .demobar b { display: none; }
@media (max-width: 900px) {
  .work-layout { grid-template-columns: 150px minmax(0,1fr); gap: 24px; }
  .work-page .head-stats { display: none; }
  .work-fold-summary { padding: 20px; gap: 12px; }
  .work-fold-inside { padding: 20px; }
}
@media (max-width: 680px) {
  .work-layout { grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
  .work-nav { position: static; flex-direction: row; gap: 7px; }
  .work-nav-caption, .work-tab-number { display: none; }
  .work-tab { padding: 11px 9px; gap: 5px; min-height: 45px; flex: 1; justify-content: center; }
  .work-tab b { font-size: 11px; white-space: nowrap; }
  .work-count { margin-left: 3px; font-size: 8px; }
  .work-page .head h1 { font-size: 29px; }
  .work-page .head .sub { font-size: 14px; }
  .work-page .dayh .shield { width: 46px; height: 48px; font-size: 29px; }
  .work-panel-heading h2 { font-size: 22px; }
  .work-panel-heading p { font-size: 12px; }
  .work-fold-summary { flex-wrap: wrap; padding: 20px 17px; gap: 10px; }
  .work-fold-text { flex-basis: calc(100% - 35px); }
  .work-fold-text b { font-size: 16px; }
  .work-status { font-size: 9px; }
  .work-open { margin-left: auto; }
  .work-fold-inside { padding: 20px 17px; }
  .work-notice { font-size: 11px; gap: 12px; }
  .work-panel .list.abl { font-size: 11px; }
  .work-panel .list.abl td { padding: 15px 5px; }
  .work-panel .list.abl .dots { flex-wrap: wrap; }
  .work-panel .list.abl .dots > i { width: 8px; height: 8px; }
  .work-demo-tools { left: 13px; bottom: 15px; }
  .work-demo-tools > summary { font-size: 9px; padding: 9px 12px; }
}

.work-nav-more > summary { white-space: nowrap; }
.work-page .head .shield { color: #241c16; }
.work-fold-inside > .panel > h3:first-child,
.work-fold-inside > .care > h3:first-child,
.work-fold-inside > .banner > h3:first-child { display: none; }
@media (max-width: 680px) {
  .top .roles { align-items: center; }
  .top .roles > a { padding: 6px 7px; }
  .work-nav-more { margin-left: 0; flex-shrink: 0; }
  .work-nav-more > summary { padding: 6px 4px; font-size: 10px; }
}

/* Family role headings are not duplicates of the patient's task title. */
.work-fold-inside .task h3:has(> .small.muted) { display: block; margin-top: 8px; font-size: 20px; color: #ded5ee; }

.film-character { position: absolute; right: 0; top: 0; width: 71%; height: 100%; object-fit: contain; opacity: .86; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#0b0c17 8%,#0b0c17e8 26%,#0b0c1755 51%,transparent 72%); }
.film-controls .film-select { width: fit-content; text-decoration: none; }
.film-foot { align-items: start; }
.film-foot > span { flex: 1; line-height: 1.7; }
.film-foot > button { flex-shrink: 0; padding: 0; }
@media (max-width: 680px) { .film-controls { max-width: 55%; } .film-caption { font-size: 17px; line-height: 1.6; display: block; } .film-character { width: 80%; } .film-shade { background: linear-gradient(90deg,#0b0c17,#0b0c17a8 40%,transparent 80%); } }

/* Preserve the original mark and make the product's Chinese name visible. */
.top { z-index: 90; }
.top .wrap, .top .tools { overflow: visible; }
.brand { display: grid; grid-template-columns: 24px auto; column-gap: 10px; row-gap: 2px; align-items: center; }
.brand > .pin { grid-row: 1 / span 2; width: 23px; height: 30px; align-self: center; }
.brand > b { grid-column: 2; line-height: 1.15; }
.brand > span { grid-column: 2; display: block; color: #a6a6b9; opacity: 1; font-size: 10px; line-height: 1.4; }
.tools .work-nav-more { margin: 0; flex-shrink: 0; }
.work-nav-more > summary { min-height: 40px; display: flex; align-items: center; border: 1px solid #363b4d; border-radius: 7px; padding: 7px 10px; }
.work-nav-more[open] > summary { background: #262333; color: #e3d7f7; }
.work-more-menu { top: calc(100% + 9px); min-width: 186px; z-index: 100; }
.work-more-menu a, .work-more-menu button { min-height: 44px; border-radius: 5px; }
.work-more-menu a:hover, .work-more-menu button:hover { background: #29283b; }
.work-more-menu .ico { flex-shrink: 0; }
.hero-question { font-size: 17px; color: #d2d1df; line-height: 1.7; margin: 0 0 17px; max-width: 32em; }
.xhero { min-height: calc(100svh - 79px); padding: 42px 0 24px; justify-content: flex-start; gap: 30px; }
.xhero-scope { margin-bottom: 22px; font-size: 11px; letter-spacing: 1px; }
.xhero h1 { font-size: clamp(58px,6.15vw,89px); }
.hero-subline { margin-top: 21px; font-size: 18px; }
.xhero .lead { margin-top: 15px; line-height: 1.8; max-width: 34em; }
.hero-support { max-width: 36em; font-size: 11px; line-height: 1.8; color: #9197ae; }
.xhero .actions { margin-top: 24px; flex-wrap: wrap; }
.galaxy-stage { height: clamp(390px,56svh,510px); }
.hero-route-bottom { margin-top: 5px; }
.hero-route-bottom .hroute-pin { display: none; }
.galaxy-bottom { gap: 16px; }
.galaxy-bottom span { max-width: 48%; line-height: 1.6; }
body.why-on .why { margin: 15px 0; }
.work-map .head-stats { display: flex; flex-wrap: wrap; margin: 0 0 25px; padding-bottom: 20px; border-bottom: 1px solid #323448; }
.work-map .head { margin-bottom: 28px; }
.map-overview { padding: 28px; margin-bottom: 28px; }
.map-overview-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }
.map-overview-top > div > span { font-size: 10px; color: #9693aa; }
.map-overview h2 { font-size: 34px; margin-top: 7px; }
.map-overview h2 small { font-size: 15px; font-weight: 400; color: #8b8da5; }
.map-overview .route { margin-top: 14px; }
.map-overview .route-ph { margin-top: 13px; font-size: 10px; color: #a6a1b8; }
.map-overview > p { margin: 25px 0 0; font-size: 12px; color: #a5a8ba; }
.review-heading { margin-top: 45px; }
.review-heading h2 { font-size: 30px; }
.review-heading > p { color: #9b9eaf; margin: 12px 0 0; font-size: 13px; }
.review-picker { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; font-size: 13px; }
.review-picker select { min-height: 44px; min-width: 180px; padding: 8px 14px; border: 1px solid #51465d; border-radius: 7px; }
.work-review-result .work-fold-inside > div > h3 { display: none; }
.review-grid { gap: 12px; }
.review-grid > .work-fold { margin: 0; }
.review-grid .work-fold-summary { min-height: 74px; padding: 18px; }
.review-grid .work-fold-text b { font-size: 14px; }
.work-review-voices { grid-template-columns: 1fr; gap: 0; }
.work-review-voices .work-fold-summary { min-height: 76px; padding: 19px; }
.work-review-voices .work-fold-inside .f { margin-bottom: 0; }
@media (max-width: 860px) {
  .top .wrap { gap: 10px 14px; }
  .brand > b { font-size: 20px; }
  .brand > span { font-size: 10px; }
  .top .roles { gap: 5px; }
  .tools .work-nav-more > summary { min-height: 36px; padding: 6px 9px; font-size: 11px; }
  .xhero { min-height: auto; padding-top: 34px; gap: 24px; }
  .hero-question { font-size: 15px; }
  .hero-route-bottom { margin-top: 0; }
  .galaxy-stage { height: 340px; }
  .map-overview { padding: 22px 19px; }
  .map-overview-top { align-items: start; }
  .map-overview .btn { font-size: 12px; padding: 12px; }
  .map-overview h2 { font-size: 27px; }
}
@media (max-width: 480px) {
  .brand { grid-template-columns: 20px auto; gap: 1px 8px; }
  .brand > .pin { width: 20px; height: 26px; }
  .brand > b { font-size: 18px; }
  .brand > span { font-size: 9px; }
  .tools { gap: 8px; }
  .xhero .lead { font-size: 14px; }
  .xhero h1, :lang(en) .xhero h1 { font-size: clamp(52px,12vw,67px); }
  .hero-subline { font-size: 17px; margin-top: 19px; }
  .galaxy-stage { height: 290px; margin-top: 28px; }
  .galaxy-top { letter-spacing: 1px; font-size: 8px; }
  .galaxy-tag { right: 8px; font-size: 10px; }
  .review-picker { align-items: start; flex-direction: column; gap: 8px; }
  .review-picker select { width: 100%; }
  .review-grid { grid-template-columns: 1fr; }
  .map-overview .route-ph { font-size: 8px; }
}

.map-guide { color: #a5a8bd; font-size: 13px; line-height: 1.9; margin-bottom: 22px; }
.work-map .review-heading { display: block; }
.work-map .review-heading > p { margin-top: 12px; }

body.why-on details.why > summary { font-size: 11px; cursor: pointer; color: inherit; }
body.why-on details.why > div { margin-top: 12px; font-size: 12px; line-height: 1.85; }

/* The old task stripe assumed card padding; folded cards already have their own border. */
.work-fold-inside > .task::before { display: none; }
.xroles-grid h3 .role-order { display: inline-block; margin-right: 10px; font: 14px var(--mono); color: #e3c890; vertical-align: middle; }
@media (max-width: 680px) {
  .work-nav .work-tab { flex-direction: column; gap: 5px; min-height: 69px; position: relative; }
  .work-nav .work-tab-number { display: block; font-size: 9px; }
  .work-nav .work-count { position: absolute; top: 9px; right: 7px; }
  .top .roles { gap: 2px; flex-wrap: wrap; overflow: visible; }
  .top .roles .ico { display: none; }
  .top .roles > a { padding: 6px 7px; font-size: 10px; }
}

.task-sources { border-top: 1px solid #303345; margin-top: 16px; padding-top: 12px; }
.task-sources > summary { font-size: 11px; color: #a4a7bb; cursor: pointer; }
.task-sources .src { margin-top: 12px; border: none; padding: 0; }

.top .tools .work-more-menu [data-act="why"] { display: flex; }
#review[aria-busy="true"] textarea { opacity: .5; }
.review-loading { margin-top: 8px; color: #cab5e5; font-size: 12px; }

/* Two choices first. All existing product material remains behind one disclosure. */
.home-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 27px; }
.home-entry { position: relative; display: block; min-height: 137px; border: 1px solid #484553; border-radius: 9px; padding: 20px; text-decoration: none; background: #151522; color: #eee9fa; transition: border-color .2s, background .2s; }
.home-entry .entry-number { font: 11px var(--mono); color: #9690aa; }
.home-entry h2 { font-size: 21px; line-height: 1.35; font-weight: 650; margin-top: 12px; padding-right: 12px; letter-spacing: -.4px; }
.home-entry p { margin-top: 9px; color: #a7a4b6; font-size: 11px; line-height: 1.65; }
.home-entry .entry-arrow { position: absolute; top: 18px; right: 18px; font-size: 19px; color: #ad98d0; }
.home-entry.primary { background: #f5d779; color: #201a18; border-color: #f5d779; }
.home-entry.primary .entry-number, .home-entry.primary p, .home-entry.primary .entry-arrow { color: #6c5525; }
.home-entry:hover { border-color: #d3b6ed; background: #252133; }
.home-entry.primary:hover { background: #ffe298; border-color: #ffe298; }
.home-entry:focus-visible { outline: 3px solid #ae91d9; outline-offset: 5px; }
.home-details { margin: 0 auto; width: 100%; }
.home-details > summary { max-width: 1190px; margin: 10px auto 42px; border-top: 1px solid #343240; border-bottom: 1px solid #343240; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; list-style: none; cursor: pointer; color: #c5c1d5; font-size: 16px; }
.home-details > summary::-webkit-details-marker { display: none; }
.home-details > summary > b { font-weight: 400; font-size: 22px; color: #aa94ce; }
.home-details[open] > summary > b { transform: rotate(45deg); }
.work-fold-inside .task::before, .work-fold-inside .ftask::before { display: none !important; }
.work-fold-inside .ftask { padding: 0; border: none; }
.work-fold-inside .ftask h3 { font-size: 20px; }
.work-task .work-fold-text > span { display: none; }
.work-task .work-fold-summary { min-height: 78px; }
.work-page .head .sub { margin-top: 12px; }
.work-layout { gap: 28px; margin-top: 22px; }
.work-panel-heading p { font-size: 14px; line-height: 1.8; }
.work-fold-inside .task .do, .work-fold-inside .ftask .do { line-height: 1.85; }
.demo-privacy { margin-top: 20px; color: #a4a4b9; font-size: 12px; }
.demo-privacy > summary { cursor: pointer; min-height: 35px; }
.demo-privacy p { line-height: 1.9; max-width: 64em; }
@media (max-width: 860px) { .home-details > summary { margin-left: 24px; margin-right: 24px; } }
@media (max-width: 680px) {
  .home-entry-grid { gap: 10px; }
  .home-entry { min-height: 134px; padding: 18px 13px; }
  .home-entry h2 { font-size: 17px; margin-top: 13px; }
  .home-entry p { font-size: 10px; }
  .home-details > summary { font-size: 14px; margin-bottom: 25px; }
  .work-task .work-fold-summary { min-height: 100px; }
  .work-page > .head { padding-bottom: 20px; margin-bottom: 16px; }
}

.work-nav-caption { display: none; }
.work-open { font-size: 13px; }
.work-fold-inside .ftask .checks, .work-fold-inside .ftask p { line-height: 1.85; }
@media (max-width: 680px) { .work-open { font-size: 12px; } }

.wizard-field .work-fold-inside > .field { padding: 0; border: none; background: transparent; }
.wizard-field .field .h > b { display: none; }
.wizard-field .work-fold-summary { min-height: 70px; padding: 19px; }
.wizard-field .work-fold-inside { padding: 19px; }
.wizard-source { max-height: 560px; overflow-y: auto; }
@media (max-width: 680px) { .wizard-source { max-height: 280px; } .wizard-field .work-fold-text b { font-size: 15px; } }

/* Phone layout is composed separately, not a scaled desktop. */
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .top .wrap { gap: 8px; }
  .top .roles > a { font-size: 12px; min-height: 42px; display: flex; align-items: center; justify-content: center; }
  .top .pill-btn, .tools .work-nav-more > summary { min-height: 44px; font-size: 12px; }
  .xhero { padding: 20px 0 22px; gap: 22px; }
  .xhero-in { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  .galaxy-stage { order: -1; height: 174px; width: 100%; margin: 0; flex-shrink: 0; }
  .galaxy-top { top: 11px; left: 12px; right: 12px; }
  .galaxy-bottom { bottom: 10px; left: 12px; right: 12px; }
  .xhero-scope { font-size: 11px; line-height: 1.6; margin-bottom: 10px; }
  .hero-question { display: none; }
  .xhero h1, :lang(en) .xhero h1 { font-size: clamp(43px,11.7vw,54px); line-height: 1.12; }
  .hero-subline { font-size: 17px; margin-top: 13px; }
  .xhero .lead { font-size: 14px; margin-top: 10px; line-height: 1.7; }
  .home-entry-grid { margin-top: 19px; }
  .home-entry { min-height: 139px; }
  .home-entry h2 { font-size: 18px; }
  .home-entry p { font-size: 12px; line-height: 1.6; }
  .hero-route-bottom { margin-top: 2px; }
  .page { padding-top: 25px; }
  .page .head { margin-bottom: 19px; }
  .page .panel { padding: 19px; }
  .grid2, .cols, .cols.even { grid-template-columns: minmax(0,1fr); }
  .grid2 > *, .cols > *, .work-content, .work-panel { min-width: 0; }
  .work-tab b { font-size: 14px; white-space: normal; line-height: 1.45; text-align: center; }
  .work-tab-number { font-size: 11px !important; }
  .work-nav .work-tab { min-height: 75px; }
  .work-fold-inside .when .choice, .work-fold-inside .choice.status { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .work-fold-inside .choice.status button, .work-fold-inside .when .choice button { padding: 11px 6px; font-size: 14px; min-height: 49px; white-space: normal; line-height: 1.45; }
  .work-fold-inside .fam, .work-fold-inside .grad { font-size: 13px; line-height: 1.8; }
  .page input[type=text], .page input[type=number], .page select, .page textarea, .riri-drawer textarea { font-size: 16px; max-width: 100%; }
  .page .btn { min-height: 46px; font-size: 14px; white-space: normal; }
  .page .f, .page .small { overflow-wrap: anywhere; }
  .stepper { display: flex !important; padding: 0; }
  .stepper li { font-size: 16px; width: 100%; padding: 15px; }
  .stepper li:not(.on) { display: none; }
  .stepper li.on::after { content: ' / 5'; opacity: .65; padding-left: 10px; }
  #wz-text { min-height: 220px !important; }
  .wizard-field textarea { min-height: 135px; }
  .map-overview-top { flex-wrap: wrap; }
  .map-overview-top > .btn { width: 100%; margin-top: 6px; }
  .review-picker select { font-size: 16px; }
  .work-demo-tools > summary { min-height: 44px; font-size: 11px; }
}

@media (max-width: 340px) { .home-entry-grid { grid-template-columns: minmax(0,1fr); } .home-entry { min-height: 115px; } }

/* New profile is a direct primary navigation action. */
.header-new-profile { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; flex-shrink: 0; border: 1px solid #edce79; border-radius: 7px; background: #edce79; color: #252017; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.header-new-profile:hover { background: #ffe19a; color: #252017; }
.header-new-profile:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 680px) {
  .top .wrap { column-gap: 8px; }
  .top .tools { gap: 6px; }
  .header-new-profile { padding: 9px 10px; font-size: 12px; }
  .top .tools [data-act="why"] { max-width: 110px; font-size: 11px; padding-inline: 8px; }
}

.nav-compact { display: none; }
@media (max-width: 680px) {
  .top .roles .nav-full { display: none; }
  .top .roles .nav-compact { display: inline; }
  .top .roles > a { padding-inline: 5px; }
}

/* A visible bridge from the brand opening to the story, not a hidden footer. */
.galaxy-bottom { gap: 14px; bottom: 12px; }
.home-story-cue { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 9px 18px 9px 13px; color: #f8ecbf; border: 1px solid #a38c55; border-radius: 10px; background: linear-gradient(115deg,#2c2547ee,#242030ee); box-shadow: 0 0 25px #d7b96518; text-decoration: none; font-family: var(--sans); letter-spacing: 0; cursor: pointer; }
.home-story-cue > span { max-width: none; }
.story-cue-arrow { flex: 0 0 32px; font-size: 34px; line-height: 1; text-align: center; animation: story-cue-nudge 2.2s ease-in-out infinite; }
.story-cue-copy { display: grid; gap: 4px; }
.story-cue-copy b { font-size: 15px; line-height: 1.45; font-weight: 650; }
.story-cue-copy small { color: #d2c3a4; font-size: 11px; line-height: 1.4; }
.home-story-cue:hover { background: #3b3053; border-color: #f5d779; box-shadow: 0 0 30px #e6c77230; }
.home-story-cue:focus-visible, .home-details > summary:focus-visible { outline: 3px solid #f5d779; outline-offset: 4px; }
#film-story { scroll-margin-top: 125px; }
.home-details > summary { min-height: 110px; margin-top: 8px; margin-bottom: 30px; padding: 24px 28px; border: 1px solid #65526f; border-radius: 12px; color: #eee7fa; background: linear-gradient(115deg,#201d31,#151620); box-shadow: 0 15px 50px #0002; transition: border-color .2s, background .2s; }
.home-details > summary:hover { border-color: #c0a1d7; background: #272034; }
.showcase-summary-copy { display: grid; gap: 8px; }
.showcase-summary-copy b { font: 650 23px/1.4 var(--sans); letter-spacing: -.3px; }
.showcase-summary-copy small { font: 13px/1.6 var(--sans); color: #b6acc6; }
.showcase-toggle { flex: 0 0 50px; display: grid; place-items: center; width: 50px; height: 50px; font-size: 33px; border: 1px solid #b5a172; border-radius: 50%; color: #f5d779; transition: transform .25s; }
.home-details[open] > summary .showcase-toggle { transform: rotate(180deg); }
@keyframes story-cue-nudge { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (max-width: 860px) { .galaxy-hint { display: none; } .galaxy-bottom { justify-content: center; } .home-story-cue { width: 100%; max-width: 360px; justify-content: center; } }
@media (max-width: 680px) {
  .galaxy-bottom { left: 12px; right: 12px; bottom: 4px; }
  .home-story-cue { min-height: 55px; padding: 8px 12px; gap: 10px; }
  .story-cue-arrow { font-size: 30px; }
  .story-cue-copy b { font-size: 14px; }
  .story-cue-copy small { font-size: 10px; }
  #film-story { scroll-margin-top: 150px; }
  .home-details > summary { padding: 20px 17px; gap: 14px; min-height: 104px; }
  .showcase-summary-copy b { font-size: 18px; }
  .showcase-summary-copy small { font-size: 11px; }
  .showcase-toggle { width: 42px; height: 42px; flex-basis: 42px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .story-cue-arrow { animation: none; } .showcase-toggle { transition: none; } }

/* The reason and hand-back sequence are readable without extra clicks. */
.home-purpose { padding: 45px 0 60px; border-top: 1px solid #292735; }
.purpose-kicker { font-size: 13px; color: #f5d779; letter-spacing: 1px; margin-bottom: 19px; }
.home-purpose h2 { font-size: clamp(32px,4vw,54px); line-height: 1.3; font-weight: 650; letter-spacing: -1px; }
.purpose-lead { max-width: 700px; font-size: 17px; line-height: 1.9; color: #b5b1c6; margin: 24px 0 30px; }
.purpose-reasons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; }
.purpose-reasons article { border-top: 1px solid #665770; padding-top: 17px; }
.purpose-number { font: 12px var(--mono); color: #bca6d1; }
.purpose-reasons h3 { font-size: 21px; margin: 12px 0; font-weight: 600; }
.purpose-reasons p { color: #b2aec1; font-size: 14px; line-height: 1.85; }
.purpose-solo { color: #aba6bb; font-size: 12px; line-height: 1.8; margin-top: 26px; }
.purpose-handover { margin-top: 44px; padding: 28px; border: 1px solid #554663; border-radius: 12px; background: linear-gradient(120deg,#201b2d,#10131e); }
.purpose-handover > h3 { font-size: 26px; line-height: 1.5; font-weight: 600; }
.purpose-handover > p { font-size: 14px; color: #b7aec9; line-height: 1.8; margin-top: 12px; }
.purpose-steps { list-style: none; padding: 0; margin: 27px 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.purpose-steps li { position: relative; border-top: 2px solid #806797; padding-top: 18px; min-width: 0; }
.purpose-step-number { display: block; color: #f5d779; font: 26px var(--mono); margin-bottom: 15px; }
.purpose-steps h4 { font-size: 18px; font-weight: 600; line-height: 1.5; }
.purpose-steps p { color: #b4a9c3; font-size: 13px; line-height: 1.8; margin-top: 9px; }
.purpose-handover > .purpose-limit { margin-top: 25px; padding-top: 18px; border-top: 1px solid #44384f; font-size: 12px; color: #afa4bf; }
.purpose-research { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; margin-top: 25px; }
.purpose-research p { font-size: 12px; color: #9993ac; line-height: 1.8; }
.purpose-research .text-link { font-size: 13px; }
@media (max-width: 680px) {
  .home-purpose { padding: 34px 0 40px; }
  .purpose-lead { font-size: 15px; margin: 19px 0 25px; }
  .purpose-reasons { grid-template-columns: 1fr; gap: 21px; }
  .purpose-reasons h3 { font-size: 19px; margin: 8px 0; }
  .purpose-handover { margin-top: 30px; padding: 23px 18px; }
  .purpose-handover > h3 { font-size: 22px; }
  .purpose-steps { grid-template-columns: 1fr; gap: 21px; }
  .purpose-steps li { padding: 17px 0 0 48px; }
  .purpose-step-number { position: absolute; left: 0; top: 16px; font-size: 22px; }
  .purpose-steps h4 { font-size: 18px; }
  .purpose-steps p { margin-top: 5px; }
}
