:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#30293b;background:#f7f5fa;font-size:16px;line-height:1.6;--accent:#70538d;--border:#dfd7e8;--pink:#fcebf1;--blue:#eaf2fc;--lavender:#eee8fa;--mint:#e6f4ee;--neutral:#f3f1f6}*{box-sizing:border-box}body{margin:0;padding-bottom:calc(104px + env(safe-area-inset-bottom))}button,input,select,textarea{font:inherit}button{min-height:44px;padding:.55rem .85rem;border:1px solid var(--border);border-radius:12px;background:white;color:#40334d;cursor:pointer;font-weight:600}button:hover{border-color:#8b6da4;background:#f7f1fc}button:disabled{opacity:.55;cursor:not-allowed}.primary{background:var(--accent);color:white;border-color:var(--accent)}.primary:hover{background:#5f447c;color:white}input,select,textarea{max-width:100%;border:1px solid #b8aaca;border-radius:9px;padding:.55rem;background:white;color:#30293b;min-height:44px}input[type=checkbox]{min-height:24px;width:22px;accent-color:var(--accent)}textarea{width:100%;min-height:90px;resize:vertical}select{width:100%}a{color:#654980}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #a880cd;outline-offset:3px}h1,h2,h3,p{margin:0 0 .65rem}h1{font-size:1.2rem;line-height:1.3}h2{font-size:1.18rem}h3{font-size:1.02rem}small,.meta{font-size:.875rem;color:#685b75}small{font-weight:400}.top,.utility,.tabs,main,#statusArea,#errorArea,#notice{max-width:1000px;margin:auto}.top{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1rem .75rem;gap:1rem}.brand{display:flex;gap:.65rem;align-items:center}.flower{font-size:2.5rem;color:#9972b8}.eyebrow{font-size:.75rem;letter-spacing:.15em;font-weight:700;color:#776185}.edition{font-size:.875rem;color:#776185}.utility{display:flex;align-items:end;gap:.8rem;padding:.5rem 1rem}.utility>label:first-child{flex:1;font-size:.875rem}.toggle{display:flex;align-items:center;gap:.3rem;font-size:.875rem;white-space:nowrap;padding-bottom:.6rem}.tabs{display:flex;padding:.6rem 1rem;gap:.5rem}.tabs button{flex:1;background:transparent;border-color:transparent}.tabs .active{background:#e8dff2;color:#553e6f;border-color:#d8c7e6}#statusArea{display:flex;justify-content:space-between;padding:.3rem 1rem;font-size:.875rem;color:#5e5070}#saveStatus.error{color:#a02d49;font-weight:700}#errorArea{padding:.8rem;border:2px solid #b53f59;background:#fff0f3;border-radius:12px;white-space:pre-wrap}#notice{padding:.25rem 1rem;color:#654980;min-height:1.5rem}main{padding:.5rem 1rem}.card,details.category{background:white;border:1px solid var(--border);border-radius:18px;margin-bottom:1rem;padding:1rem;box-shadow:0 2px 5px #4c356307}.cardTint{background:linear-gradient(120deg,#f1eafa,#fff4f7)}.sectionLabel{font-size:.8rem;letter-spacing:.09em;color:#766184;font-weight:700}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.stat{padding:.6rem;border-radius:12px;background:#ffffffa8}.stat strong{display:block;font-size:1.35rem;color:#63497c}.stat span{font-size:.8rem}.progress{width:100%;height:7px;background:#e5deed;border-radius:5px;overflow:hidden;margin:.8rem 0 .2rem}.progress span{display:block;background:#9671af;height:100%}.trackGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.trackCard{text-align:left;padding:.65rem .5rem;min-width:0;font-weight:400}.trackCard strong{display:block;overflow-wrap:anywhere;font-size:.95rem}.trackCard small{display:block;font-size:.8rem}.trackCard.selected{border:2px solid #8760a4;background:#f1eafa}.tag{display:inline-block;border-radius:6px;background:#eee8f5;padding:.1rem .4rem;font-size:.8rem;margin-bottom:.4rem}.sample{background:#f8e6ee;color:#77364f}.scoreGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}.score{padding:.7rem;border-radius:12px}.score strong{display:block;font-size:1.3rem}.score span{font-size:.8rem;font-weight:600}.pink{background:var(--pink)}.blue{background:var(--blue)}.lavender{background:var(--lavender)}.mint{background:var(--mint)}.neutral{background:var(--neutral)}.row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.row>*{flex:1;min-width:0}.row>.noGrow{flex:0 0 auto}.spaced{margin-top:.7rem}.jump{display:flex;gap:.4rem;flex-wrap:wrap;margin:.75rem 0}.jump button{font-size:.875rem;min-height:38px;padding:.35rem .6rem}summary{cursor:pointer;font-weight:700;padding:.1rem}summary small{float:right}.category .items{margin-top:.8rem}.field{border-top:1px solid #e7e0ed;padding:.9rem 0;scroll-margin-top:1rem}.field:first-child{border-top:0}.fieldLabel{display:block;font-weight:600;margin-bottom:.2rem}.guideText{font-size:.875rem;color:#71647c;margin:.3rem 0 .6rem}.hideGuide .guideText{display:none}.answerRow{display:grid;grid-template-columns:1fr 125px;gap:.5rem}.answerRow textarea{grid-column:1/-1}.stateControl{font-size:.875rem}.reason{margin-top:.5rem;width:100%}.favorite{display:flex;gap:.4rem;flex-wrap:wrap}.favorite button[aria-pressed=true]{background:#76598e;color:white}.compact .card,.compact details.category{padding:.7rem;margin-bottom:.65rem}.compact .field{padding:.55rem 0}.compact .guideText{margin:.2rem 0}.compact .trackCard{padding:.4rem}.compact .top{padding-top:.6rem}.locked{border-color:#91b3a3;background:#f7fcf9}.warning{font-size:.875rem;color:#8b334b;background:#fff0f4;border-radius:9px;padding:.7rem}.help{font-size:.875rem;color:#6a5b75}#actionBar{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:.5rem;padding:.65rem max(.6rem,env(safe-area-inset-right)) calc(.65rem + env(safe-area-inset-bottom));background:#fffc;border-top:1px solid var(--border);z-index:5;backdrop-filter:blur(8px)}#actionBar button{max-width:300px;flex:1;font-size:.9rem}.keyboard #actionBar{position:static;background:white;margin:0 1rem;border-radius:12px}.keyboard{padding-bottom:1rem}.tableWrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.875rem}th,td{text-align:left;padding:.65rem;border-bottom:1px solid var(--border);white-space:nowrap}th{color:#705784}.manualOutput{min-height:240px;font-size:.875rem}dialog{max-width:650px;width:calc(100% - 2rem);max-height:85dvh;border:1px solid var(--border);border-radius:18px;padding:1.25rem;color:#30293b}dialog::backdrop{background:#30203b66}#dialogBody{overflow-wrap:anywhere}.dialogActions{display:flex;justify-content:end;gap:.5rem;margin-top:1rem;position:sticky;bottom:0;background:white;padding-top:.5rem}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem}ul{padding-left:1.3rem}.required{color:#8b3f62;font-size:.8rem}.empty{color:#756580}.history{font-size:.875rem}.history pre{max-height:220px;overflow:auto}[hidden]{display:none!important}@media(max-width:600px){.edition{display:none}.top{padding-top:1rem}.utility{gap:.5rem}.utility .toggle{font-size:.8rem}h1{font-size:1.05rem}.stats{grid-template-columns:repeat(2,1fr)}.scoreGrid{grid-template-columns:repeat(2,1fr)}.score strong{font-size:1.15rem}.trackGrid{gap:.35rem}main{padding:.4rem .65rem}.card,details.category{padding:.85rem}.row.mobileStack{display:grid;grid-template-columns:1fr}.stat strong{font-size:1.2rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

