:root{--green:#137a4a;--green-pale:#eaf6ef;--ink:#172622;--muted:#718179;--line:#e9eeea;--bg:#f6f8f5;--card:#fff;--shadow:0 7px 22px rgba(23,51,38,.055);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{padding:0;margin:0;background:var(--bg);-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button{cursor:pointer}button:active{transform:scale(.98)}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#55b77e!important;box-shadow:0 0 0 3px #e2f5e8}h1,h2,h3,p{margin:0}h1{font-size:31px;letter-spacing:-.9px;font-weight:800}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:15px}.app-shell{max-width:620px;margin:auto;min-height:100dvh;padding-bottom:calc(95px + env(safe-area-inset-bottom))}.app-header{display:flex;align-items:center;justify-content:space-between;padding:calc(24px + env(safe-area-inset-top)) 22px 14px}.overline{display:block;font-size:12px;letter-spacing:.4px;color:var(--muted);font-weight:650;margin-bottom:3px}.header-sparkle{font-size:21px;color:#e9aa32}.icon-btn{border:none;background:var(--green);color:white;border-radius:15px;width:42px;height:42px;font-size:30px;font-weight:300;box-shadow:0 7px 17px rgba(16,115,70,.22)}.main-view{padding:0 16px 30px}.card{background:var(--card);border:1px solid #eef2ee;border-radius:20px;padding:17px;box-shadow:var(--shadow);margin-bottom:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 11px}.section-heading .sub{font-size:12px;color:var(--muted);font-weight:500}.plain-btn{border:0;background:transparent;color:var(--green);font-size:13px;font-weight:750;padding:8px}.month-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.month-bar strong{font-size:19px;text-transform:capitalize}.circle-small{background:#f2f5f3;border:0;border-radius:50%;width:34px;height:34px;color:#456354;font-size:19px}.weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-bottom:5px}.weekdays span{font-size:11px;color:#87948d;text-align:center;font-weight:700}.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.day-btn{height:43px;border:0;background:transparent;color:#263c31;font-size:14px;border-radius:12px;position:relative;font-weight:600}.day-btn.dim{color:#bdc8c0}.day-btn.today:not(.selected){box-shadow:inset 0 0 0 1px #78b994}.day-btn.selected{background:var(--green);color:#fff;font-weight:800}.dots{position:absolute;left:50%;bottom:3px;display:flex;gap:2px;transform:translateX(-50%)}.dot{width:4px;height:4px;border-radius:50%}.selected .dot{box-shadow:0 0 0 .3px white}.event-row{display:flex;gap:11px;align-items:center;padding:12px 4px;border-bottom:1px solid var(--line);min-height:67px}.event-row:last-child{border-bottom:none;padding-bottom:3px}.event-time{width:45px;min-width:45px;color:#75867b;text-align:center;font-size:12px;font-weight:750}.event-color{width:4px;min-width:4px;height:39px;border-radius:8px}.event-details{flex:1;min-width:0}.event-title{font-size:14px;font-weight:700;line-height:1.25}.event-sub{font-size:11px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-check{border:1.5px solid #ccd8d0;background:white;border-radius:9px;width:29px;height:29px;flex-shrink:0;color:white;font-size:17px;display:grid;place-items:center}.mini-check.checked{background:#1b9658;border-color:#1b9658}.tag{font-size:11px;font-weight:700;border-radius:50px;padding:5px 9px;background:#f3f5f3;color:#51665b;white-space:nowrap}.chip-row{display:flex;gap:7px;overflow:auto;padding:3px 0 10px;scrollbar-width:none}.chip{border:1px solid #e1e8e3;background:white;border-radius:100px;padding:9px 13px;color:#5a7064;font-size:12px;font-weight:750;white-space:nowrap}.chip.active{background:#e3f4e9;color:var(--green);border-color:#a0d4b4}.empty{text-align:center;padding:38px 18px;color:#87948c}.empty .emoji{font-size:38px;margin-bottom:10px}.empty p{font-size:13px;line-height:1.5}.bottom-nav{position:fixed;z-index:30;left:0;right:0;bottom:0;margin:auto;max-width:620px;height:calc(69px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-top:1px solid #edf1ed;display:flex;align-items:flex-start;justify-content:space-around;padding:11px 3px env(safe-area-inset-bottom)}.nav-btn{display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:transparent;color:#9aa79d;font-size:10px;font-weight:650;min-width:59px}.nav-btn.active{color:var(--green)}.nav-icon{font-size:23px;line-height:26px}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:13px}.stat{padding:17px;background:white;border:1px solid #eef2ee;border-radius:18px;box-shadow:var(--shadow)}.stat-number{font-size:28px;font-weight:850;letter-spacing:-.5px}.stat-label{font-size:12px;color:#71837a;margin-top:3px}.bar-bg{height:10px;border-radius:10px;background:#eaf0eb;overflow:hidden}.bar{height:100%;background:var(--green);border-radius:10px;transition:width .2s}.bar-row{display:flex;align-items:center;justify-content:space-between;margin:11px 0 8px;font-size:13px}.tab-lede{font-size:13px;color:#73857b;line-height:1.5;padding:2px 3px 17px}.todo-group{margin-bottom:15px}.todo-group h3{padding:8px 5px;font-size:13px;color:#829188;text-transform:uppercase;letter-spacing:.6px}.todo-item{display:flex;align-items:center;gap:12px;padding:14px;border-radius:15px;background:white;border:1px solid #edf1ed;margin-bottom:7px}.todo-item.done .event-title{text-decoration:line-through;color:#9aa79d}.todo-item .event-sub{white-space:normal}.overdue-tag{font-size:10px;color:#b44a31;background:#fff0e8;border-radius:15px;padding:4px 6px;font-weight:750}.chat-window{display:flex;flex-direction:column;gap:12px;height:calc(100dvh - 275px);overflow:auto;padding:10px 2px 20px}.bubble{max-width:90%;padding:12px 14px;border-radius:17px;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.bot{background:#fff;box-shadow:var(--shadow);align-self:flex-start;border-top-left-radius:5px}.bubble.me{background:#dff1e7;align-self:flex-end;border-top-right-radius:5px}.chat-actions{display:flex;gap:8px;position:sticky;bottom:calc(75px + env(safe-area-inset-bottom));background:var(--bg);padding:11px 0}.chat-actions input{height:47px;border-radius:15px;background:white;border:1px solid #dfebe2;padding:0 13px;flex:1;min-width:0;font-size:14px}.chat-actions button{border:0;background:var(--green);color:white;border-radius:15px;padding:0 15px;font-size:17px}.chat-actions .mic-btn{background:#e1f2e9;color:var(--green)}.settings-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.settings-row:last-child{border:0}.settings-row strong{font-size:14px}.settings-row p{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.45}.primary-btn,.secondary-btn,.danger-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:13px;border:0;padding:12px 16px;font-size:13px;font-weight:800}.primary-btn{background:var(--green);color:white}.secondary-btn{background:#e5f3e9;color:var(--green)}.danger-btn{background:#fff1ed;color:#b64833}.full{width:100%}.notice-banner{margin:0 16px 14px;padding:12px 15px;border-radius:13px;background:#fff2d7;color:#805918;font-size:12px;line-height:1.5}.notice-banner[hidden]{display:none}.modal-root{position:fixed;inset:0;background:#0a1d1480;z-index:80;display:flex;align-items:end;justify-content:center}.modal-root[hidden]{display:none}.modal{width:100%;max-width:620px;max-height:92dvh;overflow:auto;background:#fbfcfa;border-radius:26px 26px 0 0;padding:23px 19px calc(28px + env(safe-area-inset-bottom));box-shadow:0 -5px 50px #14291a20}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.modal-header h2{font-size:22px}.close-btn{border:0;background:#e9f0ea;color:#4c6354;border-radius:50%;width:34px;height:34px;font-size:18px}.field{margin-bottom:13px}.field label{display:block;color:#536c5e;font-size:12px;font-weight:750;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;border:1px solid #dde6df;background:white;border-radius:12px;padding:12px;font-size:14px;color:#233b2c}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:11px 0}.check-label{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #e7eee9;border-radius:12px;padding:10px 8px;font-size:12px}.check-label input{accent-color:var(--green);width:17px;height:17px}.muted-note{font-size:12px;color:#74847b;line-height:1.5}.warning{border:1px solid #fae1b0;background:#fff8e9;color:#805917;border-radius:15px;padding:13px;margin:10px 0;font-size:12px;line-height:1.55}.row-gap{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.week-pills{display:flex;justify-content:space-between;gap:4px}.week-pills label{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;color:#728879}.week-pills input{accent-color:var(--green)}.placeholder-preview{background:#e6f1e9;border-radius:17px;padding:16px;margin:12px 0;font-size:13px;line-height:1.5}.small{font-size:11px}.form-foot{display:flex;gap:9px;margin-top:18px}.form-foot button{flex:1} .category-pills{display:flex;flex-wrap:wrap;gap:7px}.cat-pill{display:flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #e9efeb;border-radius:30px;font-size:11px;background:#fff}.swatch{width:9px;height:9px;border-radius:50%}.search-area{height:42px;border-radius:12px;border:1px solid #e5eee5;width:100%;padding:0 13px;background:white;font-size:13px;margin-bottom:12px}
@media(min-width:700px){.app-shell{border-left:1px solid #eef0ec;border-right:1px solid #eef0ec;background:var(--bg)}.bottom-nav{border-radius:18px 18px 0 0}}

/* Controle de faltas */
.attendance-course{padding:15px 0;border-top:1px solid #eef0ef}.attendance-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.attendance-title strong{line-height:1.3;flex:1}.attendance-controls{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin-top:10px}.attendance-controls .muted-note{flex:1}.attendance-controls .secondary-btn{font-size:13px;padding:8px 10px}.attendance-controls button:disabled{opacity:.4}
