@font-face{font-family:Inter;src:url('/assets/Inter-Regular.otf')}@font-face{font-family:Inter;src:url('/assets/Inter-SemiBold.otf');font-weight:600}
:root{font-family:Inter,system-ui,sans-serif;color:#111417;background:#fff;font-synthesis:none;--gold:#C2932A;--muted:#6B7280;--paper:#F7F7F5;--border:#E5E7EB}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;border:0;background:transparent;border-radius:10px;padding:10px 14px}button:hover{background:#00000008}button:disabled{opacity:.45;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}input,textarea,select{width:100%;padding:12px;border:1px solid var(--border);border-radius:10px;color:inherit;background:white;outline:none;font-size:16px}input:focus,textarea:focus,select:focus{border-color:var(--gold)}label{display:block;font-size:13px;line-height:1.7;margin:14px 0 8px}p{line-height:1.65}h1,h2,h3{font-weight:600;letter-spacing:-.035em}h3{margin-top:28px}small,.muted{font-size:12px;color:var(--muted);line-height:1.6}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.app-shell{display:flex;height:100dvh;min-height:320px}#sidebar{width:264px;flex-shrink:0;background:var(--paper);display:flex;flex-direction:column;padding:28px 16px 20px;border-right:1px solid #eee}.brand{display:block;margin:0 12px 26px}.brand img{display:block;width:174px;height:auto}.new-chat{text-align:left;font-weight:600;background:#fff;border:1px solid var(--border);margin-bottom:15px}#chat-search{background:transparent;font-size:13px;padding:10px}.eyebrow{font-size:10px;letter-spacing:.12em;color:var(--muted);font-weight:600}#sidebar .eyebrow{margin:26px 10px 8px}#chat-list{overflow:auto;flex:1}#chat-list button{display:block;width:100%;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;padding:12px}#chat-list button[aria-current=true]{background:#e9e9e5}.sidebar-bottom{padding-top:16px;border-top:1px solid var(--border);display:grid;gap:4px}.sidebar-bottom button{text-align:left;font-size:13px}.sidebar-bottom small{margin:16px 12px 0;font-size:10px}.app-shell main{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:16px;height:78px;flex-shrink:0;padding:0 36px}.topbar>div{flex:1}.topbar strong{font-size:19px;font-weight:600}.topbar #connection{display:block;font-size:10px;color:var(--muted);margin-top:4px}.quiet{font-size:12px;color:var(--muted)}#menu{display:none}.chat-scroll{flex:1;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth;padding:20px 30px}.welcome{max-width:760px;margin:clamp(35px,12vh,150px) auto 30px;text-align:center}.welcome h1{font-size:clamp(30px,4vw,42px);margin:22px 0 10px}.welcome>p:not(.eyebrow){color:var(--muted);font-size:15px;margin-top:0}.suggestions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:32px 0}.suggestions button{border:1px solid var(--border);border-radius:20px;font-size:12px;padding:12px 16px}.welcome-voice{font-size:13px;color:#80611c}.messages{max-width:760px;margin:0 auto;padding-bottom:28px}.message{margin:22px 0 30px;line-height:1.75;font-size:15px;overflow-wrap:anywhere}.message.user{margin-left:auto;background:var(--paper);border-radius:22px 22px 4px 22px;padding:14px 20px;width:fit-content;max-width:86%}.message .message-text{white-space:pre-wrap}.message.assistant{padding:5px 6px}.message.error{border-left:2px solid var(--gold);padding-left:18px;color:#6e5115}.message .read-aloud{padding:7px 0;margin-top:7px;font-size:11px;color:var(--muted)}.composer-wrap{width:min(820px,100%);margin:0 auto;padding:0 30px max(12px,env(safe-area-inset-bottom))}.composer{border:1px solid #deded8;border-radius:25px;background:var(--paper);padding:14px 14px 10px;box-shadow:0 3px 15px #11141703}.composer textarea{background:transparent;border:0;border-radius:0;resize:none;padding:3px 8px 10px;max-height:180px;line-height:1.6}.composer-actions{display:flex;gap:8px;align-items:center}.composer-spacer{flex:1}.send-button{background:#111417;color:#fff;border-radius:50%;width:36px;height:36px;padding:0;font-size:24px}.send-button:hover{background:#333}.voice-button{border:1px solid #dcdcd5;border-radius:20px;font-size:12px;padding:9px 12px}.composer-note{text-align:center;color:var(--muted);font-size:10px;margin:10px 0 0}#activity{min-height:22px;font-size:12px;color:var(--muted);padding:0 12px 6px}.attachment-uploading progress{width:min(140px,40%);height:8px}.sheet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.sheet-actions button{min-height:44px;padding:12px 18px}.primary{background:#111417;color:white;padding:12px 18px}.primary:hover{background:#34383c}.secondary{background:var(--paper);border:1px solid var(--border);font-size:13px}.button-row{display:flex;gap:10px;margin:16px 0}.check-label{display:flex;align-items:center;gap:10px}.check-label input{width:18px;height:18px}.training-item,.task-card,.work-card{padding:16px 0;border-bottom:1px solid var(--border);font-size:13px}.training-item p{margin:6px 0}.training-item button{font-size:12px}.task-card{display:flex;gap:12px;align-items:center}.task-card>div{flex:1}.task-card p{margin:0}.work-card a{display:inline-block;margin-top:10px;font-size:12px}.sheet{width:min(600px,100%);max-height:90dvh;border:1px solid var(--border);border-radius:20px;padding:0;color:inherit;box-shadow:0 20px 80px #0002}.sheet::backdrop{background:#11141755;backdrop-filter:blur(3px)}.sheet-header{position:sticky;top:0;background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:18px 25px;z-index:1}.sheet-header h2{font-size:21px;margin:0}.sheet-header button{font-size:24px;padding:0 8px;min-width:44px;min-height:44px;margin:-8px -6px -8px 0}.sheet-body{padding:0 26px 30px}.sheet-body p{font-size:13px;color:var(--muted)}.voice-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;margin:0;padding:0;background:var(--paper);color:inherit}.voice-dialog[open]{display:flex;flex-direction:column}.voice-top{display:flex;justify-content:space-between;align-items:center;padding:24px max(26px,env(safe-area-inset-right));font-size:14px}.voice-stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 30px}.voice-stage h2{font-size:22px;margin-top:48px}.voice-stage p{color:var(--muted);font-size:14px;max-width:530px;max-height:7em;overflow:auto}.voice-orb{display:flex;align-items:center;justify-content:center;gap:8px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#f2e9d1,#dfc589 65%,#c2932a);box-shadow:0 20px 70px #c2932a22;transition:transform .4s}.voice-orb i{width:6px;height:24px;border-radius:9px;background:#fff9;animation:breathe 1.8s ease-in-out infinite;animation-delay:calc(var(--i,0)*-.2s)}.voice-orb i:nth-child(2){--i:1;height:42px}.voice-orb i:nth-child(3){--i:2;height:60px}.voice-orb i:nth-child(4){--i:3;height:42px}.voice-orb i:nth-child(5){--i:4}.voice-orb.listening{transform:scale(1.05)}.voice-orb.stopped i{animation-play-state:paused}#microphone-level{width:110px;height:5px;margin-top:16px;accent-color:var(--gold)}.voice-footer{text-align:center;padding:20px 20px max(30px,env(safe-area-inset-bottom))}.voice-footer button{margin:4px;min-height:44px}.voice-footer p{font-size:11px;color:var(--muted);margin:20px 0 0}.locked{position:fixed;inset:0;z-index:20;display:grid;place-items:center;background:var(--paper);padding:25px}.locked>div{max-width:400px;width:100%}.locked h1{font-size:32px}.locked p{color:var(--muted)}.locked button{margin-top:15px}.locked .primary{width:100%}#toast{position:fixed;bottom:max(26px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:50;background:#111417;color:white;padding:14px 22px;border-radius:14px;max-width:calc(100% - 30px);font-size:13px;box-shadow:0 5px 30px #0002}.shade{display:none}@keyframes breathe{0%,100%{transform:scaleY(.6)}50%{transform:scaleY(1.15)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}@media(max-width:760px){#sidebar{position:fixed;left:0;top:0;bottom:0;z-index:12;transform:translateX(-100%);transition:transform .2s;padding-top:max(25px,env(safe-area-inset-top))}body.menu-open #sidebar{transform:translateX(0)}.shade{display:block;position:fixed;inset:0;z-index:11;background:#11141766;border-radius:0}#menu{display:block}.topbar{height:72px;padding:env(safe-area-inset-top) 14px 0;gap:12px}.topbar #training-open{display:none}.topbar strong{font-size:18px}.chat-scroll{padding:10px 18px}.composer-wrap{padding-left:12px;padding-right:12px}.welcome{margin-top:11vh}.welcome h1{font-size:30px}.suggestions{flex-direction:column;align-items:center;gap:10px}.message{font-size:15px}.sheet{width:100%;max-height:94dvh;max-width:100%;margin:auto 0 0;border-radius:20px 20px 0 0}.sheet-body{padding-bottom:max(30px,env(safe-area-inset-bottom))}.voice-top{padding-top:max(24px,env(safe-area-inset-top))}.voice-orb{width:155px;height:155px}.voice-stage h2{margin-top:30px}.composer-note{font-size:9px}}
.message-text p{margin:0 0 12px}.message-text p:last-child{margin-bottom:0}.message-text ul{white-space:normal;margin:10px 0;padding-left:24px}.message-text li{padding-left:4px;margin:5px 0}.message-text h3{font-size:16px;margin:20px 0 10px}.message-text pre{overflow:auto;background:var(--paper);padding:16px;border-radius:12px;white-space:pre;font-size:13px}.message-text code{font-family:ui-monospace,monospace;font-size:.9em}
.message-study-sources{margin-top:10px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-size:12px;line-height:1.5}.message-study-sources summary{cursor:pointer;font-weight:600;color:#775819}.message-study-sources p{margin:8px 0}.message-study-source{display:grid;gap:3px;padding:8px 0;border-top:1px solid var(--border)}.message-study-source code{overflow-wrap:anywhere;font-size:11px}.message-study-source button{justify-self:start;padding:4px 0;font-size:11px;color:#775819}.message-study-legacy{display:block;margin-top:8px}

.sidebar-bottom .manager-link{display:block;padding:10px 14px;border-radius:10px;font-size:13px;text-decoration:none}.sidebar-bottom .manager-link:hover{background:#00000008}
.coding-lesson button{margin:10px 8px 0 0}.coding-lesson small,.scorecard small{display:block;margin-top:7px}.scorecard strong{overflow-wrap:anywhere}
body.file-drag .composer{border:2px dashed var(--gold);background:#fbf6e9}body.file-drag .composer::before{content:'Drop files anywhere to attach them to this chat';display:block;padding:8px 10px 12px;color:#80611c;font-size:12px;font-weight:600}.attachment-drafts,.message-attachments{display:flex;flex-direction:column;gap:7px;margin:0 0 9px;max-height:160px;overflow:auto}.message-attachments{margin:12px 0 0;max-height:none}.attachment-card{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--border);border-radius:12px;padding:7px 10px;font-size:11px;min-width:0}.message .attachment-card{background:var(--paper)}.attachment-card>div{flex:1;min-width:90px;overflow-wrap:anywhere}.attachment-card small{display:block}.attachment-card img{width:42px;height:42px;object-fit:cover;border-radius:7px}.attachment-card a,.attachment-card button{font-size:11px;padding:5px 7px}.attachment-card pre{width:100%;max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:var(--paper);padding:10px;border-radius:8px}.message.user .attachment-card pre{background:#fff}
.attachment-card input[type=number]{width:68px;padding:5px 6px;font-size:12px}.attachment-card>.attachment-ocr,.attachment-card>.attachment-pdf-text{flex-basis:100%}
.file-browser-results{display:grid;gap:8px;max-height:min(50dvh,520px);overflow:auto}.file-browser-results>.muted{margin:12px 0}.file-browser-results .attachment-card{align-items:flex-start}.file-browser-results .attachment-card>div{min-width:140px}
.load-older{display:block;margin:10px auto 18px;max-width:calc(100% - 24px)}
.chat-pager{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:6px 8px 12px;color:var(--muted);font-size:11px}.chat-pager button{padding:5px 10px;border:1px solid var(--border);background:#fff}.chat-pager>div{display:flex;gap:4px}

/* Assistant identity: canonical G-Tech Assist gold with accessible charcoal controls. */
#sidebar{background:#C2932A;color:#111417;border-right-color:#a77b1d}#sidebar .brand img{filter:brightness(0)}#sidebar .new-chat,#sidebar #chat-search{background:#fff;color:#111417;border-color:#8d681a}#sidebar #chat-search::placeholder{color:#545454}#sidebar .eyebrow,#sidebar .sidebar-bottom small,#sidebar .chat-pager{color:#2e291e}#sidebar #chat-list button,#sidebar .sidebar-bottom button,#sidebar .sidebar-bottom a{color:#111417}#sidebar #chat-list button:hover,#sidebar .sidebar-bottom button:hover,#sidebar .sidebar-bottom a:hover{background:#d5aa4b}#sidebar #chat-list button[aria-current=true]{background:#111417;color:#fff}#sidebar .sidebar-bottom{border-top-color:#8d681a}#sidebar .sidebar-bottom a{display:block;padding:10px 14px;border-radius:10px;font-size:13px;text-decoration:none}#sidebar .chat-pager button{background:#fff;color:#111417;border-color:#8d681a}#sidebar button:focus-visible,#sidebar a:focus-visible,#sidebar input:focus-visible{outline:3px solid #111417;outline-offset:2px}
.study-memory-dialog{width:min(690px,100%)}.study-memory-card{border:1px solid var(--border);border-radius:12px;padding:16px;margin:12px 0;overflow-wrap:anywhere}.study-memory-card-header{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.study-memory-card-header span{font-size:11px;color:#805d0e}.study-memory-card p{margin:10px 0}.study-memory-card small{display:block}.study-memory-card .button-row{flex-wrap:wrap;margin-bottom:0}.study-memory-card details{margin-top:12px;border-top:1px solid var(--border);padding-top:10px}.study-memory-card summary{cursor:pointer;font-size:13px}.study-memory-card form{padding:0 4px 12px}
.study-provider-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:min(40dvh,420px);overflow:auto;background:var(--paper);border-radius:10px;padding:12px;font:12px/1.5 ui-monospace,monospace}
.study-provider-consent{display:flex;align-items:flex-start;gap:10px;line-height:1.5}.study-provider-consent input{width:auto;flex:none;margin:3px 0 0;accent-color:var(--gold)}
.model-inline{display:inline-flex;align-items:center;gap:6px;margin:0 3px;font-size:11px;vertical-align:middle}.model-inline select{width:auto;max-width:190px;padding:4px 8px;font-size:11px;border-radius:8px}.message-feedback{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;margin-top:6px}.feedback-thumb{padding:4px 10px}.feedback-thumb[aria-pressed=true]{outline:2px solid var(--accent,currentColor)}.feedback-rewrite{flex:1 1 100%}.feedback-rewrite textarea{display:block;width:100%;margin:6px 0}.message-model{display:block;margin-top:8px;color:var(--muted);font-size:11px;line-height:1.4}
.model-version-update{display:inline-block;border:1px solid var(--gold);padding:4px 8px;font-size:11px;font-weight:600;background:#fff8e9}
#study-memory-new{border-top:1px solid var(--border);margin-top:18px;padding-top:14px}#study-memory-new summary{font-weight:600;cursor:pointer}#study-memory-new form{padding-bottom:12px}
.study-evaluations-dialog{width:min(760px,100%)}.study-evaluation-card>summary{font-weight:600}.study-evaluation-card>.study-evaluation-source{background:#fbf6e9;border-left:3px solid var(--gold);padding:10px 14px;margin:12px 0}.study-evaluation-source p{white-space:pre-wrap;margin:6px 0 0}.study-evaluation-answer{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;background:var(--paper);padding:12px;border-radius:10px;font-size:12px}.study-evaluation-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.study-evaluation-card form>.primary{margin-top:12px}@media(max-width:520px){.study-evaluation-scores{grid-template-columns:1fr}}
.coding-handoff{margin:8px 0 10px;padding:12px 14px;border:1px solid #d7bd78;border-radius:10px;background:#fff8e8;color:#24221e;font-size:13px;line-height:1.45}.coding-handoff p{margin:5px 0 9px}.coding-handoff-actions{display:flex;gap:8px;flex-wrap:wrap}.coding-handoff-actions button{font:inherit}
/* The chat restores its own reading position after rendering; browser anchoring fights that restoration. */
.chat-scroll{overflow-anchor:none}
#toast{display:flex;align-items:center;gap:12px;user-select:text}#toast[hidden]{display:none}.toast-copy{flex:none;border:1px solid #888;background:transparent;color:#fff;border-radius:5px;padding:5px 8px;font:inherit;cursor:pointer}.toast-copy:hover,.toast-copy:focus-visible{background:#ffffff22}.locked #sign-in-status{user-select:text;white-space:pre-wrap;overflow-wrap:anywhere}.clipboard-helper{position:fixed;left:-10000px;top:0}
/* The task workflow views (task-workflow.js): every control is at least 44px high, for a thumb. */
.task-card p{overflow-wrap:anywhere}.task-action{flex:none;min-height:44px;border:1px solid var(--border);border-radius:20px;font-size:12px;padding:9px 14px}.task-views{display:flex;gap:8px;margin-top:16px}.task-views[hidden]{display:none}.task-views button{flex:1;min-height:44px;border:1px solid var(--border);border-radius:20px;font-size:13px;padding:9px 6px}.task-views button[aria-pressed="true"]{background:var(--border);font-weight:600}.task-section{margin:20px 0 0;font-size:13px}.today-brief[hidden]{display:none}.today-brief-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:20px}.today-brief-head .task-section{margin:0}.brief-line{padding:6px 0;border-bottom:1px solid var(--border)}.brief-line>button{display:block;width:100%;min-height:44px;padding:8px 0;text-align:left;font-size:13px;overflow-wrap:anywhere}.brief-line>small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}:is(#task-today,#task-agenda,#task-list) .task-card>button:first-child{flex:none;min-width:44px;min-height:44px}
/* The Calendar sheet (calendar.js): a month of seven columns that fits a phone, and the same 44px for a thumb. */
.calendar-nav{display:flex;align-items:center;gap:8px;margin-top:16px}.calendar-nav h3{flex:1;margin:0;font-size:16px}.calendar-nav button{flex:none;min-width:44px;min-height:44px;border:1px solid var(--border);border-radius:20px;font-size:13px;padding:9px 12px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-top:10px}.calendar-grid>span{text-align:center;font-size:11px;color:var(--muted)}.calendar-cell{position:relative;min-height:48px;padding:4px 0 16px;border-radius:10px;font-size:13px}.calendar-cell.other{color:var(--muted)}.calendar-cell.today{font-weight:700;box-shadow:inset 0 0 0 2px var(--gold)}.calendar-cell[aria-pressed="true"]{background:var(--border)}.calendar-count{position:absolute;left:0;right:0;bottom:4px;font-size:10px;font-weight:400;color:var(--muted)}
.calendar-new{display:block;width:100%;margin-top:16px;min-height:44px}.calendar-add{min-height:44px}.calendar-allday{min-height:44px}.calendar-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.calendar-times input,.task-edit-form input[type="date"]{min-width:0;min-height:44px}
/* The Notes sheet (notes.js): a note is mostly its text, and what was found in it wraps under its title. */
.note-excerpt{display:block;overflow-wrap:anywhere}.note-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.note-tags[hidden]{display:none}.note-tag{max-width:100%;min-height:44px;border:1px solid var(--border);border-radius:20px;font-size:13px;padding:9px 14px;overflow-wrap:anywhere}.note-tag[aria-pressed="true"]{background:var(--border);font-weight:600}.note-form textarea{min-height:40dvh}.note-conflict{display:flex;gap:8px}.note-conflict[hidden]{display:none}.note-conflict button{flex:1}.note-revision-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.note-links{margin-top:16px}.note-links[hidden],.note-pointing-box[hidden]{display:none}.note-links select{max-width:100%;min-height:44px}.note-pointing-box{font-size:13px}.note-pointing-box p{margin:4px 0}.note-pointing{font-weight:600;overflow-wrap:anywhere}
/* "Remind me" under the form of a task or an event (reminders.js). */
.remind-box{margin-top:20px;padding-top:12px;border-top:1px solid var(--border)}.remind-box[hidden]{display:none}.remind-box input{min-width:0;min-height:44px}.remind-box .secondary{display:block;width:100%;margin-top:10px;min-height:44px;border-radius:20px}
.task-deleted-open{margin-top:16px;min-height:44px;border:1px solid var(--border);border-radius:20px;font-size:12px}.task-edit-form textarea{resize:vertical;min-height:96px;line-height:1.5}.task-edit-form .primary{display:block;width:100%;margin-top:16px;min-height:44px}.task-delete{display:block;width:100%;min-height:44px;margin-top:10px;border:1px solid #e3c4c0;color:#8a2c22;font-size:13px}
