:root{--color-primary: #1e3a5f;--color-primary-dark: #162d4a;--color-accent: #e84855;--color-bg: #f5f7fa;--color-surface: #ffffff;--color-border: #e2e8f0;--color-text: #1a202c;--color-muted: #718096;--color-success: #38a169;--color-danger: #e53e3e;--radius: 8px;--shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);--shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);--font: "Segoe UI", system-ui, -apple-system, sans-serif}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;-webkit-text-size-adjust:100%}body{font-family:var(--font);background:var(--color-bg);color:var(--color-text);line-height:1.6}a{color:inherit;text-decoration:none}ul{list-style:none}button{font:inherit;cursor:pointer;border:none;background:none}input,textarea,select{font:inherit}img{max-width:100%}h1{font-size:1.75rem;font-weight:700}h2{font-size:1.375rem;font-weight:700;margin-bottom:.75rem}h3{font-size:1.125rem;font-weight:600}h4{font-size:1rem;font-weight:600;margin:1rem 0 .5rem}.app-header{background:var(--color-primary);color:#fff;padding:0 1.25rem;position:sticky;top:0;z-index:100;box-shadow:var(--shadow-md)}.header-inner{display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:0 auto;height:56px;gap:1rem}.logo{display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:1.1rem;white-space:nowrap}.logo-icon{font-size:1.4rem}.main-nav{display:flex;gap:.25rem}.nav-link{padding:.375rem .875rem;border-radius:6px;color:#fffc;font-weight:500;font-size:.9rem;transition:background .15s,color .15s}.nav-link:hover,.nav-link.active{background:#ffffff26;color:#fff}.admin-link{border:1px solid rgba(255,255,255,.3)}.app-main{max-width:1200px;margin:2rem auto;padding:0 1.25rem}.section{display:none}.section.active{display:block}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.card{background:var(--color-surface);border-radius:var(--radius);padding:1.25rem;box-shadow:var(--shadow);cursor:pointer;transition:box-shadow .15s,transform .15s;border:1px solid var(--color-border)}.card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.card:focus{outline:2px solid var(--color-accent);outline-offset:2px}.card-time{font-size:.8rem;color:var(--color-muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em;margin-bottom:.25rem}.card-title{font-size:1.05rem;font-weight:700;margin-bottom:.375rem}.card-location{font-size:.875rem;color:var(--color-muted);margin-bottom:.25rem}.card-desc{font-size:.875rem;color:#4a5568;margin-top:.5rem}.card-meta{font-size:.875rem;color:var(--color-muted);margin:.1rem 0}.timeline{display:flex;flex-direction:column;gap:0}.timeline-item{display:flex;gap:1rem;padding:.875rem 1rem;border-left:4px solid var(--color-border);background:var(--color-surface);margin-bottom:2px;border-radius:0 var(--radius) var(--radius) 0;min-width:0}.timeline-item.type-show{border-left-color:#e84855}.timeline-item.type-break{border-left-color:#f6c90e}.timeline-item.type-lunch{border-left-color:#38a169}.timeline-item.type-travel{border-left-color:#805ad5}.timeline-item.type-general{border-left-color:var(--color-primary)}.timeline-time{font-size:.8rem;color:var(--color-muted);font-weight:600;min-width:100px;white-space:nowrap;padding-top:.1rem;flex-shrink:0}.timeline-body{min-width:0;flex:1}.timeline-title{font-weight:600;overflow-wrap:break-word;word-break:break-word}.timeline-desc{font-size:.875rem;color:#4a5568;margin-top:.25rem;overflow-wrap:break-word;word-break:break-word}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;padding:.5rem 1rem;border-radius:6px;font-weight:600;font-size:.875rem;transition:background .15s,opacity .15s;border:1px solid transparent;cursor:pointer}.btn-primary{background:var(--color-primary);color:#fff}.btn-primary:hover{background:var(--color-primary-dark)}.btn-danger{background:var(--color-danger);color:#fff}.btn-danger:hover{opacity:.9}.btn-ghost{background:transparent;color:#ffffffe6;border-color:#ffffff4d}.btn-ghost:hover{background:#ffffff1a}.btn-sm{padding:.25rem .625rem;font-size:.8rem}.btn-full{width:100%}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:200;padding:1rem}.modal-overlay.hidden{display:none}.modal{background:var(--color-surface);border-radius:var(--radius);padding:1.5rem;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:0 20px 60px #0000004d}.modal-close{position:absolute;top:.75rem;right:.875rem;font-size:1.5rem;color:var(--color-muted);width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center}.modal-close:hover{background:var(--color-bg)}.group-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.chip{padding:.25rem .75rem;border-radius:99px;color:#fff;font-size:.8rem;font-weight:600}.badge{display:inline-block;padding:.2rem .6rem;border-radius:99px;font-size:.75rem;font-weight:600;background:#e2e8f0;color:#2d3748}.badge-show{background:#fed7d7;color:#9b2c2c}.badge-break{background:#fefcbf;color:#744210}.badge-lunch{background:#c6f6d5;color:#276749}.badge-travel{background:#e9d8fd;color:#553c9a}.badge-general{background:#bee3f8;color:#2c5282}.color-dot{display:inline-block;width:12px;height:12px;border-radius:50%}.hidden{display:none!important}.text-muted{color:var(--color-muted);font-size:.875rem}.loading,.empty{color:var(--color-muted);padding:2rem;text-align:center}.error{color:var(--color-danger);padding:1rem}.student-list{column-count:2;gap:1rem}.student-list li{padding:.2rem 0;font-size:.9rem}.detail-meta{color:var(--color-muted);font-size:.9rem;margin-bottom:.75rem}.install-banner{position:fixed;bottom:1rem;left:50%;transform:translate(-50%);background:var(--color-primary);color:#fff;padding:.75rem 1.25rem;border-radius:var(--radius);display:flex;align-items:center;gap:.75rem;box-shadow:var(--shadow-md);z-index:150;font-size:.9rem}.push-subscribe-btn{position:fixed;bottom:5rem;right:1.25rem;background:var(--color-accent);color:#fff;border:none;padding:.6rem 1rem;border-radius:var(--radius);box-shadow:var(--shadow-md);cursor:pointer;font-size:.85rem;z-index:149;transition:opacity .2s;max-width:calc(100vw - 2.5rem);text-align:center}.push-subscribe-btn:hover{opacity:.9}.ios-push-hint{font-size:.78rem;color:var(--color-muted);margin-top:.375rem}.bottom-nav{display:none}@media (max-width: 640px){.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:60px;background:var(--color-primary);box-shadow:0 -2px 8px #0000002e;z-index:100}.bottom-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#ffffffa6;font-size:.7rem;font-weight:600;text-decoration:none;padding:.375rem 0;transition:color .15s,background .15s;border-radius:0}.bottom-nav-item.active{color:#fff;background:#ffffff1f}.bottom-nav-item:active{background:#ffffff2e}.bottom-nav-icon{font-size:1.25rem;line-height:1}.bottom-nav-label{font-size:.65rem}}@media (max-width: 640px){.main-nav{display:none}.app-header{padding:0 .875rem}.header-inner{height:48px}.logo-text{font-size:.95rem}.app-main{padding-bottom:72px}.cards-grid{grid-template-columns:1fr}.student-list{column-count:1}.install-banner{bottom:68px}.push-subscribe-btn{bottom:72px}}.student-info{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.student-greeting{color:#ffffffd9;font-size:.85rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}@media (max-width: 640px){.student-greeting{display:none}}.login-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--color-bg);display:flex;align-items:center;justify-content:center;z-index:300;padding:1.25rem}.login-overlay.hidden{display:none}.login-card{background:var(--color-surface);border-radius:12px;padding:2.5rem 2rem;max-width:420px;width:100%;box-shadow:0 8px 32px #0000001f;border:1px solid var(--color-border)}.login-logo{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin-bottom:1.75rem;text-align:center}.login-logo-icon{font-size:2.5rem}.login-title{font-size:1.375rem;font-weight:700;color:var(--color-primary);margin:0}.login-subtitle{color:var(--color-muted);font-size:.9rem;margin-bottom:1.25rem;text-align:center;line-height:1.5}.login-form{display:flex;flex-direction:column;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.4rem}.form-group label{font-size:.875rem;font-weight:600;color:var(--color-text)}.form-group input[type=email]{padding:.625rem .875rem;border:1.5px solid var(--color-border);border-radius:var(--radius);font-size:1rem;transition:border-color .15s,box-shadow .15s;background:var(--color-bg)}.form-group input[type=email]:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #1e3a5f1f}.login-error{color:var(--color-danger);font-size:.85rem;text-align:center;margin:0}.login-sent-icon{font-size:2.75rem;text-align:center;margin-bottom:.75rem}#login-sent-view,#login-verifying-view,#login-token-error-view{text-align:center}#login-sent-view h2,#login-verifying-view h2,#login-token-error-view h2{margin-bottom:.625rem}.btn-outline-primary{background:transparent;color:var(--color-primary);border:1.5px solid var(--color-primary)}.btn-outline-primary:hover{background:#1e3a5f0f}.my-group-card{background:var(--color-surface);border-radius:var(--radius);padding:1.25rem 1.5rem;box-shadow:var(--shadow);border:1px solid var(--color-border);margin-bottom:.5rem}.my-group-name{font-size:1.25rem;font-weight:700;margin-bottom:.375rem}
