/* Everything Hub: an editorial, practical layer shared by the whole site. */
:root {
  --ink:#263039; --muted:#5e6870; --line:#d9d9d1; --bg:#f6f4ef;
  --green:#34556a; --dark:#283f50; --accent:#a85c3d; --paper:#fffefa;
}
body { background:var(--bg); color:var(--ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input,select,textarea { font-family:inherit; }
:where(button,a,input,select,textarea,summary):focus-visible { outline:3px solid #567b9d; outline-offset:3px; }
button:disabled { cursor:not-allowed; }
a { text-underline-offset:3px; }
#app h1,.entry-intro h1 { font-family:Georgia,"Times New Roman",serif; font-weight:400; letter-spacing:-.035em; line-height:1.12; color:#273640; }
#app :is(.eyebrow,.game-eyebrow,.everyday-kicker,.lists-eyebrow,.notes-kicker,.books-kicker,.ai-kicker) { color:#7b5a48; letter-spacing:.08em; font-size:10px; }
.btn { border-radius:4px; font-weight:650; font-size:12px; }
.btn.dark { background:#304c60; color:#fff; }
.btn.dark:hover { background:#213e52; }
.btn.outline { border-color:#c7d0d0; color:#354d59; }
.field input,.field select,.field textarea { border-color:#cbd0cb; border-radius:4px; }
#app :is(.content-card,.school-panel,.school-day,.everyday-card,.bookmark-row,.topic-row,.task,.reward-card,.resource-card,.deck-card,.subject-card,.video-card,.game-mode-card,.game-set-card,.practice-setup,.practice-question,.practice-review,.practice-summary,.live-panel,.book-card,.reader-settings,.books-aside>*,.featured-card,.embed-card,.arcade-game-card,.game-type,.ai-panel) { border-radius:5px; box-shadow:none; border-color:#dcdfd8; }
#app :is(.content-card,.school-panel,.everyday-card,.bookmark-row,.reward-card,.resource-card,.deck-card,.subject-card,.video-card,.game-mode-card,.game-set-card,.live-panel,.book-card,.reader-settings,.featured-card,.embed-card,.game-type,.ai-panel) { background-color:var(--paper); }
#app :is(.subject-card,.deck-card,.video-card,.game-set-card,.resource-card,.featured-card,.embed-card,.book-card):hover { border-color:#9daeb0; box-shadow:none; transform:none; }
#app :is(.text-link,.back-link,.arcade-back,.everyday-actions button,.everyday-clear) { color:#315f77; }
#app :is(.hub-page-head,.view-intro,.everyday-head) h1 { font-size:clamp(31px,4vw,40px); }
#app :is(.hub-page-head,.view-intro,.everyday-head)>p:not(.eyebrow) { color:#626d70; line-height:1.6; }
#app :is(.streak-panel,.everyday-intro,.books-hero,.games-hero,.video-hero,.shop-hero) { background:#edece4; border:1px solid #dedfd7; border-radius:5px; box-shadow:none; }
#app :is(.games-hero,.video-hero,.books-hero,.shop-hero):before,#app :is(.games-hero,.video-hero,.books-hero,.shop-hero):after { display:none; }
#app :is(.school-empty,.everyday-empty-panel,.deck-empty) { border-radius:5px; border-color:#cbd0c8; background:#fffefa; }
/* Sign-in page: a simple contents page, not a promotional splash. */
#landing.entry-screen { background:#f3f1ea; color:#263039; }
.entry-screen .entry-main { padding:40px clamp(24px,6vw,88px); }
.entry-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr); gap:clamp(40px,9vw,130px); align-items:center; width:min(100%,1120px); }
.entry-intro .brand { display:inline-flex; gap:12px; padding:0; font-family:inherit; font-weight:750; font-size:19px; letter-spacing:-.04em; color:#263039; }
.entry-intro .brand>span>span { color:#263039; }
.entry-intro .brand-mark { width:40px; height:40px; border-radius:4px; }
.entry-intro .entry-kicker { margin:72px 0 15px; color:#86614e; font-size:10px; font-weight:750; letter-spacing:.12em; }
.entry-intro h1 { font-size:clamp(43px,5.6vw,68px); margin:0 0 18px; }
.entry-intro>p:not(.entry-kicker) { color:#59666c; font-size:16px; max-width:420px; line-height:1.65; }
.entry-index { border-top:1px solid #cfd1c8; margin-top:42px; }
.entry-index>div { display:grid; grid-template-columns:35px minmax(110px,1fr) 1.1fr; gap:12px; align-items:baseline; border-bottom:1px solid #cfd1c8; padding:13px 0; }
.entry-index span { color:#a66d51; font-size:11px; font-variant-numeric:tabular-nums; }
.entry-index strong { font-size:13px; }
.entry-index small { color:#6f7778; font-size:12px; }
.entry-card { width:100%; background:#fffefa; color:#263039; padding:32px; border:1px solid #d7d9d1; border-radius:5px; box-shadow:none; }
.entry-card .entry-kicker { margin:0 0 16px; color:#86614e; }
.entry-card h2 { font-family:Georgia,"Times New Roman",serif; font-size:29px; font-weight:400; line-height:1.2; letter-spacing:-.03em; margin:0 0 12px; }
.entry-card>p:not(.entry-kicker):not(.entry-note) { color:#616d70; font-size:13px; line-height:1.65; }
.entry-actions { align-items:stretch; flex-direction:column; gap:9px; margin-top:26px; }
.entry-actions .btn { min-height:46px; justify-content:space-between; font-size:13px; }
.entry-register { color:#345b70; text-align:left; font-size:12px; }
.entry-card .entry-note { margin-top:32px; padding-top:16px; border-color:#e2e3dd; color:#6b7575; }
/* A single masthead across the home screen and every app. */
.app-shell.os-home,.app-shell:not(.os-home) { background:var(--bg); color:var(--ink); }
.app-shell.os-home:before,.app-shell.os-home:after { display:none; }
.app-shell .topbar,.app-shell.os-home .topbar,.app-shell:not(.os-home) .topbar { height:68px; padding:0 clamp(20px,4vw,56px); background:#fffefa; color:#263039; border-bottom:1px solid #dcded8; }
.topbar-start { display:flex; align-items:center; gap:30px; min-width:0; }
.top-brand { display:inline-flex; align-items:center; gap:10px; flex:none; font-size:14px; font-weight:750; letter-spacing:-.03em; color:#263039; }
.top-brand img { display:block; border-radius:3px; }
.breadcrumb,.os-home .breadcrumb { gap:9px; color:#77817f; }
.breadcrumb .app-home-link,.os-home .breadcrumb .app-home-link,.os-home .breadcrumb .app-home-link span { color:#506575; font-size:12px; font-weight:650; }
.breadcrumb .breadcrumb-divider { color:#afb8b4; }
.breadcrumb strong { color:#384751; }
.os-home .breadcrumb { display:none; }
.top-date,.os-home .top-date { color:#657176; font-size:12px; }
.help-button,.os-home .help-button,.top-avatar,.os-home .top-avatar { border:1px solid #d8ddd8; background:#f6f6f1; color:#405a69; }
.app-shell:not(.os-home) #app,.os-home #app { max-width:1320px; padding:40px clamp(20px,4vw,56px) 80px; }
/* The home directory is a set of labelled, scannable lists rather than an icon wall. */
.launcher-heading { color:#263039; align-items:end; margin-bottom:26px; }
.launcher-heading h1 { font-size:clamp(35px,4vw,48px); margin:7px 0 8px; }
.launcher-heading>div>p:last-child { color:#677274; font-size:14px; }
.os-date { color:#8a6551; text-transform:uppercase; font-size:10px; letter-spacing:.1em; }
.launcher-search { width:min(330px,100%); background:#fffefa; border:1px solid #cfd4ce; border-radius:4px; color:#617582; box-shadow:none; }
.launcher-search input { color:#263039; }
.launcher-search:focus-within { outline:3px solid #9db7c5; outline-offset:2px; }
.os-widget-grid { gap:0; grid-template-columns:repeat(4,minmax(0,1fr)); background:#fffefa; border:1px solid #dcded7; border-radius:5px; }
.os-widget,.os-widget.widget-todo,.os-widget.widget-timetable,.os-widget.home-hero-summary,.os-widget.os-clock,.os-widget.os-habits,.os-widget.os-timetable { min-height:125px; background:transparent; color:#2c414d; border:0; border-right:1px solid #e1e3dd; border-radius:0; padding:18px 22px; box-shadow:none; }
.os-widget:last-child { border-right:0; }
.os-widget span,.os-widget.os-clock span,.os-widget.os-habits span,.os-widget.os-timetable span { color:#7a8582; font-size:10px; letter-spacing:.08em; }
.os-widget strong { font-size:16px; margin:11px 0 5px; }
.os-widget.os-clock strong { font-size:32px; font-weight:550; letter-spacing:-.04em; }
.os-widget small,.os-widget.os-clock small { color:#687674; opacity:1; }
.os-widget:hover { background:#f7f7f1; filter:none; }
.os-widget b { color:#8c9b98; }
.os-section-heading { color:#263039; margin:44px 0 16px; padding-bottom:13px; border-bottom:2px solid #314958; }
.os-section-heading h2 { font-size:19px; letter-spacing:-.02em; }
.os-section-heading p { color:#7d8886; }
.os-app-grid.home-directory { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 48px; }
.home-directory-group { min-width:0; }
.home-directory-group[hidden] { display:none!important; }
.home-group-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 0 10px; color:#394d57; border-bottom:1px solid #cfd5ce; }
.home-group-heading h3 { margin:0; font-size:12px; font-weight:750; letter-spacing:.03em; }
.home-group-heading span { color:#a77d65; font-size:10px; font-variant-numeric:tabular-nums; }
.home-group-links { display:grid; }
.os-app-grid.home-directory .hub-tile,.os-app-grid.home-directory .hub-tile.dashboard-action { display:grid; grid-template-columns:30px minmax(0,1fr) 18px; grid-template-rows:auto auto; column-gap:12px; row-gap:3px; align-items:center; min-height:66px; text-align:left; padding:11px 4px; margin:0; background:transparent; border:0; border-bottom:1px solid #e1e3dd; border-radius:0; color:#263039; box-shadow:none; }
.os-app-grid.home-directory .hub-tile:hover { background:#ecefe9; }
.os-app-grid.home-directory .hub-tile-icon,.os-app-grid.home-directory .hub-tile:nth-child(n) .hub-tile-icon { grid-row:1 / 3; grid-column:1; width:30px; height:30px; margin:0; border-radius:4px; background:#e9eeeb; color:#496779; box-shadow:none; }
.os-app-grid.home-directory .hub-tile-icon svg { width:18px; height:18px; stroke-width:1.6; }
.os-app-grid.home-directory .hub-tile strong { grid-row:1; grid-column:2; color:#2c3e48; font-size:13px; }
.os-app-grid.home-directory .hub-tile p { display:block; grid-row:2; grid-column:2; margin:0; color:#6e7b79; font-size:11px; }
.os-app-grid.home-directory .hub-tile-arrow { display:block; position:static; grid-row:1 / 3; grid-column:3; color:#9aaba5; font-size:15px; }
.os-dock { width:auto; max-width:none; justify-content:flex-start; flex-wrap:wrap; gap:6px 20px; margin:36px 0 0; padding:16px 0 0; background:transparent; border:0; border-top:1px solid #d5dad3; border-radius:0; }
.os-dock:before { content:'Quick access'; align-self:center; margin-right:8px; color:#818e8a; font-size:11px; font-weight:700; }
.os-dock a { display:flex; align-items:center; gap:6px; width:auto; color:#466577; font-size:12px; }
.os-dock a span,.os-dock a:nth-child(n) span { display:none; }
.os-dock small { font-size:12px; margin:0; }
.os-dock a:hover { text-decoration:underline; }
/* Consistent details in the busiest workspaces. User-selected note colours stay intact. */
.tasks-page { --task-blue:#365d75; --task-blue-dark:#294a5e; --task-text:#29373f; --task-muted:#6c7777; }
.tasks-heading-icon { border-radius:4px; background:#e6ebea; color:#486678; }
.tasks-workspace { background:var(--paper); border-color:#dcded7; border-radius:5px; box-shadow:none; }
.tasks-composer { background:#f3f3ed; border-color:#d7ddd7; border-radius:4px; }
.tasks-save,.tasks-composer-actions button { border-radius:4px; }
.lists-workspace { color:#2b3d46; }
.lists-hero { background:transparent; border:0; border-bottom:1px solid #cdd3cd; border-radius:0; padding:0 0 24px; }
.lists-hero:after,.lists-hero-mark { display:none; }
.lists-hero h1 { color:#273640; }
.lists-hero p:last-child,.lists-controls>div>p:last-child { color:#667471; }
.lists-summary { background:var(--paper); border-color:#dcded7; border-radius:5px; }
.lists-summary span { color:#75817c; }
.lists-grid .list-card { background:var(--paper); border-color:#dcded7; border-radius:5px; box-shadow:none; }
.list-card-symbol,.game-intro-icon,.study-game-icon,.live-mode-icon { background:#e7ece9; color:#4b6a77; border-radius:4px; }
.list-progress-track span { background:#7894a0; }
.list-create input,.list-add input,.lists-search-row label,.list-bulk textarea { border-color:#ccd2cd; border-radius:4px; }
.list-create button,.list-add-button,.list-small-button { background:#34566c; border-radius:4px; }
.list-filters button[aria-pressed=true] { color:#315d74; border-color:#547f93; }
.list-bulk summary,.list-clear,.list-item-actions button { color:#54717c; }
.list-items input { accent-color:#476d7d; }
.notes-app { color:#2b3c44; }
.notes-header-art { display:none; }
.notes-header p:last-child { color:#687573; }
.notes-nav button { border-radius:4px; color:#687878; }
.notes-nav button[aria-pressed=true] { background:#e5ebe8; color:#355b70; }
.notes-search { background:#efefea; border:1px solid #daddd6; border-radius:4px; color:#677d84; }
.note-composer-collapsed,.note-form { border-color:#d6ddd6; border-radius:5px; box-shadow:none; }
.notes-grid .note-card { border-color:#d7ddd6; border-radius:5px; }
.notes-grid .note-card:hover,.notes-grid .note-card:focus-within { box-shadow:0 2px 8px #33424918; }
.note-card-actions button[aria-pressed=true] { color:#355c73; }
.note-done { background:#e3eae7; color:#355a6b; border-radius:4px; }
#app .ai-notice { background:#f1f2ec; border-color:#8da0a1; color:#57696c; }
#app :is(.game-type-grid,.featured-grid) { gap:14px; }
#app :is(.game-feature-heading,.featured-heading) h2 { letter-spacing:-.02em; }
#app :is(.embed-filters button,.task-filters button,.reader-mode button) { border-radius:4px; }
#app :is(.embed-filters button,.task-filters button,.reader-mode button)[aria-pressed=true] { background:#34566c; border-color:#34566c; color:#fff; }
#app .flashcard-face { background:#f1f2eb; border-color:#d8ded6; box-shadow:none; border-radius:5px; }
#app .study-progress strong,#app .text-link { color:#365f73; }
#app .bar span,#app .reader-progress span { background:#668a9a; }
dialog { border:1px solid #d3d9d2; border-radius:6px; background:#fffefa; box-shadow:0 18px 50px #26343a2b; }
dialog::backdrop { background:#24323b80; }
.modal-inner p { color:#687575; }
#toast { border-radius:4px; }
@media(max-width:800px) {
 .entry-layout { grid-template-columns:1fr; gap:32px; max-width:620px; padding:30px 0; }
 .entry-intro .entry-kicker { margin-top:42px; }
 .entry-index { margin-top:30px; }
 .os-widget-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .os-widget:nth-child(2) { border-right:0; }
 .os-widget:nth-child(-n+2) { border-bottom:1px solid #e1e3dd; }
}
@media(max-width:700px) {
 .app-shell .topbar,.app-shell.os-home .topbar,.app-shell:not(.os-home) .topbar { height:60px; padding:0 20px; }
 .app-shell:not(.os-home) #app,.os-home #app { padding:28px 20px 55px; }
 .topbar-start { gap:16px; }
 .top-brand { font-size:13px; }
 .launcher-heading { display:grid; gap:20px; }
 .launcher-search { width:100%; }
 .os-widget,.os-widget.widget-todo,.os-widget.widget-timetable,.os-widget.home-hero-summary,.os-widget.os-clock { min-height:110px; padding:16px; }
 .os-widget.os-clock strong { font-size:28px; }
 .os-app-grid.home-directory { grid-template-columns:1fr; gap:24px; }
 .os-section-heading { margin-top:34px; }
}
@media(max-width:480px) {
 .entry-screen .entry-main { padding:20px; }
 .entry-layout { padding:10px 0 25px; }
 .entry-intro h1 { font-size:42px; }
 .entry-intro>p:not(.entry-kicker) { font-size:14px; }
 .entry-index>div { grid-template-columns:30px minmax(0,1fr); gap:4px 8px; }
 .entry-index small { grid-column:2; }
 .entry-card { padding:24px; }
 .top-brand span { display:none; }
 .topbar-start { gap:10px; }
 .os-home .top-brand span { display:inline; }
 .app-shell .top-actions { gap:9px; }
 .os-widget strong { font-size:15px; }
 .os-app-grid.home-directory .hub-tile-icon,.os-app-grid.home-directory .hub-tile:nth-child(n) .hub-tile-icon { width:30px; height:30px; border-radius:4px; }
 .os-dock { gap:10px 16px; }
}

/* The app receives focus after navigation for screen-reader users. It is a
   landmark, rather than a control, so don't draw a box around the whole page. */
#app:focus { outline:none; }

/* Keep the library header as compact as the other workspace headings. */
#app .books-hero { display:block; min-height:0; padding:0 0 26px; border:0; border-bottom:1px solid #d5d9d1; border-radius:0; background:transparent; }
#app .books-hero-link { background:#304f64; border-radius:4px; }
.book-cover { border-radius:2px; box-shadow:inset 4px 0 #0000000b; }
.book-cover-art { display:none; }
.cover-plum,.cover-berry { background:#ded6d2; color:#594845; }
.cover-coral,.cover-rose { background:#e8d9cb; color:#6f5146; }
.cover-sage,.cover-forest { background:#d7e1d7; color:#3c594e; }
.cover-navy,.cover-blue { background:#d8e0e3; color:#3c5361; }
.cover-aqua { background:#d7e4e0; color:#405e5a; }
.cover-ochre { background:#e9dfc9; color:#6c5b3f; }
.geometry-entry { margin-bottom:38px; }
.os-app-grid.home-directory .hub-tile[hidden] { display:none; }

/* Quick navigation, kept separate from account data. */
.app-switcher-trigger { border:1px solid #ccd6d5; background:#f6f7f2; color:#304f62; border-radius:4px; padding:7px 11px; font-size:12px; font-weight:700; cursor:pointer; }
.app-switcher-trigger:hover { background:#e8eeeb; border-color:#9fb0b0; }
#appSwitcher { width:min(560px,calc(100vw - 32px)); max-height:min(720px,calc(100dvh - 32px)); padding:24px; overflow:auto; color:#263942; }
.switcher-head { display:flex; justify-content:space-between; align-items:start; gap:20px; }
.switcher-head p { margin:0 0 6px; color:#8a6551; font-size:10px; font-weight:750; letter-spacing:.09em; }
.switcher-head h2 { margin:0; font:400 29px/1.2 Georgia,serif; }
.switcher-head button { width:34px; height:34px; border:1px solid #d5ded8; border-radius:4px; background:#f5f6f1; color:#425c68; font-size:22px; cursor:pointer; }
.switcher-search,.bookmark-search,.resource-search { display:grid; gap:6px; margin-top:20px; color:#465c63; font-size:12px; font-weight:700; }
.switcher-search input,.bookmark-search input,.resource-search input,.task-search input,.book-sort select { width:100%; min-height:42px; padding:10px 12px; border:1px solid #cbd4d0; border-radius:4px; background:#fff; color:#293f48; font:inherit; }
.switcher-hint { margin:10px 0 16px; color:#6c7b78; font-size:11px; line-height:1.5; }
.switcher-row { display:flex; align-items:stretch; border-top:1px solid #e0e5df; }
.switcher-row>a { display:flex; align-items:center; flex:1; min-width:0; gap:12px; padding:12px 4px; text-decoration:none; color:#2b414b; }
.switcher-row>a:hover { background:#f2f5f1; }
.switcher-row>a>span:nth-child(2) { flex:1; min-width:0; display:grid; gap:4px; }
.switcher-row strong { font-size:13px; }
.switcher-row small { color:#667875; font-size:11px; }
.switcher-row em { font-size:10px; font-style:normal; color:#627d80; }
.switcher-icon { display:grid; place-items:center; flex:none; width:32px; height:32px; background:#e8efeb; color:#557480; border-radius:4px; }
.switcher-icon svg { width:17px; height:17px; }
.switcher-row>button { align-self:center; flex:none; width:38px; height:38px; border:0; background:transparent; color:#9c7459; font-size:22px; cursor:pointer; }
.switcher-row>button:hover { background:#f5f0e8; }
.switcher-empty { padding:22px 0; color:#657875; }
.task-search { display:block; margin:16px 0 4px; }
.habit-summary { margin:16px 0; padding:12px 15px; border-left:3px solid #829d9b; background:#edf1ec; color:#405c60; font-size:13px; font-weight:650; }
.bookmark-row[hidden],.resource-card[hidden],#bookmarkNoResults[hidden],#resourceEmpty[hidden] { display:none!important; }
#bookmarkSearchCount,#resourceCount { color:#6d7c77; font-size:12px; margin:8px 0 14px; }
.resource-search { max-width:440px; }
.book-sort { display:flex; align-items:center; gap:10px; margin-top:18px; color:#546a6a; font-size:12px; font-weight:700; }
.book-sort select { width:auto; min-height:36px; padding:6px 30px 6px 10px; }
.book-card-info .book-description { margin-top:9px; color:#62736f; line-height:1.45; }
@media(max-width:480px) {
 .app-switcher-trigger { padding:7px 8px; }
 .breadcrumb { min-width:0; }
 .breadcrumb strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:85px; }
 .topbar-start { overflow:hidden; }
 #appSwitcher { padding:20px; }
 .switcher-row small { line-height:1.4; }
}
.tool-search { display:grid; gap:6px; max-width:440px; margin:18px 0 8px; color:#465c63; font-size:12px; font-weight:700; }
.tool-search input { min-height:42px; padding:10px 12px; border:1px solid #cbd4d0; border-radius:4px; background:#fff; color:#293f48; font:inherit; }
.tool-count { color:#6d7c77; font-size:12px; margin:8px 0 16px; }
.school-tool-grid>.school-panel[hidden],#toolEmpty[hidden],#unloadAiChat[hidden] { display:none!important; }
#unloadAiChat { margin-top:14px; }
.embed-reset { border:0; background:transparent; color:#315f77; padding:8px 0; font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
/* Community identity is an account setting, not an editable message field. */
.community-identity { margin:0 0 4px; color:#405e65; font-size:13px; font-weight:650; }
.community-settings-link { display:inline-block; margin:0 0 16px; padding:0; border:0; background:transparent; color:#315f77; font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.nickname-help { color:#667674; font-size:12px; line-height:1.5; }
#nicknameStatus { font-size:12px; }
#retryNickname[hidden] { display:none!important; }
#modal .error { color:#a13739; }
#app .community-hero { background:#edece4; border:1px solid #dedfd7; border-radius:5px; color:#273640; }
#app .community-hero p:not(.eyebrow) { color:#5e7070; }
#app .community-hero-icon { background:#e0e8e3; color:#496b77; border-radius:5px; }
#app .community-panel,#app .community-rules { border-color:#dce1d9; border-radius:5px; box-shadow:none; background:#fffefa; }
#app .community-messages { background:#f6f6f1; border-color:#dce1da; border-radius:5px; }
#app .community-message { border-color:#dce2dc; border-radius:5px; }
#app .community-message.mine { background:#edf3f0; border-color:#d7e2db; }
#app .community-message-head strong { color:#355d70; }
.chat-owner-badge { display:inline-block; flex:none; margin-left:6px; padding:3px 7px; border:1px solid #dec7a4; border-radius:3px; background:#f5ebd8; color:#725029; font-size:10px; font-weight:800; letter-spacing:.03em; line-height:1.2; }
.chat-author { display:inline-flex; align-items:center; flex-wrap:wrap; min-width:0; gap:4px; }
.chat-author .chat-owner-badge { margin-left:0; }

/* Habits: calm, compact routines with room for a little history. */
.habits-workspace { color:#293d45; }
.habits-header { display:flex; justify-content:space-between; align-items:end; gap:24px; padding-bottom:24px; border-bottom:1px solid #cfd6ce; }
.habits-header h1 { margin:5px 0 8px; font-size:clamp(34px,4vw,44px); }
.habits-header>div>p:last-child,.habit-section-heading p:not(.habits-kicker),.habit-create>div>p:last-child { color:#667774; line-height:1.55; margin:0; }
.habits-kicker { margin:0; color:#85634f; font-size:10px; font-weight:750; letter-spacing:.09em; }
.habits-overview { min-width:150px; padding:15px 19px; background:#edf1eb; border-left:3px solid #829a94; }
.habits-overview>span { color:#72847f; font-size:10px; font-weight:750; letter-spacing:.08em; }
.habits-overview strong { display:block; margin:4px 0; font-size:25px; }
.habits-overview strong small { font-size:14px; color:#889993; }
.habits-overview p { font-size:11px; }
.habit-create { display:grid; grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr); gap:24px; margin:22px 0 40px; padding:22px; background:#fffefa; border:1px solid #dce0d9; border-radius:5px; }
.habit-create h2,.habit-section-heading h2 { margin:6px 0; color:#293e48; font-size:21px; }
.habit-create>div>p:last-child { font-size:12px; }
#everyHabitForm>label { display:block; margin-bottom:6px; color:#516762; font-weight:700; font-size:12px; }
.habit-create-line { display:flex; gap:8px; }
.habit-create-line input,.habit-form-fields :is(input:not([type=checkbox]),select) { min-width:0; width:100%; padding:10px 12px; border:1px solid #cbd4ce; border-radius:4px; background:#fff; color:#293f48; font:inherit; }
.habit-create-line .btn { flex:none; white-space:nowrap; }
#habitOptions { margin-top:12px; }
#habitOptions summary,.habit-calendar summary { cursor:pointer; color:#3c6677; font-size:12px; font-weight:700; }
.habit-form-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; }
.habit-form-fields .field { margin:0; font-size:12px; }
.habit-form-fields .field input,.habit-form-fields .field select { margin-top:6px; }
.habit-form-fields .field span { color:#84918b; font-weight:400; }
.habit-form-fields fieldset { grid-column:1/-1; border:0; padding:0; margin:0; }
.habit-form-fields legend { color:#536961; font-size:12px; font-weight:700; margin-bottom:8px; }
.habit-form-fields fieldset>div { display:flex; flex-wrap:wrap; gap:8px 13px; }
.habit-form-fields fieldset label { font-size:12px; color:#526761; }
.habit-form-fields input[type=checkbox] { accent-color:#416e7a; }
.habit-form-fields .habit-help { grid-column:1/-1; margin:0; color:#6b7b76; font-size:11px; line-height:1.5; }
#habitWeekdays[hidden],#habitWeeklyGoal[hidden],#habitCancel[hidden] { display:none!important; }
#habitCancel { margin-top:12px; border:0; background:none; color:#496d79; text-decoration:underline; padding:0; font-size:12px; font-weight:700; }
#habitFormError { color:#a13739; font-size:12px; }
.habit-section-heading { display:flex; justify-content:space-between; align-items:end; gap:15px; }
.habit-section-heading p:not(.habits-kicker) { font-size:13px; }
.habit-section-heading>span { flex:none; color:#7b8b85; font-size:12px; }
.habit-toolbar { display:flex; flex-wrap:wrap; gap:4px; margin:22px 0 12px; border-bottom:1px solid #d7ddd6; }
.habit-toolbar button { border:0; border-bottom:2px solid transparent; background:transparent; color:#6b7e79; padding:10px 14px; font-size:12px; font-weight:700; }
.habit-toolbar button[aria-pressed=true] { border-color:#456f7e; color:#325b6e; }
.habit-notice { min-height:1em; margin:0 0 10px; color:#52786e; font-size:12px; }
.habit-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.habit-card { --habit-tint:#e3edf0; --habit-accent:#496c7b; min-width:0; padding:20px; background:#fffefa; border:1px solid #dce0d9; border-top:3px solid var(--habit-accent); border-radius:5px; }
.habit-color-sage { --habit-tint:#e3eee4; --habit-accent:#638775; }.habit-color-sand { --habit-tint:#f5edda; --habit-accent:#a08360; }.habit-color-rose { --habit-tint:#f4e7e6; --habit-accent:#a27a77; }.habit-color-lilac { --habit-tint:#ebe9f1; --habit-accent:#80778e; }
.habit-card-head { display:flex; justify-content:space-between; align-items:start; gap:12px; }
.habit-card-title { display:flex; align-items:center; gap:11px; min-width:0; }
.habit-card h2 { margin:0; color:#2d424a; font-size:17px; overflow-wrap:anywhere; }
.habit-card-title p { margin:4px 0 0; color:#70817b; font-size:11px; }
.habit-icon { display:grid; place-items:center; flex:none; width:39px; height:39px; background:var(--habit-tint); color:var(--habit-accent); border-radius:4px; font-size:19px; }
.habit-menu { position:relative; flex:none; }
.habit-menu summary { cursor:pointer; list-style:none; padding:5px; color:#78908c; font-weight:800; letter-spacing:2px; }
.habit-menu summary::-webkit-details-marker { display:none; }
.habit-menu>div { position:absolute; right:0; z-index:2; width:150px; padding:5px; background:#fffefa; border:1px solid #d5ded6; border-radius:4px; box-shadow:0 4px 14px #26343a20; }
.habit-menu button { display:block; width:100%; padding:8px; border:0; background:none; color:#3e5d62; text-align:left; font-size:12px; }
.habit-menu button:hover { background:#f0f3ee; }
.habit-description { margin:15px 0 0; color:#5f726c; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.habit-progress-label { display:flex; justify-content:space-between; gap:10px; margin:20px 0 7px; color:#788b83; font-size:11px; }
.habit-progress-label strong { color:#557668; }
.habit-progress-track { height:5px; background:#e8eee8; border-radius:5px; overflow:hidden; }.habit-progress-track span { display:block; height:100%; background:var(--habit-accent); }
.habit-card .habit-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; margin:20px 0 15px; }
.habit-card .habit-week>div { display:grid; justify-items:center; }
.habit-card .habit-week span { width:28px; height:28px; border-radius:4px; background:#f1f3ed; color:#8d9a91; }
.habit-card .habit-week span.marked { background:var(--habit-tint); color:var(--habit-accent); }
.habit-stats { display:flex; gap:18px; flex-wrap:wrap; padding:12px 0; border-top:1px solid #e7eae4; color:#72827c; font-size:11px; }.habit-stats strong { color:#36545e; font-size:13px; }
.habit-card-footer { display:flex; align-items:center; gap:12px; padding-top:4px; }.habit-card-footer>span { color:#70827c; font-size:11px; line-height:1.4; }
.habit-check { min-width:110px; }
.habit-calendar { margin-top:18px; padding-top:14px; border-top:1px solid #e7eae4; }
.habit-calendar-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:16px 0 10px; }
.habit-calendar-head strong { font-size:13px; }.habit-calendar-head button { border:1px solid #d5ded6; background:#fffefa; border-radius:4px; padding:5px 10px; color:#416878; }
.habit-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; text-align:center; }
.habit-calendar-weekday { padding:5px 0; font-size:10px; color:#88978d; font-weight:700; }
.habit-day { min-height:36px; padding:4px; border:1px solid transparent; border-radius:4px; background:#f3f5f0; color:#4d625d; font-size:12px; }
.habit-day.is-marked { background:var(--habit-tint); color:var(--habit-accent); font-weight:800; }.habit-day.is-today { border-color:#6f9399; }.habit-day:disabled { opacity:.38; }
.habit-calendar-help,.habits-footnote { color:#788a81; font-size:11px; line-height:1.55; }
.habits-empty { grid-column:1/-1; padding:28px; border:1px dashed #cfd8ce; background:#fffefa; border-radius:5px; color:#60746a; }.habits-empty strong { color:#3a555a; }.habits-empty p { margin:8px 0 0; font-size:12px; }
.habit-reminders { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; margin-top:28px; padding:18px 20px; border:1px solid #dce0d9; border-radius:5px; background:#f0f2eb; }.habit-reminders strong { font-size:13px; }.habit-reminders p { margin:5px 0 0; color:#6f8178; font-size:11px; line-height:1.5; }.habit-reminders button { border:1px solid #c1d0ca; border-radius:4px; padding:9px 12px; background:#fffefa; color:#43656d; font-size:12px; font-weight:700; }.habit-reminders #habitReminderStatus { flex-basis:100%; }
.habits-footnote { margin-top:20px; }
@media(max-width:700px){.habit-create { grid-template-columns:1fr; }.habit-list { grid-template-columns:1fr; }}
@media(max-width:480px){.habits-header { align-items:start; }.habits-overview { min-width:112px; padding:12px; }.habit-create { padding:17px; gap:16px; }.habit-card { padding:17px; }.habit-form-fields { grid-template-columns:1fr; }.habit-form-fields fieldset,.habit-form-fields .habit-help { grid-column:auto; }.habit-section-heading { align-items:start; }.habit-card-footer { flex-wrap:wrap; }.habit-day { min-height:34px; }}

/* Bookmark library */
.bookmarks-workspace { color:#293e48; }
.bookmarks-header { display:flex; justify-content:space-between; align-items:end; gap:20px; padding-bottom:24px; border-bottom:1px solid #d2dad3; }
.bookmarks-header h1 { margin:6px 0; font-size:clamp(34px,4vw,44px); }.bookmarks-header p:not(.bookmarks-kicker),.bookmarks-add>p:not(.bookmarks-kicker),.bookmarks-library-heading p:not(.bookmarks-kicker) { margin:0; color:#6a7c77; line-height:1.5; }
.bookmarks-header .btn { flex:none; white-space:nowrap; }.bookmarks-kicker { margin:0; color:#896d5b; font-size:10px; font-weight:750; letter-spacing:.1em; }
.bookmarks-layout { display:grid; grid-template-columns:minmax(240px,300px) minmax(0,1fr); gap:32px; align-items:start; margin-top:26px; }
.bookmarks-add { padding:22px; background:#fffefa; border:1px solid #dce0d9; border-radius:5px; }.bookmarks-add h2,.bookmarks-library-heading h2 { margin:7px 0; font-size:21px; }.bookmarks-add>p:not(.bookmarks-kicker),.bookmarks-library-heading p:not(.bookmarks-kicker) { font-size:12px; }.bookmarks-add form { margin-top:20px; }.bookmarks-add .field { display:block; margin:0 0 15px; font-size:12px; color:#526961; }.bookmarks-add .field span { color:#8a9991; font-weight:400; }.bookmarks-add input { display:block; width:100%; min-width:0; margin-top:6px; padding:10px 11px; border:1px solid #cbd4ce; border-radius:4px; background:#fff; color:#293e48; font:inherit; }.bookmarks-add [hidden],.bookmarks-empty[hidden] { display:none!important; }.bookmark-helper { color:#83918a; font-size:11px; line-height:1.55; margin:16px 0 0; }
.bookmarks-library { min-width:0; }.bookmarks-library-heading { display:flex; align-items:end; justify-content:space-between; gap:15px; }.bookmarks-library-heading>span { white-space:nowrap; color:#84938b; font-size:12px; }.bookmarks-controls { display:flex; align-items:end; gap:12px; margin-top:20px; }.bookmarks-controls .bookmark-search { flex:1; min-width:0; margin:0; }.bookmark-sort { display:grid; gap:6px; color:#465c63; font-size:12px; font-weight:700; }.bookmark-sort select { min-height:42px; max-width:100%; padding:9px; border:1px solid #cbd4d0; border-radius:4px; background:#fff; color:#293f48; font:inherit; }
.bookmark-filters { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }.bookmark-filters button { max-width:100%; overflow-wrap:anywhere; padding:8px 11px; border:1px solid #d7ded7; border-radius:4px; background:#fffefa; color:#647972; font-size:12px; font-weight:700; }.bookmark-filters button[aria-pressed=true] { border-color:#416b78; background:#e5eeeb; color:#325b68; }.bookmark-filters span { margin-left:4px; color:#879790; }
.bookmarks-workspace .bookmark-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:12px; }.bookmarks-workspace .bookmark-tile { display:flex; flex-direction:column; justify-content:space-between; min-width:0; min-height:180px; padding:16px; border:1px solid #dce0d9; border-top:3px solid #809c94; background:#fffefa; }.bookmark-tile-top,.bookmark-tile-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; }.bookmark-letter { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:4px; background:#e6efea; color:#5d8274; font-size:16px; font-weight:750; }.bookmark-star { padding:2px 4px; border:0; background:none; color:#9aa99f; font-size:24px; line-height:1; cursor:pointer; }.bookmark-star.is-favorite { color:#bb9862; }.bookmark-tile-content { flex:1; margin:14px 0; min-width:0; }.bookmark-tile-content a,.bookmark-tile-content strong { color:#304e5e; font-size:15px; font-weight:750; overflow-wrap:anywhere; }.bookmark-tile-content a span { color:#8b9b96; }.bookmark-tile-content p { margin:5px 0 0; overflow-wrap:anywhere; }.bookmark-domain { color:#81938a; font-size:11px; }.bookmark-note { color:#617770; font-size:12px; line-height:1.5; }.bookmark-tile-footer { padding-top:12px; border-top:1px solid #e6ebe5; align-items:start; }.bookmark-folder-label { min-width:0; overflow-wrap:anywhere; color:#799087; font-size:10px; font-weight:700; }.bookmark-tile .everyday-actions { display:flex; flex:none; gap:8px; }.bookmark-tile .everyday-actions button { padding:0; font-size:11px; }.bookmarks-empty { padding:28px; border:1px dashed #cfd8ce; border-radius:5px; background:#fffefa; color:#667d72; font-size:13px; }.bookmarks-empty strong { color:#38545a; }.bookmarks-empty p { margin:8px 0 0; }
@media(max-width:760px){.bookmarks-layout { grid-template-columns:1fr; gap:28px; }.bookmarks-add { padding:18px; }}
@media(max-width:480px){.bookmarks-header { align-items:start; }.bookmarks-header .btn { padding:9px 10px; font-size:11px; }.bookmarks-controls { align-items:stretch; flex-direction:column; }.bookmarks-library-heading { align-items:start; }}
.bookmarks-workspace .bookmark-row { margin-bottom:0; }.bookmarks-workspace .bookmark-row .bookmark-star { padding:2px 4px; font-size:24px; line-height:1; color:#9aa99f; }.bookmarks-workspace .bookmark-row .bookmark-star.is-favorite { color:#a77c37; }
@media(max-width:380px){.bookmarks-header { flex-direction:column; align-items:start; }.bookmarks-header>div { min-width:0; }}

/* Timetable */
.timetable-workspace { color:#293e48; }.timetable-kicker { margin:0; color:#896d5b; font-size:10px; font-weight:750; letter-spacing:.1em; }.timetable-header { display:flex; justify-content:space-between; align-items:end; gap:20px; padding-bottom:24px; border-bottom:1px solid #d2dad3; }.timetable-header h1 { margin:6px 0; font-size:clamp(34px,4vw,44px); }.timetable-header p:not(.timetable-kicker) { margin:0; color:#6a7c77; line-height:1.5; }.timetable-summary { flex:none; min-width:125px; padding:13px 17px; background:#edf1eb; border-left:3px solid #829a94; }.timetable-summary span,.timetable-summary small { display:block; color:#758780; font-size:10px; }.timetable-summary span { font-weight:750; letter-spacing:.08em; }.timetable-summary strong { display:block; margin:4px 0; font-size:25px; }
.timetable-layout { display:grid; grid-template-columns:minmax(230px,280px) minmax(0,1fr); gap:28px; align-items:start; margin-top:26px; }.timetable-add { padding:21px; }.timetable-add h2,.timetable-week-header h2 { margin:7px 0; color:#293e48; font-size:21px; }.timetable-add>p:not(.timetable-kicker),.timetable-week-header p:not(.timetable-kicker) { margin:0; color:#6a7c77; font-size:12px; line-height:1.5; }.timetable-add form { margin-top:20px; }.timetable-add .field { display:block; margin:0 0 15px; }.timetable-add .field span { color:#899990; font-weight:400; }.timetable-add :is(input,select) { display:block; width:100%; min-width:0; margin-top:6px; padding:10px 11px; border:1px solid #cbd4ce; border-radius:4px; background:#fff; color:#293e48; font:inherit; }.timetable-add [hidden] { display:none!important; }
.timetable-week-section { min-width:0; }.timetable-week-header { display:flex; align-items:end; justify-content:space-between; gap:15px; margin-bottom:16px; }.timetable-week-header>span { white-space:nowrap; color:#84938b; font-size:12px; }.timetable-workspace .school-week { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.timetable-workspace .school-day { min-width:0; padding:17px; border:1px solid #dce0d9; border-top:3px solid #d1dbd3; border-radius:5px; background:#fffefa; }.timetable-workspace .school-day.timetable-today { border-top-color:#6f9188; }.timetable-day-heading { display:flex; justify-content:space-between; gap:8px; align-items:center; }.timetable-workspace .school-day h3 { margin:0; color:#2e4951; font-size:14px; }.timetable-day-heading>span { flex:none; color:#84958d; font-size:10px; font-weight:700; }.timetable-today .timetable-day-heading>span { padding:4px 7px; border-radius:3px; background:#e5efea; color:#618675; }.timetable-workspace .school-lesson { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 11px; padding:12px 0 2px; margin-top:11px; border-top:1px solid #e8ece6; }.timetable-workspace .school-lesson time { color:#6a8d80; font-size:11px; }.timetable-workspace .school-lesson strong { color:#334d56; font-size:12px; overflow-wrap:anywhere; }.timetable-workspace .school-lesson small { margin-top:4px; color:#84958c; font-size:11px; overflow-wrap:anywhere; }.timetable-workspace .school-note-actions { grid-column:2; display:flex; gap:12px; }.timetable-workspace .school-text-button { color:#527687; }.timetable-workspace .timetable-empty { margin:17px 0 2px; color:#9aa9a0; font-size:12px; }
.timetable-workspace .timetable-import { margin:30px 0 0; padding:22px; background:#f0f2ec; border-color:#dce0d9; }.timetable-workspace .import-heading h2 { color:#293e48; }.timetable-workspace .import-icon { background:#e0eae4; color:#688c7c; border-radius:4px; }.timetable-workspace .import-preview img { max-width:100%; max-height:300px; object-fit:contain; }.timetable-workspace .import-preview { margin-top:15px; }.timetable-workspace .import-preview[hidden] { display:none!important; }.timetable-workspace .import-raw pre { max-height:200px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:900px){.timetable-layout { grid-template-columns:1fr; }.timetable-add { max-width:none; }}
@media(max-width:560px){.timetable-workspace .school-week { grid-template-columns:1fr; }.timetable-header { align-items:start; }.timetable-summary { min-width:100px; padding:10px 12px; }.timetable-workspace .timetable-import { padding:17px; }.timetable-workspace .import-row { min-width:0; }}
/* Import review includes a separate teacher field. */
.timetable-workspace .import-row { grid-template-columns:minmax(130px,1.5fr) minmax(105px,1fr) minmax(105px,1fr) minmax(120px,1.2fr) minmax(110px,1fr) auto; }
@media(max-width:1050px){.timetable-workspace .import-row { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:480px){.timetable-workspace .import-row label:first-of-type { grid-column:1/-1; }}

/* API chat: isolated in-page session, with an optional original Space. */
/* AI chat: a calm workspace with a clear, readable conversation. */
#app .ai-page { max-width:1120px; color:#273b43; }
.ai-page-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin:4px 0 28px; }
#app .ai-kicker { display:flex; align-items:center; gap:8px; margin:0 0 10px; color:#a45d42; font-size:10px; font-weight:800; letter-spacing:.12em; }
.ai-kicker span { font-size:16px; }
#app .ai-page-heading h1 { margin:0 0 8px; font-size:clamp(35px,4vw,48px); }
.ai-page-heading>div>p:last-child { margin:0; color:#687875; font-size:14px; line-height:1.5; }
.ai-page-number { padding-bottom:4px; color:#9aa29a; font-size:10px; font-weight:750; letter-spacing:.12em; white-space:nowrap; }
.ai-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:20px; align-items:start; }
#app .ai-panel { min-width:0; padding:0; overflow:hidden; background:#fffefa; border:1px solid #dedfd7; border-radius:12px; box-shadow:0 8px 28px #4052500a; }
.ai-api-workspace { min-width:0; }
.ai-api-heading { min-height:78px; display:flex; justify-content:space-between; align-items:center; gap:14px; padding:16px 22px; border-bottom:1px solid #ecece5; }
.ai-chat-identity { display:flex; align-items:center; gap:11px; min-width:0; }
.ai-chat-mark,.ai-welcome-icon { display:grid; place-items:center; flex:none; color:#fff; background:#405e60; }
.ai-chat-mark { width:40px; height:40px; border-radius:12px; }
.ai-chat-mark svg { width:23px; height:23px; }
.ai-api-heading h3 { margin:0 0 4px; font-size:14px; line-height:1.2; color:#293d42; }
.ai-api-heading p { margin:0; color:#73837d; font-size:11px; line-height:1.3; }
.ai-online-dot { display:inline-block; width:6px; height:6px; margin-right:5px; vertical-align:1px; border-radius:50%; background:#86a48e; }
.ai-clear { flex:none; border:1px solid #e2e6de; border-radius:7px; background:#fffefa; padding:9px 12px; color:#526b68; font-size:11px; font-weight:700; cursor:pointer; }
.ai-clear:hover { background:#f2f5ef; border-color:#b8c9bd; }
.ai-clear span { font-size:15px; vertical-align:-1px; margin-right:3px; }
.ai-api-thread { display:flex; flex-direction:column; gap:14px; min-height:320px; max-height:480px; overflow-y:auto; padding:24px; background:linear-gradient(180deg,#fffefa 0%,#fcfdf9 100%); }
.ai-api-welcome { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; margin:auto; text-align:center; }
.ai-welcome-icon { width:58px; height:58px; border-radius:19px; color:#f9fcf5; background:linear-gradient(140deg,#6f9681,#456a70); box-shadow:0 8px 20px #506e5f24; }
.ai-welcome-icon svg { width:33px; height:33px; }
.ai-api-welcome .ai-welcome-kicker { margin:19px 0 8px; color:#a57d63; font-size:9px; font-weight:800; letter-spacing:.13em; }
.ai-api-welcome strong { color:#334b4a; font-family:Georgia,"Times New Roman",serif; font-size:26px; font-weight:400; letter-spacing:-.02em; }
.ai-api-welcome>p:not(.ai-welcome-kicker) { max-width:330px; margin:9px auto 0; color:#778983; font-size:12px; line-height:1.6; }
.ai-suggestions { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin-top:22px; }
.ai-suggestions button { padding:8px 10px; border:1px solid #e1e8df; border-radius:7px; color:#506c68; background:#f7faf4; font-size:11px; font-weight:650; cursor:pointer; }
.ai-suggestions button:hover { background:#eaf2e8; border-color:#bccfc0; }
.ai-suggestions button span { padding-left:5px; color:#9aad9d; }
.ai-api-message { width:fit-content; max-width:90%; padding:14px 16px; border:1px solid #e6ebe3; border-radius:4px 14px 14px 14px; background:#f3f7f0; color:#344a46; overflow-wrap:anywhere; }
.ai-api-message.is-user { align-self:flex-end; border-color:#d9e5e5; border-radius:14px 4px 14px 14px; background:#eaf1f0; }
.ai-api-message strong { display:block; color:#738d7e; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.ai-api-message.is-user strong { color:#658282; }
.ai-api-message p { margin:7px 0 0; white-space:pre-wrap; line-height:1.65; font-size:13px; }
.ai-api-status { min-height:1.5em; margin:0; padding:0 24px; color:#657d75; font-size:11px; line-height:1.5; }
.ai-api-status:empty { min-height:0; }
#aiApiForm { padding:14px 22px 0; }
#aiApiForm label { display:block; margin-bottom:8px; color:#47605a; font-size:11px; font-weight:750; }
.ai-composer { border:1px solid #dce4db; border-radius:10px; background:#fff; transition:border-color .15s,box-shadow .15s; }
.ai-composer:focus-within { border-color:#789b8e; box-shadow:0 0 0 3px #b6d0c044; }
#aiMessage { display:block; width:100%; min-width:0; min-height:75px; resize:vertical; padding:14px 15px 5px; border:0; outline:none; background:transparent; color:#293f3f; font:inherit; font-size:13px; line-height:1.5; }
#aiMessage::placeholder { color:#9baaa3; }
#aiMessage:focus-visible { outline:none; }
.ai-compose-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 9px 9px 15px; }
#aiCharCount { color:#92a098; font-size:10px; font-variant-numeric:tabular-nums; }
.ai-send { display:inline-flex; align-items:center; justify-content:center; gap:14px; min-height:38px; padding:9px 14px; border:0; border-radius:7px; background:#3e645d; color:#fff; font-size:11px; font-weight:750; cursor:pointer; }
.ai-send:hover:not(:disabled) { background:#2e504a; }.ai-send:disabled { opacity:.55; }
.ai-send span { font-size:16px; line-height:1; }
.ai-compose-note,.ai-api-footnote { color:#778780; font-size:10px; line-height:1.5; }
.ai-compose-note { margin:9px 0 0; }.ai-api-footnote { margin:15px 22px 0; padding:13px 0 16px; border-top:1px solid #eef0e9; text-align:center; }
.ai-aside { display:grid; gap:12px; }
.ai-aside-card { padding:20px; border:1px solid #e0e3da; border-radius:10px; background:#f6f7ef; }
.ai-aside-label { display:block; color:#839388; font-size:9px; font-weight:800; letter-spacing:.11em; }
.ai-allowance { background:#eaf1e9; border-color:#dce8dd; }
.ai-allowance-number { margin:14px 0 6px; color:#426558; font-family:Georgia,"Times New Roman",serif; font-size:38px; line-height:1; }
.ai-allowance-number span { color:#617a6d; font-family:system-ui,sans-serif; font-size:12px; font-weight:700; }
.ai-aside-card p { margin:10px 0 0; color:#657b71; font-size:11px; line-height:1.6; }
.ai-aside-divider { height:1px; margin:15px 0; background:#d6e3d7; }
.ai-guide { background:#faf8f1; border-color:#e9e7dc; }
.ai-guide h2 { margin:13px 0 12px; color:#53665e; font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:400; line-height:1.2; }
.ai-guide p { color:#7b8377; }
.ai-aside-signoff { padding:8px 3px; color:#9ba59b; font-size:10px; font-weight:650; }
.ai-aside-signoff span { margin-right:6px; color:#bf8f72; font-size:15px; }
@media(max-width:800px){.ai-layout { grid-template-columns:minmax(0,1fr); }.ai-aside { grid-template-columns:1fr 1fr; }.ai-aside-signoff { grid-column:1/-1; }.ai-api-thread { min-height:290px; }}
@media(max-width:480px){.ai-page-heading { margin-bottom:20px; }.ai-page-number { display:none; }.ai-api-heading { padding:14px; }.ai-api-thread { min-height:285px; padding:20px 14px; }.ai-api-message { max-width:100%; }#aiApiForm { padding:14px 14px 0; }.ai-api-status { padding:0 14px; }.ai-api-footnote { margin-left:14px; margin-right:14px; }.ai-aside { grid-template-columns:1fr; }.ai-aside-signoff { grid-column:auto; }.ai-suggestions { gap:6px; }.ai-suggestions button { font-size:10px; }}

.recovery-codes{padding:14px;border:1px solid #dce7dc;border-radius:8px;background:#f4f8f2;color:#244c3b;font:600 12px/1.8 ui-monospace,monospace;overflow:auto;user-select:all}
@media(max-width:600px){#copyAppLink{font-size:0;padding:6px 8px}#copyAppLink::before{content:'↗';font-size:15px}}
/* Pinned and recent apps on the home screen */
.home-quick-access{margin-top:34px;padding:22px;border:1px solid #d9ded7;background:#fffefa;border-radius:5px}.home-quick-access[hidden]{display:none}.quick-app-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.quick-app-heading h2{font-size:19px;margin:0}.quick-app-heading .eyebrow{margin:0 0 6px}.quick-app-heading button{flex:none;background:transparent;border:1px solid #cbd6d1;color:#315f77;border-radius:4px;padding:9px 12px;font-weight:700;font-size:12px;cursor:pointer}.home-quick-access h3{color:#6a7775;font-size:11px;text-transform:uppercase;letter-spacing:.06em;margin:20px 0 9px}.quick-app-list{display:flex;flex-wrap:wrap;gap:8px}.quick-app-link{display:flex;align-items:center;gap:10px;min-width:145px;border:1px solid #e0e5de;background:#f7f8f4;border-radius:4px;padding:8px;color:#304b55;text-decoration:none;font-size:12px;font-weight:700}.quick-app-link:hover{border-color:#94a9a6;background:#edf2ed}.quick-app-link>span:last-child{margin-left:auto;color:#809895}.quick-app-empty{font-size:12px;line-height:1.5;color:#687b78;margin:16px 0 0}@media(max-width:480px){.home-quick-access{padding:16px}.quick-app-heading{align-items:flex-start}.quick-app-heading h2{font-size:16px}.quick-app-link{flex:1;min-width:135px}}