progress.progress{display:block;appearance:none;border:0}progress.progress::-webkit-progress-bar{background:#e5deed;border-radius:5px}progress.progress::-webkit-progress-value{background:#9671af;border-radius:5px}progress.progress::-moz-progress-bar{background:#9671af;border-radius:5px}

/* PLC-Q06: tap controls. Fixed borders/marks keep choice geometry stable. */
.choiceGrid{display:grid;gap:.4rem;min-width:0;margin:.4rem 0}
.numericChoices{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}
.numericChoices.fiveChoices{grid-template-columns:repeat(5,minmax(0,1fr))}
.optionChoices{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
.optionChoices.shortChoices{display:flex;flex-wrap:wrap}
.shortChoices>.choiceButton{flex:1 1 70px}
.choiceButton,.stateButton{min-width:44px;min-height:44px;border:2px solid #d7cce2;line-height:1.45;overflow-wrap:anywhere;white-space:normal;touch-action:manipulation}
.choiceButton{padding:.55rem .45rem;display:flex;align-items:center;justify-content:center;gap:.2rem}
.choiceButton>span:last-child{min-width:0;white-space:pre-wrap}
.choiceButton[aria-pressed="true"],.favorite .choiceButton[aria-pressed="true"],.stateButton[aria-pressed="true"]{background:#e9def6;color:#452d61;border-color:#7a559b}
.choiceMark{display:inline-block;visibility:hidden;flex:0 0 auto;font-size:.85em}
.choiceButton[aria-pressed="true"]>.choiceMark{visibility:visible}
.choiceButton:disabled,.stateButton:disabled{opacity:.72;cursor:not-allowed}
.answerStates{display:flex;gap:.4rem;margin-top:.65rem;flex-wrap:wrap}
.answerStates>.stateButton{flex:1 1 70px;padding:.45rem .5rem;font-size:.875rem}
.stateButton[aria-pressed="true"]{font-weight:800;text-decoration:underline;text-underline-offset:.2em}
.fieldState{min-height:1.6em;font-size:.875rem;font-weight:600;color:#68517c}
.fieldLabel,.plainText{white-space:pre-wrap;overflow-wrap:anywhere}
.itemGuide{margin:.25rem 0 .5rem;border:1px solid #e6ddec;border-radius:9px;background:#faf8fc}
.itemGuide>summary{min-height:44px;padding:.55rem .65rem;font-size:.875rem;color:#654980}
.itemGuide>.guideText{margin:0;padding:.3rem .7rem .75rem;line-height:1.75}
.score small{display:block;min-height:2.8em}
.bulkPointPicker{min-width:0}
.favorite>.choiceButton{flex:1 1 90px}
.card,.category,.field{min-width:0}
.card h3,.meta{overflow-wrap:anywhere}
.utility>label:first-child{min-width:0}
.score{min-width:0;overflow-wrap:anywhere}
.jump button{max-width:100%;overflow-wrap:anywhere}
.compact .choiceButton,.compact .stateButton,.compact .itemGuide>summary{min-height:44px}
@media(max-width:600px){.choiceGrid{gap:.3rem}.numericChoices .choiceButton{padding:.5rem .2rem}.answerStates{gap:.3rem}.jump button{min-height:44px}.utility select{min-width:0}}
