:root {
  --accent: #f4c53a; --accent-rgb: 244,197,58; --bg: #f6f7fb; --surface: #fff; --surface-2: #f1f2f8;
  --text: #171827; --muted: #777a8e; --line: #e5e7ef; --danger: #e65467; --success: #199a68; --warning: #dc921c;
  --shadow: 0 10px 30px rgba(28,31,53,.07); --radius: 18px; --sidebar: 244px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(var(--accent-rgb),.32); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); line-height: 1.55; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1.3px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border-radius: 11px; font-weight: 750; font-size: 13px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }.button:active { transform: translateY(0) scale(.98); }.button.primary { background: var(--accent); color: #fff; box-shadow: 0 7px 16px rgba(var(--accent-rgb),.2); }.button.secondary { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }.button.danger { color: var(--danger); background: rgba(230,84,103,.1); }.button.full { width: 100%; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 18px; }
.input, .textarea, select.input { width: 100%; padding: 11px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }.textarea { min-height: 120px; resize: vertical; }
.field-label { display: block; margin: 15px 0 6px; font-size: 12px; font-weight: 750; }.help { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

/* first launch */
.setup-screen, .personalizing-screen { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb),.16), transparent 30%), var(--bg); }.setup-card, .loader-card { position: relative; z-index: 1; width: min(480px, calc(100% - 32px)); padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 25px 80px rgba(28,31,53,.16); animation: rise .45s ease both; }.setup-card h1 { margin: 13px 0 8px; font-size: 30px; letter-spacing: -1.1px; }.setup-card > .brand-mark { display: grid; place-items: center; }.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; color: #fff; background: var(--accent); border-radius: 12px; font-size: 20px; font-weight: 900; box-shadow: 0 8px 20px rgba(var(--accent-rgb),.25); }.setup-options { margin: 20px 0; }.choice-row, .accent-row { display: flex; gap: 8px; flex-wrap: wrap; }.choice { padding: 8px 10px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 700; }.choice.active { color: var(--accent); background: rgba(var(--accent-rgb),.1); border-color: rgba(var(--accent-rgb),.35); }.accent-dot { width: 31px; height: 31px; padding: 0; background: var(--dot); border: 3px solid transparent; border-radius: 50%; }.accent-dot.active { border-color: var(--surface); box-shadow: 0 0 0 2px var(--dot); }.orb { position: absolute; width: 240px; aspect-ratio: 1; background: var(--accent); border-radius: 40% 60% 57% 43%; opacity: .12; filter: blur(1px); animation: float 9s ease-in-out infinite; }.orb-one { top: -90px; left: -80px; }.orb-two { right: -90px; bottom: -80px; animation-delay: -4s; }.orb-three { width: 100px; top: 25%; right: 14%; animation-delay: -7s; }.personalizing-screen { background: var(--surface); }.loader-card { text-align: center; box-shadow: none; border: 0; background: transparent; }.loader { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 22px; border: 5px solid rgba(var(--accent-rgb),.12); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }.loader span { width: 22px; height: 22px; background: var(--accent); border-radius: 7px; }.loader-card h2 { margin: 0 0 7px; letter-spacing: -.6px; }
.setup-step[hidden] { display: none !important; }.setup-step.active { animation: rise .3s cubic-bezier(.2,1.15,.3,1) both; }.setup-step .brand-mark { display: grid; place-items: center; margin-bottom: 14px; }.setup-step[data-setup-step="welcome"] .brand-mark { width: 78px; height: 78px; flex-basis: 78px; margin-bottom: 20px; border-radius: 22px; }.setup-step > .muted { margin: 0; line-height: 1.55; }.setup-step .setup-submit { margin-top: 24px; }.setup-back { display: inline-flex; margin: -5px 0 16px; color: var(--muted); font-size: 12px; font-weight: 760; }.discovery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 22px 0 4px; }.discovery-choice { min-height: 74px; display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; text-align: left; transition: transform .2s cubic-bezier(.2,1.45,.4,1), background .2s ease, border-color .2s ease, box-shadow .2s ease; }.discovery-choice span { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb),.12); border-radius: 9px; font-size: 16px; }.discovery-choice b { font-size: 12px; }.discovery-choice:hover { border-color: rgba(var(--accent-rgb),.42); box-shadow: 0 7px 16px rgba(var(--accent-rgb),.12); transform: translateY(-2px); }.discovery-choice.active { color: var(--accent); background: rgba(var(--accent-rgb),.1); border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.14); }.discovery-choice.active span { color: #fff; background: var(--accent); }

/* shell */
.app { min-height: 100vh; }.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 21px 14px; background: var(--surface); border-right: 1px solid var(--line); }.sidebar-header { display: flex; align-items: center; justify-content: space-between; margin: 0 6px 25px; }.logo { display: flex; align-items: center; gap: 10px; padding: 0; color: var(--text); background: transparent; font-weight: 850; text-align: left; font-size: 16px; }.logo small, .profile-button small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; }.nav { display: grid; gap: 3px; }.nav-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--muted); background: transparent; border-radius: 10px; font-size: 13px; font-weight: 700; text-align: left; transition: .18s ease; }.nav-link span:first-child { width: 20px; font-size: 17px; text-align: center; }.nav-link:hover { color: var(--text); background: var(--surface-2); }.nav-link.active { color: var(--accent); background: rgba(var(--accent-rgb),.11); }.nav-badge { margin-left: auto; min-width: 20px; padding: 2px 5px; color: #fff; background: var(--accent); border-radius: 100px; font-size: 10px; text-align: center; }.sidebar-footer { margin-top: auto; }.sidebar-footer > .nav-link { border-top: 1px solid var(--line); border-radius: 0; }.profile-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 14px 8px 0; color: var(--text); background: transparent; text-align: left; }.profile-button > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb),.12); border-radius: 50%; font-size: 13px; font-weight: 850; }.profile-button b { max-width: 145px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }.main { min-height: 100vh; margin-left: var(--sidebar); padding: 26px 38px 60px; }.topbar { max-width: 1420px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto 30px; }.search { width: min(420px, 100%); display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }.search > span { color: var(--muted); font-size: 20px; }.search input { width: 100%; min-width: 0; height: 39px; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 13px; }.search kbd { padding: 2px 6px; color: var(--muted); background: var(--surface-2); border-radius: 5px; font-size: 10px; }.topbar-actions { display: flex; align-items: center; gap: 14px; }.today-label { color: var(--muted); font-size: 12px; white-space: nowrap; }.mobile-header { display: none; }.scrim { display: none; }

/* common page pieces */
.page { max-width: 1420px; margin: 0 auto; animation: rise .3s ease both; }.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }.page-header h1 { margin: 3px 0 7px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -1.5px; }.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }.card { padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }.card-head h2, .card-head h3 { margin: 0; font-size: 15px; letter-spacing: -.3px; }.text-button { padding: 0; color: var(--accent); background: none; font-weight: 800; font-size: 12px; }.empty { min-height: 150px; display: grid; place-items: center; padding: 25px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 12px; font-size: 13px; }.empty strong { display: block; margin-bottom: 4px; color: var(--text); }.chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 8px; color: var(--muted); background: var(--surface-2); border-radius: 100px; font-size: 11px; font-weight: 700; }.chip i { width: 7px; height: 7px; flex: 0 0 7px; background: var(--chip, var(--accent)); border-radius: 50%; }.progress { height: 7px; overflow: hidden; background: var(--surface-2); border-radius: 99px; }.progress > span { display: block; height: 100%; width: var(--progress, 0%); background: var(--accent); border-radius: inherit; transition: width .35s ease; }.row-menu { display: flex; gap: 5px; }.mini-button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; color: var(--muted); background: transparent; border-radius: 7px; }.mini-button:hover { color: var(--accent); background: rgba(var(--accent-rgb),.1); }.mini-button.delete:hover { color: var(--danger); background: rgba(230,84,103,.1); }

/* dashboard */
.dashboard-welcome h1 span { color: var(--accent); }.clock-card { min-width: 145px; padding: 12px 17px; text-align: right; }.clock-card span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .9px; }.clock-card strong { display: block; margin-top: 3px; color: var(--accent); font-size: 23px; letter-spacing: -.6px; }.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }.stat-card { min-height: 134px; }.stat-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 19px; color: var(--accent); background: rgba(var(--accent-rgb),.11); border-radius: 10px; font-size: 18px; }.stat-card strong { display: block; margin-bottom: 3px; font-size: 25px; letter-spacing: -1px; }.stat-card small { color: var(--muted); font-size: 11px; font-weight: 650; }.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }.dashboard-stack { display: grid; gap: 14px; }.task-list, .event-list { display: grid; gap: 7px; }.task-row, .event-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }.task-row:last-child, .event-row:last-child { border-bottom: 0; }.check { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; padding: 0; color: transparent; background: var(--surface); border: 2px solid var(--line); border-radius: 7px; font-size: 12px; }.check.done { color: #fff; background: var(--success); border-color: var(--success); }.task-row-main { min-width: 0; flex: 1; }.task-row-main b, .event-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.task-row-main s { color: var(--muted); }.task-row-main small, .event-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }.event-color { width: 10px; height: 38px; flex: 0 0 10px; background: var(--event-color, var(--accent)); border-radius: 8px; }.agenda-date { width: 37px; flex: 0 0 37px; color: var(--muted); font-size: 10px; text-align: center; font-weight: 700; }.agenda-date strong { display: block; color: var(--text); font-size: 19px; letter-spacing: -.6px; }.quote { padding: 16px; color: var(--text); background: linear-gradient(135deg, rgba(var(--accent-rgb),.1), rgba(var(--accent-rgb),.03)); border-radius: 12px; font-size: 13px; line-height: 1.5; }.quote small { display: block; margin-top: 8px; color: var(--accent); font-weight: 750; }

/* lists, homework, notes */
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }.filter-button { padding: 7px 10px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 750; }.filter-button.active { color: var(--accent); background: rgba(var(--accent-rgb),.1); border-color: rgba(var(--accent-rgb),.3); }.list-card { padding: 6px 18px; }.homework-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }.homework-row:last-child { border-bottom: 0; }.homework-info { min-width: 0; }.homework-info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.homework-info b.done { color: var(--muted); text-decoration: line-through; }.homework-info .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }.due { min-width: 83px; color: var(--muted); font-size: 11px; text-align: right; }.due.overdue { color: var(--danger); font-weight: 800; }.priority { font-size: 10px; font-weight: 850; text-transform: uppercase; }.priority.high { color: var(--danger); }.priority.medium { color: var(--warning); }.priority.low { color: var(--success); }.notes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.note-card { min-height: 180px; display: flex; flex-direction: column; }.note-card p { flex: 1; margin: 9px 0 15px; color: var(--muted); white-space: pre-wrap; font-size: 13px; line-height: 1.55; }.note-card footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }.note-card .row-menu { margin-left: auto; }

