:root{color-scheme:light;font-family:system-ui,"Malgun Gothic",sans-serif;background:#f0f5f3;color:#172f33;--ink:#172f33;--accent:#096a56;--line:#d3e3de}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;min-width:280px}button,input,select{font:inherit}
button{cursor:pointer;min-height:46px;padding:10px 16px;border-radius:10px;border:1px solid transparent;font-weight:700}
button:disabled{cursor:default;opacity:.72}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #218c75;outline-offset:3px}
.site-header{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));background:#152b31;color:#fff}
.site-header div{display:flex;align-items:center;gap:10px;font-size:1.12rem}.site-header .quiet{color:#fff;border-color:#638481}
.quiet{background:transparent;border-color:#b2cbc3;color:#114b40}.primary{background:var(--accent);color:white}
main{max-width:980px;margin:auto;padding:clamp(14px,4vw,36px);padding-bottom:calc(32px + env(safe-area-inset-bottom))}
h1,h2,p{margin:0}h1{font-size:clamp(1.4rem,4vw,2rem);line-height:1.24;overflow-wrap:anywhere}h2{font-size:1.12rem}
.auth-card,.profile,.lessons{background:#fff;border:1px solid var(--line);border-radius:16px;padding:clamp(16px,3vw,28px)}
.auth-card{width:min(100%,432px);margin:clamp(22px,10dvh,96px) auto 0}.auth-card p,.profile p{margin-top:8px;color:#4c6765;overflow-wrap:anywhere}
form{display:grid;gap:16px;margin-top:22px}label{display:grid;gap:8px;font-weight:700}
input,select{width:100%;min-width:0;min-height:48px;border-radius:9px;border:1px solid #a8c3b9;padding:10px 12px;background:#fff;color:var(--ink);font-size:16px}
.profile{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,330px);align-items:end;gap:18px;margin-bottom:16px}
.list-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px}
ul{list-style:none;margin:0;padding:0}.lesson{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:12px 0;border-bottom:1px solid var(--line)}
.lesson:last-child{border-bottom:0}.lesson time{display:block;font-weight:800;margin-bottom:4px}.state{font-size:.85rem;color:#486862}.state.absent{color:#a33527}.state.early{color:#664795}
.lesson button{min-width:112px}.request{background:#e5f2ed;color:#125849;border-color:#b8d6c9}.requested{font-size:.9rem;color:#526f65}
#empty{padding-top:16px;color:#526f65}
#notice:not(:empty){position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));inset-inline:16px;width:fit-content;max-width:calc(100% - 32px);margin:auto;padding:13px 16px;color:#fff;background:#163a3d;border-radius:10px;box-shadow:0 4px 18px #152b3133}
@media(max-width:640px){.profile{grid-template-columns:minmax(0,1fr);gap:14px}.lesson button{min-width:102px;padding-inline:10px}.lessons,.profile{border-radius:12px}}
@media(max-width:360px){button{padding-inline:10px}.lesson time{font-size:.92rem}.lesson button{min-width:92px}}
