:root{--green:#176b55;--dark:#123f35;--gold:#e8b75f;--paper:#f4f2ec;--ink:#17211d;--muted:#68726d;--line:#d9d7cf;--white:#fff;--soft:#e3eee8;--danger:#b53b39;--radius:16px;font-family:"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit}.hidden{display:none!important}
.nav a{border:0;background:transparent;color:#ffffffcf;padding:12px 14px;text-align:left;border-radius:11px;font-weight:600;text-decoration:none;display:block}.nav a:hover{background:#ffffff13;color:#fff}
.auth-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 15% 10%,#dcebe5,transparent 34%),var(--paper)}
.auth-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px;box-shadow:0 24px 70px #123f3518}.auth-card h1{margin:15px 0 6px}.auth-card p{color:var(--muted);line-height:1.5}.auth-card form{display:grid;gap:16px;margin:24px 0}.auth-card label,.field{display:grid;gap:7px;font-size:14px;font-weight:650}.auth-card small{display:block;color:var(--muted);line-height:1.5}.brand-mark{width:48px;height:48px;border-radius:14px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800}
input,textarea,select{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 12px;background:#fff;color:var(--ink);outline:none}textarea{min-height:105px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #176b5520}
.button,.btn{border:0;border-radius:11px;padding:11px 16px;background:var(--green);color:#fff;font-weight:700;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:8px}.btn.secondary{background:var(--soft);color:var(--green)}.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}.btn.gold{background:var(--gold);color:#36280e}.btn.danger{background:var(--danger)}.btn:disabled{opacity:.45;cursor:not-allowed}
.alert{padding:12px 14px;border-radius:11px;margin:14px 0;font-size:14px}.alert.error{background:#fde9e8;color:#792725}.alert.success{background:#e2f3eb;color:#125742}
.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:var(--dark);color:#fff;padding:22px 16px;display:flex;flex-direction:column}.logo{display:flex;align-items:center;gap:12px;padding:0 5px 24px;border-bottom:1px solid #ffffff20}.logo b{display:block}.logo small{opacity:.6}.nav{display:grid;gap:6px;padding:22px 0}.nav button{border:0;background:transparent;color:#ffffffcf;padding:12px 14px;text-align:left;border-radius:11px;font-weight:600}.nav button:hover,.nav button.active{background:#ffffff13;color:#fff}.sidebar-note{margin-top:auto;background:#ffffff10;border-radius:13px;padding:13px;font-size:12px;line-height:1.55;color:#ffffffbd}.sidebar form{margin-top:12px}.sidebar .logout{width:100%;background:transparent;border:1px solid #ffffff25;color:#fff;border-radius:10px;padding:9px}
.workspace{min-width:0}.topbar{position:sticky;top:0;z-index:15;height:66px;background:#f4f2ecef;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.topbar h1{font-size:18px;margin:0}.topbar small{display:block;color:var(--muted);font-size:10px;letter-spacing:.16em;text-transform:uppercase}.mobile-menu{display:none;border:0;background:transparent;font-size:24px}.save-state{font-size:13px;color:var(--muted)}.main{padding:28px;max-width:1400px;margin:auto}.eyebrow{font-size:13px;color:var(--green);font-weight:750}.page-title{font-size:32px;margin:4px 0 8px}.subtle{color:var(--muted);line-height:1.55}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1.4fr .75fr}.grid.three{grid-template-columns:repeat(3,1fr)}.grid.four{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 2px 8px #123f3508}.card h2,.card h3{margin-top:0}.hero{background:var(--green);color:#fff;border:0;min-height:280px;padding:34px;display:flex;justify-content:space-between;align-items:center}.hero h2{font-size:38px;max-width:620px;margin:8px 0}.hero p{color:#ffffffbd;max-width:580px}.cover{width:155px;height:215px;border-radius:3px 12px 12px 3px;background:#f8f1df;color:var(--dark);padding:22px;transform:rotate(3deg);box-shadow:0 18px 40px #0004;overflow:hidden}.cover strong{font-family:Georgia,serif;font-size:21px;display:block;margin-top:45px}.book-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px;text-align:left;transition:.2s}.book-card:hover{transform:translateY(-3px);box-shadow:0 10px 30px #123f3515}.book-cover{aspect-ratio:1.45;border-radius:12px;color:#fff;padding:18px;display:flex;flex-direction:column;justify-content:flex-end}.book-cover small{opacity:.72;text-transform:uppercase;letter-spacing:.08em}.book-cover strong{font-family:Georgia,serif;font-size:20px;line-height:1.15;margin-top:7px}.progress{height:7px;border-radius:99px;background:#d9e8e2;overflow:hidden}.progress span{display:block;height:100%;background:var(--green)}.book-meta{font-size:13px;color:var(--muted);min-height:42px}.action-card{display:flex;gap:13px;align-items:center;text-align:left;border:1px solid var(--line);background:#fff;border-radius:15px;padding:18px}.action-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:var(--soft);color:var(--green);font-weight:800}.section-head{display:flex;justify-content:space-between;align-items:end;margin:26px 0 14px}.section-head h2{margin:3px 0}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.search{max-width:340px}.badge{display:inline-block;border:1px solid var(--line);border-radius:99px;padding:5px 9px;font-size:11px;font-weight:700}.chapter{width:100%;border:0;background:transparent;border-radius:10px;padding:10px;display:flex;align-items:center;gap:11px;text-align:left}.chapter:hover{background:var(--paper)}.chapter-num{width:31px;height:31px;border-radius:99px;display:grid;place-items:center;background:var(--soft);color:var(--green);font-weight:800;font-size:12px}.chapter-text{flex:1}.chapter-text b{display:block}.chapter-text small{color:var(--muted)}
.tabs{display:flex;gap:6px;overflow:auto;padding-bottom:8px}.tabs button{white-space:nowrap;border:1px solid var(--line);background:#fff;padding:10px 14px;border-radius:10px}.tabs button.active{background:var(--green);border-color:var(--green);color:#fff}.support-list button{width:100%;text-align:left;border:1px solid var(--line);background:#fff;padding:14px;border-radius:11px;margin-bottom:8px}.support-list button.active{border-color:var(--green);background:var(--soft);color:var(--green);font-weight:700}.steps{list-style:none;padding:0;margin:0;display:grid;gap:14px}.steps li{display:flex;gap:12px;align-items:flex-start}.step-num{width:32px;height:32px;flex:0 0 32px;border-radius:99px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field.full{grid-column:1/-1}.routine-preview{display:grid;grid-template-columns:1fr 1fr;gap:10px}.routine-step{min-height:80px;border:2px solid #176b5530;background:#e3eee880;border-radius:14px;padding:13px;display:flex;align-items:center;gap:12px}.routine-step span{width:40px;height:40px;border-radius:10px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:800}
.student-card .avatar{width:45px;height:45px;border-radius:99px;background:var(--soft);color:var(--green);display:grid;place-items:center;font-weight:800}.student-head{display:flex;justify-content:space-between;align-items:center}.privacy{background:#fff4d8;border:1px solid #d9b56d;color:#654612;padding:15px;border-radius:13px;margin:18px 0}.empty{min-height:260px;display:grid;place-items:center;text-align:center;border:1px dashed var(--line);border-radius:15px;background:#ffffff80;color:var(--muted)}
.reader{min-height:100vh;background:#f5ecd9;color:#302a20}.reader.white{background:#fff;color:#20231f}.reader.night{background:#17201d;color:#eef2ed}.reader-bar{position:sticky;top:0;z-index:20;height:64px;display:flex;justify-content:space-between;align-items:center;padding:0 18px;background:inherit;border-bottom:1px solid #7773}.reader-tools{display:flex;gap:6px}.reader-tools button{border:0;background:transparent;color:inherit;padding:8px}.reader-page{max-width:780px;margin:auto;min-height:calc(100vh - 64px);padding:60px;border-left:1px solid #7772;border-right:1px solid #7772}.reader-page h1{font-family:Georgia,serif;font-size:46px;line-height:1.1}.reader-page article{font-family:Georgia,serif;font-size:19px;line-height:1.85}.reader-page article h2{font-family:"Segoe UI",Arial,sans-serif;font-size:21px;margin-top:38px}.practice{margin-top:38px;border:1px solid #7773;background:#7771;padding:22px;border-radius:15px}.practice ol{padding-left:22px}.reader-note{margin-top:25px}
.modal{position:fixed;inset:0;background:#0007;z-index:50;display:grid;place-items:center;padding:18px}.modal-box{background:#fff;border-radius:20px;padding:24px;width:min(560px,100%);max-height:90vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;gap:10px}.modal-head button{border:0;background:transparent;font-size:24px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.install-banner{display:none;position:fixed;bottom:15px;left:50%;transform:translateX(-50%);z-index:40;background:var(--dark);color:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 10px 40px #0004;align-items:center;gap:12px}
@media(max-width:1050px){.grid.four{grid-template-columns:repeat(2,1fr)}.grid.three{grid-template-columns:1fr 1fr}.grid.two{grid-template-columns:1fr}.cover{display:none}}
@media(max-width:760px){.shell{display:block}.sidebar{position:fixed;z-index:40;left:-270px;width:250px;transition:.2s}.sidebar.open{left:0}.mobile-menu{display:block}.topbar{padding:0 14px}.main{padding:18px}.grid.four,.grid.three,.form-grid,.routine-preview{grid-template-columns:1fr}.hero{min-height:auto;padding:25px}.hero h2{font-size:31px}.page-title{font-size:27px}.reader-page{padding:34px 22px}.reader-page h1{font-size:36px}.reader-bar .reader-title{display:none}.section-head{align-items:flex-start;flex-direction:column;gap:10px}.search{max-width:none;width:100%}}
@media print{.sidebar,.topbar,.reader-bar,.no-print,.install-banner{display:none!important}.shell{display:block}.main{padding:0}.reader-page{border:0;padding:20px}.reader{background:#fff;color:#000}}
