/* GradeHarbour Portal */
:root{--ink:#14213d;--muted:#4b5563;--line:#e3e7ee;--soft:#f6f7f4;--bg:#f4f6f3;--green:#1b7f5a;--green-d:#14603f;--green-l:#e6f2ec;--amber:#92400e;--amber-l:#fdf0d9;--red:#9f1d14;--red-l:#fde8e6}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.ghp{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;font-size:15px;line-height:1.6}
.ghp a{color:var(--green-d)}
.ghp h1,.ghp h2{margin:0;line-height:1.3}
.ghp h1{font-size:24px}
.ghp h2{font-size:18px;margin-bottom:8px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.ghp-muted{color:var(--muted);margin:0}
.ghp-small{font-size:13px;color:var(--muted);margin:6px 0 0}
.ghp-strong{font-weight:700}
.ghp-lg{font-size:17px}
.ghp-green-t{color:var(--green-d)}
.ghp-amber-t{color:#b45309}
.ghp-grow{flex:1 1 220px;min-width:0}

/* layout */
.ghp-asbar{background:#fff8eb;border-bottom:1px solid #f3dfb8;color:#6b4a12;padding:10px 16px;font-size:13.5px;text-align:center}
.ghp-wrap{max-width:1320px;margin:0 auto;padding:20px 16px 56px;display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.ghp-side{flex:1 1 230px;min-width:0;display:flex;flex-direction:column;gap:14px}
.ghp-main{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:18px}
.ghp-sidecard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.ghp-tutor .ghp-navcard{background:var(--ink);border-color:var(--ink);color:#fff}
.ghp-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.ghp-brand strong{display:block;font-family:"Plus Jakarta Sans","Noto Sans TC",sans-serif;font-size:16px}
.ghp-brand small{display:block;font-size:12.5px;opacity:.75}
.ghp-logo{width:38px;height:38px;border-radius:10px;background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-family:"Plus Jakarta Sans",sans-serif;font-weight:700;font-size:14px;flex:0 0 auto}
.ghp-tutor .ghp-logo{background:var(--green)}
.ghp-nav{display:flex;flex-wrap:wrap;gap:6px}
.ghp-nav a{flex:1 1 180px;display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border-radius:10px;color:var(--ink);text-decoration:none;font-size:14.5px}
.ghp-nav a:hover{background:var(--soft)}
.ghp-nav a.on{background:var(--ink);color:#fff;font-weight:700}
.ghp-tutor .ghp-nav a{color:#e5e9f0}
.ghp-tutor .ghp-nav a:hover{background:rgba(255,255,255,.08)}
.ghp-tutor .ghp-nav a.on{background:#fff;color:var(--ink)}
.ghp-badge{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#b42318;color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.ghp-tutor .ghp-badge{background:#f59e0b;color:var(--ink)}
.ghp-help{font-size:13.5px}
.ghp-help p{color:var(--muted);margin:6px 0}
.ghp-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.ghp-test{margin:0;padding:10px 14px;background:#fff8eb;border:1px solid #f3dfb8;border-radius:12px;font-size:13px;color:#6b4a12}
.ghp-flash{padding:12px 16px;border-radius:12px;font-weight:500}
.ghp-flash-ok{background:var(--green-l);border:1px solid #b7dcc8;color:var(--green-d)}
.ghp-flash-warn{background:#fff8eb;border:1px solid #f3dfb8;color:#6b4a12}
.ghp-flash-err{background:var(--red-l);border:1px solid #f4c7c3;color:var(--red)}
.ghp-info{margin:0;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:14px;font-size:13.5px;color:#374151}

/* cards */
.ghp-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:10px}
.ghp-card>h2{margin-bottom:0}
.ghp-card-accent{border:2px solid var(--green)}
.ghp-card-warn{background:#fff8eb;border-color:#f3dfb8}
.ghp-card-warn h2{color:var(--amber)}
.ghp-card-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.ghp-card-head h2{margin:0}
.ghp-card-head a{font-weight:700;font-size:14px;text-decoration:none}
.ghp-cols{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start}
.ghp-col-main{flex:999 1 420px;min-width:0;display:flex;flex-direction:column;gap:18px}
.ghp-col-side{flex:1 1 290px;min-width:0;display:flex;flex-direction:column;gap:18px}
.ghp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.ghp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.ghp-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.ghp-stat span{display:block;font-size:12.5px;color:var(--muted)}
.ghp-stat b{display:block;font-family:"Plus Jakarta Sans","Noto Sans TC",sans-serif;font-size:26px}
.ghp-stat small{font-size:12.5px;color:var(--muted)}
.ghp-stat-dark{background:var(--ink);border-color:var(--ink);color:#fff}
.ghp-stat-dark span,.ghp-stat-dark small{color:#c9d1e0}
.ghp-hero{background:var(--ink);color:#fff;border-radius:18px;padding:22px;display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.ghp-eyebrow{font-size:13px;font-weight:700;letter-spacing:.04em;color:#a7f3d0}
.ghp-card .ghp-eyebrow{color:var(--green-d)}
.ghp-hero-title{font-size:22px;font-weight:700;margin:4px 0 2px}
.ghp-hero-sub{color:#d6dbe6;font-size:14px}
.ghp-hero-note{font-size:13px;color:#d6dbe6;flex:1 1 100%}
.ghp-hero .ghp-btn-ghost{background:transparent;color:#fff!important;border-color:#5b6782}
.ghp-hero .ghp-btn-ghost.ghp-danger{color:#fecaca!important}
.ghp-hero .ghp-btn-ghost:hover{background:rgba(255,255,255,.08)}
.ghp-hero .ghp-pop{color:var(--ink)}

/* rows */
.ghp-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px 0;border-top:1px solid #f0f2f5}
.ghp-card>.ghp-row:first-of-type{border-top:0}
.ghp-date{width:56px;flex:0 0 auto;text-align:center;padding:4px 0;border:1px solid var(--line);border-radius:10px;background:var(--soft);line-height:1.2}
.ghp-date b{display:block;font-family:"Plus Jakarta Sans",sans-serif;font-size:19px}
.ghp-date small{display:block;font-size:11px;color:var(--muted)}
.ghp-pill{display:inline-block;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap;background:#eef1f4;color:#374151}
.ghp-green{background:var(--green-l);color:var(--green-d)}
.ghp-amber{background:var(--amber-l);color:var(--amber)}
.ghp-red{background:var(--red-l);color:var(--red)}
.ghp-grey{background:#eef1f4;color:#374151}
.ghp-note{border:1px solid #eef0f3;border-radius:12px;padding:12px 14px}
.ghp-note-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;font-size:13px;color:var(--muted)}
.ghp-note-head strong{color:var(--ink)}
.ghp-note p{margin:6px 0 0}
.ghp-policy{margin:6px 0 0;padding:10px 12px;background:var(--soft);border-radius:10px;font-size:13px;color:#374151}
.ghp-soft{margin:0;padding:10px 12px;background:var(--soft);border-radius:10px;font-size:13.5px}
.ghp-kv{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:14px}
.ghp-mini{padding:10px 12px;background:var(--soft);border-radius:12px}
.ghp-mini p{margin:4px 0 0;font-size:14px}
.ghp-minigrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ghp-minigrid div{padding:10px 12px;background:var(--soft);border-radius:10px}
.ghp-minigrid span{display:block;font-size:12px;color:var(--muted)}
.ghp-minigrid b{font-size:16px}
.ghp-person{display:flex;align-items:center;gap:12px}
.ghp-avatar{width:52px;height:52px;border-radius:50%;background:var(--green-l);color:var(--green-d);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:20px;flex:0 0 auto}
.ghp-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.ghp-facts div{background:var(--soft);border-radius:10px;padding:8px 10px}
.ghp-facts dt{font-size:12px;color:var(--muted)}
.ghp-facts dd{margin:0;font-size:14px}
.ghp-bar{height:10px;border-radius:999px;background:#e9ede9;overflow:hidden}
.ghp-bar span{display:block;height:10px;border-radius:999px;background:var(--green)}
.ghp-bar span.low{background:#d97706}
.ghp-kids{display:flex;flex-wrap:wrap;gap:6px;padding:4px;background:#e9ede9;border-radius:12px;align-self:flex-start}
.ghp-kids a{min-height:44px;display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:9px;color:#374151;text-decoration:none}
.ghp-kids a.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(20,33,61,.15)}

/* buttons and forms */
.ghp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:1px solid var(--green);border-radius:10px;background:var(--green);color:#fff!important;font:inherit;font-size:14.5px;font-weight:700;text-decoration:none;cursor:pointer;list-style:none}
.ghp-btn:hover{background:var(--green-d)}
.ghp-btn-ghost{background:#fff;color:var(--ink)!important;border-color:#d5dbe3;font-weight:500}
.ghp-btn-ghost:hover{background:var(--soft)}
.ghp-btn-ghost.ghp-danger{color:var(--red)!important}
.ghp-btn-danger{background:#b42318;border-color:#b42318}
.ghp-btn-danger:hover{background:#912018}
.ghp-btn-dark{background:var(--ink);border-color:var(--ink)}
.ghp-linkbtn{background:none;border:0;padding:8px 0;color:var(--green-d);font:inherit;font-weight:700;cursor:pointer;min-height:44px}
.ghp-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}
.ghp-inline{display:inline}
.ghp form{display:flex;flex-direction:column;gap:8px;margin:0}
.ghp form.ghp-inline,.ghp form.ghp-toggle-form{display:inline-flex}
.ghp label{font-size:13px;font-weight:700}
.ghp textarea,.ghp input[type=text],.ghp input[type=password],.ghp select{width:100%;min-height:44px;padding:9px 12px;border:1px solid #d5dbe3;border-radius:10px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}
.ghp textarea{resize:vertical}
.ghp fieldset{border:0;padding:0;margin:0}
.ghp legend{font-size:13px;font-weight:700;margin-bottom:4px}
.ghp-radio label{display:flex;align-items:center;gap:8px;min-height:40px;font-weight:500;font-size:14px}
.ghp-radio-row{display:flex;flex-wrap:wrap;gap:4px 16px}
.ghp-radio-row legend{width:100%}
details.ghp-act{position:relative}
details.ghp-act>summary{list-style:none}
details.ghp-act>summary::-webkit-details-marker{display:none}
.ghp-pop{margin-top:8px;width:min(360px,calc(100vw - 48px));background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:0 12px 32px -12px rgba(20,33,61,.35)}
.ghp-pop-wide{width:min(460px,calc(100vw - 48px))}
.ghp-warnbox{margin:0;padding:10px 12px;border-radius:10px;background:var(--red-l);color:var(--red);font-size:13.5px;font-weight:700}
.ghp-okbox{margin:0;padding:10px 12px;border-radius:10px;background:var(--green-l);color:var(--green-d);font-size:13.5px}
.ghp-card-head+.ghp-warnbox{margin-top:0}
.ghp-starrow{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px}
.ghp-stars input{position:absolute;opacity:0;width:1px;height:1px}
.ghp-stars label{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#b45309}
.ghp-stars label svg{width:30px;height:30px}
.ghp-stars input:checked~label svg,.ghp-stars label:hover svg,.ghp-stars label:hover~label svg{fill:#f59e0b}
.ghp-stars input:focus-visible+label{outline:2px solid var(--green);border-radius:8px}
.ghp-stars-static{color:#f59e0b;letter-spacing:2px}
.ghp-stars-static span{color:#d1d5db}
details.ghp-receipt{border-top:1px solid #f0f2f5;padding:10px 0}
details.ghp-receipt summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;list-style:none}
details.ghp-receipt summary::-webkit-details-marker{display:none}
details.ghp-receipt summary span:first-child{display:flex;flex-direction:column}
details.ghp-receipt summary small{font-size:12.5px;color:var(--muted)}
.ghp-toggle{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:6px 14px;border:1px solid #d5dbe3;border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:14px;cursor:pointer}
.ghp-switch{width:40px;height:24px;border-radius:999px;background:#c7ccd4;position:relative;flex:0 0 auto}
.ghp-switch span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s}
.ghp-switch.on{background:var(--green)}
.ghp-switch.on span{left:19px}

/* week */
.ghp-scroll{overflow-x:auto}
.ghp-week{display:grid;grid-template-columns:repeat(7,minmax(118px,1fr));gap:8px;min-width:860px}
.ghp-day{background:#f8f9fa;border:1px solid #eef0f3;border-radius:12px;padding:10px;min-height:200px;display:flex;flex-direction:column;gap:6px}
.ghp-day.today{background:#f0f7f3;border-color:#b7dcc8}
.ghp-day-h{font-size:13px;font-weight:700}
.ghp-day-h small{font-weight:400;color:var(--muted)}
.ghp-free{padding:3px 8px;border-radius:8px;background:var(--green-l);color:var(--green-d);font-size:12px}
.ghp-lesson{padding:8px 10px;border-radius:10px;font-size:13px;line-height:1.45;display:flex;flex-direction:column}
.ghp-lesson small{font-size:12px;opacity:.85}
.ghp-lesson.off{opacity:.55;text-decoration:line-through}
.ghp-tone-0{background:#fdeee6;color:#7c2d12}.ghp-tone-1{background:#e8eefc;color:#1e3a8a}.ghp-tone-2{background:#f3e8fd;color:#5b21b6}.ghp-tone-3{background:#e6f2ec;color:#0f4d33}
table.ghp-avail{border-collapse:separate;border-spacing:4px}
table.ghp-avail th{font-size:12.5px;font-weight:700;text-align:center;padding:2px}
table.ghp-avail th[scope=row]{text-align:left;white-space:nowrap;font-weight:500;color:#374151;padding-right:6px}
table.ghp-avail label{display:block;cursor:pointer}
table.ghp-avail input{position:absolute;opacity:0;width:1px;height:1px}
table.ghp-avail label>span[aria-hidden]{display:flex;width:44px;height:44px;border-radius:9px;border:1px solid #d5dbe3;background:#fff;align-items:center;justify-content:center;font-weight:700}
table.ghp-avail input:checked+span{background:var(--green);border-color:var(--green);color:#fff}
table.ghp-avail input:checked+span::after{content:"✓"}
table.ghp-avail input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}

/* applicant pages */
.ghp-applybody{min-height:100vh}
.ghp-apply{max-width:760px;margin:0 auto;padding:20px 16px 56px;display:flex;flex-direction:column;gap:16px}
.ghp-apply-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ghp-apply-head .ghp-brand{margin:0}
.ghp-langlink{font-weight:700;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.ghp-apply h1{font-size:22px}
.ghp-blue{background:#e8eefc;color:#1e3a8a}
.ghp-steps{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13.5px;color:var(--muted)}
.ghp-steps li{display:flex;align-items:center;gap:6px}
.ghp-steps li span{width:12px;height:12px;border-radius:50%;border:2px solid #c7ccd4;display:inline-block}
.ghp-steps li.done{color:var(--green-d)}.ghp-steps li.done span{background:var(--green);border-color:var(--green)}
.ghp-steps li.now{color:var(--ink);font-weight:700}.ghp-steps li.now span{border-color:var(--green)}
.ghp-fileline{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 10px;background:var(--soft);border-radius:10px;font-size:14px;word-break:break-all}
.ghp-fileline small{color:var(--muted)}
.ghp-upform{padding-top:4px}
.ghp-upform input[type=file]{font-size:15px;padding:8px 0}
.ghp-upform .ghp-btn{align-self:flex-start}
.ghp-codeinput{font-size:24px!important;letter-spacing:6px;max-width:220px}
.ghp-list{margin:0;padding-left:20px;font-size:14px;color:#374151;display:flex;flex-direction:column;gap:6px}
.ghp-center-t{text-align:center}
.ghp-apply form .ghp-btn{align-self:flex-start}

/* login and picker */
.ghp-center{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.ghp-box{width:100%;max-width:520px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 24px;display:flex;flex-direction:column;gap:12px}
.ghp-box h1{font-size:22px}
.ghp-box form p{margin:0;display:flex;flex-direction:column;gap:6px}
.ghp-box form .login-remember label{display:flex;gap:8px;align-items:center;font-weight:500}
.ghp-box input[type=submit]{min-height:44px;border:0;border-radius:10px;background:var(--green);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.ghp-picklist{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}

@media (max-width:880px){.ghp-help{display:none}}
@media (max-width:640px){
 .ghp h1{font-size:21px}
 .ghp-hero-title{font-size:19px}
 .ghp-facts{grid-template-columns:1fr}
 .ghp-nav a{flex-basis:140px}
}
.ghp-brand-img{flex-direction:column;align-items:flex-start;gap:4px}
.ghp-brand-img img{display:block;width:148px;height:auto}
.ghp-brand-img small{font-size:12.5px;color:var(--muted,#5b6472)}
.ghp-form{display:flex;flex-direction:column;gap:12px}
.ghp-form p{margin:0;display:flex;flex-direction:column;gap:6px}
.ghp-form label{font-weight:600;font-size:14px}
.ghp-form input[type=password],.ghp-form input[type=email],.ghp-form input[type=text]{min-height:46px;padding:8px 12px;border:1px solid var(--line,#d5dbe3);border-radius:10px;font:inherit;font-size:16px}
.ghp-check{display:flex;gap:8px;align-items:center;font-weight:500!important}
.ghp-btn-wide{width:100%;align-self:stretch}
/* 0.2.4 – light, logo-led sidebar for both panels */
.ghp-navcard,.ghp-tutor .ghp-navcard{background:#fff;border-color:var(--line);color:var(--ink);padding:18px 14px}
.ghp-sidebrand{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:2px 6px 16px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.ghp-sidebrand a{display:block;line-height:0}
.ghp-sidebrand img{width:150px;height:auto;display:block}
.ghp-role{font-size:12px;font-weight:700;letter-spacing:.02em;padding:4px 10px;border-radius:999px;background:var(--green-l);color:var(--green-d)}
.ghp-tutor .ghp-role{background:#e8edf7;color:var(--ink)}
.ghp-nav{flex-direction:column;flex-wrap:nowrap;gap:2px}
.ghp-nav a,.ghp-tutor .ghp-nav a{flex:0 0 auto;color:var(--ink);font-weight:500}
.ghp-nav a:hover,.ghp-tutor .ghp-nav a:hover{background:var(--soft)}
.ghp-nav a.on,.ghp-tutor .ghp-nav a.on{background:var(--green-l);color:var(--green-d);font-weight:700;box-shadow:inset 3px 0 0 var(--green)}
.ghp-nav a svg{flex:0 0 auto;opacity:.85}
.ghp-nav a.ghp-out{color:var(--muted);margin-top:8px;padding-top:12px;border-top:1px solid var(--line);border-radius:0 0 10px 10px}
@media (max-width:880px){
 .ghp-wrap{padding-top:0}
 .ghp-side{flex-basis:100%;position:sticky;top:0;z-index:30}
 .ghp-navcard,.ghp-tutor .ghp-navcard{margin:0 -16px;border-radius:0 0 16px 16px;border-top:0;border-left:0;border-right:0;padding:10px 12px 8px;box-shadow:0 4px 14px rgba(20,33,61,.06)}
 .ghp-sidebrand{flex-direction:row;align-items:center;justify-content:space-between;border:0;padding:0 4px;margin:0 0 8px}
 .ghp-sidebrand img{width:118px}
 .ghp-nav{flex-direction:row;overflow-x:auto;gap:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .ghp-nav::-webkit-scrollbar{display:none}
 .ghp-nav a,.ghp-tutor .ghp-nav a{min-height:40px;padding:6px 12px;font-size:14px;white-space:nowrap}
 .ghp-nav a.on,.ghp-tutor .ghp-nav a.on{box-shadow:inset 0 -3px 0 var(--green)}
 .ghp-nav a.ghp-out{margin:0;padding-top:6px;border-top:0;border-radius:10px}
 .ghp-help{display:none}
}

/* =====================================================================
   0.3.0 — Design system v2
   Calm, editorial, high-contrast. Brand: harbour navy, sail teal, sun gold.
   ===================================================================== */
:root{
 --ink:#0f1b33;--ink-2:#26334d;--muted:#5d6779;--faint:#8a93a3;
 --line:rgba(15,27,51,.08);--line-2:rgba(15,27,51,.14);
 --bg:#f5f4ef;--soft:#f3f2ec;--card:#ffffff;
 --green:#0e7c6b;--green-d:#0a5f52;--green-l:#e3f1ee;--teal-2:#14a38f;
 --gold:#f2b53a;--gold-l:#fdf3dc;
 --amber:#9a5b0b;--amber-l:#fdf1dc;--red:#b42318;--red-l:#fdecea;
 --r-lg:22px;--r-md:16px;--r-sm:12px;
 --sh-1:0 1px 2px rgba(15,27,51,.04),0 1px 1px rgba(15,27,51,.03);
 --sh-2:0 1px 2px rgba(15,27,51,.05),0 10px 30px -12px rgba(15,27,51,.12);
 --sh-3:0 24px 48px -20px rgba(15,27,51,.35);
 --num:"Plus Jakarta Sans","Noto Sans TC",system-ui,sans-serif;
}
body.ghp{background:var(--bg);font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:"palt" 1}
body.ghp::before{content:"";position:fixed;inset:0 0 auto 0;height:340px;z-index:-1;pointer-events:none;background:radial-gradient(900px 300px at 85% -60px,rgba(20,163,143,.10),transparent 70%),radial-gradient(700px 260px at 10% -80px,rgba(242,181,58,.10),transparent 70%)}
.ghp ::selection{background:rgba(14,124,107,.18)}
.ghp a{color:var(--green-d);text-underline-offset:3px}
.ghp :focus-visible{outline:2px solid var(--teal-2);outline-offset:2px;border-radius:10px}
.ghp h1{font-size:30px;font-weight:900;letter-spacing:-.01em;line-height:1.2}
.ghp h2{font-size:17px;font-weight:700;letter-spacing:.005em}
.ghp-muted{color:var(--muted)}

/* layout */
.ghp-wrap{max-width:1360px;padding:28px 28px 72px;gap:28px}
.ghp-side{flex:0 0 248px;position:sticky;top:24px;align-self:flex-start}
.ghp-main{gap:22px}
.ghp-sidecard{border-radius:var(--r-lg);border:1px solid var(--line);box-shadow:var(--sh-1)}
.ghp-navcard,.ghp-tutor .ghp-navcard{background:rgba(255,255,255,.86);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);padding:20px 14px 14px;box-shadow:var(--sh-2)}
.ghp-sidebrand{padding:2px 8px 18px;margin-bottom:12px}
.ghp-sidebrand img{width:156px}
.ghp-role{font-size:11.5px;letter-spacing:.06em;padding:4px 10px;background:var(--green-l);color:var(--green-d)}
.ghp-tutor .ghp-role{background:#eaeef6;color:var(--ink-2)}
.ghp-nav a,.ghp-tutor .ghp-nav a{min-height:44px;padding:9px 12px;border-radius:12px;color:var(--ink-2);font-weight:500;transition:background .15s,color .15s}
.ghp-nav a svg{opacity:.7;transition:opacity .15s}
.ghp-nav a:hover,.ghp-tutor .ghp-nav a:hover{background:rgba(15,27,51,.04);color:var(--ink)}
.ghp-nav a:hover svg{opacity:1}
.ghp-nav a.on,.ghp-tutor .ghp-nav a.on{background:var(--ink);color:#fff;box-shadow:0 8px 18px -10px rgba(15,27,51,.6)}
.ghp-nav a.on svg{opacity:1;color:var(--gold)}
.ghp-nav a.ghp-out{color:var(--faint)}
.ghp-badge,.ghp-tutor .ghp-badge{background:var(--gold);color:var(--ink);font-family:var(--num)}
.ghp-help{border:0;background:transparent;box-shadow:none;padding:4px 14px}
.ghp-help strong{font-size:13px}
.ghp-help p{font-size:12.5px;line-height:1.6}
.ghp-help a{font-size:13px}

/* page header */
.ghp-top{align-items:flex-end;padding:6px 2px 4px}
.ghp-today{margin:0 0 6px;font-family:var(--num);font-size:12.5px;font-weight:600;letter-spacing:.08em;color:var(--green-d)}
.ghp-top .ghp-muted{margin-top:4px;font-size:15px}
.ghp-toggle{border:1px solid var(--line-2);box-shadow:var(--sh-1);padding:6px 16px 6px 8px;font-weight:500}
.ghp-switch{width:44px;height:26px}
.ghp-switch span{top:3px;left:3px;width:20px;height:20px;box-shadow:0 1px 3px rgba(15,27,51,.25)}
.ghp-switch.on{background:var(--green)}
.ghp-switch.on span{left:21px}

/* stats */
.ghp-stats{gap:14px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.ghp-stat{position:relative;border:1px solid var(--line);border-radius:var(--r-md);padding:18px 20px 16px;box-shadow:var(--sh-1);background:var(--card);overflow:hidden;transition:transform .2s,box-shadow .2s}
.ghp-stat:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.ghp-stat::after{content:"";position:absolute;left:20px;top:0;width:28px;height:3px;border-radius:0 0 3px 3px;background:var(--teal-2);opacity:.9}
.ghp-stat:nth-child(2)::after{background:var(--gold)}
.ghp-stat:nth-child(3)::after{background:#6b8cff}
.ghp-stat:nth-child(4)::after{background:var(--ink)}
.ghp-stat span{font-size:12.5px;font-weight:500;color:var(--muted);letter-spacing:.02em}
.ghp-stat b{font-family:var(--num);font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1.15;margin-top:6px;font-variant-numeric:tabular-nums}
.ghp-stat-dark{background:linear-gradient(140deg,#0f1b33 0%,#173a52 60%,#0e5f57 100%);border-color:transparent;color:#fff}
.ghp-stat-dark::after{background:var(--gold)}
.ghp-stat-dark span,.ghp-stat-dark small{color:rgba(255,255,255,.72)}

/* cards */
.ghp-card{border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 24px;gap:12px;box-shadow:var(--sh-1);background:var(--card)}
.ghp-card>h2,.ghp-card-head h2{font-size:17px}
.ghp-card-head{padding-bottom:4px}
.ghp-card-head a{font-size:13.5px;font-weight:700;color:var(--green-d);display:inline-flex;align-items:center;gap:4px}
.ghp-card-head a::after{content:"→";transition:transform .15s}
.ghp-card-head a:hover::after{transform:translateX(3px)}
.ghp-card-accent{border:1px solid rgba(14,124,107,.35);box-shadow:0 0 0 4px rgba(14,124,107,.06),var(--sh-1)}
.ghp-card-warn{background:linear-gradient(180deg,#fffaf0,#fff);border-color:#f1dcb4}
.ghp-card-warn h2{color:var(--amber)}
.ghp-cols{gap:22px}
.ghp-col-main,.ghp-col-side{gap:22px}

/* hero: next lesson */
.ghp-hero{position:relative;overflow:hidden;border-radius:var(--r-lg);padding:28px 30px;gap:18px;color:#fff;background:linear-gradient(125deg,#0f1b33 0%,#16304a 48%,#0d5d55 100%);box-shadow:var(--sh-3)}
.ghp-hero::before{content:"";position:absolute;right:-60px;top:-80px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle at 30% 30%,rgba(242,181,58,.35),rgba(242,181,58,0) 60%)}
.ghp-hero::after{content:"";position:absolute;right:28px;bottom:-26px;width:180px;height:120px;opacity:.10;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cpath d='M58 4c-8 22-26 34-46 40 18 2 34 8 44 20 2-20 3-40 2-60z' fill='%23fff'/%3E%3Cpath d='M64 2c14 14 24 30 30 50-12-4-24-2-34 6 4-18 6-36 4-56z' fill='%23fff'/%3E%3Cpath d='M4 70c18-8 38-8 56 4 18-12 38-12 56-4' stroke='%23fff' stroke-width='4' fill='none'/%3E%3C/svg%3E")}
.ghp-hero>*{position:relative;z-index:1}
.ghp-eyebrow{font-family:var(--num);font-size:12px;letter-spacing:.14em;color:var(--gold)}
.ghp-card .ghp-eyebrow{color:var(--green-d)}
.ghp-hero-title{font-family:var(--num);font-size:26px;font-weight:800;letter-spacing:-.01em;margin:6px 0 4px}
.ghp-hero-sub{color:rgba(255,255,255,.82);font-size:14.5px}
.ghp-hero-note{color:rgba(255,255,255,.7)}
.ghp-hero .ghp-btn-ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.24);color:#fff!important;backdrop-filter:blur(4px)}
.ghp-hero .ghp-btn-ghost:hover{background:rgba(255,255,255,.16)}

/* rows and lists */
.ghp-row{padding:14px 0;border-top:1px solid var(--line)}
.ghp-date{width:58px;border:0;border-radius:14px;background:var(--soft);padding:6px 0;box-shadow:inset 0 0 0 1px var(--line)}
.ghp-date b{font-family:var(--num);font-size:21px;font-weight:800;letter-spacing:-.02em}
.ghp-date small{font-size:10.5px;letter-spacing:.04em}
.ghp-pill{font-size:11.5px;font-weight:700;letter-spacing:.02em;padding:4px 10px;background:#eef0f3;color:var(--ink-2)}
.ghp-green{background:var(--green-l);color:var(--green-d)}
.ghp-amber{background:var(--gold-l);color:var(--amber)}
.ghp-red{background:var(--red-l);color:var(--red)}
.ghp-note{border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px;background:linear-gradient(180deg,#fff,#fcfcfa)}
.ghp-note p{line-height:1.7}
.ghp-mini,.ghp-minigrid div,.ghp-facts div,.ghp-soft,.ghp-policy{background:var(--soft);border-radius:var(--r-sm)}
.ghp-minigrid div{padding:12px 14px}
.ghp-minigrid b{font-family:var(--num);font-size:18px;font-weight:800}
.ghp-avatar{background:linear-gradient(135deg,var(--green-l),#f4eedb);color:var(--green-d);box-shadow:inset 0 0 0 1px var(--line)}
.ghp-bar{height:8px;background:#ebe9e1}
.ghp-bar span{height:8px;background:linear-gradient(90deg,var(--green),var(--teal-2))}
.ghp-bar span.low{background:linear-gradient(90deg,#d97706,var(--gold))}
.ghp-kids{background:rgba(15,27,51,.05);border-radius:14px;padding:5px}
.ghp-kids a{border-radius:10px;font-weight:500}
.ghp-kids a.on{box-shadow:var(--sh-2);font-weight:700}
.ghp-info{border-radius:var(--r-md);border:1px solid var(--line);background:#fff;box-shadow:var(--sh-1)}

/* buttons, forms */
.ghp-btn{min-height:44px;padding:9px 18px;border-radius:12px;border:1px solid var(--green);background:linear-gradient(180deg,#119180,var(--green));box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 6px 14px -8px rgba(14,124,107,.7);letter-spacing:.01em;transition:transform .12s,box-shadow .15s,background .15s}
.ghp-btn:hover{background:var(--green-d);transform:translateY(-1px)}
.ghp-btn:active{transform:translateY(0)}
.ghp-btn-ghost{background:#fff;border-color:var(--line-2);box-shadow:var(--sh-1);color:var(--ink)!important}
.ghp-btn-ghost:hover{background:var(--soft);border-color:rgba(15,27,51,.22)}
.ghp-btn-dark{background:var(--ink);border-color:var(--ink);box-shadow:0 6px 14px -8px rgba(15,27,51,.7)}
.ghp-btn-danger{background:var(--red);border-color:var(--red);box-shadow:none}
.ghp textarea,.ghp input[type=text],.ghp input[type=password],.ghp input[type=email],.ghp input[type=number],.ghp input[type=date],.ghp input[type=time],.ghp select{border:1px solid var(--line-2);border-radius:12px;background:#fff;transition:border-color .15s,box-shadow .15s}
.ghp textarea:focus,.ghp input:focus,.ghp select:focus{outline:0;border-color:var(--green);box-shadow:0 0 0 4px rgba(14,124,107,.12)}
.ghp label,.ghp legend{font-size:13px;font-weight:700;color:var(--ink-2)}
.ghp-pop{border-radius:var(--r-md);border:1px solid var(--line);box-shadow:var(--sh-3)}
.ghp-flash{border-radius:var(--r-md);padding:14px 18px;box-shadow:var(--sh-1)}
.ghp-okbox,.ghp-warnbox{border-radius:var(--r-sm)}

/* centred pages: login, password, application */
.ghp-center{background:radial-gradient(800px 400px at 80% -10%,rgba(20,163,143,.12),transparent 70%),radial-gradient(700px 360px at 0% 110%,rgba(242,181,58,.12),transparent 70%),var(--bg)}
.ghp-box{border-radius:26px;border:1px solid var(--line);padding:36px 34px;gap:14px;box-shadow:var(--sh-3)}
.ghp-box h1{font-size:26px}
.ghp-brand-img img{width:164px}

/* motion */
@media (prefers-reduced-motion:no-preference){
 .ghp-main>*{animation:ghpIn .45s cubic-bezier(.2,.7,.2,1) both}
 .ghp-main>*:nth-child(2){animation-delay:.04s}.ghp-main>*:nth-child(3){animation-delay:.08s}.ghp-main>*:nth-child(4){animation-delay:.12s}.ghp-main>*:nth-child(5){animation-delay:.16s}
 @keyframes ghpIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}

/* small screens */
@media (max-width:880px){
 body.ghp::before{height:220px}
 .ghp-wrap{padding:0 16px 56px;gap:18px}
 .ghp-side{flex-basis:100%;position:sticky;top:0}
 .ghp-navcard,.ghp-tutor .ghp-navcard{border-radius:0 0 20px 20px;padding:12px 12px 8px;background:rgba(255,255,255,.9)}
 .ghp-nav a.on,.ghp-tutor .ghp-nav a.on{box-shadow:none}
 .ghp h1{font-size:25px}
 .ghp-card{padding:18px;border-radius:20px}
 .ghp-hero{padding:22px;border-radius:20px}
 .ghp-hero-title{font-size:22px}
 .ghp-stat{padding:16px}
 .ghp-stat b{font-size:27px}
 .ghp-box{padding:28px 22px;border-radius:22px}
}
/* 0.3.0 refinements */
.ghp-stat::after{display:none}
.ghp-stat span::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 8px 1px 0;background:var(--teal-2);vertical-align:middle}
.ghp-stat:nth-child(2) span::before{background:var(--gold)}
.ghp-stat:nth-child(3) span::before{background:#6b8cff}
.ghp-stat:nth-child(4) span::before{background:var(--ink)}
.ghp-stat-dark span::before{background:var(--gold)!important}
.ghp-nav a.ghp-out{border-top:0!important;border-radius:12px;margin-top:16px;position:relative}
.ghp-nav a.ghp-out::before{content:"";position:absolute;left:10px;right:10px;top:-9px;height:1px;background:var(--line)}
@media (max-width:880px){
 .ghp-nav a.ghp-out{margin-top:0}
 .ghp-nav a.ghp-out::before{display:none}
 .ghp-navcard{position:relative}
 .ghp-navcard::after{content:"";position:absolute;right:0;bottom:8px;width:36px;height:44px;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.95));border-radius:0 0 20px 0}
}
details.ghp-receipt{border-top:1px solid var(--line)}
details.ghp-receipt summary .ghp-linkbtn{white-space:nowrap;flex:0 0 auto;font-size:13px;padding:6px 12px;min-height:0;border-radius:999px;background:var(--green-l)}
details.ghp-receipt summary span:first-child{min-width:0}
.ghp-box input[type=submit]{border-radius:12px;background:linear-gradient(180deg,#119180,var(--green));box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 6px 14px -8px rgba(14,124,107,.7);min-height:46px}
.ghp-box input[type=text],.ghp-box input[type=password]{min-height:46px;border:1px solid var(--line-2);border-radius:12px}
/* 0.3.1 welcome card */
.ghp-welcome{background:linear-gradient(135deg,#ffffff 0%,#f3faf8 60%,#fdf6e6 100%);border-color:rgba(14,124,107,.18)}
.ghp-steps3{list-style:none;margin:4px 0 6px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.ghp-steps3 li{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:14px}
.ghp-steps3 span{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--gold);font-family:var(--num);font-weight:800;display:inline-flex;align-items:center;justify-content:center}
.ghp-steps3 p{margin:4px 0 0;font-size:13.5px;color:var(--muted);line-height:1.6}
.ghp-welcome form{align-self:flex-start}.ghp-welcome form .ghp-btn{width:auto}

/* messages (0.4.0) */
.ghp-chat{display:grid;grid-template-columns:300px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;height:calc(100vh - 210px);min-height:520px}
.ghp-chat-list{border-right:1px solid var(--line);overflow-y:auto;background:#fbfbf9}
.ghp-chat-listhead{position:sticky;top:0;z-index:1;padding:14px 16px;font-weight:800;font-size:13px;letter-spacing:.08em;color:var(--muted);background:#fbfbf9;border-bottom:1px solid var(--line)}
.ghp-chat-item{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.ghp-chat-item:hover{background:var(--soft)}
.ghp-chat-item.on{background:var(--green-l);box-shadow:inset 3px 0 0 var(--green)}
.ghp-chat-av{flex:0 0 38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--ink);color:#fff;font-weight:800;font-size:15px}
.ghp-chat-meta{flex:1;min-width:0;display:flex;flex-direction:column}
.ghp-chat-meta strong{font-size:14.5px}
.ghp-chat-meta small{font-size:12px;color:var(--muted)}
.ghp-chat-meta em{font-style:normal;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.ghp-chat-item .ghp-badge{margin-left:auto}
.ghp-chat-pane{display:flex;flex-direction:column;min-width:0;min-height:0}
.ghp-chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.ghp-chat-head strong{display:block;font-size:16px}
.ghp-chat-head small{display:block;font-size:12.5px;color:var(--muted)}
.ghp-chat-back{display:none;text-decoration:none;font-weight:700;font-size:14px}
.ghp-chat-safe{margin:12px 18px 0;padding:10px 12px;border-radius:12px;background:var(--amber-l);color:#6b4a12;font-size:12.5px;line-height:1.55}
.ghp-chat-msgs{flex:1;overflow-y:auto;padding:16px 18px;display:flex;flex-direction:column;gap:8px;background:linear-gradient(180deg,#fff,#f8f9f6)}
.ghp-chat-empty{margin:auto;max-width:34ch;text-align:center;color:var(--muted);font-size:14px}
.ghp-chat-day{text-align:center;margin:10px 0 4px}
.ghp-chat-day span{display:inline-block;padding:3px 10px;border-radius:99px;background:var(--soft);color:var(--muted);font-size:12px}
.ghp-msg{display:flex;flex-direction:column;align-items:flex-start;max-width:78%}
.ghp-msg.me{align-self:flex-end;align-items:flex-end}
.ghp-bubble{padding:10px 14px;border-radius:18px 18px 18px 6px;background:#fff;border:1px solid var(--line);font-size:14.5px;line-height:1.6;word-break:break-word}
.ghp-msg.me .ghp-bubble{background:var(--green);border-color:var(--green);color:#fff;border-radius:18px 18px 6px 18px}
.ghp-msg time{font-size:11.5px;color:var(--muted);margin:3px 6px 0}
.ghp-chat-compose{border-top:1px solid var(--line);padding:12px 14px;background:#fff}
.ghp-chat-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.ghp-chat-form textarea{flex:1 1 260px;min-height:46px;max-height:160px;resize:vertical;padding:11px 14px;border:1px solid var(--line);border-radius:14px;font:inherit;font-size:15px}
.ghp-chat-form textarea:focus{outline:2px solid var(--green);outline-offset:1px;border-color:var(--green)}
.ghp-chat-form .ghp-btn{min-height:46px}
.ghp-chat-form .ghp-btn:disabled{opacity:.45;cursor:not-allowed}
.ghp-chat-warn{flex-basis:100%;margin:0;padding:8px 12px;border-radius:10px;background:var(--red-l);color:var(--red);font-size:13px;font-weight:600}
.ghp-chat-closed{margin:0;padding:14px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:13.5px}
.ghp-chat-new{align-self:center;margin:6px auto;padding:7px 14px;border:0;border-radius:99px;background:var(--ink);color:#fff;font:inherit;font-size:13px;cursor:pointer}
@media (max-width:880px){
.ghp-chat{grid-template-columns:1fr;height:auto;min-height:0}
.ghp-chat-list{border-right:0}
.ghp-chat.is-thread .ghp-chat-list{display:none}
.ghp-chat:not(.is-thread) .ghp-chat-pane{display:none}
.ghp-chat-back{display:inline-block}
.ghp-chat-msgs{max-height:60vh;min-height:300px}
.ghp-msg{max-width:88%}
}
.ghp-chat-form{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:10px!important}
.ghp-chat-form textarea{flex:1 1 240px!important;width:auto!important;height:52px;min-height:52px!important;margin:0!important}
.ghp-chat-form .ghp-btn{margin:0!important;padding-left:22px;padding-right:22px}