/* calendar */
.calendar-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.65fr); gap: 14px; }.calendar-controls { display: flex; align-items: center; gap: 7px; }.calendar-title { margin: 0 auto; font-size: 17px; letter-spacing: -.4px; }.weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }.weekdays { margin-bottom: 5px; }.weekdays span { padding: 6px 0; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }.calendar-day { min-height: 83px; position: relative; padding: 7px; color: var(--text); background: var(--surface); border: 1px solid transparent; border-radius: 10px; text-align: left; vertical-align: top; transition: .15s ease; }.calendar-day:hover { background: var(--surface-2); }.calendar-day.outside { color: #b6b8c4; }.calendar-day.today .day-number { color: #fff; background: var(--accent); }.calendar-day.selected { border-color: var(--accent); background: rgba(var(--accent-rgb),.06); }.day-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }.day-event { overflow: hidden; margin-top: 4px; padding: 3px 4px; color: var(--text); background: color-mix(in srgb, var(--event-color, var(--accent)) 14%, transparent); border-left: 3px solid var(--event-color, var(--accent)); border-radius: 3px; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.selected-date-card { align-self: start; }.selected-date-card h3 { margin: 0; font-size: 16px; }.selected-events { display: grid; gap: 10px; margin: 15px 0; }.selected-event { padding: 9px; background: var(--surface-2); border-radius: 9px; }.selected-event b { display: block; font-size: 12px; }.selected-event small { color: var(--muted); font-size: 10px; }

/* grades/subjects/goals/friends */
.overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.overview-number { display: block; margin: 10px 0 4px; font-size: 30px; letter-spacing: -1.2px; }.overview-label { color: var(--muted); font-size: 11px; font-weight: 700; }.grade-list { display: grid; gap: 9px; }.grade-row, .subject-card, .goal-row, .friend-row { display: flex; align-items: center; gap: 11px; }.grade-row { padding: 11px 0; border-bottom: 1px solid var(--line); }.grade-row:last-child { border: 0; }.grade-value { width: 40px; height: 40px; display: grid; place-items: center; margin-left: auto; color: var(--accent); background: rgba(var(--accent-rgb),.11); border-radius: 11px; font-size: 14px; font-weight: 850; }.grade-info { min-width: 0; }.grade-info b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.grade-info small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }.subject-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.subject-card { min-height: 125px; position: relative; align-items: flex-start; }.subject-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: var(--subject-color, var(--accent)); background: color-mix(in srgb, var(--subject-color, var(--accent)) 13%, transparent); border-radius: 12px; font-size: 18px; font-weight: 850; }.subject-card h3 { margin: 0 0 4px; font-size: 14px; }.subject-card small { color: var(--muted); font-size: 11px; }.subject-card .row-menu { position: absolute; right: 12px; bottom: 12px; }.goal-list { display: grid; gap: 10px; }.goal-row { padding: 12px 0; border-bottom: 1px solid var(--line); }.goal-row:last-child { border: 0; }.goal-row > div { min-width: 0; flex: 1; }.goal-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.goal-row small { display: block; margin: 4px 0 8px; color: var(--muted); font-size: 11px; }.goal-percent { min-width: 42px; color: var(--accent); font-size: 12px; font-weight: 850; text-align: right; }.friend-list { display: grid; gap: 9px; }.friend-row { padding: 12px 0; border-bottom: 1px solid var(--line); }.friend-row:last-child { border: 0; }.friend-avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: #fff; background: var(--friend-color, var(--accent)); border-radius: 50%; font-weight: 850; }.friend-row > div { min-width: 0; flex: 1; }.friend-row b { display: block; font-size: 13px; }.friend-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

/* timer and stats */
.timer-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 14px; }.timer-card { min-height: 410px; display: grid; place-items: center; text-align: center; }.timer-mode-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }.timer-mode { padding: 7px 10px; color: var(--muted); background: var(--surface-2); border-radius: 8px; font-size: 11px; font-weight: 750; }.timer-mode.active { color: var(--accent); background: rgba(var(--accent-rgb),.11); }.timer-ring { width: min(260px, 65vw); aspect-ratio: 1; display: grid; place-items: center; margin: 25px auto; border: 10px solid rgba(var(--accent-rgb),.13); border-top-color: var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.05); }.timer-time { display: block; font-size: clamp(42px,7vw,65px); letter-spacing: -3px; }.timer-controls { display: flex; justify-content: center; gap: 8px; }.timer-controls .button { min-width: 86px; }.timer-settings { align-self: start; }.timer-settings .input { margin-bottom: 10px; }.stat-bars { display: grid; gap: 14px; }.bar-row { display: grid; grid-template-columns: 65px 1fr 38px; align-items: center; gap: 10px; }.bar-row span, .bar-row b { font-size: 11px; }.bar-row b { color: var(--muted); text-align: right; }

/* settings + modal + toast */
.settings-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.settings-card h2 { margin: 0 0 6px; font-size: 15px; }.settings-card > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.45; }.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }.setting-row > div:first-child { min-width: 0; }.setting-row b { display: block; font-size: 12px; }.setting-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }.settings-card .accent-row { padding-top: 10px; }.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(20,22,38,.45); backdrop-filter: blur(3px); animation: fade .15s ease both; }.modal { width: min(540px,100%); max-height: calc(100vh - 36px); overflow: auto; padding: 22px; background: var(--surface); border-radius: 19px; box-shadow: 0 20px 60px rgba(14,16,27,.26); animation: rise .2s ease both; }.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }.modal-head h2 { margin: 0; font-size: 19px; letter-spacing: -.5px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }.form-grid .wide { grid-column: 1/-1; }.toast-root { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 8px; }.toast { padding: 11px 14px; color: #fff; background: #272a3d; border-radius: 10px; box-shadow: 0 8px 25px rgba(18,21,35,.23); font-size: 12px; font-weight: 700; animation: toastIn .25s ease both; }.toast.success { background: var(--success); }.toast.error { background: var(--danger); }

/* In-app reminder alerts: deliberately kept inside BananaBoard, with no browser permission required. */
.banana-notice { width: min(340px, calc(100vw - 36px)); display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; align-items: start; gap: 10px; padding: 10px; color: #fff; background: linear-gradient(135deg, #24263a, #30334b); border: 1px solid rgba(255,255,255,.15); border-radius: 17px; box-shadow: 0 15px 36px rgba(21,23,39,.3); animation: panelDrop .28s cubic-bezier(.2,1.25,.35,1) both; }.banana-notice > img { width: 42px; height: 42px; padding: 6px; background: #ffd84c; border-radius: 12px; object-fit: contain; }.banana-notice small { display: block; margin-bottom: 2px; color: #ffd84c; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.banana-notice b { display: block; overflow: hidden; color: #fff; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }.banana-notice p { display: -webkit-box; overflow: hidden; margin: 3px 0 0; color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.banana-notice button { width: 24px; height: 24px; padding: 0; color: rgba(255,255,255,.75); background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1; }.banana-notice button:hover { color: #24263a; background: #ffd84c; transform: rotate(90deg); }

@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } } @keyframes fade { from { opacity: 0; } to { opacity: 1; } } @keyframes float { 50% { transform: translate(20px,28px) rotate(16deg); border-radius: 60% 40% 35% 65%; } } @keyframes spin { to { transform: rotate(360deg); } } @keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.dark { --bg:#151622; --surface:#1d1e2c; --surface-2:#262838; --text:#f4f5fb; --muted:#a9abbb; --line:#303244; --shadow:0 10px 30px rgba(0,0,0,.2); }.dark .setup-screen { background: radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb),.25), transparent 30%), var(--bg); }.dark .personalizing-screen { background: var(--bg); }.dark .search kbd { background: #303244; }.dark .calendar-day.outside { color: #77798a; }.dark .modal-backdrop { background: rgba(0,0,0,.6); }
@media (max-width: 1050px) { .stat-grid { grid-template-columns: repeat(2,1fr); }.notes-grid, .subject-grid { grid-template-columns: repeat(2,1fr); }.dashboard-grid { grid-template-columns: 1fr; }.timer-layout { grid-template-columns: 1fr; }.timer-settings { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.timer-settings h2,.timer-settings p,.timer-settings .button { grid-column: 1/-1; }.timer-settings .field-label { margin-top: 0; }.calendar-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) { :root { --sidebar: 264px; }.sidebar { transform: translateX(-101%); transition: transform .25s ease; box-shadow: 10px 0 35px rgba(0,0,0,.1); }.sidebar.open { transform: translateX(0); }.scrim.open { position: fixed; z-index: 45; inset: 0; display: block; background: rgba(0,0,0,.35); }.main { margin-left: 0; padding: 15px 16px 40px; }.mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 19px; }.mobile-header .compact { font-size: 14px; }.mobile-header .brand-mark { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; font-size: 16px; }.mobile-only { display: grid; }.topbar { margin-bottom: 22px; }.today-label { display: none; }.topbar-actions { margin-left: auto; }.page-header { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }.page-header h1 { font-size: 29px; }.header-actions { width: 100%; }.header-actions .button { flex: 1; }.clock-card { width: 100%; text-align: left; }.overview-grid,.settings-layout { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.notes-grid, .subject-grid { grid-template-columns: 1fr; }.calendar-day { min-height: 60px; padding: 5px; }.day-event { padding: 2px 3px; font-size: 8px; }.homework-row { grid-template-columns: auto minmax(0,1fr) auto; }.homework-row .due { display: none; }.list-card { padding: 6px 13px; }.timer-settings { display: block; }.timer-card { min-height: 370px; }.setup-card { padding: 25px; }.setup-card h1 { font-size: 26px; } }
@media (min-width: 761px) { .mobile-only { display: none; } }

/* Account, quick add, and pickers */
.auth-card { max-height: calc(100vh - 32px); overflow: auto; }.auth-tabs { margin: 20px 0 4px; }.auth-help { margin-top: 14px; text-align: center; }.photo-input { padding: 8px; font-size: 12px; }.profile-button > span:first-child { overflow: hidden; }.profile-photo { width: 100%; height: 100%; display: block; object-fit: cover; }.quick-add-wrap { position: relative; }.quick-add-menu { position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; width: 188px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 14px 35px rgba(20,22,38,.16); }.quick-add-menu button { width: 100%; display: block; padding: 9px 10px; color: var(--text); background: transparent; border-radius: 8px; text-align: left; font-size: 12px; font-weight: 720; }.quick-add-menu button:hover { color: var(--accent); background: rgba(var(--accent-rgb),.1); }.date-field { display: flex; gap: 6px; }.date-field .input { min-width: 0; }.date-field .button { flex: 0 0 auto; min-height: 39px; padding: 0 10px; }.date-picker-panel, .icon-picker-panel { margin-top: 15px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }.date-picker-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }.date-picker-weekdays, .date-picker-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }.date-picker-weekdays { margin-bottom: 2px; }.date-picker-weekdays span { color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; }.picker-day { height: 30px; padding: 0; color: var(--text); background: transparent; border-radius: 7px; font-size: 11px; }.picker-day:hover, .picker-day.today { color: #fff; background: var(--accent); }.picker-day.outside { color: var(--muted); opacity: .55; }.date-picker-panel > .text-button { display: block; margin: 9px 0 0 auto; }.icon-picker-panel > b { display: block; margin-bottom: 8px; font-size: 12px; }.icon-picker-panel > div { display: flex; flex-wrap: wrap; gap: 6px; }.icon-choice { width: 32px; height: 32px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }.icon-choice:hover { color: var(--accent); border-color: var(--accent); }

/* Community and widgets */
.friend-discovery { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.75fr); gap: 14px; }.friend-discovery .card-head > div { min-width: 0; }.friend-discovery .card-head .muted { margin: 4px 0 0; font-size: 11px; }.widget-option-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }.widget-option { min-height: 200px; display: flex; flex-direction: column; }.widget-option h2 { margin: 0; font-size: 15px; }.widget-option p { flex: 1; margin: 7px 0 16px; font-size: 12px; }.widget-manager-list { display: grid; gap: 8px; }.widget-manager-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }.widget-manager-row:last-child { border-bottom: 0; }.widget-manager-row b { display: block; font-size: 13px; }.widget-manager-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.widget-position-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }.widget-position-buttons .filter-button { text-transform: capitalize; }.dashboard-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }.dashboard-layout.has-left { grid-template-columns: minmax(180px,.62fr) minmax(0,2fr); }.dashboard-layout.has-right { grid-template-columns: minmax(0,2fr) minmax(180px,.62fr); }.dashboard-layout.has-left.has-right { grid-template-columns: minmax(180px,.62fr) minmax(0,2fr) minmax(180px,.62fr); }.dashboard-widget-column { display: grid; align-content: start; gap: 14px; }.widget-position-top, .widget-position-bottom { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 14px; margin-bottom: 14px; }.widget-position-bottom { margin: 14px 0 0; }.dashboard-widget { min-width: 0; }.compact-list .task-row, .compact-list .event-row { padding: 7px 0; }.compact-list .event-color { height: 30px; }.widget-countdown { display: grid; gap: 4px; text-align: center; }.widget-countdown strong { color: var(--accent); font-size: 42px; letter-spacing: -2px; }.widget-countdown span { font-size: 12px; font-weight: 760; }.widget-countdown small { color: var(--muted); font-size: 11px; }.widget-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.widget-stats span { padding: 8px 5px; background: var(--surface-2); border-radius: 8px; color: var(--muted); font-size: 9px; text-align: center; }.widget-stats b { display: block; margin-bottom: 3px; color: var(--accent); font-size: 13px; }

@media (max-width: 1200px) { .widget-option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.dashboard-layout.has-left, .dashboard-layout.has-right, .dashboard-layout.has-left.has-right { grid-template-columns: minmax(0,1fr); }.dashboard-widget-column { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }.dashboard-widget-column.widget-position-left, .dashboard-widget-column.widget-position-right { order: 2; } .dashboard-center { order: 1; } }
@media (max-width: 760px) { .friend-discovery { grid-template-columns: 1fr; }.widget-option-grid { grid-template-columns: 1fr; }.widget-manager-row { align-items: flex-start; flex-direction: column; }.widget-position-buttons { justify-content: flex-start; }.date-field { align-items: stretch; }.date-field .button { font-size: 11px; }.quick-add-menu { right: 0; }.dashboard-widget-column, .widget-position-top, .widget-position-bottom { grid-template-columns: 1fr; } }

