:root{--green:#a5661d;--mint:#fff2c8;--text:#3d2d19;--muted:#796b57;--line:#f0e3c7}
.sidebar{background:#fffdf8}.brand-icon{background:#ffe7a2;color:#a5661d}.sidebar nav a.active{background:#fff1c6;color:#925b1d}
.card{border-color:#f2e8d7;box-shadow:0 14px 35px rgba(119,78,22,.07)}.title>i{background:#fff3cc;color:#b17220}
.finished,.required{background:#fff5d9;color:#a66b1e}.tags strong{background:#fff3cf;color:#a66b1e}.child-select{background:#fffdf7;border-color:#f3eadb}
.uploader{border-color:#edc767;background:#fffdf6;color:#ad772e}.tabs button.active{background:#fff0c5;color:#9b611b}.template:hover,.template.selected{border-color:#e9c76e;background:#fffaf0}.template i{color:#d39a3d}
.field-grid input:focus,textarea:focus{border-color:#e6ba53;box-shadow:0 0 0 3px #fff4d7}.phone-course{background:#fff3cf}.phone-course span{color:#ae7626}.home-note{background:#fff5d9}
.actions .preview-button{background:#fff3cf;border-color:#edcf7d;color:#9b611b}.actions #send{background:#a5661d}.tip{background:#fff9e9;border-color:#f3e4bd}.tip i{background:#ffe5a2;color:#b87921}
.brand{padding-left:4px}.brand-icon{width:58px;height:58px;flex:0 0 58px;overflow:hidden;background:#fff7dc;border:2px solid #f4c84f;border-radius:18px;box-shadow:0 8px 18px rgba(179,119,28,.16)}.brand-cow{width:58px;height:58px;object-fit:cover;object-position:center}.brand b{font-size:16px;letter-spacing:.04em;color:#8d581a}.brand small{color:#a88a61}.phone-brand{margin:10px 0 8px;display:flex;align-items:center;justify-content:center;gap:7px}.phone-brand img{width:44px;height:44px;object-fit:cover;border:1px solid #f1cf72;border-radius:13px;background:#fff8df}.phone-brand span{display:grid}.phone-brand b{font-size:11px;letter-spacing:.05em;color:#9a611c}.phone-brand small{font-size:7px;color:#ae936f;margin-top:2px}.phone-date{margin-top:7px}.phone:has(.phone-brand){min-height:595px}
.measurements{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}.measurements label{display:grid;gap:5px;padding:8px 9px;background:#fffaf0;border:1px solid #f3e4c3;border-radius:8px}.measurements label>span{font-size:9px;color:#9a835f}.measurements label>div{display:flex;align-items:center;gap:3px}.measurements input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#6d4918;font-weight:600;font-size:12px;font-family:inherit}.measurements small{font-size:9px;color:#a28e6d}.measurements input[type="date"]{font-size:10px}.phone-child em{display:block;font-size:7px;color:#a89270;font-style:normal;margin-top:4px}.phone-course #previewSchedule{color:#a07e4d;margin-top:4px}@media(max-width:480px){.measurements{grid-template-columns:1fr}.measurements label{grid-template-columns:72px 1fr;align-items:center}.measurements label>span{grid-column:1}.measurements label>div,.measurements label>input{grid-column:2}}
.quick-observe{margin-top:15px;padding:11px;background:#fffaf0;border:1px solid #f3e5c7;border-radius:9px}.quick-observe>span{font-size:10px;color:#8d7048}.quick-observe>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.quick-observe button{border:1px solid #eddaa7;background:#fffdf8;color:#92651f;border-radius:20px;padding:5px 8px;font-size:9px;font-family:inherit;cursor:pointer}.quick-observe button:hover{background:#fff0c8}.feedback-field>span{display:flex;justify-content:space-between}.feedback-field em{font-style:normal;color:#b39d79}.phone-course #previewTraining{color:#8d7b61;margin-top:4px}.phone:has(.phone-brand){min-height:620px}.card-bottom>div{display:flex;gap:12px}.card-bottom button{cursor:pointer}.card-bottom button:first-child{color:#a66720}
.select-wrap{display:grid;gap:4px;min-width:155px}.select-wrap>span{font-size:8px;color:#a18b6c}.select-wrap select,.field-grid select,.history-toolbar select{border:1px solid #efdfbf;border-radius:7px;background:#fffdf8;color:#684819;padding:8px 9px;font-size:10px;font-family:inherit;outline:none}.child-select>div{min-width:170px}.difficulty-field{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:13px;border-top:1px solid #f2e8d5}.difficulty-field>span{font-size:10px;color:#85704f}.difficulty{display:flex;gap:5px}.difficulty button{width:27px;height:27px;border:1px solid #ecd9ac;border-radius:50%;background:#fffdf7;color:#a1742b;font-weight:600;font-size:10px;font-family:inherit;cursor:pointer}.difficulty button.active{background:#a5661d;border-color:#a5661d;color:#fff}.difficulty-label,.difficulty-field small{font-size:9px;color:#a1742b}.status-card{padding-bottom:18px}.status-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:6px;font-size:9px}.status-badge.draft{background:#fff2cb;color:#a6681d}.status-badge.sent{background:#eaf5ee;color:#4d906a}.status-badge.read{background:#e7f1fb;color:#477aa6}.status-badge.withdrawn{background:#f2eeee;color:#987b7b}.status-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:-29px;margin-bottom:17px}.status-actions button{border:1px solid #eeddbd;background:#fffdf9;color:#9b6e2c;border-radius:7px;padding:6px 9px;font-size:9px;font-family:inherit;cursor:pointer}.status-actions button:disabled{opacity:.45;cursor:not-allowed}.history-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#9b8c73;margin-bottom:8px}.history-list{display:grid;gap:6px}.history-item{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #f3ecdf;padding:9px 0}.history-item b,.history-item small{display:block}.history-item b{font-size:10px;color:#5b472c}.history-item small{font-size:8px;color:#9c8d77;margin-top:3px}.empty-history{padding:12px;text-align:center;color:#a3937d;font-size:9px}.parent-card{margin-top:17px;padding:18px}.comment{display:flex;gap:9px;padding:13px 0;border-bottom:1px solid #f3ebdd}.comment-avatar{width:28px;height:28px;border-radius:50%;background:#f8dfb1;color:#9c6b29;display:grid;place-items:center;font-size:11px}.comment b,.comment p,.comment small{display:block}.comment b{font-size:10px}.comment p{font-size:9px;color:#766751;line-height:1.6;margin:4px 0}.comment small{font-size:8px;color:#b0a18d}.reply-row{display:flex;gap:7px;margin-top:11px}.reply-row input{flex:1;border:1px solid #eedfbe;border-radius:7px;background:#fffdf8;padding:8px;font-size:9px;font-family:inherit;outline:none}.reply-row button,.parent-actions button{border:0;border-radius:7px;background:#fff0c5;color:#97611e;padding:0 10px;font-size:9px;font-family:inherit}.parent-actions{display:flex;justify-content:space-between;margin-top:11px}.parent-actions button{padding:7px 9px;border:1px solid #eeddb8;background:#fffaf0}.phone-course small{display:block}.phone-child em{max-width:160px;line-height:1.35}
.recommendation-hint{margin:11px 0 8px;padding:8px 10px;border-radius:8px;background:#fff5d8;color:#a16b24;font-size:9px}.template.recommended{border-color:#efcc78;background:#fffaf0}.template.recommended>span{color:#a66a1e;font-weight:600}
.parent-hidden-state{display:none;position:absolute;inset:72px 14px 14px;z-index:3;align-items:center;justify-content:center;text-align:center;padding:24px;border-radius:16px;background:rgba(255,250,239,.96);color:#95651f;font-size:12px;line-height:1.8}.phone.is-withdrawn .parent-hidden-state{display:flex}.phone.is-withdrawn>*:not(.notch):not(.parent-hidden-state){filter:blur(3px);opacity:.22}.phone.is-withdrawn .parent-hidden-state{filter:none;opacity:1}.teacher-reply{display:flex;gap:9px;padding:13px 0;border-bottom:1px solid #f3ebdd}.teacher-reply b,.teacher-reply p,.teacher-reply small{display:block}.teacher-reply b{font-size:10px}.teacher-reply p{font-size:9px;color:#766751;line-height:1.6;margin:4px 0}.teacher-reply small{font-size:8px;color:#b0a18d}
.parent-empty{padding:14px 0;color:#aa987c;font-size:9px;line-height:1.7}
.role-switch{margin:0 4px 18px;padding:10px;background:#fff8e7;border:1px solid #f3e2b5;border-radius:10px;display:grid;gap:5px}.role-switch span{font-size:8px;color:#a98a59}.role-switch select{border:1px solid #eedbb0;border-radius:6px;background:#fffdf8;color:#765225;padding:7px;font-size:9px;font-family:inherit}.filter-group{display:flex;gap:5px;flex-wrap:wrap}.filter-group select{max-width:115px}.parent-filter{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:8px 0;border-bottom:1px solid #f3ebdd}.parent-filter span{width:100%;font-size:8px;color:#a98a59}.parent-filter select{border:1px solid #eedfbe;border-radius:6px;background:#fffdf8;color:#765225;padding:6px;font-size:8px;font-family:inherit}.admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:17px}.admin-grid button{border:1px solid #eeddb8;background:#fffaf0;color:#97611e;border-radius:8px;padding:10px;font-size:10px;font-family:inherit;text-align:left;cursor:pointer}.admin-grid button:hover{background:#fff0c5}.admin-note{font-size:9px;color:#a58e6f;line-height:1.7;margin:12px 0 0}.phone-watermark{position:absolute;z-index:0;right:-8px;top:125px;transform:rotate(-90deg);font-size:31px;letter-spacing:.08em;color:rgba(214,163,69,.08);font-weight:800;pointer-events:none}.phone-head,.phone-child,.phone-course,.phone-section,.phone footer{position:relative;z-index:1}.phone-child{align-items:flex-start}.phone-child-brand{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:44px;margin-right:4px}.phone-child-brand img{width:39px;height:39px;object-fit:cover;border:1px solid #f1cf72;border-radius:11px}.phone-child-brand span{display:grid;text-align:center}.phone-child-brand b{font-size:6px;color:#9a611c;white-space:nowrap}.phone-child-brand small{font-size:5px;color:#ae936f}.phone-child>div:last-child{flex:1}.phone-child .phone-date{text-align:left;margin:5px 0 0}.parent-mode .sidebar nav,.parent-mode .role-switch~.side-bottom{opacity:.5}.parent-mode .actions{display:none}
.select-wrap input{border:1px solid #efdfbf;border-radius:7px;background:#fffdf8;color:#684819;padding:8px 9px;font-size:10px;font-family:inherit;outline:none}.measurements label input[type="tel"]{width:100%;border:0;background:transparent;color:#6d4918;font-weight:600;font-size:11px;font-family:inherit;outline:0}
.history-toolbar input{border:1px solid #eedfbe;border-radius:6px;background:#fffdf8;color:#765225;padding:6px 8px;font-size:8px;font-family:inherit;min-width:82px}.admin-log{margin-top:15px;padding:10px 11px;border:1px solid #f3e5c7;border-radius:8px;background:#fffdf7}.admin-log b{display:block;font-size:9px;color:#8d7048;margin-bottom:6px}.admin-log p{font-size:8px;color:#a58e6f;margin:4px 0}
.score-card{padding-bottom:18px}.score-help{font-size:9px;color:#a58e6f;background:#fffaf0;border-radius:7px;padding:8px 10px;margin:14px 0 10px}.score-row{display:grid;grid-template-columns:105px 1fr 43px;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #f3ecdf}.score-row>span,.preview-score>span{font-size:9px;color:#765f3d}.score-row>b,.preview-score>b{font-size:9px;color:#a5661d;text-align:right}.score-buttons{display:flex;gap:3px}.score-buttons button{width:22px;height:22px;border:1px solid #ecd9ac;border-radius:5px;background:#fffdf7;color:#a1742b;font-size:9px;font-family:inherit;cursor:pointer}.score-buttons button.active{background:#a5661d;border-color:#a5661d;color:#fff}.remark-field{margin-top:14px}.remark-field textarea{height:58px}.remark-field em{font-style:normal;color:#b39d79;font-size:8px}.score-section{margin-top:6px}.score-note{display:block;font-size:7px;color:#ae936f;line-height:1.5;margin-top:4px}.preview-score{display:grid;grid-template-columns:72px 1fr 36px;align-items:center;gap:5px;margin-top:8px}.score-track{height:6px;background:#f5e8c5;border-radius:10px;overflow:hidden}.score-track i{display:block;height:100%;background:#d6a345;border-radius:10px}@media(max-width:480px){.score-row{grid-template-columns:1fr 43px}.score-buttons{grid-column:1 / -1}.score-row>b{grid-column:2;grid-row:1}.preview-score{grid-template-columns:67px 1fr 35px}}
.remark-preview{font-size:9px;line-height:1.7;color:#7b6647;background:#fffaf0;border-radius:8px;padding:8px 9px;margin:7px 0 0}
.admin-import-summary{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 10px;margin:18px 0 4px;padding:14px 16px;border:1px solid #f0e2c5;border-radius:11px;background:#fffaf0}.admin-import-summary b{grid-row:1 / 3;font-size:27px;color:#9a681e}.admin-import-summary span{font-size:11px;font-weight:700;color:#624a2b}.admin-import-summary small{font-size:9px;color:#9f8f77}.admin-table-note{margin:9px 3px 0;color:#998b75;font-size:9px}.admin-table #adminStudentRows>.admin-table-row:first-child{border-top:1px solid #edf0ed}.admin-table #adminStudentRows .empty-history{padding:24px}.measurements #childAge{font-size:11px}.phone-course #previewCourseTheme{line-height:1.5;margin-top:4px}

/* v22 typography: keep parent view, preview and all form controls on one font system. */
:root{--font-ui:"Noto Sans SC","PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif}
html,body,button,input,select,textarea{font-family:var(--font-ui)!important}
body{font-synthesis:none}
button,input,select,textarea{font-variant-numeric:tabular-nums}

/* v22 follow-up: the six child-information values share one visual treatment. */
.measurements input,
.measurements select,
.measurements input[readonly]{
  font-family:var(--font-ui)!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.4!important;
  color:#6d4918!important;
  opacity:1!important;
}
.measurements input[readonly]{background:#f7f4ec;color:#6d4918!important}
