:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#19283b;background:#f6f8fb;font-synthesis:none;--blue:#2468e8;--muted:#6c7b90;--line:#e7ecf3;--green:#178363}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #95b9fb;outline-offset:3px}button{border:0}a{color:var(--blue);text-decoration:none}.app-shell{max-width:680px;min-height:100dvh;margin:auto;padding-bottom:calc(106px + env(safe-area-inset-bottom));background:#f6f8fb}.topbar{padding:calc(12px + env(safe-area-inset-top)) 22px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;gap:11px;align-items:center;font-size:17px;font-weight:650;letter-spacing:.3px}.brand img{border-radius:10px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:5px;font-weight:400;letter-spacing:1px}.connection{font-size:11px;color:var(--muted);white-space:nowrap}.connection::before{content:"";display:inline-block;background:#b8c2d0;width:6px;height:6px;border-radius:50%;margin-right:6px}.connection.online::before{background:#19a57c}.connection.error::before{background:#e19a42}main{padding:25px 22px}h1{font-size:27px;line-height:1.25;letter-spacing:-.8px;margin:6px 0 8px}h2{font-size:16px;margin:0;font-weight:650}h3{font-size:16px;margin:0 0 10px;line-height:1.5}p{line-height:1.75;margin:10px 0}small,.muted{color:var(--muted)}.intro{font-size:13px;color:var(--muted);margin:0 0 24px}.eyebrow{font-size:10px;color:var(--muted);letter-spacing:2px;font-weight:600}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:21px;margin:18px 0;box-shadow:0 4px 14px #1c355004}.panel.soft{background:#edf4ff;border-color:#dce8ff}.panel.warning{background:#fff9ee;border-color:#f6e4c3}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.badge{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;font-size:11px;font-weight:600;background:#edf3fc;color:#4672ad;padding:5px 8px;border-radius:7px}.badge.live{background:#e4f6ef;color:var(--green)}.badge.live::before{content:"";width:5px;height:5px;background:#22a17a;border-radius:50%}.live-card{border-color:#c9e9df;background:linear-gradient(125deg,#f1fbf7,#fff)}.live-card .course-title{font-size:21px;letter-spacing:-.4px;margin-top:12px}.live-card .sub{font-size:12px;color:var(--muted)}.start-time{font-size:13px;color:var(--green);margin-top:17px;border-top:1px solid #dbeee7;padding-top:14px}.start-time strong{font-size:17px;letter-spacing:.4px}.official-note{font-size:12px;color:#66796f;line-height:1.7;margin:10px 0 0}.summary{display:flex;align-items:center;gap:12px}.avatar{background:#eaf0fe;color:#3e6cc7;border-radius:13px;width:44px;height:44px;display:grid;place-items:center;font-size:19px;font-weight:600;flex-shrink:0}.summary-name{font-size:15px;font-weight:650}.summary-sub{font-size:11px;margin-top:5px;color:var(--muted)}details{font-size:12px;margin-top:16px;border-top:1px solid var(--line);padding-top:14px}summary{cursor:pointer;color:var(--muted)}.info-grid{display:grid;grid-template-columns:auto 1fr;gap:10px 16px;margin-top:15px;overflow-wrap:anywhere}.info-grid dt{color:var(--muted)}.info-grid dd{margin:0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:28px 0 13px}.section-heading span{font-size:12px;color:var(--muted)}.course-list{background:#fff;border:1px solid var(--line);border-radius:18px;padding:0 17px;list-style:none;margin:0}.course-row{display:flex;gap:13px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.course-row:last-child{border-bottom:0}.course-symbol{width:38px;height:43px;border-radius:9px;background:#f0f4fc;color:#5479bb;font-weight:650;font-size:15px;display:grid;place-items:center;flex-shrink:0}.course-meta{flex:1;min-width:0}.course-name{font-size:14px;line-height:1.5;font-weight:600}.class-name{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.6;overflow-wrap:anywhere}.row-actions{display:flex;align-items:center;gap:12px}.text-button{background:transparent;padding:6px 0;font-size:12px;color:var(--blue);min-height:32px}.primary{display:block;width:100%;padding:14px 18px;min-height:48px;background:var(--blue);color:#fff;font-size:14px;font-weight:600;border-radius:12px;text-align:center}.secondary{display:block;width:100%;padding:13px 18px;min-height:46px;background:#eef3fc;color:#335c9c;font-size:13px;font-weight:600;border-radius:12px;text-align:center;margin-top:12px}.danger{color:#a04b4b}.field{display:block;width:100%;padding:14px;background:#f7f9fc;border:1px solid #dce4ef;border-radius:12px;margin:10px 0 15px;font-size:16px;letter-spacing:1px}.label{font-size:12px;font-weight:600}.hint{font-size:12px;color:var(--muted);line-height:1.8}.steps{padding-left:20px;font-size:12px;color:var(--muted);line-height:1.9}.steps li{margin:8px 0}.qr-wrap{max-width:268px;aspect-ratio:1;margin:18px auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}.qr-wrap img{width:100%;height:100%;object-fit:contain}.qr-status{text-align:center;color:var(--muted);font-size:12px}.empty{text-align:center;padding:28px 12px;color:var(--muted);font-size:13px;line-height:1.8}.empty-icon{font-size:26px;color:#8aa3c5;display:block;margin-bottom:9px}.settings-main{display:flex;justify-content:space-between;align-items:center;gap:20px}.settings-main p{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.7}.switch{position:relative;display:inline-block;flex-shrink:0;width:50px;height:30px}.switch input{opacity:0;position:absolute;inset:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}.switch span{display:block;border-radius:20px;background:#d7dfe9;height:100%;transition:.2s}.switch span::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:.2s}.switch input:checked+span{background:var(--blue)}.switch input:checked+span::after{transform:translateX(20px)}.switch input:focus-visible+span{outline:3px solid #95b9fb;outline-offset:3px}.status-line{display:flex;justify-content:space-between;gap:14px;font-size:12px;margin-top:15px;color:var(--muted);line-height:1.6}.status-line span:last-child{text-align:right;color:#35485f}.history-item{padding:14px 0;border-bottom:1px solid var(--line)}.history-item:last-child{border:0;padding-bottom:0}.history-title{font-size:13px;font-weight:600}.history-time{font-size:11px;color:var(--muted);line-height:1.8;margin-top:6px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,680px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.4fr);background:#ffffffed;backdrop-filter:blur(18px);padding:8px 12px calc(9px + env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:10;gap:4px}.bottom-nav button{min-width:0;white-space:nowrap;display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;padding:8px;border-radius:13px;background:transparent;color:#8793a4;font-size:11px}.bottom-nav button[aria-current="page"]{color:var(--blue);background:#edf3ff}.bottom-nav svg{width:22px;height:22px}.toast{position:fixed;bottom:calc(105px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);background:#203149f5;color:#fff;border-radius:13px;box-shadow:0 8px 20px #0002;padding:13px 18px;font-size:13px;line-height:1.7;z-index:40}.loading{padding:70px 20px;text-align:center;color:var(--muted);font-size:13px}.loading::before{content:"";display:block;width:24px;height:24px;border:2px solid #dbe6f7;border-top-color:var(--blue);border-radius:50%;margin:0 auto 20px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}.footer-note{text-align:center;color:#99a3b0;font-size:10px;line-height:1.8;margin:25px 0 5px}.notice{padding:12px 14px;background:#fff8ed;color:#8a642b;font-size:12px;line-height:1.8;border:1px solid #f4e5c9;border-radius:12px;margin-bottom:18px}.notice.error{color:#a14c40;background:#fff5f1;border-color:#f3dbd2}.permission-guide{border-top:1px solid var(--line);margin-top:17px;padding-top:12px}.inline-error{font-size:12px;color:#b14c3b;line-height:1.8}.row-wrap{overflow-wrap:anywhere}@media(min-width:700px){.app-shell{border-left:1px solid var(--line);border-right:1px solid var(--line)}main{padding:30px}.topbar{padding-left:30px;padding-right:30px}.course-list{padding:0 22px}.course-row{padding:20px 0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Home-screen installation button and platform guide. */
.bottom-nav .home-install{color:#426fbf;white-space:nowrap;font-size:10px}.install-guide{width:calc(100% - 32px);max-width:440px;max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:22px;padding:22px;color:#19283b;background:#fff;box-shadow:0 20px 70px #142d5140;overscroll-behavior:contain}.install-guide::backdrop{background:#152a4c66;backdrop-filter:blur(4px)}body:has(.install-guide[open]){overflow:hidden}.install-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.install-heading h2{font-size:19px}.install-heading button{background:#f0f4fa;color:#62738b;border-radius:50%;width:36px;height:36px;flex-shrink:0;font-size:25px;line-height:1}.install-status{font-size:12px;color:#178363;background:#edf9f3;border-radius:11px;padding:11px 13px}.install-steps{list-style:none;counter-reset:install-step;padding:0;margin:20px 0}.install-steps li{counter-increment:install-step;position:relative;padding:0 0 17px 36px}.install-steps li:last-child{padding-bottom:0}.install-steps li::before{content:counter(install-step);position:absolute;left:0;top:0;background:#edf3ff;color:#2468e8;width:25px;height:25px;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:650}.install-steps strong{font-size:13px;line-height:1.8}.install-steps p{font-size:12px;color:var(--muted);line-height:1.75;margin:5px 0 0}.install-address{background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:12px;margin:18px 0 10px}.install-address label{font-size:11px;color:var(--muted)}.install-address>div{display:flex;gap:8px;margin-top:8px}.install-address input{min-width:0;flex:1;width:100%;background:transparent;border:0;color:#52657e;font-size:11px;padding:6px 0}.install-address button{flex-shrink:0;background:#eaf1ff;color:#2468e8;font-size:11px;padding:8px;border-radius:8px}.install-guide>#install-feedback:empty{display:none}.install-guide>#install-done{margin-top:16px}

/* Classroom reminder preferences and per-feature diagnostics. */
.feature-switch+.feature-switch{border-top:1px solid #e8eaf0;padding-top:18px;margin-top:18px}.feature-result{border-top:1px solid #e8eaf0;padding-top:16px;margin-top:18px}.feature-result .hint{margin:8px 0;overflow-wrap:anywhere}.feature-result .status-line{gap:12px;align-items:flex-start}.feature-result .status-line>span:last-child{text-align:right;max-width:65%;overflow-wrap:anywhere}.source-pending{color:#8a5c16!important}

.brand small.author{display:flex;align-items:flex-start;letter-spacing:0;font-size:10px;line-height:1.5}.author-label{flex-shrink:0}.author-names{display:flex;flex-direction:row;align-items:baseline}.author-names>span{white-space:nowrap}

/* Keep long upstream names and author text within narrow screens. */
.brand,.brand>div,.summary>div,.course-meta,.panel-title>*,.settings-main>div{min-width:0}.brand{flex:1}.brand img,.connection{flex-shrink:0}.brand small.author,.summary-name,.summary-sub,.course-name,.class-name,.course-title,.sub{overflow-wrap:anywhere}.info-grid{grid-template-columns:auto minmax(0,1fr)}.device-entry{border-top:1px solid var(--line);padding:14px 0;overflow-wrap:anywhere}.device-entry .text-button{margin-top:8px}.device-label-form{display:flex;gap:8px;flex-wrap:wrap}.device-label-form .field{flex:1;min-width:140px}.device-label-form button{flex-shrink:0}

/* Header attribution, website link and required installation label. */
.brand-title{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.brand-site{font-size:10px;font-weight:400;letter-spacing:0;color:var(--muted)}.brand-site:hover{text-decoration:underline}.brand small.copyright{font-size:10px;line-height:1.5;letter-spacing:0}.install-label{text-align:center}.install-required{display:block;margin-top:3px;line-height:1.3}

/* Compact header: the logo spans the title and subtitle rows. */
.brand{display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px 11px;align-items:start}.brand>img{grid-column:1;grid-row:1;width:44px;height:44px}.brand-heading{grid-column:2;grid-row:1;height:44px;display:flex;flex-direction:column;justify-content:space-between}.brand-title{line-height:22px}.brand-tagline{display:flex;align-items:baseline;gap:14px;line-height:16px;white-space:nowrap}.brand small.brand-subtitle{margin:0;line-height:16px}.brand-tagline .connection{font-weight:400;letter-spacing:0}.brand-attribution{grid-column:2;grid-row:2}.brand small.author{margin-top:0;white-space:nowrap}.author-names>.author-gap{white-space:pre}.brand small.copyright{margin-top:3px}@media(max-width:360px){.topbar{padding-left:16px;padding-right:16px}.brand{column-gap:9px}.brand-title{gap:6px}.brand-site,.brand small.author{font-size:9px}}

/* Login-page copy of the existing home-screen installation entry. */
.login-home-install{display:flex;flex-direction:column;align-items:center;gap:6px;color:#426fbf;white-space:nowrap;font-size:10px}.login-home-install svg{width:22px;height:22px}

/* Only a fresh official attendance result gives an active classroom a status color. */
.live-card.entry-entered{background:#e9f8ef;border-color:#acd9bc}.entry-entered .entry-status{background:#c9eed7;color:#17643a}
.live-card.entry-absent{background:#fff0ef;border-color:#efbeb8}.entry-absent .entry-status{background:#f9d5d0;color:#9a3026}.entry-absent .start-time{color:#8a4c43;border-color:#efd4cf}
.live-card.entry-unknown{background:#f7f9fc;border-color:#dde4ed}.entry-unknown .entry-status{background:#e8edf4;color:#5f6f83}.entry-unknown .start-time{color:#5f6f83;border-color:#dde4ed}

/* Compact classroom cards, without affecting other panels. */
.live-card{padding:14px 16px;margin:12px 0}.live-card .panel-title{margin-bottom:6px}.live-card>.hint{margin:4px 0 8px;line-height:1.5}.live-card .course-title{margin-top:0}.live-card .sub{margin:6px 0}.live-card .start-time{margin-top:10px;padding-top:10px}.live-card .official-note{margin-top:8px;line-height:1.6}
.live-card .badge.live{background:#dceaff;color:#285ba7}.live-card .badge.live::before{background:#3977ca}

/* Course page spacing and invitation button only. */
.courses-intro{margin-bottom:12px}.courses-intro+.panel{margin-top:12px}.co-study-invite{background:var(--blue);color:#fff}

/* Course-page density and the connected friend pool. */
.project-purpose{color:#bd4545!important}
main.courses-page{padding-top:16px;padding-bottom:16px}.courses-page h1{margin-top:3px;margin-bottom:6px}.courses-page .courses-intro{margin-bottom:8px}.courses-page>.panel:not(.live-card){padding:14px 16px;margin:10px 0}.courses-page>.panel details{margin-top:10px;padding-top:10px}.courses-page .live-card{padding:12px 14px;margin:10px 0}.courses-page .section-heading{margin:18px 0 10px}.courses-page .course-row{padding:12px 0}.courses-page>.footer-note{margin-top:16px}
.friend-help{border:1px solid #ffffffb8;border-bottom:0;border-radius:14px 14px 0 0;background:linear-gradient(125deg,#ffffffde,#dceaffb8);color:#315b97;backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);box-shadow:inset 0 1px 0 #fff9,0 4px 14px #315b9726;min-height:46px;padding:12px 17px}
.friend-pool{border:1px solid #dce4ef;border-top:0;border-radius:0 0 14px 14px;background:#ffffffa6;padding:10px 12px 8px;margin-bottom:10px}.pool-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.pool-heading h2{font-size:13px}.pool-heading .text-button{font-size:11px;min-height:26px;padding:3px 0}.pool-member{display:flex;gap:9px;align-items:center;padding:7px 0;border-top:1px solid #e7ecf380}.pool-avatar{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:10px;overflow:hidden;background:#e8effc;color:#416cb4;font-size:15px;font-weight:600}.pool-avatar img{width:100%;height:100%;object-fit:cover}.pool-meta{min-width:0;flex:1}.pool-name{font-size:12px;font-weight:600;overflow-wrap:anywhere}.pool-status{font-size:10px;line-height:1.6;padding:0;background:transparent;color:#6c7b90;text-align:left}.pool-status::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:5px;background:#c95050}.pool-status.valid::before{background:#20a16a}.pool-status.invalid{color:#b14545}.pool-status:disabled{opacity:1;cursor:default}.pool-remove{font-size:11px;flex-shrink:0}.pool-add{font-size:12px;border-radius:9px;background:#edf3fc;color:#315b97;width:100%;min-height:32px;margin-top:5px}.pool-note{font-size:10px;line-height:1.6;color:#7a8799;margin:7px 0 0}
.friend-dialog .scanner-view{overflow:hidden;border-radius:12px}.friend-dialog video{display:block;width:100%;max-height:320px;object-fit:contain;transform-origin:center}.friend-dialog .camera-zoom{display:flex;align-items:center;gap:10px;font-size:12px;margin-top:10px}.camera-zoom input{flex:1;min-width:0;accent-color:var(--blue)}.camera-zoom span{min-width:3em;text-align:right}.pool-login-qr{display:block;width:min(100%,268px);margin:12px auto;border-radius:12px}.pool-results{margin-top:14px}.pool-result{padding:10px 0;border-top:1px solid var(--line);font-size:13px}.pool-result strong::before{content:"";display:inline-block;background:#ce5353;width:6px;height:6px;border-radius:50%;margin-right:6px}.pool-result.success strong::before{background:#20a16a}.pool-result.pending strong::before{background:#d69c3a}.pool-result p{margin:3px 0 0;font-size:12px;color:var(--muted)}.pool-result-course:empty{display:none}

.pool-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}.pool-member{gap:7px;min-width:0}.pool-member .pool-avatar{width:28px;height:28px;border-radius:8px;font-size:13px}.pool-member .pool-remove{font-size:10px}.pool-member .pool-status{font-size:10px}.pool-member .pool-name{font-size:11px}
.pool-retry-note{font-size:12px;line-height:1.7;color:#b14545;margin:8px 0 0}

/* Five navigation entries, preserving icon and label styles on narrow screens. */
.bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.4fr);padding-left:8px;padding-right:8px}.bottom-nav button{padding-left:4px;padding-right:4px}
