:root{font-family:Inter,'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;color:#233247;background:#f5f7fa;font-size:16px;line-height:1.65;--navy:#172c42;--yellow:#ffcf50;--muted:#66768a;--line:#dfe5ed;--blue:#315fc1}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-underline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,.btn{border:1px solid var(--line);background:white;color:var(--navy);padding:.6rem 1rem;border-radius:9px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;font-weight:650;font-size:.9rem;line-height:1.5}button:hover,.btn:hover{border-color:#8193a9;background:#f0f4f9}.primary{background:var(--yellow);border-color:var(--yellow);color:var(--navy)}.primary:hover{background:#f4c03e}.dark{background:var(--navy);border-color:var(--navy);color:white}.dark:hover{background:#284762;color:white}.quiet{background:transparent;border-color:transparent}.danger{color:#9d3848}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #3977dc;outline-offset:3px}.skip{position:absolute;top:-80px;background:white;padding:1rem;z-index:10}.skip:focus{top:0}#header{background:white;border-bottom:1px solid var(--line);padding:1rem 3vw;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;font-size:1.2rem;font-weight:800;line-height:1.25}.brand-mark{display:block;width:48px;height:48px;object-fit:contain;border-radius:8px;flex-shrink:0}.footer-brand img{display:block;width:144px;height:auto}.contact-logo{display:block;width:min(280px,100%);height:auto;margin:0 auto 1.5rem}footer{align-items:center}.brand small{display:block;font-size:.66rem;letter-spacing:.11em;margin-top:5px}nav{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}nav a{font-size:.9rem;text-decoration:none;padding:.45rem .65rem;border-radius:7px}nav a.active{background:#eaf0fa;color:#274e98;font-weight:700}.account{display:flex;gap:.7rem;align-items:center;font-size:.85rem}.account span{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.site-main{max-width:1240px;margin:auto;padding:2.5rem 3vw 4rem;min-height:72vh}.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:2rem;padding:3rem 0 3.5rem;align-items:center}.eyebrow{font-size:.8rem;letter-spacing:.13em;color:var(--blue);font-weight:750;text-transform:uppercase;margin-bottom:.8rem}.hero h1{font-size:clamp(2.2rem,4vw,3.8rem);line-height:1.28;letter-spacing:-.04em;margin:.5rem 0 1.3rem;color:var(--navy)}.hero h1 em{font-style:normal;box-shadow:inset 0 -.28em var(--yellow)}.hero p{max-width:600px;color:var(--muted);font-size:1.05rem}.hero-panel{background:var(--navy);color:white;padding:2rem;border-radius:18px;box-shadow:12px 12px 0 #ffcf50}.hero-panel .eyebrow{color:var(--yellow)}.steps{list-style:none;padding:0;margin:0}.steps li{display:flex;gap:1rem;padding:.9rem 0;border-bottom:1px solid #ffffff24}.steps li:last-child{border:none}.steps b{color:var(--yellow);font-size:1.3rem}.steps p{font-size:.9rem;color:#d1dce8;margin:0}.steps strong{font-size:1rem}.actions{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}.heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1.7rem}.heading h1{font-size:1.9rem;line-height:1.3;margin:0 0 .5rem;letter-spacing:-.03em}.heading h2{margin:0;font-size:1.45rem}.heading p{margin:0;color:var(--muted)}h2{font-size:1.3rem}h3{font-size:1.1rem}p{margin:.5rem 0 1rem}.muted{color:var(--muted)}.small{font-size:.875rem}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:1.5rem;min-width:0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-card{display:flex;flex-direction:column}.teacher-card p{color:var(--muted)}.teacher-card .bio{flex:1}.person{display:flex;gap:.8rem;align-items:center;margin-bottom:1rem}.person h3{margin:0}.avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#eaf0fa;color:var(--blue);font-weight:800;font-size:1.2rem;flex-shrink:0}.tags{display:flex;gap:.4rem;flex-wrap:wrap;margin:.7rem 0}.tag,.badge{font-size:.8rem;padding:.22rem .55rem;border-radius:5px;background:#edf2f8;color:#4b607a;display:inline-block;white-space:nowrap}.badge.warn{background:#fff1cd;color:#805b00}.badge.ok{background:#e5f3ed;color:#21684f}.badge.alert{background:#fce9ec;color:#9b3349}.card-foot{border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}.card-foot strong{font-size:1.15rem}.toolbar{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;margin-bottom:1.25rem}.toolbar input,.toolbar select{width:auto;max-width:100%}.toolbar input[type=search]{flex:1;min-width:180px}.section{margin-top:3rem}.empty{text-align:center;padding:3rem 1.2rem;color:var(--muted);background:white;border:1px dashed #c9d3df;border-radius:12px}.empty strong{display:block;font-size:1.1rem;color:var(--navy);margin-bottom:.5rem}.empty p{margin-bottom:1rem}.story{max-width:800px;margin:2rem auto}.story h1{font-size:2.7rem;line-height:1.4}.story p{font-size:1.1rem;line-height:1.95}.quote{border-left:5px solid var(--yellow);padding:1rem 1.5rem;background:white;font-weight:700;font-size:1.3rem;margin:2rem 0}.portal{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:80vh}.sidebar{background:var(--navy);color:white;padding:1.8rem 1rem;display:flex;flex-direction:column;gap:1.25rem}.sidebar small{color:#b0c0d3;padding:0 .7rem;letter-spacing:.07em}.sidebar nav{display:flex;flex-direction:column;align-items:stretch}.sidebar nav a{padding:.7rem 1rem;color:#cbd7e5;border-radius:8px;font-size:.95rem}.sidebar nav a.active{background:var(--yellow);color:var(--navy)}.side-foot{margin-top:auto;border-top:1px solid #ffffff25;padding:1.2rem .7rem;color:#cbd7e5;font-size:.85rem}.portal main{padding:2rem clamp(1rem,3vw,3rem);min-width:0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1.7rem}.stat{background:white;border:1px solid var(--line);padding:1.25rem;border-radius:12px}.stat span{color:var(--muted);font-size:.9rem;display:block}.stat strong{font-size:2rem;line-height:1.6;color:var(--navy)}.stat small{color:var(--muted)}.stack{display:flex;flex-direction:column;gap:1rem}.list-row{padding:1rem 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:1rem}.list-row:first-child{padding-top:0}.list-row:last-child{border-bottom:none;padding-bottom:0}.list-row strong{display:block}.list-row p{font-size:.9rem;margin:.2rem 0;color:var(--muted)}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:white}table{width:100%;border-collapse:collapse;font-size:.9rem;text-align:left}th{background:#f0f3f8;color:#55677e;font-size:.8rem;white-space:nowrap;padding:1rem}td{padding:1rem;border-top:1px solid var(--line);vertical-align:top}td small{display:block;color:var(--muted)}td .actions{min-width:120px}.nowrap{white-space:nowrap}.note{background:#eef3fb;padding:1rem 1.2rem;border-radius:9px;color:#415c80;margin:1rem 0;font-size:.9rem}.notice{background:#fff3d4;border-left:3px solid #d19a13;padding:1rem;margin:1rem 0;color:#755619}.money{font-variant-numeric:tabular-nums;font-weight:650}.form-page{max-width:720px;margin:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-grid .full{grid-column:1/-1}label{display:block;font-weight:650;font-size:.9rem;margin-bottom:.35rem}input,select,textarea{display:block;width:100%;border:1px solid #bfcbd9;background:white;color:var(--navy);border-radius:7px;padding:.65rem .75rem;min-width:0}textarea{min-height:90px;resize:vertical}input[type=checkbox]{width:20px;height:20px;display:inline-block;flex-shrink:0}.check{display:flex;align-items:flex-start;gap:.6rem;font-weight:400}.help{font-size:.8rem;color:var(--muted);margin-top:.3rem}.form-actions{display:flex;justify-content:flex-end;gap:.7rem;margin-top:1.5rem;border-top:1px solid var(--line);padding-top:1rem}.error{color:#962f41;background:#fff0f2;padding:.7rem;border-radius:7px;font-size:.9rem}.error:empty{display:none}.error a{color:inherit}dialog{border:0;border-radius:16px;box-shadow:0 25px 80px #12243850;padding:0;width:min(680px,calc(100% - 28px));max-height:90vh;color:var(--navy)}dialog::backdrop{background:#13273b88}dialog .modal-head{display:flex;justify-content:space-between;align-items:center;padding:1.2rem 1.6rem;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}dialog h2{margin:0}dialog form{padding:1.5rem}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:.85rem 1.4rem;border-radius:10px;box-shadow:0 5px 20px #0002;z-index:100;max-width:90%;display:none}#toast.show{display:block}.report{background:#fff;padding:2rem;border:1px solid var(--line);border-radius:12px}.report-top{display:flex;justify-content:space-between;border-bottom:3px solid var(--yellow);padding-bottom:1rem;gap:1rem}.report h2{margin:.2rem 0}.report-hours{font-size:2.8rem;font-weight:800;color:var(--navy);margin:1.2rem 0}.report-hours span{font-size:1rem;font-weight:400;color:var(--muted)}.report dl{display:grid;grid-template-columns:110px 1fr;gap:.6rem 1rem}.report dt{color:var(--muted)}.report dd{margin:0}.report ul{padding-left:1.2rem}.report li{margin:.5rem 0}.section-title{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin:1.5rem 0 .8rem}.section-title h2{margin:0}footer{padding:1.5rem 3vw;border-top:1px solid var(--line);background:white;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.8rem;color:var(--muted)}footer a{text-decoration:none}.hidden{display:none}.wrap{overflow-wrap:anywhere;white-space:pre-wrap}.contact-card{max-width:680px;margin:2rem auto;padding:3rem;text-align:center}.contact-card .avatar{margin:0 auto 1rem;width:64px;height:64px;background:var(--yellow);font-size:2rem}.signin{padding:3rem;max-width:650px;margin:2rem auto}.signin h1{font-size:1.7rem}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal{grid-template-columns:190px minmax(0,1fr)}.hero{gap:1.3rem}.hero-panel{padding:1.4rem}}@media(max-width:720px){#header{padding:1rem}.brand{font-size:1.1rem}#header nav{order:3;width:100%;border-top:1px solid var(--line);padding-top:.65rem;gap:0;justify-content:space-between}.account span{display:none}.site-main{padding:1.5rem 1rem 3rem}.hero{grid-template-columns:1fr;padding:1.5rem 0 2.5rem}.hero-panel{margin-right:12px}.hero h1{font-size:2.5rem}.grid,.grid.two{grid-template-columns:1fr}.portal{display:block}.sidebar{padding:.75rem 1rem;gap:.4rem}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:.25rem}.sidebar nav a{padding:.45rem .7rem;font-size:.85rem}.sidebar small,.side-foot{display:none}.portal main{padding:1.5rem 1rem}.heading{flex-direction:column}.heading h1{font-size:1.6rem}.stats{gap:.6rem}.stat{padding:.85rem}.stat strong{font-size:1.6rem}.stat span{font-size:.8rem}.card{padding:1.1rem}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.report{padding:1.1rem}.report-top{flex-direction:column}.report dl{grid-template-columns:85px 1fr}.story h1{font-size:2rem}.contact-card,.signin{padding:1.5rem}.list-row{flex-wrap:wrap}.toolbar{align-items:flex-start}.toolbar label{width:100%}td,th{padding:.8rem}.card-foot{flex-wrap:wrap}}@media print{#header,.sidebar,footer,.toolbar,.heading .actions,button,#toast{display:none!important}.portal{display:block}.portal main{padding:0}.report{border:0}.report,.card{break-inside:avoid}body{background:white}}

.form-actions{flex-wrap:wrap}.signin .form-grid{margin:1.5rem 0}dialog td{overflow-wrap:anywhere}.report .wrap{white-space:pre-wrap} @media print{.form-actions{display:none!important}}

.subject-label{display:block;font-weight:600;margin-bottom:8px}.subject-picker{position:relative}.subject-picker summary{cursor:pointer;border:1px solid #bccbdf;border-radius:8px;padding:12px 14px;background:#fff;min-height:48px;overflow-wrap:anywhere}.subject-picker summary:focus-visible{outline:2px solid #315da8;outline-offset:2px}.subject-picker summary[aria-invalid="true"]{border-color:#b42318}.subject-options{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:10;max-height:300px;overflow-y:auto;background:#fff;border:1px solid #bccbdf;border-radius:8px;box-shadow:0 8px 24px #20314a1a;padding:8px}.subject-options .check{display:flex;align-items:center;gap:10px;margin:0;padding:10px;min-height:44px;cursor:pointer}.subject-options .check:hover{background:#eef3fb}.subject-options input[type="checkbox"]{width:18px;height:18px;margin:0;flex:none}

.availability-day{border:0;border-bottom:1px solid #e2e8f0;margin:0;padding:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.availability-day:last-child{border-bottom:0}.availability-day legend{font-weight:600;padding:0 10px}.availability-day .check{padding:8px 4px;gap:6px}

.line-add-image{height:36px;width:auto;border:0}

.teacher-photo{width:88px;height:88px;object-fit:cover;border-radius:14px;flex-shrink:0}.teacher-photo.compact{width:48px;height:48px;display:block;margin-bottom:8px}.teacher-photo.preview{width:140px;height:140px;display:block;margin:12px 0}.teacher-photo[hidden]{display:none}.public-prices{font-size:.9rem}.public-prices small{margin-left:4px}.teacher-pricing{border:1px solid var(--line);border-radius:10px;margin:0;padding:1rem;min-width:0}.teacher-pricing legend{font-weight:700}.price-row{display:grid;grid-template-columns:3rem 1fr 1fr;gap:12px;align-items:end;margin:12px 0}.price-row[hidden]{display:none}.price-row h3{margin:0 0 10px;font-size:1rem}@media(max-width:540px){.price-row{grid-template-columns:1fr}.price-row h3{margin:0}.teacher-photo{width:72px;height:72px}}

/* Compact teacher directory: blue subjects, neutral grades, gold personality tags. */
.tutor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:start}.tutor-grid .teacher-card{padding:1.1rem;display:flex;flex-direction:column;gap:.75rem}.teacher-card .person{gap:.8rem;margin:0;align-items:center}.teacher-card .teacher-photo,.teacher-card .avatar{width:96px;height:96px;border-radius:12px}.teacher-heading{min-width:0}.teacher-card h3{margin:0;font-size:1.15rem}.teacher-education{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.availability{display:block;font-size:.875rem;color:#286448;font-weight:650;margin-top:.2rem}.availability.full-capacity{color:#b42318}.teacher-card .tags{gap:.35rem;margin:0}.teacher-card .tag{font-size:.875rem;padding:.15rem .5rem;border-radius:6px;white-space:normal;overflow-wrap:anywhere}.tag.tag-subject{background:#eaf1fc;color:#294f89}.tag.tag-grade{background:#f0f2f5;color:#526073}.tag.tag-trait{background:#fff4d5;color:#735719}.teacher-motto{font-size:1rem;color:var(--navy);border-left:3px solid var(--yellow);padding-left:.65rem;margin:0;overflow-wrap:anywhere}.teacher-details{border-top:1px solid var(--line);padding-top:.65rem;font-size:.875rem}.teacher-details summary{cursor:pointer;color:var(--blue);padding:.2rem 0}.teacher-details summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.teacher-detail-body{padding-top:.7rem}.teacher-detail-body .bio{font-size:1rem;min-height:0;margin:.6rem 0}.teacher-card .card-foot{margin:0;padding:.7rem 0 0;gap:.5rem;align-items:center;flex-wrap:wrap}.price-from small{font-size:.875rem;color:var(--muted);display:block}.teacher-traits{margin:0;padding:1rem;border:1px solid var(--line);border-radius:10px;min-width:0}.teacher-traits legend{font-weight:700}.trait-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.photo-crop{padding:1rem;background:#f5f7fa;border:1px solid var(--line);border-radius:12px;margin:1rem 0}.photo-crop canvas{display:block;width:min(300px,100%);height:auto;aspect-ratio:1;touch-action:none;cursor:grab;border-radius:0;background:#fff;margin:0 auto 1rem}.photo-crop canvas:active{cursor:grabbing}.photo-crop canvas:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.photo-crop input[type=range]{padding:0;min-height:44px;accent-color:var(--blue)}#crop-zoom-value{float:right;color:var(--muted)}#recrop-photo{margin:.6rem 0}[hidden]{display:none!important}
@media(max-width:1050px){.tutor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.tutor-grid{grid-template-columns:1fr}.trait-inputs{grid-template-columns:1fr}}

.teacher-card .teacher-bio-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:1rem;line-height:1.65;margin:0;flex:none}.teacher-details .details-collapse,.teacher-details[open] .details-expand{display:none}.teacher-details[open] .details-collapse{display:inline}

.request-status{flex-shrink:0}.request-status .badge{font-size:1rem;font-weight:700;padding:.5rem .85rem;border-radius:8px}.case-number{justify-content:center;margin:1.25rem 0;flex-wrap:wrap}

.social-links{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;align-items:center}.social-links a{padding:.5rem 0;color:var(--navy)}.teacher-filters{margin-bottom:1rem}.teacher-filters fieldset{border:0;padding:0;margin:1rem 0}.teacher-filters legend{font-weight:650;margin-bottom:.5rem}.filter-tags{display:flex;flex-wrap:wrap;gap:.5rem}.filter-tag{cursor:pointer;margin:0}.filter-tag input{position:absolute;opacity:0;width:1px;height:1px}.filter-tag span{display:block;padding:.4rem .8rem;border-radius:8px;border:1px solid var(--line);background:#f0f2f5;color:#526073}.filter-tag input:checked+span{background:#eaf1fc;border-color:var(--blue);color:#294f89}.filter-tag input:focus-visible+span{outline:3px solid var(--blue);outline-offset:2px}

footer .social-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:50%;background:#f0f2f5;color:var(--navy);flex-shrink:0}footer .social-icon:hover{background:#eaf1fc}footer .social-icon:focus-visible{outline:3px solid var(--blue);outline-offset:3px}footer .social-line{color:#06a546}footer .social-instagram{color:#b23170}footer .social-facebook{color:#1877f2}footer .social-threads{color:#222}footer{align-items:center}.social-links{gap:.6rem}

.footer-social-group{display:flex;align-items:center;gap:.6rem;flex-wrap:nowrap;direction:ltr}.footer-social-group .social-links{flex-wrap:nowrap}

.tutor-map{display:block;width:100%;height:760px;border:0;border-radius:16px;background:#fff}#header nav{flex-wrap:wrap}@media(max-width:720px){#header nav{justify-content:flex-start;gap:.25rem .5rem}.tutor-map{height:760px}}

.teacher-section-nav{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1.8rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}

.course-section,.feedback-history{margin-top:2rem;margin-bottom:2rem}.course-card h3{margin:0 0 .8rem}.course-card p{margin:.5rem 0 1rem}.course-card .btn{margin-top:.3rem}.completed-trials{padding:1rem 1.2rem;border:1px solid var(--line);border-radius:12px;background:#fff;margin:2rem 0}.completed-trials>summary{cursor:pointer;font-weight:650;color:var(--muted);padding:.3rem 0}.completed-trials[open]>summary{margin-bottom:1rem}.side-foot{font-size:.78rem;line-height:1.65;font-weight:400;padding:1rem .7rem}.side-foot p{margin:0 0 .65rem}.side-foot button{font-size:.8rem;min-height:36px;padding:.4rem .85rem;margin-top:.2rem;border-radius:8px}

.admin-portal .section{margin:1.5rem 0 2rem}.admin-portal .heading{margin-bottom:1.5rem}.admin-portal td{vertical-align:middle}.admin-portal td:first-child,.admin-portal td button,.admin-portal td .badge{white-space:nowrap}.admin-portal td button{padding:.5rem .75rem;font-size:.85rem}.admin-portal table{min-width:760px}.admin-portal .feedback-history table{min-width:980px}.feedback-history td:nth-child(4){white-space:nowrap}.admin-portal .request-status{display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;flex-shrink:0}.compact{font-size:.8rem;padding:.35rem .6rem}.settlement-actions{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;min-width:110px}.salary-detail-body{padding:1.3rem;overflow-x:auto}.salary-detail-body table{min-width:540px}.salary-detail-body td:first-child,.salary-detail-body td:nth-child(n+3){white-space:nowrap}.admin-portal .list-row .btn{white-space:nowrap;flex-shrink:0}@media(max-width:720px){.admin-portal .request-status{flex-direction:row;align-items:center}.admin-portal .list-row{gap:.7rem}}

.sync-panel{max-width:880px;display:grid;gap:1.25rem}.sync-panel li{margin:.8rem 0}.sync-panel h2{margin-top:0}.sync-panel form button{margin-top:1rem}#sync-copy{width:100%;font-family:monospace;font-size:.875rem;word-break:break-all}

.teacher-order-list{list-style:none;padding:0;margin:1rem 0}.teacher-order-list li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.85rem 0;border-bottom:1px solid var(--line)}.order-person{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.teacher-order-list button{padding:.45rem .75rem;min-height:44px}.teacher-order-list .actions{gap:.4rem}

.teacher-order-list .order-handle{touch-action:none;cursor:grab;font-size:1.6rem;min-width:44px;user-select:none}.teacher-order-list .order-dragging{background:#eaf0fa;outline:2px solid var(--blue);border-radius:8px}.teacher-order-list .order-dragging .order-handle{cursor:grabbing}

.performance-charts{display:grid;grid-template-columns:1fr 1.2fr;gap:1.25rem;margin:1.25rem 0}.performance-charts h2{margin-bottom:1rem}.performance-pie-row{display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap}.performance-pie{width:180px;height:180px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.performance-pie>div{background:white;width:126px;height:126px;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.3rem}.performance-pie strong{font-size:1.15rem}.performance-legend p{display:grid;grid-template-columns:12px 1fr;align-items:center;gap:.5rem}.performance-legend span{width:10px;height:10px;border-radius:50%}.performance-legend strong{grid-column:2}.performance-bars{display:flex;gap:1rem;justify-content:space-around;min-height:230px;align-items:end}.performance-bar-column{flex:1;min-width:0;text-align:center;display:grid;gap:.5rem}.performance-bar-column strong{font-size:.875rem;overflow-wrap:anywhere}.performance-bar-track{height:140px;display:flex;align-items:end}.performance-bar-track>div{width:100%;border-radius:5px 5px 0 0;min-height:0}.performance-bar-column small{font-size:.875rem}@media(max-width:800px){.performance-charts{grid-template-columns:1fr}.performance-bars{gap:.5rem}.performance-pie-row{justify-content:center}}

.performance-pie-summary{display:flex;flex-direction:column;align-items:center;gap:.35rem}.performance-pie-summary>strong{font-size:1.25rem}.performance-pie{display:block;width:200px;height:200px;max-width:100%}.performance-legend .profit-color-0{background:#e9b83d}.performance-legend .profit-color-1{background:#638bd3}.performance-legend strong small{font-weight:400;color:var(--muted);margin-left:.5rem}.performance-bar-track{display:block;width:100%;height:140px}

.case-comments{border-top:1px solid var(--line);margin-top:1rem;padding-top:1rem}.case-comments>summary{cursor:pointer;font-weight:650;padding:.5rem 0}.case-comment{border-bottom:1px solid var(--line);padding:1rem 0}.case-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.5rem 0}.case-comment small{color:var(--muted)}

/* Student and family workspace */
.family-balance{display:flex;align-items:baseline;gap:.65rem;margin:1.5rem 0;color:var(--ink,#252525)}
.family-balance strong{font-size:2.5rem;line-height:1.1}.family-course-numbers{display:flex;flex-wrap:wrap;gap:1.2rem;border-top:1px solid #ddd;padding-top:1rem}.family-course-numbers span{font-size:.875rem}.family-course-numbers strong{display:block;margin-top:.4rem;font-size:1rem}.family-feedback-list{display:grid;gap:1rem}.family-observations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.family-observations dt{font-size:.875rem;color:#626262}.family-observations dd{margin:.4rem 0;font-weight:600}.family-note{background:#fff7d9;padding:1rem;border-radius:.65rem}.review-stars{color:#987000;font-size:1.8rem;letter-spacing:.1em}.star-picker>div{display:flex;flex-wrap:wrap;gap:.6rem}.star-picker label{cursor:pointer;display:block}.star-picker input{accent-color:#987000}.star-picker span{display:inline-block;padding:.5rem;border:1px solid #bbb;border-radius:.5rem;color:#705500}.star-picker small{display:block;color:#333}.star-picker input:checked+span{background:#ffe9a3;border-color:#705500}.star-picker input:focus-visible+span{outline:2px solid #333;outline-offset:3px}.family-course h2{margin-top:.5rem}
@media(max-width:600px){.family-observations{grid-template-columns:1fr}.family-balance strong{font-size:2rem}.star-picker>div{display:grid;grid-template-columns:1fr 1fr}.family-feedback-list .list-row{align-items:flex-start;flex-wrap:wrap}}

.request-line-notice{padding:1.25rem;background:#fff1f2;border:2px solid #be123c;border-radius:.8rem;margin-bottom:1.5rem}.request-line-notice h2,.request-line-notice strong,.request-line-alert{color:#9f1239}.request-line-notice h2{font-size:1.25rem;margin-bottom:.7rem}.request-line-notice p{margin:.6rem 0;line-height:1.65}.line-primary{background:#087c35!important;color:white!important;border-color:#087c35!important;min-height:48px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.request-next-step{max-width:680px;margin:1.5rem auto}.request-next-step h1{margin:.8rem 0;font-size:clamp(1.8rem,5vw,2.6rem)}.request-line-alert{background:#fff1f2;border-left:4px solid #be123c;padding:1rem;line-height:1.65}.request-next-steps{padding-left:1.5rem;line-height:1.8;margin:1.25rem 0}.request-next-step textarea{width:100%;margin:.5rem 0 1rem}.request-line-main{width:100%;padding:1rem;font-size:1rem;white-space:normal}.request-next-step .actions{flex-wrap:wrap}
.map-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.map-filters label{display:block}.map-filters .check{display:flex;align-items:center;gap:.5rem}.map-filters input:not([type=checkbox]),.map-filters select{width:100%}.map-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:1.5rem;align-items:start}.map-panel{position:sticky;top:1rem;min-width:0}#tutor-map-canvas{height:480px;border-radius:16px;border:1px solid var(--line);background:#e8edf2;z-index:0}.map-location-marker{background:var(--navy);color:#fff;border:3px solid white;border-radius:50%;box-shadow:0 2px 8px #172c4250;text-align:center;line-height:32px;font-size:16px;font-weight:700}.map-location-marker.area{background:#916319;border-radius:9px}.map-legend{display:flex;gap:1rem;flex-wrap:wrap;font-size:14px}.map-legend span{display:flex;align-items:center;gap:.4rem}.map-legend i{width:12px;height:12px;background:var(--navy);border-radius:50%}.map-legend i.area{background:#916319;border-radius:3px}.map-teacher-entry{margin-bottom:1.4rem}.map-teacher-entry .tutor-grid{grid-template-columns:minmax(0,1fr)}.map-teacher-location{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem;flex-wrap:wrap;font-size:14px}.map-teacher-location button{padding:.35rem .7rem}.map-station-options{max-height:300px;overflow:auto}.map-panel summary{cursor:pointer}.map-panel .actions{margin-top:.7rem}.leaflet-popup-content{font-family:inherit;font-size:14px}.leaflet-popup-content p{margin:.6rem 0}.leaflet-container a{color:#315fc1}.leaflet-control-zoom a{color:var(--navy)}
@media(max-width:800px){.map-layout{grid-template-columns:minmax(0,1fr)}.map-panel{position:static}.map-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#tutor-map-canvas{height:370px}}
@media(max-width:420px){.map-filters{grid-template-columns:minmax(0,1fr)}#tutor-map-canvas{height:330px}}

.daily-requests{margin:1.25rem 0}.daily-requests .heading{flex-wrap:wrap}.daily-requests h2{margin:0}.daily-request-scroll{overflow-x:auto;padding:.75rem 0}.daily-request-bars{display:flex;gap:.5rem;min-width:980px;align-items:end}.daily-request-column{flex:1;text-align:center;display:flex;flex-direction:column;gap:.5rem;min-width:24px}.daily-request-column svg{display:block;width:100%;height:140px}.daily-request-column strong,.daily-request-column span{font-size:.875rem}

.family-center-intro{margin:1.25rem 0 1.75rem}.family-center-intro h2{font-size:1.2rem;line-height:1.5;margin:0 0 .5rem}.family-center-intro dl{display:grid;gap:1rem;margin:1.25rem 0}.family-center-intro dl>div{padding-left:1rem;border-left:3px solid var(--yellow,#ffcf50)}.family-center-intro dt{font-weight:700;font-size:1rem}.family-center-intro dd{margin:.3rem 0 0;line-height:1.7;color:#526173}

/* Outlined five-star rating, shared by picker and submitted reviews. */
.review-stars{display:flex;align-items:center;gap:12px;letter-spacing:normal}.rating-star{display:block;width:44px;height:44px;fill:none;stroke:#858c90;stroke-width:3.4;stroke-linejoin:round;stroke-linecap:round}.rating-star.filled{fill:#ffd34d;stroke:#b88a16}.star-picker>.rating-inputs{display:flex;flex-direction:row-reverse;justify-content:flex-end;flex-wrap:nowrap;gap:14px;position:relative}.rating-inputs>input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.rating-inputs>label{padding:4px;cursor:pointer;border-radius:6px}.rating-inputs .rating-star{width:52px;height:52px}.rating-inputs>input:checked~label .rating-star{fill:#ffd34d;stroke:#b88a16}.rating-inputs>input:focus-visible+label{outline:2px solid #705500;outline-offset:3px}@media(hover:hover){.rating-inputs:has(label:hover) .rating-star{fill:none;stroke:#858c90}.rating-inputs>label:hover .rating-star,.rating-inputs>label:hover~label .rating-star{fill:#ffd34d;stroke:#b88a16}}@media(max-width:420px){.star-picker>.rating-inputs{gap:8px}.rating-inputs .rating-star{width:42px;height:42px}}

.traffic-counter{font-size:.85rem;color:var(--muted,#63717b);white-space:nowrap}.traffic-counter[hidden]{display:none}.traffic-chart{display:flex;gap:8px;overflow-x:auto;padding:18px 0 12px;margin-bottom:18px}.traffic-chart-day{flex:1;min-width:34px;text-align:center}.traffic-chart-track{height:130px;display:flex;align-items:flex-end;justify-content:center;background:#f4f7f8;border-radius:4px}.traffic-chart-track>span{display:block;width:70%;background:#2d7588;border-radius:4px 4px 0 0}.traffic-chart-number{display:block;font-size:.75rem;margin-bottom:6px}.traffic-chart-day small{font-size:.65rem;white-space:nowrap}.traffic-chart+details summary{cursor:pointer;padding:8px 0}@media(max-width:600px){.traffic-chart-track{height:100px}.traffic-counter{white-space:normal}}

/* Reserve the same summary space for every teacher; details expand on demand. */
.tutor-grid .teacher-card>.person{height:7.5rem;flex:none;overflow:hidden}.teacher-card .person h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}.teacher-card .person .teacher-education{line-height:1.5;height:3em}.teacher-card>.teacher-teaching-preview{height:3.6rem;overflow:hidden;align-content:flex-start;flex:none}.teacher-card>.teacher-bio-preview{height:4.95em;flex:none}.teacher-card>.teacher-details{flex:none}.teacher-card>.teacher-details>summary{line-height:1.65;white-space:nowrap}.teacher-card>.card-foot{min-height:4.5rem;flex-wrap:nowrap;flex:none;margin-top:auto}.teacher-card>.card-foot .btn{white-space:nowrap;padding:.6rem .75rem}.teacher-detail-body .teacher-motto{margin:.7rem 0}.teacher-detail-body .tags{margin:.6rem 0}.teacher-detail-body .bio{display:block;overflow:visible;-webkit-line-clamp:unset}


.preferred-case-alert{background:#fff4d9;border:2px solid #a6570b;border-radius:16px;padding:20px;margin-bottom:24px;color:#663600}.preferred-case-alert>strong{font-size:1.25rem}.preferred-case-alert p,.preferred-case-label p{margin:8px 0 12px}.preferred-request{border:2px solid #a6570b;box-shadow:0 4px 16px #a6570b18;scroll-margin-top:100px}.preferred-case-label{background:#fff4d9;border-left:5px solid #a6570b;border-radius:8px;padding:16px;margin:12px 0;color:#663600}.preferred-case-label strong{font-size:1.1rem}.preferred-case-alert .actions{flex-wrap:wrap}.preferred-case-alert button{white-space:normal}


/* Homepage teachers and floating testimonial bubbles. */
.home-teachers-more{text-align:center;margin:2rem 0 3rem}.home-teachers>.tutor-grid{align-items:stretch}.testimonial-section{padding:2.5rem 1.5rem;border-radius:24px;background:linear-gradient(135deg,#edf3ff,#fff8df);overflow:hidden}.testimonial-section h2{margin-bottom:.4rem}.testimonial-controls{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.testimonial-switch{display:flex;border:1px solid #d5dfee;border-radius:14px;padding:4px;background:#fff}.testimonial-switch button{border:0;background:transparent;border-radius:10px}.testimonial-switch button[aria-pressed=true]{background:var(--navy);color:#fff}.testimonial-sky{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem 1.4rem;padding:2rem .5rem;align-items:start}.testimonial-bubble{position:relative;background:#fff;border:1px solid #fff;border-radius:24px 24px 24px 6px;box-shadow:0 9px 24px #172c4210;padding:1.25rem;animation:review-float 9s ease-in-out infinite;min-width:0}.testimonial-bubble:nth-child(3n+2){animation-duration:11s;animation-delay:-4s;border-radius:24px 24px 6px 24px}.testimonial-bubble:nth-child(3n){animation-duration:13s;animation-delay:-7s}.testimonial-quote{font-family:Georgia,serif;font-size:3.5rem;color:#e6b72e;line-height:.7;display:block}.testimonial-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;margin:.65rem 0 1rem}.testimonial-bubble footer{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.875rem;color:var(--muted)}.testimonial-bubble footer strong{color:var(--navy)}.testimonial-avatar{display:grid;place-items:center;width:32px;height:32px;background:#fff0be;border-radius:50%;color:#7e5c14}.testimonial-empty{text-align:center;padding:2.5rem 1rem;min-height:220px;display:grid;place-content:center}.testimonial-empty>span{font-family:Georgia,serif;font-size:5rem;line-height:.8;color:#d7ae36}.testimonial-sky.is-paused .testimonial-bubble,.testimonial-sky:hover .testimonial-bubble,.testimonial-sky:focus-within .testimonial-bubble{animation-play-state:paused}@keyframes review-float{0%,100%{transform:translate3d(-3px,7px,0) rotate(-.4deg)}50%{transform:translate3d(3px,-12px,0) rotate(.4deg)}}
@media(max-width:900px){.testimonial-sky{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.testimonial-section{padding:1.5rem 1rem}.testimonial-sky{grid-template-columns:1fr;gap:1.6rem}.testimonial-controls{width:100%}.testimonial-switch{flex:1}.testimonial-switch button{flex:1}.testimonial-bubble{padding:1.1rem}}
@media(prefers-reduced-motion:reduce){.testimonial-bubble{animation:none}}

/* Place reviewer identity above the comment, like a profile header. */
.testimonial-author{display:flex;align-items:center;gap:.7rem;margin-bottom:.8rem}.testimonial-author>div{min-width:0;display:flex;flex-direction:column;gap:.1rem}.testimonial-author strong{color:var(--navy);font-size:.95rem;overflow-wrap:anywhere}.testimonial-author>div>span{font-size:.8rem;color:var(--muted)}.testimonial-author .testimonial-avatar{flex:none;width:38px;height:38px;font-weight:700}.testimonial-bubble>.testimonial-author+p{margin:0;line-height:1.85}


/* Dedicated writing-platform introduction. */
.writing-page{--writing-cream:#fffaf0}.writing-hero{display:grid;grid-template-columns:1fr 1.1fr;gap:3rem;align-items:center;padding:3rem 0}.writing-hero h1{font-size:clamp(2.8rem,5vw,4.5rem);line-height:1.15;margin:1rem 0}.writing-lead{font-size:1.5rem;font-weight:700;color:var(--navy)}.writing-page figure{margin:0;min-width:0}.writing-page figure img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 35px #172c4210}.writing-page figcaption{font-size:.8rem;color:var(--muted);margin-top:.75rem;text-align:center}.writing-jump{display:flex;flex-wrap:wrap;gap:1rem;padding:1.1rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.writing-jump a{color:var(--navy);font-weight:650}.writing-guide{display:grid;grid-template-columns:.8fr 1.2fr;gap:3rem;align-items:center;padding:4rem 0;border-bottom:1px solid var(--line)}.writing-guide.reverse{grid-template-columns:1.2fr .8fr}.writing-guide.reverse>div{order:2}.writing-guide h2{font-size:1.8rem;line-height:1.45}.writing-guide p{line-height:1.9;color:var(--muted)}.writing-benefits{margin:4rem 0;display:grid;grid-template-columns:1.5fr .7fr;gap:2rem;padding:2.5rem;background:#fff3c9;border-radius:24px;align-items:center}.writing-plus{display:flex;flex-direction:column;gap:.8rem;align-items:center;text-align:center;border:1px solid #e3cb7b;background:#fffaf0;border-radius:20px;padding:2rem 1rem}.writing-plus strong{font-size:3.5rem;color:var(--navy)}.writing-plus b{font-size:1.7rem}.writing-how ol{list-style-position:inside;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;padding:0}.writing-how li{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1.5rem}.writing-how li p{color:var(--muted)}.writing-faq{padding:3rem 0}.writing-faq details{border-bottom:1px solid var(--line);padding:1rem 0}.writing-faq summary{cursor:pointer;font-weight:700}.writing-faq p{line-height:1.8;color:var(--muted)}.writing-end{text-align:center;background:#edf3ff;border-radius:24px;padding:3rem 1rem}.writing-home{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:2rem;background:#fff5d9;border-radius:20px}.writing-home .btn{flex:none}.writing-page [id]{scroll-margin-top:2rem}@media(max-width:800px){.writing-hero,.writing-guide,.writing-guide.reverse,.writing-benefits{grid-template-columns:1fr;gap:1.6rem}.writing-guide.reverse>div{order:0}.writing-hero{padding:2rem 0}.writing-guide{padding:2.5rem 0}.writing-benefits{padding:1.5rem}.writing-how ol{grid-template-columns:1fr}.writing-home{align-items:start;flex-direction:column}.writing-page h2{font-size:1.6rem}}

/* Small manual controls below the floating comments. */
.testimonial-navigation{display:flex;justify-content:center;gap:.65rem;margin:.25rem 0 0}.testimonial-navigation button{width:40px;height:40px;padding:0;border-radius:50%;border:1px solid #cdd8e5;background:#ffffffb8;color:var(--navy);font-size:1.65rem;line-height:1}.testimonial-navigation button:hover:not(:disabled){background:#fff;border-color:#7890ab}.testimonial-navigation button:disabled{opacity:.3;cursor:default}.testimonial-navigation button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}


/* Writing benefits inside the authenticated family learning center. */
.family-writing{max-width:70rem;margin-inline:auto}.family-writing-intro{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(15rem,1fr);gap:2rem;align-items:center}.family-writing-intro h2{font-size:clamp(1.7rem,3vw,2.4rem);margin:.5rem 0}.family-writing-lead{font-size:1.35rem;font-weight:700;line-height:1.7}.writing-address{display:inline-block;overflow-wrap:anywhere;margin:.5rem 0 1rem}.family-writing-plus{padding:2rem 1.5rem;border-radius:1rem;background:#fff5d6;color:#453816;display:flex;flex-direction:column;gap:.65rem}.family-writing-plus strong{font-size:1.9rem}.family-writing-plus p{margin-bottom:0}.writing-code-label{display:block;font-size:.95rem;margin:1rem 0 .5rem}.writing-code-row{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}.writing-code{font-size:1rem;overflow-wrap:anywhere;white-space:normal}.writing-code-row .writing-code{font-size:1.25rem;letter-spacing:.04em;background:#f6f2e9;padding:.8rem 1rem;border-radius:.6rem;min-width:0}.family-writing-guide ol{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem 2rem;padding-left:1.5rem}.family-writing-guide li{padding-left:.35rem}.family-writing-guide li::marker{font-weight:700}.family-writing-guide p{margin:.5rem 0}.family-writing details{border-bottom:1px solid #e8e4da;padding:1rem 0}.family-writing summary{font-weight:600;cursor:pointer;line-height:1.6}.family-writing .grid.two>.card{min-width:0}@media(max-width:700px){.family-writing-intro{grid-template-columns:1fr;gap:1rem}.family-writing-plus{padding:1.4rem}.family-writing-guide ol{grid-template-columns:1fr;gap:.8rem}.writing-code-row{align-items:stretch}.writing-code-row button{width:100%}}

.writing-team-controls { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: .5rem; }
.writing-team-controls button { min-width: 44px; min-height: 44px; }
.writing-team-scroll { overflow-x: auto; scroll-snap-type: x proximity; padding: .25rem .25rem 1rem; }
.tutor-grid.writing-team-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(16rem, 31%, 22rem); align-items: start; }
.writing-team-grid .teacher-card { min-width: 0; scroll-snap-align: start; }
.teacher-student-roster summary { cursor: pointer; white-space: nowrap; }
.teacher-student-roster ul { padding-inline-start: 1rem; margin: .5rem 0; min-width: 7rem; }
.teacher-student-roster li + li { margin-top: .4rem; }
@media (max-width: 620px) {
 .tutor-grid.writing-team-grid { grid-auto-columns: min(85%, 22rem); }
}

.request-age{display:inline-block;background:#fff2cf;color:#744100;border-radius:6px;padding:.2rem .55rem;font-size:.875rem;font-weight:700;white-space:nowrap}.request-age:empty{display:none}