.auth-notice { margin: 14px 0 0; padding: 10px 11px; color: var(--danger); background: rgba(230,84,103,.1); border: 1px solid rgba(230,84,103,.25); border-radius: 9px; font-size: 12px; line-height: 1.4; }.photo-picker-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }.photo-picker-row .button { min-height: 37px; }

/* Calmer, more direct form controls */
.modal { padding: 24px; }.modal .field-label { margin-top: 13px; }.modal .form-grid { gap: 2px 14px; }.modal .textarea { min-height: 104px; }.value-picker { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 0 12px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; text-align: left; font-size: 12px; font-weight: 730; transition: border-color .18s ease, background .18s ease, color .18s ease; }.value-picker:hover, .value-picker.selected { color: var(--text); background: var(--surface); border-color: rgba(var(--accent-rgb),.45); }.value-picker.selected { border-style: solid; }.value-picker b { color: var(--accent); font-size: 14px; }.icon-value-picker { justify-content: flex-start; }.icon-value-picker > span:nth-child(2) { flex: 1; }.icon-value { width: 27px; height: 27px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb),.12); border-radius: 8px; font-size: 16px; }.icon-choice-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 6px; }.icon-picker-panel { overflow: hidden; }.icon-picker-panel .custom-icon-row { display: flex; gap: 7px; margin-top: 12px; }.custom-icon-row .input { min-width: 0; }.custom-icon-row .button { flex: 0 0 auto; }.date-picker-panel { margin-top: 10px; }.date-picker-panel .picker-day { border: 1px solid transparent; }.date-picker-panel .picker-day:hover { border-color: rgba(var(--accent-rgb),.28); }.modal-actions { position: sticky; bottom: -24px; padding-top: 15px; background: var(--surface); }
@media (max-width: 760px) { .modal { padding: 19px; }.icon-choice-grid { grid-template-columns: repeat(6,1fr); }.modal-actions { bottom: -19px; } }

.field-control-title { display: block; }

/* StudyFlow motion system */
body { background-image: radial-gradient(circle at 8% 8%, rgba(var(--accent-rgb),.09), transparent 27%), radial-gradient(circle at 94% 88%, rgba(var(--accent-rgb),.07), transparent 24%); background-attachment: fixed; animation: ambientDrift 18s ease-in-out infinite alternate; }
.brand-mark { animation: brandPulse 3.2s ease-in-out infinite; }.logo:hover .brand-mark { animation: logoHop .55s cubic-bezier(.2,1.6,.4,1); }.sidebar { animation: sidebarIn .55s cubic-bezier(.2,.9,.25,1) both; }.nav-link { overflow: hidden; position: relative; }.nav-link::after { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); border-radius: 0 6px 6px 0; content: ""; opacity: 0; transform: scaleY(.25); transition: opacity .22s ease, transform .22s ease; }.nav-link.active::after { opacity: 1; transform: scaleY(.72); }.nav-link:hover span:first-child { animation: iconNudge .38s ease; }.nav-badge { animation: badgeBounce 2.3s ease-in-out infinite; }
.page-header { animation: headerReveal .5s cubic-bezier(.2,.9,.25,1) both; }.page .card { animation: cardReveal .55s cubic-bezier(.2,.9,.25,1) both; }.page .card:nth-of-type(2) { animation-delay: .04s; }.page .card:nth-of-type(3) { animation-delay: .08s; }.page .card:nth-of-type(4) { animation-delay: .12s; }.card { will-change: transform; }.card:hover { transform: translateY(-4px); }.stat-card:hover .stat-icon { animation: iconPop .5s cubic-bezier(.2,1.6,.4,1); }.stat-card:nth-child(odd) .stat-icon { animation: slowFloat 4s ease-in-out infinite; }.stat-card:nth-child(even) .stat-icon { animation: slowFloat 4.8s ease-in-out infinite reverse; }
.button { overflow: hidden; position: relative; }.button::before { position: absolute; top: -70%; left: -125%; width: 50%; height: 240%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.26), transparent); content: ""; transform: rotate(18deg); transition: left .55s ease; }.button:hover::before { left: 150%; }.button.primary { animation: primaryBreath 4s ease-in-out infinite; }.button:hover { animation: none; }.icon-button:hover { animation: iconPop .35s cubic-bezier(.2,1.6,.4,1); }.text-button:hover { animation: textWiggle .4s ease; }
.input, .textarea, select.input { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease; }.input:focus, .textarea:focus, select.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.12); transform: translateY(-1px); }.field-label:focus-within .field-control-title { color: var(--accent); transition: color .2s ease; }.value-picker:hover b { animation: chevronBounce .55s ease infinite; }
.quick-add-menu { transform-origin: top right; animation: menuReveal .24s cubic-bezier(.2,1.4,.4,1) both; }.quick-add-menu button:hover { transform: translateX(3px); transition: transform .18s ease; }.filter-button { transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }.filter-button:hover { transform: translateY(-1px); }.filter-button.active { animation: filterPop .3s cubic-bezier(.2,1.45,.45,1); }
.task-row, .event-row, .homework-row, .grade-row, .goal-row, .friend-row, .widget-manager-row { animation: rowSlide .38s ease both; transition: transform .18s ease, background .18s ease; }.task-row:hover, .event-row:hover, .homework-row:hover, .grade-row:hover, .goal-row:hover, .friend-row:hover { transform: translateX(3px); }.check { transition: transform .22s cubic-bezier(.2,1.5,.4,1), background .2s ease, border-color .2s ease; }.check.done { animation: checkPop .38s cubic-bezier(.2,1.7,.4,1); }.event-color { animation: eventPulse 2.5s ease-in-out infinite; }.chip { transition: transform .18s ease, background .18s ease; }.chip:hover { transform: scale(1.04); }.subject-card:hover .subject-icon, .friend-row:hover .friend-avatar { animation: iconPop .45s cubic-bezier(.2,1.6,.4,1); }
.calendar-day { transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }.calendar-day:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 7px 14px rgba(28,31,53,.08); }.calendar-day.selected { animation: dateSelected .48s cubic-bezier(.2,1.5,.4,1); }.day-event { animation: eventIn .35s ease both; }.calendar-day.today .day-number { animation: todayPulse 2.4s ease-in-out infinite; }
.progress > span { background-image: linear-gradient(90deg, var(--accent), rgba(255,255,255,.36), var(--accent)); background-size: 200% 100%; animation: progressShimmer 2.8s linear infinite; }.overview-number, .clock-card strong { animation: numberBreathe 3.2s ease-in-out infinite; }.clock-card { overflow: hidden; position: relative; }.clock-card::after { position: absolute; inset: auto -20% -75% auto; width: 100px; height: 100px; border: 1px solid rgba(var(--accent-rgb),.18); border-radius: 50%; content: ""; animation: orbitGlow 6s ease-in-out infinite; }
.timer-ring { position: relative; animation: timerBreathe 3s ease-in-out infinite; }.timer-ring::after { position: absolute; inset: -10px; border: 1px solid rgba(var(--accent-rgb),.16); border-radius: 50%; content: ""; animation: ringOrbit 8s linear infinite; }.timer-time { animation: timePulse 2s ease-in-out infinite; }.timer-mode.active { animation: filterPop .35s cubic-bezier(.2,1.45,.45,1); }.widget-countdown strong { animation: countdownBeat 1.8s ease-in-out infinite; }.dashboard-widget:hover .widget-stats span { animation: statFlicker .8s ease both; }.dashboard-widget:hover .widget-stats span:nth-child(2) { animation-delay: .1s; }.dashboard-widget:hover .widget-stats span:nth-child(3) { animation-delay: .2s; }
.modal-backdrop { animation: backdropFade .2s ease both; }.modal { animation: modalSpring .35s cubic-bezier(.2,1.35,.35,1) both; }.date-picker-panel, .icon-picker-panel { animation: panelDrop .24s cubic-bezier(.2,1.25,.35,1) both; }.picker-day { transition: transform .16s ease, background .16s ease, color .16s ease; }.picker-day:hover { transform: scale(1.12); }.icon-choice { transition: transform .16s ease, color .16s ease, border-color .16s ease; }.icon-choice:hover { transform: translateY(-3px) rotate(-5deg); }.toast { animation: toastIn .35s cubic-bezier(.2,1.3,.35,1) both, toastGlow 2.7s ease-in-out infinite; }

