:root{--green:#176b55;--dark:#164c3e;--ink:#20372e;--muted:#53645c;--bg:#f7f8f3;--white:#fff;--line:#dbe6df;--leaf:#e9f3eb;--warm:#f9efd5;--blue:#e8f2f8;--purple:#f0eafa;--radius:18px;--shadow:0 10px 30px #184c3e0b}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:96px}body{margin:0;font-family:Arial,"Segoe UI",Tahoma,sans-serif;font-size:16px;line-height:1.65;background:var(--bg);color:var(--ink);overflow-wrap:anywhere}a{color:var(--green);text-underline-offset:3px}a:hover{text-decoration-thickness:2px}button,input,select,textarea{font:inherit;max-width:100%}button,.button,input[type=button]{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid transparent;border-radius:12px;padding:9px 15px;background:var(--green);color:white;font-weight:700;text-decoration:none;line-height:1.35;text-align:center}button:hover,.button:hover{background:var(--dark);text-decoration:none}button.secondary,.button.secondary{background:#fff;color:var(--green);border-color:var(--line)}button.secondary:hover,.button.secondary:hover{background:var(--leaf)}button.danger{background:#a7352d}button.small,.button.small{font-size:14px;padding:8px 12px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ce8b24;outline-offset:3px}.skip{position:absolute;left:-999px;z-index:99}.skip:focus{left:12px;top:5px;background:white;padding:12px}.wrap{max-width:1180px;margin:auto;padding:0 24px}.header{position:sticky;top:0;z-index:10;background:#fffffffa;border-bottom:1px solid var(--line)}.bar{display:flex;gap:24px;align-items:center;min-height:74px;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:800;color:var(--dark);text-decoration:none;line-height:1.25;min-width:0}.brand img{width:42px;height:42px;flex:none}.brand small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:1.3px;font-weight:600;color:var(--muted);margin-top:3px}.nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:10px;color:var(--ink);font-size:14px;text-decoration:none;font-weight:600}.nav a.active,.nav a:hover{background:var(--leaf);color:var(--green)}#nav-toggle{display:none}.main{padding-top:30px;padding-bottom:70px;min-height:68vh}.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:30px;padding:40px 42px;background:#e7f1e5;border-radius:26px;position:relative;overflow:hidden;border:1px solid #dce9dc;align-items:center}.hero h1{font-size:clamp(30px,4.4vw,52px);line-height:1.13;letter-spacing:-1.2px;margin:15px 0;color:var(--dark);max-width:720px}.hero p{max-width:560px;color:#395c4d;font-size:17px}.kicker{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;font-weight:800;color:var(--green)}.hero-actions,.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.hero-photo{width:100%;height:300px;object-fit:cover;border-radius:18px;display:block}.hero-notes{display:grid;gap:10px}.hero-note{display:flex;gap:12px;align-items:center;background:#fffdf9;border:1px solid #d7e4d9;padding:15px 18px;border-radius:16px;box-shadow:var(--shadow)}.hero-note strong{display:block;font-size:16px;color:var(--dark)}.hero-note span:not(.icon){font-size:14px;color:var(--muted)}.icon{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:13px;background:var(--leaf);color:var(--green)}.icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.section{margin-top:38px}.sectionhead{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:15px}.sectionhead h2{margin:0;color:var(--dark);font-size:25px;line-height:1.3}.sectionhead p{margin:5px 0 0;color:var(--muted)}h1,h2,h3{line-height:1.3;color:var(--dark);overflow-wrap:break-word}h1{font-size:clamp(28px,4vw,40px);margin:8px 0 10px}h2{font-size:24px}h3{font-size:18px;margin:0 0 9px}.page-head{margin:0 0 25px;max-width:850px}.page-head p{color:var(--muted);margin:7px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);min-width:0}.card p{margin:7px 0 15px}.card-link{text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:8px;transition:background .15s,border .15s}.card-link:hover{background:#f5faf6;border-color:#a3c3ae}.card-link .icon{margin-bottom:2px}.card-link strong{font-size:18px;color:var(--dark)}.card-link p{color:var(--muted);font-size:14px;margin:0}.card-link .arrow{margin-top:auto;color:var(--green);font-size:14px;font-weight:700}.card-link:nth-child(4n+2) .icon{background:var(--blue);color:#265e79}.card-link:nth-child(4n+3) .icon{background:var(--warm);color:#86601e}.card-link:nth-child(4n+4) .icon{background:var(--purple);color:#634d85}.tag{font-size:12px;color:var(--green);background:var(--leaf);display:inline-block;line-height:1.35;padding:5px 9px;border-radius:8px;font-weight:700}.article-card{overflow:hidden;padding:0;display:flex;flex-direction:column}.article-card .content{padding:18px;flex:1;display:flex;flex-direction:column;align-items:flex-start}.article-card h3{margin-top:10px}.article-card p{font-size:15px;color:var(--muted)}.article-card .button{margin-top:auto}.article-card img{display:block;width:100%;height:170px;object-fit:cover}.article-body{max-width:850px;margin:auto;background:white;border:1px solid var(--line);padding:28px;border-radius:var(--radius)}.article-body p{font-size:17px;line-height:1.8}.article-body img{width:100%;max-height:460px;object-fit:contain;border-radius:14px}.article-body .article-lede{font-weight:600;color:var(--muted)}.photo-credit{font-size:12px;color:var(--muted)}.linkrow{display:flex;gap:8px;flex-wrap:wrap}.muted{color:var(--muted)}.notice{padding:15px 17px;border:1px solid #c5dbcc;border-radius:13px;background:var(--leaf);margin:12px 0}.notice.warn{background:#fbf2db;border-color:#e8d3a2;color:#604716}.notice.error{background:#fcebea;border-color:#e8c3c1;color:#922e28}.loading{text-align:center;padding:50px 20px;color:var(--muted)}.number{font-size:13px;font-weight:800;color:var(--green);letter-spacing:1px}.steps{padding-left:23px;margin:10px 0 18px}.steps li{padding:4px 0}.footer{background:#123f34;color:#ecf5ef;padding:32px 0 95px}.footer .wrap{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;flex-wrap:wrap}.footer .brand{color:white}.footer .brand small,.footer p,.footer .muted{color:#d3e5db}.footer p{font-size:14px;max-width:680px;margin:10px 0}.footer a{color:#fff}.footer .button.secondary{color:#123f34;background:white}.footer .links{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.form{display:grid;gap:14px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field.full{grid-column:1/-1}label{font-size:14px;font-weight:700;color:var(--ink)}input:not([type=checkbox]),select,textarea{width:100%;min-height:44px;background:#fff;border:1px solid #aabdb2;border-radius:10px;padding:10px 12px;color:var(--ink)}textarea{resize:vertical;min-height:120px}input[type=checkbox]{width:19px;height:19px;vertical-align:middle;accent-color:var(--green)}.check{display:flex;align-items:flex-start;gap:9px;min-height:44px;padding:8px 0}.check input{flex:none;margin-top:5px}.admin-shell{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px}.admin-menu{display:flex;flex-direction:column;gap:7px;align-self:start;position:sticky;top:95px}.admin-menu button{text-align:left;justify-content:flex-start}.admin-menu button.active{background:var(--green);color:white}.admin-content{min-width:0}.rowitem{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}.rowitem:last-child{border:0}.rowitem .actions{flex:none}.rowitem h3{font-size:17px}.status{font-size:12px;font-weight:700;border-radius:7px;padding:5px 8px;background:#e8f1eb;color:#165b43}.status.hidden{background:#fff0cb;color:#6a4b08}.status.deleted{background:#fbe8e8;color:#933a34}.status.review{background:#fff0cb;color:#6a4b08}.status.priority{background:#fbe8e8;color:#933a34}.status.unknown{background:#eef1f1;color:#526269}.status.watch{background:#e8f1eb;color:#165b43}.filterbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.filterbar input{flex:1;min-width:130px}.filterbar select{width:auto;max-width:100%}.book{max-width:780px;margin:auto}.book-sheet{padding:30px;min-height:350px;background:#fffdf8;border:1px solid #d8d9cb;border-radius:16px;box-shadow:var(--shadow);margin-bottom:12px}.book-sheet h2{font-size:28px}.book-sheet p{white-space:pre-line;line-height:1.8;font-size:18px}.book-controls{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.book-controls select{width:auto;max-width:100%}.card-stage{max-width:750px;margin:auto}.situation{font-size:20px;font-weight:600;color:var(--dark)}.choices{display:grid;gap:10px}.choices button{text-align:left;justify-content:flex-start;padding:13px 15px;color:var(--ink);background:white;border:1px solid #aabdb2}.choices button:hover{background:var(--leaf)}.choices button.selected{border-color:var(--green);background:var(--leaf)}.gallery-img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#f1f4f1;border-radius:12px;display:block}.thumb{width:100px;height:76px;object-fit:contain;border-radius:8px;background:#f1f4f1}.chat-root{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:30;display:flex;flex-direction:column;align-items:flex-end;gap:8px}.chat-closed{display:flex;align-items:center;gap:8px}.chat-trigger{width:60px;height:60px;border-radius:50%;padding:0;overflow:hidden;box-shadow:0 4px 20px #103c3333}.chat-trigger svg{width:29px;height:29px;stroke:#fff;fill:none;stroke-width:2}.chat-trigger img{width:100%;height:100%;object-fit:cover}.chat-hint{max-width:230px;background:white;color:var(--dark);border:1px solid #b7d3c4;box-shadow:0 4px 18px #103c331c;border-radius:14px 14px 3px 14px;font-size:13px;min-height:44px}.chat-hint:hover{background:var(--leaf)}.chat-panel{width:min(360px,calc(100vw - 28px));height:min(560px,calc(100dvh - 32px));background:white;border:1px solid #b8cfc0;border-radius:20px;box-shadow:0 12px 45px #123f3440;display:flex;flex-direction:column;overflow:hidden}.chat-head{padding:12px 14px;background:var(--green);color:white;display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-head strong{font-size:17px}.chat-head small{display:block;font-size:12px;color:#e0eee6}.chat-head button{background:#ffffff22;padding:5px 13px;font-size:20px;min-width:44px}.chat-messages{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:9px}.msg{border-radius:13px;padding:10px 12px;background:var(--leaf);font-size:14px;max-width:95%;align-self:flex-start;white-space:pre-wrap}.msg.user{align-self:flex-end;background:#176b55;color:white}.msg a{display:inline-block;margin-top:5px}.chat-suggestions{display:flex;overflow-x:auto;gap:6px;padding:8px;border-top:1px solid var(--line)}.chat-suggestions button{white-space:nowrap;font-size:12px;min-height:44px}.chat-form{display:flex;gap:6px;padding:8px;background:#f7faf7;border-top:1px solid var(--line)}.chat-form input{min-width:0}.chat-form button{flex:none}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.stat{background:var(--leaf);border-radius:12px;padding:12px;color:var(--dark)}.stat strong{display:block;font-size:25px;line-height:1.2}.stat span{font-size:13px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{padding:10px 9px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{background:var(--leaf);color:var(--dark);font-size:13px}td button{min-width:44px}.teacher-list{display:grid;gap:12px}.teacher-list .card{padding:14px}.teacher-list .actions{margin-top:9px}dialog{border:1px solid var(--line);border-radius:16px;max-width:min(650px,92vw);padding:22px;color:var(--ink)}dialog::backdrop{background:#123f3470}.empty{padding:20px 0;color:var(--muted)}.tiny{font-size:13px}.login{max-width:440px;margin:30px auto}.hidden-node,[hidden]{display:none!important}
@media(max-width:900px){.hero{grid-template-columns:1fr 1fr;padding:28px;gap:16px}.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bar{gap:10px}.nav a{padding:8px}.admin-shell{grid-template-columns:1fr}.admin-menu{position:static;flex-direction:row;flex-wrap:wrap}.admin-menu button{flex:1;white-space:nowrap}}
@media(max-width:660px){.wrap{padding:0 15px}.header .bar{min-height:64px}.brand{font-size:17px}.brand img{width:39px;height:39px}.brand small{font-size:10px}.main{padding-top:18px;padding-bottom:55px}.hero{grid-template-columns:1fr;padding:23px 18px;border-radius:20px;gap:18px}.hero h1{font-size:34px;letter-spacing:-.8px}.hero p{font-size:16px}.hero-notes{gap:8px}.hero-note{padding:10px 12px}.hero-note .icon{width:38px;height:38px}.hero-photo{height:210px}.hero-actions{display:grid;grid-template-columns:1fr}.section{margin-top:28px}.sectionhead{align-items:flex-start;flex-direction:column;gap:5px}.sectionhead h2{font-size:22px}.grid,.grid.two,.grid.four{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.grid.single-mobile{grid-template-columns:1fr}.card{padding:14px;border-radius:14px}.card-link strong{font-size:16px}.card-link p{font-size:13px}.card-link .icon{width:40px;height:40px}.card-link .arrow{font-size:13px}.article-card{padding:0}.article-card .content{padding:15px}.article-card img{height:140px}.article-body{padding:18px}.article-body p{font-size:16px}.fields{grid-template-columns:1fr}.rowitem{flex-direction:column;gap:7px}.rowitem .actions{flex-wrap:wrap}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.book-sheet{padding:20px;min-height:330px}.book-sheet h2{font-size:24px}.book-sheet p{font-size:16px}.book-controls{gap:7px}.book-controls button{flex:1}.book-controls select{width:100%;order:3}.nav{display:none;position:absolute;left:0;right:0;top:64px;background:#fff;padding:10px 15px 15px;border-bottom:1px solid var(--line);box-shadow:var(--shadow);flex-direction:column;align-items:stretch}.nav.open{display:flex}.nav a{font-size:16px}.nav a:focus{background:var(--leaf)}#nav-toggle{display:inline-flex;min-width:44px;padding:7px 10px}.footer{padding-bottom:115px}.chat-root{right:12px;bottom:12px}.chat-trigger{width:54px;height:54px}.chat-hint{max-width:205px}.chat-panel{height:min(540px,calc(100dvh - 24px))}.situation{font-size:18px}.admin-menu button{font-size:13px;padding:8px 10px}.footer .links{width:100%}}
@media(max-width:355px){.grid,.grid.two,.grid.four{grid-template-columns:1fr}.hero h1{font-size:29px}.chat-hint{max-width:165px}}@media print{.header,.footer,#chat,.no-print,button,.button{display:none!important}body{background:white}.main{padding:0}.card,.article-body{border:0;box-shadow:none}.wrap{max-width:none}}
