.sg-picker{padding:12px;border:1px solid #aac6c6;border-radius:6px;background:white;color:#183d44}.sg-picker h3{font-weight:bold;font-size:21px}.sg-picker label{display:inline-flex;align-items:center;gap:5px;margin:5px}.sg-picker select,.sg-picker input:not([type=checkbox]){border:1px solid #a4b7bd;border-radius:4px;padding:5px;background:white;color:#111}.sg-picker button{background:#147b80;color:white;padding:8px 12px;margin:8px;border-radius:5px}.sg-picker button:disabled{opacity:.5}.sg-card{border-top:1px solid #b8cccc;padding:8px 0}.sg-card>small{display:block}.sg-review{display:flex;flex-wrap:wrap}.sg-review>div{width:210px}.sg-review label{display:flex;justify-content:space-between}.sg-review input{width:105px}.sg-picker [role=alert]{color:#a22}.sg-student{display:flex;flex-direction:row-reverse;align-items:flex-start;gap:2mm;height:82mm;width:max-content;flex-shrink:0;font-size:4.5mm;writing-mode:horizontal-tb}.sg-entries{display:flex;flex-direction:row-reverse;gap:1mm}.sg-entry{width:22mm;height:82mm;display:flex;flex-direction:column;align-items:center;gap:1mm;flex-shrink:0}.sg-char{font-size:7mm;height:10mm;white-space:nowrap;display:flex;align-items:center;justify-content:center}.sg-entry small{font-size:3mm;height:4mm}.sg-sound-answer{width:12mm;height:17mm;border:.2mm solid #879b9f;flex-shrink:0}.sg-code-answer{border:0;height:8mm;font-size:5mm;line-height:8mm}.sg-word-answer{width:20mm;height:40mm;display:flex;flex-direction:column;align-items:center;justify-content:space-between;font-size:6mm;flex-shrink:0}.sg-choices{width:13mm;display:flex;flex-direction:column;gap:2mm;flex-shrink:0}.sg-choices>div{display:flex;gap:.7mm;align-items:center;font-size:4mm}.sg-bopo{position:relative;display:inline-flex;align-items:center;width:5mm;height:8mm;font-size:3mm;line-height:1;font-weight:bold}.sg-body{display:flex;flex-direction:column;align-items:center}.sg-body>span{display:block}.sg-tone{position:absolute;left:65%;top:50%;transform:translateY(-50%)}.sg-neutral{position:absolute;left:20%;top:-1mm}.sg-sheet{width:210mm;min-height:285mm;height:285mm;box-sizing:border-box;padding:6mm 8mm;background:white;color:#142d31;margin-bottom:10px}.sg-sheet header{height:12mm;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;border-bottom:.3mm solid #24464d;font-size:3.5mm}.sg-sheet header strong{font-size:5mm}.sg-sheet article{height:87mm;border-bottom:.2mm solid #aaa;display:flex;flex-direction:column;align-items:flex-end}.sg-sheet article h3{width:100%;font-size:4mm;height:5mm;margin:0;text-align:right}.sg-sheet .sg-student{height:81mm}.sg-student *{box-sizing:border-box}.sg-sheet .sg-entry{height:80mm}.exam-kind-soundgroup .exam-content{flex-direction:row-reverse;align-items:flex-start;justify-content:flex-start;gap:0}.exam-kind-soundgroup .sg-student{height:82mm}.exam-kind-soundgroup .sg-char{font-family:'Iansui','DFKai-SB',serif}.sg-sheet .sg-char{font-family:'DFKai-SB',serif}
@page soundgroup-portrait{size:A4 portrait;margin:0}
@media print{.sg-sheet{page:soundgroup-portrait!important;width:210mm!important;height:285mm!important;padding:6mm 8mm!important;margin:0!important;break-inside:avoid;break-after:page}.sg-sheet:last-child{break-after:auto}.sg-pages{display:block!important}.sg-sheet *{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media print{body.sg-active .sg-print-ancestor{display:block!important;position:static!important;overflow:visible!important;width:auto!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important}body.sg-active .sg-print-ancestor>:not(.sg-print-ancestor):not(.sg-pages){display:none!important}body.sg-active>:not(.sg-print-ancestor){display:none!important}}
.sg-char.sg-context{font-size:4.5mm}
.sg-sheet *{box-sizing:border-box}.sg-sheet .sg-student{width:100%;justify-content:space-between}.sg-sheet .sg-entries{flex:1;justify-content:space-around}.sg-sheet .sg-entry{width:48mm}.sg-sheet .sg-word-answer{width:28mm}
/* Keep items adjacent, while retaining the full writing area. */
.sg-student{gap:1mm}.sg-entries{gap:.5mm}.sg-entry{gap:.5mm}
.sg-sheet .sg-student{width:max-content;justify-content:flex-start}.sg-sheet .sg-entries{flex:none;justify-content:flex-start}.sg-sheet .sg-entry{width:22mm}.sg-sheet .sg-word-answer{width:20mm}
/* Match the question's actual width to its writing columns, without empty side gutters. */
.sg-student{gap:.5mm}.sg-entries{gap:0}.sg-entry,.sg-sheet .sg-entry{width:20mm}.sg-choices{width:10mm}.sg-choices>div{gap:.3mm}.exam-kind-soundgroup{padding:0 .2mm}.exam-group:has(.exam-kind-soundgroup)>h3{padding:0 .2mm}