@keyframes ambientDrift { 0% { background-position: 0 0, 100% 100%; } 100% { background-position: 5% 4%, 94% 92%; } }
@keyframes sidebarIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes brandPulse { 0%,100% { box-shadow: 0 8px 20px rgba(var(--accent-rgb),.25); transform: scale(1); } 50% { box-shadow: 0 10px 26px rgba(var(--accent-rgb),.43); transform: scale(1.04); } }
@keyframes logoHop { 50% { transform: translateY(-5px) rotate(-8deg) scale(1.08); } }
@keyframes iconNudge { 50% { transform: translateX(3px) rotate(-8deg); } }
@keyframes badgeBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px) scale(1.06); } }
@keyframes headerReveal { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardReveal { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes iconPop { 50% { transform: scale(1.18) rotate(-7deg); } }
@keyframes slowFloat { 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes primaryBreath { 0%,100% { box-shadow: 0 7px 16px rgba(var(--accent-rgb),.2); } 50% { box-shadow: 0 10px 23px rgba(var(--accent-rgb),.35); } }
@keyframes textWiggle { 25% { transform: translateX(2px); } 75% { transform: translateX(-1px); } }
@keyframes chevronBounce { 50% { transform: translateY(3px); } }
@keyframes menuReveal { from { opacity: 0; transform: translateY(-7px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes filterPop { 50% { transform: scale(1.07); } }
@keyframes rowSlide { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes checkPop { 50% { transform: scale(1.35) rotate(10deg); } }
@keyframes eventPulse { 0%,100% { opacity: .75; transform: scaleY(.93); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes dateSelected { 50% { transform: scale(1.07); } }
@keyframes eventIn { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
@keyframes todayPulse { 50% { box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.15); } }
@keyframes progressShimmer { to { background-position: -200% 0; } }
@keyframes numberBreathe { 50% { transform: scale(1.025); } }
@keyframes orbitGlow { 50% { transform: scale(1.35) rotate(55deg); opacity: .55; } }
@keyframes timerBreathe { 50% { transform: scale(1.025); box-shadow: 0 0 30px rgba(var(--accent-rgb),.13); } }
@keyframes ringOrbit { to { transform: rotate(360deg); } }
@keyframes timePulse { 50% { letter-spacing: -2px; color: var(--accent); } }
@keyframes countdownBeat { 50% { transform: scale(1.12); } }
@keyframes statFlicker { 50% { transform: translateY(-4px); background: rgba(var(--accent-rgb),.14); } }
@keyframes backdropFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSpring { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes panelDrop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastGlow { 50% { box-shadow: 0 12px 28px rgba(var(--accent-rgb),.28); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Manual layout modes */
body.layout-pc { --sidebar: 244px; } body.layout-pc .sidebar { transform: translateX(0) !important; } body.layout-pc .main { margin-left: var(--sidebar); padding: 26px 38px 60px; } body.layout-pc .mobile-header { display: none !important; } body.layout-pc .stat-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } body.layout-pc .dashboard-grid { grid-template-columns: 1.15fr .85fr; } body.layout-pc .calendar-layout { grid-template-columns: minmax(0,1.5fr) minmax(280px,.65fr); } body.layout-pc .notes-grid, body.layout-pc .subject-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } body.layout-pc .overview-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } body.layout-pc .timer-layout { grid-template-columns: minmax(0,1fr) 330px; }

body.layout-tablet { --sidebar: 214px; } body.layout-tablet .sidebar { width: var(--sidebar); } body.layout-tablet .main { margin-left: var(--sidebar); padding: 24px 26px 50px; } body.layout-tablet .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } body.layout-tablet .dashboard-grid, body.layout-tablet .calendar-layout, body.layout-tablet .timer-layout { grid-template-columns: 1fr; } body.layout-tablet .notes-grid, body.layout-tablet .subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } body.layout-tablet .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } body.layout-tablet .widget-option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } body.layout-tablet .dashboard-layout.has-left, body.layout-tablet .dashboard-layout.has-right, body.layout-tablet .dashboard-layout.has-left.has-right { grid-template-columns: 1fr; } body.layout-tablet .dashboard-widget-column { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); } body.layout-tablet .dashboard-widget-column.widget-position-left, body.layout-tablet .dashboard-widget-column.widget-position-right { order: 2; } body.layout-tablet .dashboard-center { order: 1; }

body.layout-phone { --sidebar: 264px; } body.layout-phone .sidebar { width: var(--sidebar); transform: translateX(-101%); } body.layout-phone .sidebar.open { transform: translateX(0); } body.layout-phone .scrim.open { position: fixed; z-index: 45; inset: 0; display: block; background: rgba(0,0,0,.35); } body.layout-phone .main { width: min(100%, 490px); min-height: 100vh; margin: 0 auto; padding: 15px 16px 40px; background: var(--bg); } body.layout-phone .mobile-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 19px; } body.layout-phone .mobile-version { justify-self: start; color: var(--muted); font-size: 10px; font-weight: 780; letter-spacing: .3px; white-space: nowrap; } body.layout-phone .mobile-header-spacer { justify-self: end; width: 70px; } body.layout-phone .mobile-header .compact { font-size: 14px; } body.layout-phone .mobile-header .brand-mark { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; font-size: 16px; } body.layout-phone .topbar { gap: 9px; margin-bottom: 22px; } body.layout-phone .topbar-actions { margin-left: auto; } body.layout-phone .today-label { display: none; } body.layout-phone .search { min-width: 0; } body.layout-phone .search kbd { display: none; } body.layout-phone .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 18px; } body.layout-phone .page-header h1 { font-size: 29px; } body.layout-phone .header-actions { width: 100%; } body.layout-phone .header-actions .button { flex: 1; } body.layout-phone .clock-card { width: 100%; text-align: left; } body.layout-phone .stat-grid, body.layout-phone .dashboard-grid, body.layout-phone .calendar-layout, body.layout-phone .notes-grid, body.layout-phone .subject-grid, body.layout-phone .overview-grid, body.layout-phone .settings-layout, body.layout-phone .timer-layout, body.layout-phone .friend-discovery, body.layout-phone .widget-option-grid, body.layout-phone .dashboard-layout.has-left, body.layout-phone .dashboard-layout.has-right, body.layout-phone .dashboard-layout.has-left.has-right, body.layout-phone .dashboard-widget-column, body.layout-phone .widget-position-top, body.layout-phone .widget-position-bottom { grid-template-columns: 1fr; } body.layout-phone .homework-row { grid-template-columns: auto minmax(0,1fr) auto; } body.layout-phone .homework-row .due { display: none; } body.layout-phone .list-card { padding: 6px 13px; } body.layout-phone .calendar-day { min-height: 60px; padding: 5px; } body.layout-phone .day-event { padding: 2px 3px; font-size: 8px; } body.layout-phone .weekdays span { font-size: 9px; } body.layout-phone .timer-settings { display: block; } body.layout-phone .timer-card { min-height: 370px; } body.layout-phone .form-grid { grid-template-columns: 1fr; } body.layout-phone .form-grid .wide { grid-column: auto; } body.layout-phone .widget-manager-row { align-items: flex-start; flex-direction: column; } body.layout-phone .widget-position-buttons { justify-content: flex-start; }
body.layout-phone .sidebar, body.layout-phone .sidebar.open, body.layout-phone .scrim, body.layout-phone .scrim.open { display: none !important; }

/* StudyFlow app mark and Phone bottom navigation */
.brand-mark { position: relative; overflow: visible; isolation: isolate; background: linear-gradient(145deg, #8f86ff 0%, var(--accent) 48%, #3e38b8 100%); border: 1px solid rgba(255,255,255,.32); text-shadow: 0 1px 5px rgba(24,21,93,.34); }.brand-mark::before { position: absolute; z-index: 2; top: -7px; right: -7px; width: 13px; height: 13px; display: grid; place-items: center; color: #fff; content: "✦"; font-size: 12px; line-height: 1; text-shadow: 0 1px 6px rgba(49,42,170,.45); animation: logoSpark 2.1s ease-in-out infinite; }.brand-mark::after { position: absolute; z-index: -1; inset: -5px; border: 1px solid rgba(var(--accent-rgb),.4); border-radius: 15px 11px 16px 10px; content: ""; transform: rotate(-9deg); animation: logoOrbit 5s linear infinite; }.mobile-bottom-nav { display: none; }
body.layout-phone .main { padding-bottom: calc(116px + env(safe-area-inset-bottom)); } body.layout-phone .mobile-bottom-nav { position: fixed; z-index: 40; bottom: max(8px, env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 16px), 490px); min-height: 88px; display: flex; margin: 0; padding: 9px 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 10px 28px rgba(24,27,45,.14); backdrop-filter: blur(16px); transform: translateX(-50%); animation: bottomNavIn .45s cubic-bezier(.2,1.2,.3,1) both; } body.layout-phone .mobile-bottom-nav::-webkit-scrollbar { display: none; } body.layout-phone .phone-tab { position: relative; min-height: 66px; min-width: 0; flex: 0 0 20%; display: grid; place-items: center; gap: 4px; padding: 5px 1px; color: var(--muted); background: transparent; border-radius: 15px; font-size: 19px; scroll-snap-align: start; transition: color .2s ease, transform .2s ease, background .2s ease; } body.layout-phone .phone-tab span { line-height: 1; } body.layout-phone .phone-tab small { overflow: hidden; max-width: 100%; font-size: clamp(8px,2.4vw,10px); font-weight: 780; text-overflow: ellipsis; white-space: nowrap; } body.layout-phone .phone-tab.active { color: var(--accent); background: rgba(var(--accent-rgb),.1); transform: translateY(-3px); } body.layout-phone .phone-tab.active::before { position: absolute; top: 4px; width: 16px; height: 3px; background: var(--accent); border-radius: 99px; content: ""; animation: tabIndicator .35s cubic-bezier(.2,1.4,.4,1) both; } body.layout-phone .phone-tab:active { transform: scale(.92); }
@keyframes logoSpark { 0%,100% { transform: scale(.75) rotate(0); opacity: .72; } 50% { transform: scale(1.18) rotate(18deg); opacity: 1; } } @keyframes logoOrbit { to { transform: rotate(351deg); } } @keyframes bottomNavIn { from { opacity: 0; transform: translate(-50%,18px); } to { opacity: 1; transform: translateX(-50%); } } @keyframes tabIndicator { from { transform: scaleX(.15); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* Refined StudyFlow loop mark */
.brand-mark { display: grid; place-items: center; overflow: visible; background: linear-gradient(145deg, #141624, #2a2e45); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; box-shadow: 0 8px 20px rgba(20,23,42,.24), inset 0 1px 0 rgba(255,255,255,.11); }.brand-mark::before { top: -4px; right: -4px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.13), 0 0 13px rgba(var(--accent-rgb),.9); content: ""; }.brand-mark::after { inset: -4px; border: 1px solid rgba(var(--accent-rgb),.32); border-radius: 15px; transform: rotate(-7deg); }.studyflow-symbol { width: 82%; height: 82%; overflow: visible; filter: drop-shadow(0 1px 3px rgba(0,0,0,.34)); }.studyflow-symbol path { stroke: #fff; stroke-width: 3.35; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 150; stroke-dashoffset: 0; animation: loopLineGlow 4.8s ease-in-out infinite; }.studyflow-symbol path:nth-child(2) { animation-delay: -.7s; }
@keyframes loopLineGlow { 0%,100% { stroke-dashoffset: 0; opacity: .88; } 50% { stroke-dashoffset: -13; opacity: 1; } }

/* Keep the logo artwork still; only its surrounding effects move. */
.brand-mark, .logo:hover .brand-mark, .studyflow-symbol, .studyflow-symbol path { animation: none !important; }.brand-mark::before, .brand-mark::after { animation-play-state: running; }

/* Geometric, equal-weight ribbon strokes */
.studyflow-symbol { filter: drop-shadow(0 1px 2px rgba(0,0,0,.28)); }.studyflow-symbol path { stroke-width: 3.15; stroke-dasharray: none; stroke-dashoffset: 0; }

/* Polished ribbon mark: the symbol stays still while its small accent orbit animates around it. */
.brand-mark { background: #fff; border-color: rgba(18,18,18,.13); box-shadow: 0 8px 20px rgba(20,23,42,.14), inset 0 1px 0 rgba(255,255,255,.95); }
.studyflow-symbol { filter: none; }
.studyflow-symbol path { stroke: #101010; stroke-width: 4.55; }
.brand-mark::before { display: none; }
.brand-mark::after { inset: -6px; border-color: rgba(var(--accent-rgb),.27); border-radius: 14px; opacity: .8; }

/* The logo artwork remains fixed; these effects animate only in the space around it. */
.brand-mark { animation: logoAura 3.8s ease-in-out infinite !important; }
.brand-mark::before { position: absolute; z-index: 3; top: -5px; left: -5px; width: 7px; height: 7px; display: block; background: var(--accent); border: 2px solid var(--surface); border-radius: 50%; box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12), 0 0 14px rgba(var(--accent-rgb),.65); content: ""; transform-origin: 24px 24px; animation: logoSatellite 4.8s linear infinite !important; }
.brand-mark::after { border-style: dashed; border-width: 1px; animation: logoOrbit 7s linear infinite !important; }
.logo:hover .brand-mark { animation: logoAura 1.35s ease-in-out infinite !important; }
@keyframes logoAura { 0%,100% { box-shadow: 0 8px 20px rgba(20,23,42,.14), 0 0 0 0 rgba(var(--accent-rgb),.18), inset 0 1px 0 rgba(255,255,255,.95); } 50% { box-shadow: 0 10px 25px rgba(20,23,42,.18), 0 0 0 7px rgba(var(--accent-rgb),0), inset 0 1px 0 rgba(255,255,255,.95); } }
@keyframes logoSatellite { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-mark, .brand-mark::before, .brand-mark::after { animation: none !important; } }

/* BananaBoard mark and a livelier, still-readable motion layer. */
.brand-mark { background: linear-gradient(145deg,#fffef8,#fff4c6); border-color: rgba(89,72,15,.18); }
.studyflow-symbol { width: 86%; height: 86%; }
.studyflow-symbol .banana-body { fill: #ffd84c; stroke: #29240f; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.studyflow-symbol .banana-inner { fill: none; stroke: #bd8d10; stroke-width: 1.8; stroke-linecap: round; }
.studyflow-symbol .banana-stem { fill: none; stroke: #29240f; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark::before { background: #f4c53a; border-color: #fffdf4; box-shadow: 0 0 0 3px rgba(244,197,58,.16), 0 0 14px rgba(235,180,28,.62); }
.brand-mark::after { border-color: rgba(228,174,23,.4); }
@keyframes logoAura { 0%,100% { box-shadow: 0 8px 20px rgba(20,23,42,.14), 0 0 0 0 rgba(244,197,58,.22), inset 0 1px 0 rgba(255,255,255,.95); } 50% { box-shadow: 0 10px 25px rgba(20,23,42,.18), 0 0 0 8px rgba(244,197,58,0), inset 0 1px 0 rgba(255,255,255,.95); } }
.app { position: relative; isolation: isolate; }
.app::before, .app::after { position: fixed; z-index: -1; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle,rgba(255,214,70,.16),rgba(255,214,70,0) 68%); content: ""; filter: blur(2px); pointer-events: none; }
.app::before { top: 13%; right: 4%; animation: bananaGlowOne 13s ease-in-out infinite alternate; }
.app::after { bottom: 5%; left: 20%; width: 180px; height: 180px; opacity: .65; animation: bananaGlowTwo 16s ease-in-out infinite alternate; }
.page-header h1 { position: relative; width: fit-content; }
.page-header h1::after { position: absolute; bottom: -7px; left: 0; width: 44%; height: 3px; background: linear-gradient(90deg,#f2c331,var(--accent),transparent); border-radius: 99px; content: ""; transform-origin: left; animation: titleUnderline 4.2s ease-in-out infinite; }
.page-header .eyebrow { animation: eyebrowGlow 3.3s ease-in-out infinite; }
.card-head h2, .card-head h3 { position: relative; }
.card-head h2::after, .card-head h3::after { position: absolute; right: -11px; bottom: 1px; width: 4px; height: 4px; background: #f2c331; border-radius: 50%; box-shadow: 0 0 0 0 rgba(242,195,49,.45); content: ""; animation: headingDot 2.6s ease-in-out infinite; }
.search { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease; }
.search:focus-within { border-color: rgba(235,180,28,.6); box-shadow: 0 8px 22px rgba(208,157,15,.12); transform: translateY(-1px); }
.dashboard-widget, .notebook-card, .note-page-card, .subject-card { transition: transform .24s cubic-bezier(.2,1.3,.4,1), box-shadow .24s ease, border-color .24s ease; }
.dashboard-widget:hover, .notebook-card:hover, .note-page-card:hover, .subject-card:hover { border-color: rgba(235,180,28,.45); box-shadow: 0 13px 28px rgba(56,46,12,.14); transform: translateY(-4px); }
.notebook-cover::before { animation: notebookGrain 8s linear infinite; }
.note-page-card { animation: paperSettle .55s cubic-bezier(.2,1.2,.35,1) both; }
.note-page-card:nth-child(2) { animation-delay: .05s; }.note-page-card:nth-child(3) { animation-delay: .1s; }.note-page-card:nth-child(4) { animation-delay: .15s; }
.widget-manager-row:nth-child(odd), .setting-row:nth-child(odd) { animation: softReveal .5s ease both; }
.widget-manager-row:nth-child(even), .setting-row:nth-child(even) { animation: softReveal .5s .06s ease both; }
body.layout-phone .mobile-bottom-nav { box-shadow: 0 10px 28px rgba(24,27,45,.14), 0 0 0 0 rgba(244,197,58,.16); animation: bottomNavIn .45s cubic-bezier(.2,1.2,.3,1) both, navBreath 4.5s ease-in-out infinite; }
@keyframes bananaGlowOne { 0% { transform: translate3d(0,0,0) scale(.82); opacity: .34; } 100% { transform: translate3d(-28px,22px,0) scale(1.18); opacity: .7; } }
@keyframes bananaGlowTwo { 0% { transform: translate3d(0,0,0) scale(1); opacity: .26; } 100% { transform: translate3d(24px,-30px,0) scale(.76); opacity: .62; } }
@keyframes titleUnderline { 0%,100% { transform: scaleX(.72); opacity: .55; } 50% { transform: scaleX(1.14); opacity: 1; } }
@keyframes eyebrowGlow { 50% { color: #ae7e00; letter-spacing: 1.45px; } }
@keyframes headingDot { 0%,100% { transform: scale(.75); box-shadow: 0 0 0 0 rgba(242,195,49,.35); } 50% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(242,195,49,0); } }
@keyframes notebookGrain { to { background-position: 34px 0; } }
@keyframes paperSettle { from { opacity: 0; transform: translateY(12px) rotate(-.6deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes softReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes navBreath { 0%,100% { box-shadow: 0 10px 28px rgba(24,27,45,.14), 0 0 0 0 rgba(244,197,58,.14); } 50% { box-shadow: 0 12px 31px rgba(24,27,45,.18), 0 0 0 6px rgba(244,197,58,0); } }

/* BananaBoard button choreography: each control has idle, hover, press, and focus feedback. */
.button, .icon-button, .mini-button, .filter-button, .choice, .timer-mode, .picker-day, .icon-choice, .value-picker, .marked-text-tab { will-change: transform; }
.button { isolation: isolate; border: 1px solid transparent; transition: transform .22s cubic-bezier(.2,1.4,.35,1), box-shadow .22s ease, filter .22s ease, background .22s ease, border-color .22s ease; }
.button::after { position: absolute; z-index: 0; inset: 2px; border: 1px solid rgba(244,197,58,.48); border-radius: inherit; box-shadow: 0 0 0 0 rgba(244,197,58,.28); content: ""; opacity: 0; pointer-events: none; transform: scale(.84); }
.button:not(.primary) { animation: buttonIdleGlow 5.4s ease-in-out infinite; }
.button:nth-child(2n):not(.primary) { animation-delay: -.8s; }.button:nth-child(3n):not(.primary) { animation-delay: -2.1s; }
.button:hover { z-index: 1; filter: saturate(1.08); transform: translateY(-3px) scale(1.025); }
.button:hover::before { left: 160%; animation: buttonShineTilt .6s ease both; }
.button:hover::after { opacity: 1; animation: buttonHaloBurst .55s cubic-bezier(.15,1.45,.4,1) both; }
.button:active { transform: translateY(1px) scale(.94); filter: brightness(.97); animation: buttonPress .28s cubic-bezier(.2,1.5,.4,1); }
.button:focus-visible, .icon-button:focus-visible, .mini-button:focus-visible, .filter-button:focus-visible, .choice:focus-visible, .timer-mode:focus-visible, .picker-day:focus-visible, .icon-choice:focus-visible, .value-picker:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(244,197,58,.26), 0 0 0 7px rgba(var(--accent-rgb),.1); animation: focusRingPop .42s cubic-bezier(.2,1.45,.4,1) both; }
.button.primary { background-image: linear-gradient(135deg,rgba(255,255,255,.14),transparent 42%), linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 82%,#f4c53a),var(--accent)); background-size: 100% 100%, 220% 100%; animation: primaryBreath 3.4s ease-in-out infinite, buttonGradient 5.6s linear infinite; }
.button.primary:hover { animation: primaryBreath 1.4s ease-in-out infinite, buttonGradient 1.2s linear infinite; }
.button.secondary:hover { color: var(--text); background: linear-gradient(115deg,rgba(244,197,58,.2),var(--surface-2) 54%,rgba(var(--accent-rgb),.13)); border-color: rgba(244,197,58,.5); }
.button.danger:hover { color: #fff; background: var(--danger); border-color: transparent; box-shadow: 0 10px 22px rgba(230,84,103,.28); animation: dangerWobble .42s ease; }
.button:hover > span { animation: buttonLabelLift .42s cubic-bezier(.2,1.6,.4,1) both; }
.icon-button, .mini-button { position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.2,1.45,.35,1), color .2s ease, background .2s ease, box-shadow .2s ease; }
.icon-button::after, .mini-button::after { position: absolute; inset: 50% auto auto 50%; width: 5px; height: 5px; background: #f4c53a; border-radius: 50%; box-shadow: -12px 4px 0 -1px rgba(244,197,58,.85), 10px -8px 0 -1px rgba(var(--accent-rgb),.75), 8px 12px 0 -2px rgba(244,197,58,.8); content: ""; opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.2); }
.icon-button:hover, .mini-button:hover { color: #8a6500; background: rgba(244,197,58,.16); box-shadow: 0 6px 13px rgba(100,75,5,.12); transform: translateY(-2px) rotate(-6deg) scale(1.08); }
.icon-button:hover::after, .mini-button:hover::after { opacity: 1; animation: iconConfetti .52s ease-out both; }
.icon-button:active, .mini-button:active { transform: scale(.84) rotate(5deg); }
.text-button { position: relative; transition: color .2s ease, transform .2s cubic-bezier(.2,1.4,.4,1); }
.text-button::after { position: absolute; right: 0; bottom: -3px; left: 0; height: 2px; background: linear-gradient(90deg,#f4c53a,var(--accent)); border-radius: 99px; content: ""; transform: scaleX(.22); transform-origin: left; transition: transform .24s cubic-bezier(.2,1.5,.4,1); }
.text-button:hover { color: #a87b00; transform: translateX(3px); }.text-button:hover::after { transform: scaleX(1); }.text-button:active { transform: translateX(0) scale(.93); }
.filter-button, .choice, .timer-mode { position: relative; overflow: hidden; transition: transform .2s cubic-bezier(.2,1.45,.4,1), background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.filter-button::before, .choice::before, .timer-mode::before { position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(244,197,58,.18); border-radius: 50%; content: ""; pointer-events: none; transform: translate(-50%,-50%); transition: width .35s ease, height .35s ease; }
.filter-button:hover, .choice:hover, .timer-mode:hover { color: #987000; border-color: rgba(244,197,58,.5); box-shadow: 0 6px 14px rgba(100,75,5,.1); transform: translateY(-2px) scale(1.04); }
.filter-button:hover::before, .choice:hover::before, .timer-mode:hover::before { width: 160%; height: 260%; }
.filter-button.active, .choice.active, .timer-mode.active { animation: activeButtonBeat 2.8s ease-in-out infinite; }
.filter-button:active, .choice:active, .timer-mode:active { transform: scale(.9); }
.quick-add-menu button { position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.2,1.4,.4,1), color .2s ease, background .2s ease, padding-left .22s ease; }
.quick-add-menu button::before { position: absolute; top: 50%; left: -13px; width: 8px; height: 8px; background: #f4c53a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(244,197,58,.14); content: ""; transform: translateY(-50%); transition: left .25s cubic-bezier(.2,1.5,.4,1); }
.quick-add-menu button:hover { padding-left: 18px; color: #8d6800; background: linear-gradient(90deg,rgba(244,197,58,.18),rgba(var(--accent-rgb),.08)); transform: translateX(4px) scale(1.02); }.quick-add-menu button:hover::before { left: 5px; }
.picker-day, .icon-choice { transition: transform .2s cubic-bezier(.2,1.5,.4,1), background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.picker-day:hover, .icon-choice:hover { box-shadow: 0 6px 13px rgba(100,75,5,.13); transform: translateY(-3px) rotate(-7deg) scale(1.1); }
.picker-day:active, .icon-choice:active { transform: rotate(7deg) scale(.82); }
.value-picker { position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.2,1.4,.4,1), border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.value-picker::after { position: absolute; top: 0; bottom: 0; left: -35%; width: 24%; background: linear-gradient(100deg,transparent,rgba(244,197,58,.25),transparent); content: ""; transform: skewX(-18deg); }
.value-picker:hover { box-shadow: 0 8px 18px rgba(100,75,5,.1); transform: translateY(-2px); }.value-picker:hover::after { animation: pickerSweep .65s ease both; }
body.layout-phone .phone-tab { overflow: visible; transition: transform .22s cubic-bezier(.2,1.5,.4,1), color .2s ease, background .2s ease, box-shadow .2s ease; }
body.layout-phone .phone-tab::after { position: absolute; z-index: -1; inset: 3px; border: 1px solid rgba(244,197,58,.3); border-radius: 15px; content: ""; opacity: 0; transform: scale(.7); }
body.layout-phone .phone-tab:hover { color: #967000; background: rgba(244,197,58,.12); transform: translateY(-5px) scale(1.04); } body.layout-phone .phone-tab:hover::after { opacity: 1; animation: tabHalo .48s cubic-bezier(.2,1.5,.4,1) both; }
body.layout-phone .phone-tab:active { transform: translateY(0) scale(.86); }
@keyframes buttonIdleGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(244,197,58,0); } 50% { box-shadow: 0 5px 13px rgba(100,75,5,.08), 0 0 0 3px rgba(244,197,58,0); } }
@keyframes buttonHaloBurst { 0% { box-shadow: 0 0 0 0 rgba(244,197,58,.38); transform: scale(.82) rotate(-3deg); } 100% { box-shadow: 0 0 0 8px rgba(244,197,58,0); transform: scale(1.04) rotate(1deg); } }
@keyframes buttonShineTilt { 50% { transform: rotate(24deg) scaleY(1.12); } }
@keyframes buttonPress { 50% { transform: translateY(2px) scale(.91) rotate(-.5deg); } }
@keyframes focusRingPop { 0% { transform: scale(.94); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes buttonGradient { to { background-position: 100% 0, -220% 0; } }
@keyframes buttonLabelLift { 50% { transform: translateY(-2px) scale(1.05); } }
@keyframes dangerWobble { 25% { transform: translateX(-2px) rotate(-1deg); } 65% { transform: translateX(2px) rotate(1deg); } }
@keyframes iconConfetti { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0); } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(3.4) rotate(110deg); } }
@keyframes activeButtonBeat { 0%,100% { box-shadow: 0 0 0 0 rgba(244,197,58,.18); } 50% { box-shadow: 0 0 0 4px rgba(244,197,58,0); } }
@keyframes pickerSweep { from { left: -35%; } to { left: 120%; } }
@keyframes tabHalo { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

.nav-link, .profile-button, .accent-dot, .check, .word-toolbar > button { will-change: transform; }
.nav-link { transition: transform .22s cubic-bezier(.2,1.45,.4,1), color .2s ease, background .2s ease, box-shadow .2s ease; }
.nav-link:hover { box-shadow: 0 6px 13px rgba(96,72,6,.09); transform: translateX(4px) scale(1.015); }.nav-link:active { transform: translateX(0) scale(.94); }
.nav-link.active { animation: navActiveBreath 3.2s ease-in-out infinite; }
.profile-button { position: relative; overflow: hidden; transition: transform .22s cubic-bezier(.2,1.45,.4,1), background .2s ease, box-shadow .2s ease; }
.profile-button::after { position: absolute; top: -110%; left: -30%; width: 34%; height: 240%; background: linear-gradient(100deg,transparent,rgba(244,197,58,.25),transparent); content: ""; transform: rotate(18deg); }
.profile-button:hover { background: rgba(244,197,58,.09); border-radius: 12px; box-shadow: 0 7px 15px rgba(96,72,6,.08); transform: translateY(-2px); }.profile-button:hover::after { animation: profileShine .62s ease both; }.profile-button:active { transform: scale(.96); }
.accent-dot { position: relative; transition: transform .22s cubic-bezier(.2,1.5,.4,1), box-shadow .22s ease; }.accent-dot:hover { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--dot), 0 8px 15px rgba(40,35,15,.18); transform: translateY(-3px) rotate(18deg) scale(1.14); }.accent-dot:active { transform: scale(.8) rotate(-18deg); }.accent-dot.active { animation: accentOrbital 2.9s ease-in-out infinite; }
.check:hover { box-shadow: 0 0 0 5px rgba(244,197,58,.14); transform: rotate(-10deg) scale(1.16); }.check:active { transform: rotate(10deg) scale(.82); }
.word-toolbar > button { position: relative; overflow: hidden; transition: transform .2s cubic-bezier(.2,1.45,.4,1), color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }.word-toolbar > button::after { position: absolute; inset: 3px; border: 1px solid rgba(244,197,58,.55); border-radius: 6px; content: ""; opacity: 0; transform: scale(.7) rotate(-9deg); }.word-toolbar > button:hover { color: #8a6500; background: #fff5c6; border-color: rgba(244,197,58,.55); box-shadow: 0 5px 10px rgba(96,72,6,.12); transform: translateY(-3px) rotate(-4deg) scale(1.08); }.word-toolbar > button:hover::after { animation: toolbarFlash .38s ease both; }.word-toolbar > button:active { transform: scale(.84) rotate(4deg); }
@keyframes navActiveBreath { 0%,100% { box-shadow: inset 0 0 0 0 rgba(244,197,58,0); } 50% { box-shadow: inset 3px 0 0 rgba(244,197,58,.6), 0 5px 12px rgba(96,72,6,.06); } }
@keyframes profileShine { from { left: -38%; } to { left: 118%; } }
@keyframes accentOrbital { 0%,100% { box-shadow: 0 0 0 2px var(--dot), 0 0 0 0 rgba(244,197,58,.3); } 50% { box-shadow: 0 0 0 2px var(--dot), 0 0 0 7px rgba(244,197,58,0); } }
@keyframes toolbarFlash { from { opacity: 0; transform: scale(.6) rotate(-9deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

/* Notebook library and A4-style rich notes. */
.notebook-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 18px; }.notebook-card { min-width: 0; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }.notebook-cover { min-height: 240px; width: 100%; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 25px 22px 26px 30px; overflow: hidden; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--notebook-color) 82%, #fff), var(--notebook-color)); text-align: left; }.notebook-cover::before { position: absolute; inset: 0; opacity: .16; background: repeating-linear-gradient(135deg, rgba(255,255,255,.7) 0 1px, transparent 1px 7px); content: ""; }.notebook-cover::after { position: absolute; top: 0; bottom: 0; left: 15px; width: 10px; border-right: 1px solid rgba(0,0,0,.13); border-left: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.1); box-shadow: 6px 0 11px rgba(0,0,0,.12); content: ""; }.notebook-cover > * { position: relative; z-index: 1; }.notebook-ring { position: absolute !important; z-index: 2 !important; top: 19px; bottom: 19px; left: 7px; width: 9px; border-radius: 99px; background: repeating-linear-gradient(to bottom, #f8fafc 0 10px, #79808b 10px 14px, #f8fafc 14px 24px); box-shadow: 1px 0 1px rgba(0,0,0,.35); }.notebook-cover-title { max-width: 100%; overflow: hidden; font-size: 25px; font-weight: 860; letter-spacing: -.8px; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,.22); }.notebook-cover small { color: rgba(255,255,255,.82); font-size: 11px; font-weight: 760; }.notebook-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; }.notebook-card-footer b,.notebook-card-footer small { display: block; }.notebook-card-footer b { max-width: 140px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.notebook-card-footer small { margin-top: 2px; color: var(--muted); font-size: 10px; }.loose-notebook-card { --notebook-color: #64748b; }.loose-notebook-card .notebook-cover { background: linear-gradient(145deg,#8591a2,#596577); }
.notebook-detail { min-width: 0; }.notebook-detail-head,.rich-note-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }.notebook-detail-actions,.rich-note-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.notebook-banner { position: relative; display: flex; align-items: center; gap: 18px; margin-bottom: 17px; padding: 25px 25px 25px 42px; overflow: hidden; color: #fff; background: linear-gradient(145deg,color-mix(in srgb, var(--notebook-color) 82%, #fff),var(--notebook-color)); border-radius: 19px; box-shadow: 0 12px 28px color-mix(in srgb,var(--notebook-color) 28%,transparent); }.notebook-banner::before { position: absolute; inset: 0; opacity: .14; background: repeating-linear-gradient(135deg,rgba(255,255,255,.7) 0 1px,transparent 1px 7px); content: ""; }.notebook-banner > * { position: relative; z-index: 1; }.notebook-banner .notebook-ring { top: 15px; bottom: 15px; left: 10px; }.notebook-banner .eyebrow { margin-bottom: 4px; color: rgba(255,255,255,.72); }.notebook-banner h1 { margin: 0; font-size: clamp(26px,4vw,38px); letter-spacing: -1.4px; }.notebook-banner p { margin: 5px 0 0; color: rgba(255,255,255,.82); font-size: 12px; }.notebook-banner > .mini-button { margin-left: auto; color: #fff; background: rgba(255,255,255,.14); }.note-page-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 14px; }.note-page-card { min-width: 0; position: relative; overflow: hidden; padding: 16px 16px 12px; background: #fffdf6; border: 1px solid #ebe5d7; border-radius: 13px; box-shadow: 0 8px 20px rgba(45,38,20,.08); }.note-page-card > i { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--note-color,var(--accent)); }.note-page-open { width: 100%; min-height: 168px; position: relative; z-index: 0; display: block; padding: 2px 0 0; color: #28251f; background: repeating-linear-gradient(to bottom,transparent 0 25px,rgba(97,112,150,.17) 25px 26px); text-align: left; }.note-page-open::before { position: absolute; z-index: -1; top: 0; bottom: 0; left: 12px; width: 1px; background: rgba(225,88,88,.28); content: ""; }.note-page-open b { display: block; overflow: hidden; padding: 4px 10px 9px 20px; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }.note-page-open p { display: -webkit-box; overflow: hidden; margin: 0; padding: 0 11px 0 20px; color: #565149; font-size: 12px; line-height: 26px; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }.note-page-card footer { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: #777168; font-size: 10px; }.note-page-card footer > span { margin-left: auto; }.note-page-card .chip { max-width: 85px; background: rgba(80,70,45,.08); color: #625b50; }.note-page-card .row-menu { margin-left: auto; }.note-page-card .mini-button { color: #777168; }
.rich-note-editor { min-width: 0; }.note-meta-controls { display: grid; grid-template-columns: minmax(0,1fr) 170px 170px; gap: 9px; max-width: 960px; margin: 0 auto 10px; }.note-title-input { min-width: 0; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 800; }.word-toolbar { width: min(960px,100%); position: sticky; z-index: 12; top: 9px; display: flex; align-items: center; gap: 4px; margin: 0 auto 14px; padding: 7px; overflow-x: auto; background: color-mix(in srgb,var(--surface) 92%,transparent); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 7px 18px rgba(28,31,53,.08); backdrop-filter: blur(12px); }.word-toolbar > button { min-width: 32px; height: 32px; padding: 0 8px; color: var(--text); background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; white-space: nowrap; font-size: 12px; }.word-toolbar > button:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }.word-toolbar > span { width: 1px; height: 22px; flex: 0 0 1px; margin: 0 2px; background: var(--line); }.word-toolbar .marker-tool { color: #5a4a00; background: #ffe36f; border-color: #efcc42; }.a4-paper { width: min(794px,100%); min-height: 1123px; margin: 0 auto; padding: 72px 86px; color: #26231d; background-color: #fffdf7; background-image: linear-gradient(90deg,transparent 0 66px,rgba(231,100,100,.21) 66px 67px,transparent 67px),repeating-linear-gradient(to bottom,transparent 0 31px,rgba(113,138,180,.16) 31px 32px); box-shadow: 0 20px 52px rgba(33,30,23,.16); }.note-editor-surface { min-height: 975px; outline: 0; font-family: Georgia,"Times New Roman",serif; font-size: 17px; line-height: 32px; }.note-editor-surface:empty::before { color: #989185; content: attr(data-placeholder); pointer-events: none; }.note-editor-surface h2 { margin: 3px 0 10px; font-family: Inter,ui-sans-serif,system-ui,sans-serif; font-size: 27px; line-height: 32px; }.note-editor-surface ul,.note-editor-surface ol { margin: 0 0 0 18px; padding-left: 22px; }.note-editor-surface img.note-editor-image { display: block; width: min(100%,540px); height: auto; margin: 16px auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(37,31,18,.18); }.note-editor-hint { max-width: 794px; margin: 14px auto 0; color: var(--muted); font-size: 11px; text-align: center; }.marked-text-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: #605000; background: #fff2a8; border: 1px solid #f1d75b; border-radius: 10px; font-size: 11px; font-weight: 780; }.marked-text-tab b { min-width: 18px; padding: 2px 5px; color: #fff; background: #a78300; border-radius: 99px; font-size: 10px; }.highlight-list { display: grid; gap: 10px; }.highlight-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }.highlight-swatch { width: 6px; min-height: 58px; flex: 0 0 6px; background: #ffe36f; border-radius: 99px; }.highlight-card > div:nth-child(2) { min-width: 0; flex: 1; }.highlight-card b { display: block; font-size: 12px; }.highlight-card p { margin: 4px 0; color: var(--text); font-size: 13px; line-height: 1.5; }.highlight-card small { color: var(--muted); font-size: 10px; }
@media (max-width: 760px) { .notebook-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.notebook-cover { min-height: 175px; padding: 18px 15px 18px 25px; }.notebook-cover-title { font-size: 18px; }.notebook-card-footer { padding: 10px; }.notebook-card-footer .row-menu { display: none; }.notebook-detail-head,.rich-note-editor-head { align-items: flex-start; flex-direction: column; }.notebook-detail-actions,.rich-note-editor-actions { width: 100%; justify-content: space-between; }.note-page-grid { grid-template-columns: 1fr; }.note-meta-controls { grid-template-columns: 1fr 1fr; }.note-title-input { grid-column: 1/-1; }.word-toolbar { top: 4px; border-radius: 10px; }.a4-paper { min-height: 920px; padding: 47px 27px 60px; background-image: linear-gradient(90deg,transparent 0 28px,rgba(231,100,100,.18) 28px 29px,transparent 29px),repeating-linear-gradient(to bottom,transparent 0 31px,rgba(113,138,180,.14) 31px 32px); }.note-editor-surface { min-height: 810px; padding-left: 10px; font-size: 16px; }.notebook-banner { padding: 20px 19px 20px 35px; }.notebook-banner h1 { font-size: 27px; }.highlight-card { gap: 9px; } }

/* Notebook titles stay fully readable instead of truncating with an ellipsis. */
.notebook-cover-title { line-height: 1.08; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.notebook-card-footer b { min-width: 0; line-height: 1.25; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }

/* Persistent timer while studying away from the timer page */
.floating-timer { position: fixed; z-index: 35; right: 24px; bottom: 24px; display: flex; align-items: stretch; overflow: hidden; color: #fff; background: #24263a; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 14px 34px rgba(23,25,42,.24); animation: panelDrop .24s ease both; }.floating-timer-main { min-width: 132px; padding: 9px 12px; color: inherit; background: transparent; text-align: left; }.floating-timer-main span { display: block; opacity: .72; font-size: 10px; font-weight: 750; }.floating-timer-main strong { display: block; margin-top: 2px; font-size: 20px; letter-spacing: -.7px; }.floating-timer-toggle { width: 42px; color: #fff; background: rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.12); font-size: 17px; transition: background .18s ease, transform .18s ease; }.floating-timer-toggle:hover { background: rgba(var(--accent-rgb),.72); }.floating-timer-toggle:active { transform: scale(.94); }
body.layout-phone .floating-timer { right: max(12px, env(safe-area-inset-right)); bottom: calc(116px + env(safe-area-inset-bottom)); border-radius: 15px; } body.layout-phone .floating-timer-main { min-width: 122px; } body.layout-phone .floating-timer-main strong { font-size: 18px; }

/* Reminders and customizable dashboard widgets */
.reminder-list { display: grid; }.reminder-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }.reminder-row:last-child { border-bottom: 0; }.reminder-info { min-width: 0; flex: 1; }.reminder-info b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.reminder-info b.done { color: var(--muted); text-decoration: line-through; }.reminder-info small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.compact-reminder { padding: 7px 0; }.widget-option-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }.widget-option { min-height: 215px; }.widget-option .stat-icon { flex: 0 0 auto; }.widget-manager-row .mini-button { flex: 0 0 auto; }
@media (max-width: 1380px) { .widget-option-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } } @media (max-width: 900px) { .widget-option-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } } @media (max-width: 760px) { .widget-option-grid { grid-template-columns: 1fr; }.reminder-row { align-items: flex-start; }.reminder-row .row-menu { margin-left: auto; } }

/* Keep a longer navigation list usable without hiding the profile area. */
.sidebar { overflow: hidden; }.sidebar .nav { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 0 3px 12px 0; scrollbar-width: thin; }.sidebar-footer { flex: 0 0 auto; }

/* Phone dashboard prioritizes the actual things waiting for you. */
.phone-dashboard-agenda { display: none; } body.layout-phone .phone-dashboard-agenda { display: grid; gap: 12px; margin-bottom: 14px; } body.layout-phone .phone-dashboard-agenda .card { padding: 15px; } body.layout-phone .phone-dashboard-agenda .card-head { margin-bottom: 9px; } body.layout-phone .phone-dashboard-agenda .task-row, body.layout-phone .phone-dashboard-agenda .event-row { padding: 7px 0; }

/* Widgets stay available on every page until turned off. */
.floating-widgets { position: fixed; z-index: 34; right: 24px; bottom: 98px; width: min(250px, calc(100vw - 48px)); max-height: calc(100vh - 130px); display: grid; align-content: end; gap: 4px; overflow-y: auto; pointer-events: none; scrollbar-width: none; }.floating-widgets::-webkit-scrollbar { display: none; }.floating-widget, .floating-widget-summary { overflow: hidden; pointer-events: auto; color: #fff; background: #24263a; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 14px 34px rgba(23,25,42,.24); }.floating-widget { display: grid; grid-template-columns: minmax(0,1fr) 37px; animation: panelDrop .24s ease both; }.floating-widget-main { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 9px 5px 9px 10px; color: inherit; background: transparent; text-align: left; }.floating-widget-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; color: #fff; background: rgba(var(--accent-rgb),.5); border-radius: 9px; font-size: 15px; font-weight: 850; }.floating-widget-copy { min-width: 0; display: grid; gap: 1px; }.floating-widget-copy small, .floating-widget-copy b, .floating-widget-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.floating-widget-copy small { color: rgba(255,255,255,.67); font-size: 9px; font-style: normal; font-weight: 750; }.floating-widget-copy b { color: #fff; font-size: 12px; }.floating-widget-copy em { color: rgba(255,255,255,.7); font-size: 10px; font-style: normal; }.floating-widget-close { color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); border-left: 1px solid rgba(255,255,255,.12); font-size: 18px; transition: background .18s ease, color .18s ease; }.floating-widget-close:hover { color: #fff; background: rgba(230,84,103,.45); }.floating-widgets.collapsed { overflow: visible; padding-top: 13px; }.floating-widgets.collapsed::before, .floating-widgets.collapsed::after { position: absolute; right: 6px; left: 6px; height: calc(100% - 13px); background: #24263a; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; content: ""; }.floating-widgets.collapsed::before { top: 7px; z-index: -1; opacity: .6; transform: translateY(-7px) scale(.97); }.floating-widgets.collapsed::after { top: 1px; z-index: -2; opacity: .35; transform: translateY(-10px) scale(.94); }.floating-widget-summary { position: relative; z-index: 1; min-height: 57px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; color: #fff; text-align: left; }.floating-widget-summary > span:first-child { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; background: rgba(var(--accent-rgb),.5); border-radius: 9px; font-size: 15px; }.floating-widget-summary > span:last-child { display: grid; gap: 2px; }.floating-widget-summary b { font-size: 12px; }.floating-widget-summary em { color: rgba(255,255,255,.7); font-size: 10px; font-style: normal; }.floating-widget-stack-toggle { min-height: 27px; padding: 0 10px; color: rgba(255,255,255,.8); background: #24263a; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; pointer-events: auto; font-size: 10px; font-weight: 760; }.floating-widget-stack-toggle:hover { color: #fff; background: rgba(var(--accent-rgb),.52); } body.layout-phone .floating-widgets { right: max(12px, env(safe-area-inset-right)); bottom: calc(202px + env(safe-area-inset-bottom)); width: min(224px, calc(100vw - 24px)); max-height: calc(100vh - 230px); }.floating-widget, .floating-widget-summary { border-radius: 15px; }

/* The date picker makes existing calendar events clear before you choose a date. */
.picker-day { position: relative; }.picker-day.has-event::after { position: absolute; right: 50%; bottom: 2px; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; content: ""; transform: translateX(50%); }.picker-day.today.has-event::after, .picker-day:hover.has-event::after { background: #fff; }.picker-event-legend { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; color: var(--muted); font-size: 9px; }.picker-event-legend i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* Keep the complete welcome action reachable on compact screens. */
.setup-submit { min-height: 46px; padding: 10px 14px; line-height: 1.25; white-space: normal; }
@media (max-height: 760px) { .setup-screen { display: block; overflow-y: auto; padding: 16px; } .setup-card { width: min(480px, 100%); margin: 0 auto; padding: 24px; } .setup-options { margin: 14px 0; } }

/* Reminder time wheels */
.time-picker-panel { margin-top: 10px; padding: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; animation: panelDrop .24s cubic-bezier(.2,1.25,.35,1) both; }.time-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; font-size: 12px; }.time-picker-wheels { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 9px; }.time-picker-wheels label { min-width: 0; display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 780; }.time-wheel { width: 100%; height: 132px; padding: 4px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-weight: 780; text-align: center; }.time-wheel option { padding: 6px; border-radius: 6px; }.time-meridiem { height: 132px; display: grid; grid-template-rows: 1fr 1fr; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }.time-meridiem button { width: 42px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 850; }.time-meridiem button.active { color: #fff; background: var(--accent); }.time-picker-panel > .help { margin: 9px 0 0; } @media (max-width: 430px) { .time-picker-wheels { gap: 6px; }.time-meridiem button { width: 38px; } }

/* Force-previewed phone layout: keep every overlay and floating widget inside the phone canvas. */
body.layout-phone .modal-backdrop { padding: 12px; }
body.layout-phone .modal { width: min(466px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 19px; border-radius: 18px; }
body.layout-phone .modal .form-grid { grid-template-columns: 1fr; }
body.layout-phone .modal .form-grid .wide { grid-column: auto; }
body.layout-phone .modal .icon-choice-grid { grid-template-columns: repeat(6, 1fr); }
body.layout-phone .modal-actions { bottom: -19px; }
body.layout-phone .toast-root { right: max(12px, calc(50% - 233px)); bottom: calc(104px + env(safe-area-inset-bottom)); max-width: min(300px, calc(100vw - 24px)); }
body.layout-phone .floating-timer { right: max(12px, calc(50% - 233px)); bottom: calc(116px + env(safe-area-inset-bottom)); }
body.layout-phone .floating-widgets { right: max(12px, calc(50% - 233px)); bottom: calc(116px + env(safe-area-inset-bottom)); width: min(224px, calc(100vw - 24px)); max-height: calc(100dvh - 144px); }
body.layout-phone .floating-widgets.timer-active { bottom: calc(180px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 208px); }
body.layout-phone .notebook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.layout-phone .notebook-cover { min-height: 175px; padding: 18px 15px 18px 25px; }
body.layout-phone .notebook-cover-title { font-size: 18px; }
body.layout-phone .notebook-card-footer { padding: 10px; }
body.layout-phone .notebook-detail-head, body.layout-phone .rich-note-editor-head { align-items: flex-start; flex-direction: column; }
body.layout-phone .notebook-detail-actions, body.layout-phone .rich-note-editor-actions { width: 100%; justify-content: space-between; }
body.layout-phone .note-page-grid { grid-template-columns: 1fr; }
body.layout-phone .note-meta-controls { grid-template-columns: 1fr 1fr; }
body.layout-phone .note-title-input { grid-column: 1 / -1; }
body.layout-phone .a4-paper { min-height: 920px; padding: 47px 27px 60px; background-image: linear-gradient(90deg, transparent 0 28px, rgba(231,100,100,.18) 28px 29px, transparent 29px), repeating-linear-gradient(to bottom, transparent 0 31px, rgba(113,138,180,.14) 31px 32px); }
body.layout-phone .note-editor-surface { min-height: 810px; padding-left: 10px; font-size: 16px; }

/* Unified BananaBoard app mark: the supplied artwork is used without the retired orbit frame. */
.brand-mark { display: grid; place-items: center; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; text-shadow: none; animation: none !important; }
.brand-mark::before, .brand-mark::after { display: none; animation: none !important; }
.studyflow-symbol { width: 100%; height: 100%; display: block; object-fit: contain; filter: none; }
.studyflow-symbol path { animation: none !important; }
.logo:hover .brand-mark { animation: none !important; }

/* Note drawing, document scans, and completed-homework photos. */
.word-toolbar .drawing-control { min-width: 92px; height: 32px; padding: 0 7px; color: var(--text); background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 720; }.word-toolbar .drawing-color { width: 32px; height: 32px; flex: 0 0 32px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }.word-toolbar .drawing-width { height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; color: var(--muted); background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; font-size: 12px; }.word-toolbar .drawing-width input { width: 58px; accent-color: var(--accent); }.word-toolbar > button.active { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 10px rgba(var(--accent-rgb),.24); }
.note-paper-shell { position: relative; isolation: isolate; }.note-paper-shell .note-editor-surface { position: relative; z-index: 1; }.note-drawing-canvas { width: 100%; height: 100%; position: absolute; z-index: 3; inset: 0; display: block; pointer-events: none; touch-action: none; cursor: crosshair; }.note-paper-shell.drawing-active .note-drawing-canvas { pointer-events: auto; }.note-paper-shell.drawing-active .note-editor-surface { user-select: none; pointer-events: none; }.note-paper-shell.lasso-active .note-drawing-canvas { cursor: cell; }.note-paper-shell.eraser-active .note-drawing-canvas { cursor: crosshair; }
.completion-photo-prompt { display: flex; align-items: center; gap: 13px; margin: 12px 0 8px; padding: 13px; color: var(--text); background: linear-gradient(135deg,rgba(var(--accent-rgb),.12),rgba(var(--accent-rgb),.035)); border: 1px solid rgba(var(--accent-rgb),.18); border-radius: 13px; }.completion-photo-prompt h3 { margin: 0; font-size: 14px; }.completion-photo-prompt p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }.completion-photo-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 12px; font-size: 19px; }.pinned-homework-photo { display: grid; gap: 10px; padding-top: 10px; }.pinned-homework-photo img { width: 100%; max-height: min(62vh,640px); object-fit: contain; background: #f0eee7; border: 1px solid var(--line); border-radius: 12px; }.pinned-homework-photo p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }.homework-row { grid-template-columns: auto minmax(0,1fr) auto auto auto auto; }.homework-photo-pin { width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; padding: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 4px 10px rgba(31,31,40,.08); }.homework-photo-pin img { width: 100%; height: 100%; display: block; object-fit: cover; }.check-field { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text); font-size: 12px; font-weight: 720; }.check-field input { width: 16px; height: 16px; accent-color: var(--accent); }
.homework-photo-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 7px; }.homework-photo-source { min-height: 92px; position: relative; display: grid; place-items: center; align-content: center; gap: 6px; padding: 12px 8px; color: var(--text); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 13px; cursor: pointer; text-align: center; transition: transform .2s cubic-bezier(.2,1.35,.35,1), border-color .2s ease, background .2s ease, box-shadow .2s ease; }.homework-photo-source:hover, .homework-photo-source:focus-within { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); box-shadow: 0 8px 18px rgba(var(--accent-rgb),.12); transform: translateY(-2px); }.homework-photo-source.selected { color: #fff; background: var(--accent); border-color: var(--accent); border-style: solid; box-shadow: 0 8px 18px rgba(var(--accent-rgb),.26); }.homework-photo-source input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }.homework-photo-source-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--accent); background: rgba(var(--accent-rgb),.12); border-radius: 9px; font-size: 16px; }.homework-photo-source.selected .homework-photo-source-icon { color: var(--accent); background: #fff; }.homework-photo-source b { font-size: 11px; line-height: 1.2; }
.note-meta-controls { grid-template-columns: minmax(0,1fr) repeat(3,minmax(130px,150px)); }.note-page-card footer > .chip { margin-left: 0; }.note-page-card footer > span:not(.chip) { margin-left: auto; }.homework-note-chip { max-width: 112px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.word-toolbar > button:disabled { color: var(--muted); background: transparent; border-color: transparent; cursor: not-allowed; opacity: .5; transform: none; }.note-paper-shell.paste-active .note-drawing-canvas { cursor: copy; }
.word-toolbar > button, .word-toolbar > select, .word-toolbar > label { flex: 0 0 auto; }.word-toolbar > button { max-width: max-content; overflow: visible; }.word-toolbar { scroll-padding-inline: 7px; }.word-toolbar > button.marker-tool { overflow: hidden; }
.word-toolbar .drawing-width { min-width: 92px; flex: 0 0 92px; overflow: visible; }.word-toolbar .drawing-width input { min-width: 58px; flex: 0 0 58px; }.word-toolbar .drawing-width span { flex: 0 0 auto; }
.homework-note-pin { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; padding: 0; color: var(--accent); background: rgba(var(--accent-rgb),.1); border: 1px solid rgba(var(--accent-rgb),.22); border-radius: 9px; font-size: 15px; }.homework-note-pin:hover { color: #fff; background: var(--accent); border-color: var(--accent); }.homework-info .homework-note-pin { width: 21px; height: 21px; flex-basis: 21px; border-radius: 7px; font-size: 12px; }
@media (max-width: 760px) { .word-toolbar .drawing-control { min-width: 82px; }.word-toolbar .drawing-width input { width: 48px; }.homework-row { grid-template-columns: auto minmax(0,1fr) auto auto; }.homework-row .priority { display: none; }.homework-photo-pin { width: 30px; height: 30px; flex-basis: 30px; }.completion-photo-prompt { align-items: flex-start; } }

/* Account access */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; overflow-x: hidden; background: radial-gradient(circle at 20% 18%, rgba(244,197,58,.24), transparent 28rem), radial-gradient(circle at 85% 84%, rgba(108,99,255,.18), transparent 27rem), var(--bg); }
.auth-page::before, .auth-page::after { content: ''; position: fixed; width: 340px; height: 340px; border: 1px solid rgba(244,197,58,.27); border-radius: 46% 54% 49% 51%; pointer-events: none; animation: authOrbit 13s ease-in-out infinite alternate; }.auth-page::before { top: -160px; left: -110px; }.auth-page::after { right: -140px; bottom: -155px; animation-delay: -6s; }
.auth-shell { width: min(100%, 940px); display: grid; grid-template-columns: minmax(260px,.9fr) minmax(360px,1fr); gap: clamp(28px, 7vw, 92px); align-items: center; position: relative; z-index: 1; }.auth-brand { padding: 28px 0; }.auth-brand h1 { margin: 10px 0 8px; font-size: clamp(3rem, 6vw, 5.4rem); letter-spacing: -.08em; line-height: .95; }.auth-brand > p:not(.eyebrow) { max-width: 390px; margin: 0; font-size: 1.05rem; color: var(--muted); line-height: 1.65; }
.auth-logo-orbit { width: 84px; height: 84px; display: grid; place-items: center; position: relative; margin-bottom: 28px; }.auth-logo-orbit::before, .auth-logo-orbit::after { content: ''; position: absolute; inset: -13px; border: 1px solid rgba(244,197,58,.7); border-radius: 44% 56% 51% 49%; animation: authOrbit 5.5s linear infinite; }.auth-logo-orbit::after { inset: -23px 3px -7px -9px; border-color: rgba(108,99,255,.3); animation-direction: reverse; animation-duration: 8s; }.auth-logo-orbit img { width: 62px; height: 62px; position: relative; z-index: 1; filter: drop-shadow(0 11px 14px rgba(45,39,15,.2)); }
.auth-card { padding: clamp(26px,4vw,42px); max-width: 510px; width: 100%; justify-self: end; box-shadow: 0 28px 70px rgba(38,35,21,.13); }.auth-card h2 { margin: 22px 0 6px; font-size: 1.7rem; }.auth-card .muted { margin: 0 0 24px; }.auth-mode-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }.auth-mode { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 8px 3px; font: inherit; font-weight: 800; cursor: pointer; position: relative; transition: color .2s ease, transform .2s ease; }.auth-mode:hover { color: var(--ink); transform: translateY(-1px); }.auth-mode.active { color: var(--ink); }.auth-mode.active::after { content: ''; position: absolute; left: 3px; right: 3px; bottom: -13px; height: 3px; border-radius: 99px; background: var(--accent); animation: authTab .3s ease both; }.auth-card [hidden] { display: none !important; }.auth-card .field-label { margin-top: 15px; }.auth-error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 12px; padding: 10px 12px; margin: 16px 0 0; line-height: 1.45; }.auth-footnote { color: var(--muted); font-size: .8rem; line-height: 1.5; margin: 20px 0 0; }.account-logout { margin-top: 10px; }.load-error { min-height: 70vh; display: grid; place-content: center; justify-items: start; gap: 13px; padding: 36px; }.load-error h1, .load-error p { margin: 0; }
@keyframes authOrbit { to { transform: rotate(360deg) scale(1.08); border-radius: 59% 41% 43% 57%; } } @keyframes authTab { from { transform: scaleX(.1); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }
@media (max-width: 760px) { .auth-page { place-items: start center; padding: 38px 20px; }.auth-shell { grid-template-columns: 1fr; gap: 24px; max-width: 520px; }.auth-brand { padding: 0 4px; }.auth-brand h1 { font-size: 3.4rem; }.auth-logo-orbit { margin-bottom: 18px; transform: scale(.8); transform-origin: left top; height: 55px; }.auth-card { justify-self: stretch; } }

/* Goal-health banana and clearer note controls. */
.goal-health { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); align-items: stretch; gap: 20px; overflow: hidden; margin-bottom: 14px; padding: 23px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, #fff8cd), var(--surface)); }
.goal-health-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.goal-health-copy h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -1px; }
.goal-health-copy > p:not(.eyebrow) { max-width: 590px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.banana-health-meter { width: min(100%, 420px); display: grid; gap: 7px; margin-top: 18px; }
.banana-health-meter > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; }
.banana-health-meter b { color: var(--text); }
.banana-health-meter .progress { height: 9px; background: rgba(130, 98, 27, .13); }
.banana-health-meter .progress > span { background: linear-gradient(90deg, #6bad61, #d8c038 65%, #f0aa12); animation: none; }
.banana-health-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 18px; }
.banana-health-action { min-width: 0; display: grid; grid-template-columns: 23px minmax(0, 1fr); grid-template-areas: "icon label" "icon title"; align-items: center; column-gap: 7px; padding: 8px 9px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.banana-health-action:hover { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 7px 16px rgba(58, 47, 17, .09); transform: translateY(-1px); }
.banana-health-action > span { grid-area: icon; width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: #cf8d2d; border-radius: 7px; font-size: 12px; font-weight: 900; }
.banana-health-action.goal > span { background: #c98730; }.banana-health-action.grade > span { background: #a86050; }
.banana-health-action b { grid-area: label; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.banana-health-action small { grid-area: title; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.banana-health-more, .banana-health-clear { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); font-size: 11px; font-weight: 750; }
.banana-health-clear { margin-top: 19px; color: #3b8553; }
.goal-banana-stage { min-height: 245px; position: relative; display: grid; place-items: center; overflow: hidden; padding: 12px; background: radial-gradient(circle at 43% 48%, rgba(255, 248, 183, .92), rgba(255, 247, 210, .35) 42%, transparent 70%); border: 1px solid rgba(195, 157, 58, .16); border-radius: 18px; }
.goal-banana-stage::after { position: absolute; right: 9%; bottom: 12%; width: 64%; height: 13%; background: rgba(81, 54, 22, .15); border-radius: 50%; content: ""; filter: blur(10px); transform: rotate(-7deg); }
.goal-banana-art { width: min(100%, 510px); position: relative; z-index: 1; overflow: visible; filter: drop-shadow(0 14px 13px rgba(63, 44, 15, .23)); transition: transform .35s ease, filter .35s ease; }
.goal-banana-shadow { fill: rgba(57, 38, 17, .25); }
.goal-banana-stem { fill: #68471c; stroke: #3f2c17; stroke-linejoin: round; stroke-width: 4; }
.goal-banana-skin { fill: url(#goalBananaFresh); stroke: #b87913; stroke-linejoin: round; stroke-width: 4; transition: fill .35s ease, stroke .35s ease; }
.goal-banana-highlight { fill: none; stroke: rgba(255, 255, 226, .67); stroke-linecap: round; stroke-width: 9; }
.goal-banana-spots { fill: #5c3e1e; opacity: calc(var(--banana-rot) * .9); transition: opacity .35s ease; }
.goal-health-speckled .goal-banana-art { filter: sepia(.14) drop-shadow(0 14px 13px rgba(63, 44, 15, .25)); }
.goal-health-bruised .goal-banana-skin { fill: url(#goalBananaBruised); stroke: #6e4a1e; }
.goal-health-bruised .goal-banana-highlight { opacity: .35; }
.goal-health-rotten .goal-banana-skin { fill: url(#goalBananaRotten); stroke: #3f2a1c; }
.goal-health-rotten .goal-banana-highlight { opacity: .12; }
.goal-health-rotten .goal-banana-art { filter: saturate(.72) drop-shadow(0 14px 13px rgba(45, 27, 16, .32)); }
.settings-nav-icon { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.settings-nav-icon-wrap { display: grid !important; place-items: center; }
body.layout-phone .phone-tab .settings-nav-icon { width: 20px; height: 20px; stroke-width: 1.9; }
.note-meta-controls { grid-template-columns: minmax(210px, 1fr) repeat(3, minmax(175px, 190px)); }
.note-meta-controls select.input { min-width: 0; min-height: 45px; }
body.layout-phone .note-meta-controls { grid-template-columns: 1fr; gap: 10px; }
body.layout-phone .note-title-input { grid-column: auto; min-height: 46px; }
body.layout-phone .note-meta-controls select.input { min-height: 48px; padding-right: 34px; }
@media (max-width: 760px) { .goal-health { grid-template-columns: 1fr; gap: 16px; padding: 18px; }.goal-banana-stage { min-height: 360px; order: -1; }.goal-banana-art { width: min(330px, 88vw); transform: rotate(90deg); }.banana-health-actions { grid-template-columns: 1fr; }.goal-health-copy > p:not(.eyebrow) { font-size: 12px; }.goal-list-card { padding: 15px; } }

/* Full-screen language transition */
.language-screen { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 22% 22%, rgba(var(--accent-rgb),.2), transparent 30%), radial-gradient(circle at 80% 76%, rgba(var(--accent-rgb),.13), transparent 32%), var(--bg); }.language-loader-card { width: min(390px, calc(100% - 40px)); padding: 34px 28px; text-align: center; background: color-mix(in srgb, var(--surface) 89%, transparent); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 26px 80px rgba(28,31,53,.16); backdrop-filter: blur(16px); animation: rise .38s cubic-bezier(.2,1.15,.3,1) both; }.language-loader { width: 88px; height: 88px; position: relative; display: grid; place-items: center; margin: 0 auto 22px; border: 4px solid rgba(var(--accent-rgb),.14); border-top-color: var(--accent); border-radius: 50%; animation: languageSpin .82s linear infinite !important; }.language-loader::before, .language-loader::after { position: absolute; width: 14px; height: 14px; background: var(--accent); border-radius: 5px; content: ""; animation: languageShape 1.7s ease-in-out infinite; }.language-loader::before { top: -8px; right: 6px; }.language-loader::after { bottom: -7px; left: 5px; animation-delay: -.85s; }.language-loader span { width: 25px; height: 25px; background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 58%, #fff)); border-radius: 8px; transform: rotate(45deg); }.language-loader-card h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.7px; }.language-loader-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }.language-screen .orb { opacity: .16; }.language-screen .orb-three { animation-duration: 7s; } @keyframes languageSpin { to { transform: rotate(360deg); } } @keyframes languageShape { 0%,100% { transform: scale(.72) rotate(0deg); opacity: .65; } 50% { transform: scale(1.2) rotate(90deg); opacity: 1; } }
