@font-face{font-family:PadRound;src:url('./media/host/round.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box}
:root{--blue:#31a5ff;--ink:#324757;--gradient:linear-gradient(90deg,#29a2ff,#78ddff);--outline:linear-gradient(white,white) padding-box,var(--gradient) border-box;font-family:Roboto,"Microsoft YaHei","PingFang SC",sans-serif;color:var(--ink);background:#f6f3eb}
html,body{width:100%;height:100%}
body{margin:0;overflow:hidden}
#display{
  --page-height:100vh;
  --inset:clamp(22px,3.7vmin,42px);
  --pad-width:min(calc(100vw - 2 * var(--inset)),1280px,calc((var(--page-height) - 2 * var(--inset)) * 1.6));
  --arc-radius:clamp(220px,54vmin,680px);
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  place-items:center;
  min-height:var(--page-height);
  padding:var(--inset);
  background:
    radial-gradient(circle var(--arc-radius) at -8vmin -4vmin,#82adce 50%,#abcde3 50.2% 72%,#d1e3ef 72.2% 99.8%,transparent 100%),
    radial-gradient(circle var(--arc-radius) at calc(100% + 8vmin) calc(100% + 4vmin),#e9ae80 50%,#f1c9a3 50.2% 73%,#f6ddc2 73.2% 99.8%,transparent 100%),
    #f6f3eb;
}
@supports (height:100dvh){#display{--page-height:100dvh}}
@media (max-width:760px),(max-height:540px){#display{--inset:14px}}
#display::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(132deg,rgb(255 255 255 / 25%),rgb(255 255 255 / 13%) 38%,rgb(255 252 245 / 21%));
  -webkit-backdrop-filter:blur(12px) saturate(112%);
  backdrop-filter:blur(12px) saturate(112%);
}
.frame{
  position:relative;
  width:var(--pad-width);
  aspect-ratio:16 / 10;
  border-radius:clamp(8px,1.3vw,18px);
  overflow:hidden;
  isolation:isolate;
  background:#fff;
}
/* A 960px-wide CCAS frame is 600px tall, leaving 12px beyond each edge of the ADHD canvas. */
.pad-canvas{--vertical-bleed:12px;position:absolute;top:50%;left:0;width:960px;height:576px;transform:scale(var(--fit,1)) translateY(-50%);transform-origin:top left}
header{position:absolute;inset:0;pointer-events:none;z-index:5}#actions button{pointer-events:auto}
#page{position:absolute;inset:0;outline:none}
#page::before,.scrim,.wheel-scrim{inset:calc(-1 * var(--vertical-bleed)) 0}
#page::before{content:"";position:absolute;z-index:-1;pointer-events:none;background:var(--pad-background,#fff)}
h1,h2,h3,p{margin:0}button,input,select{font:inherit}
button{cursor:pointer;touch-action:manipulation;border:0;background:transparent;color:inherit;padding:0}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #166cbb;outline-offset:3px}
button:disabled{opacity:.48;cursor:default}
button[data-busy]{pointer-events:none}.primary,.orange{border-radius:100px;font-weight:400;color:white;background:var(--gradient)}
.orange{background:#fdb947}
.back,.speaker,#pause{position:absolute;left:39px;top:36px;width:50px;height:50px;background:url('./media/host/ic_back_blue.png') center/contain no-repeat;font-size:0}
body[data-view=hub] .back{background-image:url('./media/host/ic_back_orange.png')}
#notice{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);padding:9px 20px;background:#2f3544ed;color:#fff;border-radius:12px;text-align:center;font-size:16px;z-index:10;max-width:82%;width:max-content;pointer-events:none}
body[data-view=login] #page{--pad-background:linear-gradient(#000c,#000c),url('./media/host/ic_bg_main.png') center/cover}
.native-form{position:absolute;left:245px;bottom:133px;width:470px;height:391px;background:url('./media/host/icon_login_dialog_bg.png') top center/470px 370px no-repeat;color:#885215;font:20px PadRound,sans-serif}
.native-form h1{position:absolute;top:146px;width:100%;text-align:center;font-size:22px}
.native-field{position:absolute;left:90px;width:289px;height:54px;top:187px}
.native-field:nth-of-type(2){top:251px}
.native-field img{position:absolute;left:0;width:42px;height:46px;top:4px;object-fit:contain;z-index:1}
.native-field input{position:absolute;right:0;width:270px;height:54px;border:0;background:#f4dfc2;border-radius:12px;padding:0 12px 0 37px;color:#885215;font:20px PadRound,sans-serif}
.native-field input::placeholder{color:rgb(136 82 21 / 40%);opacity:1}
.native-form .primary{position:absolute;bottom:0;left:151px;width:168px;height:56px;background:#fdb947;color:#b85717;font-size:26px;font-weight:bold}
body:is([data-view=main],[data-view=game-end]) #page{--pad-background:linear-gradient(#9dd8ff,#fff)}
.home-tool{position:absolute;background-position:center;background-repeat:no-repeat;background-size:contain;font:11px/14px PadRound,sans-serif}
.home-tool span{position:absolute;inset:auto 0 var(--label-bottom);text-align:center}
.exit-icon{--label-bottom:26px;right:35px;top:5px;width:63px;height:105px;background-image:url('./media/host/ic_btn_exit.png');color:#8f7eeb}
.records-icon{--label-bottom:9.5px;right:118px;top:25px;width:53px;height:70px;background-image:url('./media/host/ic_btn_test_record.png');color:#47a5f2}
.main-card{position:absolute;top:124px;left:226px;width:524px;height:321px;background:url('./media/host/ic_main_bg_test.png') center/100% 100%}
.main-card button img{width:16px;height:11px;margin-left:12px;vertical-align:middle}
.main-card h1{margin:32px 20px;color:#fff;font:56px/1.14 PadRound,sans-serif}
.main-card button{position:absolute;left:20px;bottom:18px;width:484px;height:48px;background:white;color:var(--blue);border-radius:6px;font:20px PadRound,sans-serif}
body:is([data-view=children],[data-view=new],[data-view=home],[data-view=history],[data-view=question],[data-view=scale-intro],[data-view=search],[data-view=report-wait],[data-view=summary]) #page{--pad-background:url('./media/host/ic_sart_1.png') right 63px top 63px/80px 80px no-repeat,url('./media/host/ic_sart_2.png') left -38px top 103px/134px 132px no-repeat,url('./media/host/ic_sart_3.png') left 280px top 21px/35px 35px no-repeat,url('./media/host/ic_sart_4.png') right 203px bottom/210px 198px no-repeat,linear-gradient(#9dd8ff,#bbefff)}
.pad-pane{position:absolute;left:41px;top:43px;width:878px;height:490px;border-radius:51px;background:white}
.tab-title{position:absolute;top:-37px;left:50%;transform:translateX(-50%);min-width:183px;height:65px;padding:0 24px;display:grid;place-items:center;border-radius:38px;border:5px solid #e5f2ff;background:#55b8ff;color:white;font-size:26px;font-weight:400}
.personal{left:62px;top:47px;width:836px;height:479px;background:url('./media/host/ic_personal_bg.png') center/100% 100%;border-radius:0}
.personal .tab-title{top:7px;border:0;background:transparent;font-size:22px;height:32px}
.personal-fields{position:absolute;top:99px;left:296px}
.field-row{height:40px;display:flex;align-items:center;gap:0;margin-bottom:22px}
.field-row>span{font-size:22px;width:70px}.field-row>div{width:172px;display:flex;justify-content:space-between}
.field-row input:not([type=radio]),.field-row select{appearance:auto;width:100%;height:40px;border:0;border-radius:20px;padding:0 9px;background:#f4f6f7;color:var(--ink);font-size:18px;text-align:left}
.sex{position:relative;display:grid;place-items:center;width:77px;height:28px}.sex input{position:absolute;opacity:0}.sex span{width:100%;height:100%;display:grid;align-content:center;padding-left:38px;font-size:14px;border-radius:16px;background:#f4f5f5 url('./media/host/ic_male_un.png') left center/28px 28px no-repeat;color:#9ca6ad}.sex.girl span{background-image:url('./media/host/ic_female_un.png')}.sex.boy :checked+span{background-color:#e3f4ff;color:#359cf6;background-image:url('./media/host/ic_male.png')}.sex.girl :checked+span{background-color:#ffe9ed;color:#f57a8b;background-image:url('./media/host/ic_female.png')}
.choose,.demo-check{position:absolute;left:552px;top:99px;font-size:15px}.choose{left:538px;padding:9px 14px;background:#e9ecef;border-radius:5px}.demo-check{left:489px;top:369px;height:48px;display:flex;align-items:center;gap:3px}.demo-check input{width:18px;height:18px}
.next-personal{border:2px solid transparent;background:var(--outline);color:var(--blue);position:absolute;left:346px;bottom:62px;width:143px;height:48px;font-size:20px}#resume{position:absolute;right:45px;bottom:22px;color:#228dde;font-size:15px}
.scrim{position:absolute;z-index:8;display:grid;place-items:center;background:#0007}
.dialog{background:white;min-width:380px;max-width:640px;max-height:480px;overflow:auto;padding:24px;border-radius:8px;box-shadow:0 12px 40px #0003}
.host-dialog{width:430px;height:290px;position:relative;text-align:center;background:url('./media/host/ic_dialog_bg.png') center/100% 100% no-repeat}
.host-dialog h2{margin-top:8px;font-size:22px;font-weight:400;color:white}.host-dialog p{position:absolute;top:95px;width:100%;font-size:20px}
.host-dialog footer{position:absolute;bottom:50px;width:100%;display:flex;justify-content:space-evenly}
.host-dialog button{width:135px;height:48px;border-radius:24px;font-size:18px}.host-dialog button:first-child{border:2px solid transparent;background:var(--outline);color:var(--blue)}
.host-dialog #recover[aria-busy=true]{display:inline-flex;align-items:center;justify-content:center;gap:7px;opacity:1;color:#166cbb}
.host-dialog #recover[aria-busy=true]::before{content:'';width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:recover-spin .8s linear infinite}
@keyframes recover-spin{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){.host-dialog #recover[aria-busy=true]::before{animation:none}}
.dialog h2{color:#222;font-size:22px;margin:0 0 16px}.dialog footer{display:flex;justify-content:flex-end;gap:15px;margin-top:18px}.dialog footer button,#paging button{color:#1674af;padding:9px}
.dialog .primary{color:white}.picker-list{max-height:300px;overflow:auto}.profile,.picker-list .listrow{display:block;width:100%;padding:14px 2px;text-align:left;border-bottom:1px solid #ddd;font-size:18px}#paging{display:flex;flex-direction:column}#paging button{text-align:left;font-size:18px;padding:14px 2px}
body[data-view=hub] #page{--pad-background:url('./media/host/ic_test_bg.png') center/cover}
body[data-view=intro] #page{--pad-background:var(--game-scene) center/100% 100%}
.game-heading{position:absolute;top:118px;text-align:center;width:100%;color:white;font-size:32px;font-weight:400;text-shadow:0 2px 3px #0004}
.game-icons{position:absolute;left:77px;top:190px;display:flex;gap:13px}
.game-icons div{width:126px;height:144px;display:grid;align-items:end;text-align:center;padding-bottom:13px;background-size:100% 100%;font-size:12px}
.game-start,.game-title .orange,.game-end .orange{position:absolute;top:406px;left:396px;width:168px;height:56px;font-size:26px}
.game-title{position:absolute;inset:0}
.game-title .orange{border:5px solid white;width:240px;height:70px;top:auto;bottom:60px;left:360px}
#sync{position:absolute;left:8px;bottom:8px;color:#254359b3;font-size:12px}
.game-end{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:49px}.game-end h1{font-size:36px;font-weight:400}.game-end .orange{position:static;width:256px}
.scale-start{top:76px;height:457px;text-align:center;box-shadow:inset 0 0 0 9px #e5f2ff}.scale-start .tab-title{width:303px;height:75px;top:-38px;border-width:7px}
.scale-start h2{margin-top:66px;font-size:36px;font-weight:500}.scale-start p{text-align:left;font-size:26px;line-height:1.5;margin:16px 36px}
.scale-start #fill{position:absolute;left:271px;bottom:52px;width:336px;height:56px;font-size:22px}.skip{position:absolute;right:40px;bottom:52px;height:56px;color:var(--ink);font-size:22px}
.question{padding:64px 57px 0}.question h1{font-size:28px;line-height:1.43;font-weight:500}
.question.snap h1{min-height:84px}.question.snap .options{margin-top:43px}
.question.weiss h1{min-height:78px}.question.weiss .options{margin-top:25px}
.options{display:grid;grid-template-columns:320px 320px;justify-content:space-between;gap:28px 0;margin-top:38px}
.options button{height:56px;border:2px solid transparent;background:var(--outline);border-radius:28px;color:var(--blue);font-size:22px;position:relative}
.options button[aria-pressed=true]{color:white;background:var(--gradient);border-color:transparent}.options button[aria-pressed=true]::before{content:'';position:absolute;left:32px;top:17px;width:22px;height:20px;background:url('./media/host/ic_select_white.png') center/contain no-repeat}
.question footer{position:absolute;left:58px;right:58px;bottom:20px;height:50px;display:flex;align-items:center}.question footer button{color:#349cfa;font-size:20px;padding:12px 0}.question #next{margin-left:auto}
#find{position:absolute;top:33px;left:321px;width:318px;height:56px;background:white;border-radius:28px;display:flex;align-items:center;padding:0 18px}#find input::placeholder{color:#c8cacc}#find input{flex:1;min-width:0;border:0;outline:0;font-size:18px}#find button{height:56px;width:56px;margin-right:-18px;background:url('./media/host/ic_search.png') left 11px center/20px 20px no-repeat}
.kind{position:absolute;right:52px;top:44px;font-size:17px;color:#2687d5}.record-list{position:absolute;left:109px;top:115px;bottom:64px;width:742px;overflow:auto}
.record-list .listrow{display:flex;align-items:center;padding:0 31px;gap:14px;text-align:left;width:100%;height:70px;margin-bottom:12px;box-shadow:inset 0 0 0 5px #d6ebff;border-radius:22px;background:white;font-size:14px;color:#656f77}.record-list .listrow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listrow span:first-child,.listrow b{flex-shrink:0}.listrow b{margin-left:auto;padding-left:20px;border-left:2px solid #d6ebff;line-height:33px;color:var(--blue);font-weight:400}
.pagination{position:absolute;bottom:28px;right:41px;display:flex;align-items:center;gap:8px;color:#a8aeb4;font-size:14px}
.pagination button,.pagination span{display:grid;place-items:center;width:28px;height:28px;border-radius:11px;background-color:white}
.pagination #jump-page{color:var(--blue)}.pagination #prev,.pagination #next{background-position:center;background-repeat:no-repeat;background-size:8px 12px}
.pagination #prev{background-image:url('./media/host/ic_pre.png')}.pagination #next{background-image:url('./media/host/ic_next_blue.png')}
.pagination #prev:disabled{background-image:url('./media/host/ic_pre_grey.png');opacity:1}.pagination #next:disabled{background-image:url('./media/host/ic_next_grey.png');opacity:1}
.page-sheet{position:absolute;bottom:250px;width:100%;height:60px;border-radius:30px 30px 0 0;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 32px;font-size:18px}.page-sheet input{width:48px;text-align:center}.page-sheet button{color:var(--blue)}
.record-list:has(.empty){left:41px;width:878px}.empty{height:416px;background:white;border-radius:51px;padding-top:85px;text-align:center;font-size:20px}.empty img{display:block;width:178px;height:122px;margin:0 auto 30px}.report-wait,.summary{display:grid;align-content:center;justify-items:center;gap:22px}.report-wait img{width:130px}
.report-wait{align-content:start;padding-top:75px;border:9px solid #e5f2ff}.report-wait h2{font-size:22px;font-weight:400}
body[data-view=report] #page{--pad-background:url('./media/host/ic_bg_main.png') center/100% 100%}
.report-pane{top:90px;height:468px;border:9px solid #e5f2ff}.report-pane .tab-title{top:-39px}
.report{position:absolute;left:50%;transform:translateX(-50%);width:701px;top:26px;bottom:55px;padding-top:10px;overflow-y:auto;font-size:12px;color:#324757;line-height:1.55;scrollbar-width:thin}
.report h2{text-align:center;font-size:20px;font-weight:400;margin:0 0 5px}.report-meta{border-block:1px solid #9aaaaf;padding:10px 20px;text-align:left;font-size:14px}
.report .ability-heading{height:40px;display:grid;place-items:center;background:#f2faff;border:1px solid #d7e8f2;font-size:14px;font-weight:400;margin:8px 0 0}.conclusion{min-height:140px;padding:10px;border:1px solid #d7e8f2;border-top:0;color:#ef7027}.report .conclusion p{margin:0 0 6px}
.adaptive-appendix{padding:6px;break-before:page}.adaptive-appendix h3{font-size:18px;font-weight:400}.adaptive-appendix p{margin:12px 0}.appendix-summary{font-size:14px}
.report table{border-collapse:collapse;width:100%;text-align:center;margin:10px 0;font-size:13px}.report th,.report td{border:1px solid #d7e8f2;padding:5px 3px}.report th,.abilities td:first-child{background:#f2faff}.abilities tr{height:32px}.report h3{font-size:16px;margin:16px 0 6px}.report p{margin:7px 0}.report-pane #print{position:absolute;right:36px;bottom:15px;height:40px;color:#1d96f3;font-size:20px}
.center{height:100%;display:grid;place-content:center;justify-items:center;gap:16px}.center .row{display:flex;gap:20px}.center button{padding:10px 24px}.center p{font-size:20px}.center h1{font-size:36px}

.search-pane{top:115px;height:416px;padding:40px 94px;font-size:14px}
.search-pane p{margin:0 0 16px}.range-options,.dates{display:flex;gap:45px;align-items:center;margin:16px 0}.dates{gap:14px;margin-bottom:20px}
.range-options button,.range-options label span,.dates input{height:36px;border:1.5px solid #65c5fb;border-radius:20px;background:#fff;color:#379dea;text-align:center}
.range-options button,.dates input{width:200px}.dates input{padding:0 10px}.range-options label{position:relative}.range-options label input{position:absolute;opacity:0}.range-options label span{display:grid;place-items:center;min-width:140px;padding:0 14px;cursor:pointer}
.search-pane .primary{position:absolute;bottom:52px;left:367px;width:143px;height:42px;font-size:18px}
@media print{body{overflow:visible;background:white}#display{display:block;min-height:0;padding:0}#display::before,#page::before{display:none}#display,.frame,.pad-canvas,#page,.report-pane,.report{position:static;transform:none;width:auto;height:auto;aspect-ratio:auto;overflow:visible;background:white!important;border:0}header,button,#sync,.report-pane .tab-title{display:none!important}.report-pane{display:block;padding:0}.report h3,.report h2{break-after:avoid}}
.wheel-value{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0;pointer-events:none}
.picker-trigger{width:100%;height:40px;background:#f4f5f5;border-radius:20px;color:var(--ink);font-size:18px}
.field-row .picker-trigger,.field-row input[name=birthDate][readonly]{text-align:left;padding:0 28px 0 9px;background:#f4f6f7 url('./media/host/ic_next.png') right 12px center/8px 13px no-repeat}
.dates .picker-trigger,.range-options button,.range-options label span{border:2px solid transparent;background:var(--outline);color:var(--blue)}
.dates .picker-trigger{width:200px;height:36px;position:relative;font-size:14px}
.dates .picker-trigger::after{content:'';position:absolute;right:12px;top:12px;width:12px;height:9px;background:url('./media/host/ic_down_blue.png') center/contain no-repeat}
.range-options [aria-pressed=true],.range-options :checked+span{background:var(--gradient);color:white}
.wheel-scrim{position:absolute;z-index:9;background:#0007}
.wheel-sheet{position:absolute;inset:auto 0 0;background:white;border-radius:18px 18px 0 0;overflow:hidden}
.wheel-sheet header{position:static;height:53px;display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.wheel-sheet header button{pointer-events:auto;color:#299ef5;font-size:18px;padding:10px}
.wheel-sheet header button:first-child{color:#888}.wheel-sheet strong{font-weight:500;font-size:20px}
.wheels{display:flex;justify-content:center;gap:12px}.wheel{height:180px;min-width:98px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;padding:72px 0}
.wheel button{display:block;width:100%;padding:0 12px;height:36px;color:#999;font-size:20px;scroll-snap-align:center}
.wheel [aria-selected=true]{color:var(--ink);font-weight:600}
.report .scale-table{font-size:14px}.scale-table :is(th,td){padding:4px 6px;line-height:1.35;height:33px;font-weight:400}.scale-table th:first-child{width:100px;background:#f2faff}.scale-table .flag{color:#ff5050}
.report .abilities{table-layout:fixed;font-size:14px;margin:10px 0 0}.abilities :is(th,td){height:32px;padding:0 2px;font-weight:400}.abilities th:nth-child(-n+2){width:100px}.report .signoff{border-top:1px solid #999;padding:8px 20px;font-size:14px}.report .examiner{padding-right:150px;text-align:right;margin:12px 0 24px}
