:root {
  color-scheme: light;
  --ink: #211633;
  --muted: #60556d;
  --purple: #662fce;
  --purple-dark: #482192;
  --purple-soft: #f1eaff;
  --line: #e6deef;
  --paper: #fff;
  --surface: #f8f6fc;
  --shadow: 0 18px 48px #33205412;
  --surface-edge: #d9c8ee;
  --surface-drop: #39205b18;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a374f2; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; font-weight: 780; letter-spacing: -.035em; font-size: 1.23rem; }
.brand-mark { display: block; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.main-nav, .dash-nav, .account-actions, .calendar-controls { display: flex; align-items: center; gap: 12px; }
.main-nav, .dash-nav { gap: 28px; }
.main-nav a, .dash-nav a, .footer-inner > a:last-child { color: var(--muted); font-size: .95rem; font-weight: 600; }
.main-nav a:hover, .dash-nav a:hover, .footer-inner > a:last-child:hover { color: var(--purple-dark); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-size: .925rem; font-weight: 700; text-align: center; white-space: nowrap; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.button-primary, .button-outline { box-shadow: 0 3px 0 var(--button-edge), 0 5px 10px var(--surface-drop); }
.button-primary { --button-edge: #462089; background: var(--purple); color: white; }
.button-primary:hover { background: var(--purple-dark); }
.button-primary:disabled { opacity: .65; cursor: wait; }
.button-plain { background: transparent; color: var(--ink); }
.button-plain:hover { background: var(--surface); }
.button-outline { --button-edge: var(--surface-edge); background: var(--paper); border-color: #dbcee9; color: var(--purple-dark); }
.button-outline:hover { background: var(--purple-soft); }
@media (hover: hover) and (pointer: fine) {
  :is(.button-primary, .button-outline):not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--button-edge), 0 9px 14px var(--surface-drop);
  }
}
.button:not(:disabled):active { transform: translateY(2px); }
:is(.button-primary, .button-outline):not(:disabled):active {
  box-shadow: 0 1px 0 var(--button-edge), inset 0 2px 3px var(--surface-drop);
}
.eyebrow { color: var(--purple-dark); font-size: .88rem; font-weight: 750; }
.eyebrow span { margin-right: 5px; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { min-height: 82px; }

.dashboard { background: var(--surface); }
.workspace { width: min(920px, calc(100% - 64px)); padding-block: 42px 64px; }
.dashboard-title { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 26px; }
.dashboard-title h1 { font-size: clamp(2.35rem, 6vw, 3.45rem); letter-spacing: -.05em; margin-top: 4px; line-height: 1.1; }
.preview-label, .quiet-label, .goals-progress { color: var(--purple-dark); font-size: .89rem; font-weight: 650; }
.preview-label { border: 1px solid #e2d5f3; background: var(--purple-soft); padding: 7px 11px; border-radius: 100px; white-space: nowrap; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 0 var(--surface-edge), 0 5px 14px var(--surface-drop); padding: 23px; scroll-margin-top: 14px; }
.panel + .panel { margin-top: 18px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.04em; }
.goal-list { list-style: none; padding: 0; margin: 0; }
.goal-list label { display: flex; align-items: center; gap: 12px; padding-block: 12px; min-height: 47px; cursor: pointer; }
.goal-list li + li { border-top: 1px solid var(--line); }
.goal-list input { flex: none; margin: 0; width: 19px; height: 19px; accent-color: var(--purple); }
.goal-list input:checked + span { text-decoration: line-through; color: var(--muted); }
.chat-messages { display: flex; flex-direction: column; gap: 9px; max-height: 255px; overflow-y: auto; padding: 3px; }
.chat-message { align-self: flex-start; max-width: min(100%, 61ch); padding: 10px 13px; border-radius: 10px 10px 10px 3px; background: var(--purple-soft); line-height: 1.45; overflow-wrap: anywhere; }
.chat-message.student { align-self: flex-end; border-radius: 10px 10px 3px 10px; background: var(--purple-dark); color: white; }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 12px; }
.chat-prompts button { text-align: left; color: var(--purple-dark); background: white; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; min-height: 36px; font-size: .89rem; }
.chat-prompts button:hover { background: var(--purple-soft); }
.chat-prompts button:disabled { opacity: .65; cursor: wait; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { font: inherit; flex: 1; min-width: 0; border: 1px solid #d8cbe8; border-radius: 9px; background: #fff; padding: 10px 12px; color: var(--ink); }
.chat-form input::placeholder { color: var(--muted); }
.calendar-controls { gap: 6px; }
.calendar-controls .button { padding-inline: 11px; }
.month-button { min-width: 44px; font-size: 1.4rem; line-height: 1; }
.calendar-month { margin-block: 5px 13px; font-size: 1.17rem; letter-spacing: -.02em; }
.calendar-legend { margin-top: 5px; font-size: .9rem; color: var(--muted); }
.calendar-legend span { color: var(--purple); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { color: var(--muted); font-size: .89rem; font-weight: 650; text-align: center; padding-bottom: 7px; }
.calendar-grid { gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 11px; }
.calendar-day { display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 74px; padding: 6px 2px; background: white; color: var(--ink); border: 0; font-size: .9rem; }
.calendar-day.empty { background: var(--surface); }
.calendar-day.exam { background: #f6eeff; }
.calendar-day.exam:hover, .calendar-day[aria-pressed="true"] { background: #ead9ff; }
.calendar-day:focus-visible { outline-offset: -4px; }
.day-number { display: grid; place-items: center; min-width: 22px; min-height: 22px; }
[aria-current="date"] .day-number { background: var(--purple); color: white; border-radius: 50%; font-weight: 750; }
.exam-star { font-size: clamp(1.48rem, 4vw, 2.15rem); line-height: 1; color: var(--purple); }
.calendar-detail { margin-top: 13px; min-height: 48px; padding: 12px; border-radius: 9px; background: var(--surface); color: var(--muted); line-height: 1.45; }
.calendar-detail strong { display: block; color: var(--ink); }
.calendar-detail ul { padding-left: 20px; margin: 5px 0 0; }
dialog { width: min(calc(100% - 30px), 450px); padding: 27px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: #21163385; }
dialog h2 { font-size: 1.5rem; margin-right: 35px; letter-spacing: -.04em; }
dialog p { margin-block: 10px 18px; color: var(--muted); line-height: 1.55; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-grid:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; padding: 3px 5px 6px 1px; }
.plan-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid #d7c4ed;
  border-radius: 13px;
  background: linear-gradient(150deg, #fff 15%, #f4edff);
  color: var(--ink);
  text-align: left;
  touch-action: manipulation;
}
.lift-tile {
  box-shadow: 3px 5px 0 var(--surface-edge), 3px 8px 15px var(--surface-drop);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.plan-title { font-size: 1.03rem; font-weight: 760; letter-spacing: -.02em; }
.plan-description { color: var(--muted); font-size: .94rem; line-height: 1.48; }
.plan-price { color: var(--purple-dark); }
.plan-price strong { font-size: 1.75rem; letter-spacing: -.05em; }
.plan-price span { white-space: nowrap; }
.plan-card:focus-visible { border-color: var(--purple); }
@media (hover: hover) and (pointer: fine) {
  .lift-tile:hover {
    transform: translate(-1px, -4px);
    border-color: #a884e5;
    box-shadow: 4px 9px 0 var(--surface-edge), 5px 13px 18px var(--surface-drop);
  }
}
a.lift-tile:is(:active, [data-pressed="true"]) {
  transform: translate(2px, 4px);
  border-color: var(--purple);
  box-shadow: inset 0 2px 6px var(--surface-drop), 1px 1px 0 var(--surface-edge);
}
@media (prefers-reduced-motion: reduce) {
  .button, .lift-tile { transition: none; }
  .button:is(:hover, :active), .lift-tile:is(:hover, :active, [data-pressed="true"]) { transform: none !important; }
}
.close-button { position: absolute; inset: 10px 10px auto auto; width: 38px; height: 38px; border: none; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 1.38rem; }
.close-button:hover { background: var(--purple-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 800px) {
  .shell { width: calc(100% - 38px); }
  .main-nav { display: none; }
}
@media (max-width: 650px) {
  .plan-grid:not([hidden]) { grid-template-columns: 1fr; }
  .header-inner { min-height: 66px; gap: 8px; }
  .brand { font-size: 1.05rem; gap: 7px; }
  .brand-mark { width: 29px; height: 29px; }
  .account-actions { gap: 4px; }
  .account-actions .button { padding-inline: 10px; }
  .dash-nav { display: none; }
  .workspace { padding-block: 30px 42px; }
  .dashboard-title { align-items: start; flex-direction: column; }
  .panel { padding: 15px; }
  .panel h2 { font-size: 1.32rem; }
  .calendar-day { min-height: 59px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 26px); }
  .calendar-controls .button { padding-inline: 7px; }
  .month-button { min-width: 35px; }
}

[hidden] { display: none !important; }
.stack-form { display: grid; align-items: start; gap: 8px; }
.stack-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.stack-form label { font-weight: 650; font-size: .94rem; }
.stack-form input, .stack-form select { width: 100%; min-height: 44px; border: 1px solid #d8cbe8; border-radius: 9px; padding: 9px 11px; margin-bottom: 8px; font: inherit; color: inherit; background: white; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; }
.profile-field { display: grid; gap: 5px; }
.profile-field.wide { grid-column: 1 / -1; }
.stack-form .button { justify-self: start; }
.stack-form #password-hint { margin: 0 0 6px; font-size: .9rem; }
.stack-form .form-error { margin: 0; color: #941b43; }
.form-error:empty, .course-list:empty { display: none; }
.dashboard-actions { display: flex; align-items: center; gap: 3px; }
.sync-status { color: var(--muted); line-height: 1.5; }
#student-email { overflow-wrap: anywhere; text-align: right; }
.course-list { padding-inline-start: 20px; margin: 12px 0 0; display: grid; gap: 8px; }
.canvas-onboarding { position: relative; display: grid; place-items: center; min-height: calc(100svh - 183px); text-align: center; }
.canvas-onboarding .button { min-height: 64px; padding-inline: 32px; font-size: 1.2rem; }
#onboarding-status { position: absolute; top: calc(50% + 42px); max-width: 38ch; }
#onboarding-status:empty { display: none; }
.connector-steps { margin-block: 0 18px; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.connector-steps li + li { margin-top: 7px; }
#canvas-lookup, #settings-status { margin: 0; font-size: .95rem; }
#canvas-lookup:empty, #settings-status:empty { display: none; }
.school-options { display: grid; gap: 6px; margin-bottom: 7px; }
.school-options .button { justify-content: start; text-align: left; white-space: normal; }
@media (max-width: 540px) {
  .dashboard .header-inner { flex-wrap: wrap; }
  .dashboard-actions .button { padding-inline: 8px; font-size: .83rem; }
  .canvas-onboarding { min-height: calc(100svh - 138px); }
}
@media (max-width: 380px) {
  .profile-fields { grid-template-columns: minmax(0, 1fr); }
}

.course-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 650; }
.course-filter select, .setting-group select { max-width: min(360px, 76%); padding: 10px 12px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.setting-group { margin-block: 14px; padding-block: 12px; border-top: 1px solid var(--line); }
.setting-group label { display: block; margin-bottom: 5px; font-weight: 650; }
.setting-group h3 { margin-bottom: 6px; font-size: 1rem; }
.setting-group p { margin-block: 6px 11px; }
.setting-group p:empty { display: none; }
.chat-form input:disabled { opacity: 1; }
.chat-form button:disabled { cursor: default; }
#connector-store-intro { margin-block: 0 14px; }
.text-link { color: var(--purple-dark); text-decoration: underline; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2edf8;
  --muted: #d0c4de;
  --purple: #7645d4;
  --purple-dark: #dac6ff;
  --purple-soft: #382950;
  --line: #443653;
  --paper: #261e30;
  --surface: #1c1625;
  --shadow: 0 18px 48px #0c081980;
  --surface-edge: #48365c;
  --surface-drop: #0c08194d;
}
:root[data-theme="dark"] .button-primary:hover { background: #8954e3; }
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .calendar-day,
:root[data-theme="dark"] .chat-form input,
:root[data-theme="dark"] .stack-form input,
:root[data-theme="dark"] .stack-form select { background: var(--paper); border-color: var(--line); }
:root[data-theme="dark"] .calendar-day.empty { background: var(--surface); }
:root[data-theme="dark"] .calendar-day.exam { background: #382950; }
:root[data-theme="dark"] .calendar-day.exam:hover,
:root[data-theme="dark"] .calendar-day[aria-pressed="true"] { background: #503874; }
:root[data-theme="dark"] .exam-star,
:root[data-theme="dark"] .calendar-legend span { color: #c9a8ff; }
:root[data-theme="dark"] .button-outline { background-color: var(--paper); border-color: var(--line); }
:root[data-theme="dark"] .button-outline:hover { background-color: var(--purple-soft); }
:root[data-theme="dark"] .form-error { color: #ffb3ca; }

.profile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(460px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  border-radius: 16px 0 0 16px;
  background: var(--paper);
  overflow: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .22s ease, display .22s allow-discrete, overlay .22s allow-discrete;
}
.profile-panel[open] { transform: translateX(0); }
@starting-style { .profile-panel[open] { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .profile-panel { transition: none; } }
.canvas-actions { display: grid; gap: 11px; }
.canvas-actions .button { justify-content: flex-start; }
.calendar-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.calendar-week {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 1px;
}
.calendar-week .calendar-day { grid-row: 1; }
.calendar-marks { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.calendar-mark { color: var(--purple-dark); font-size: 1.18rem; line-height: 1; }
.calendar-legend { display: flex; align-items: center; flex-wrap: wrap; column-gap: 6px; margin-bottom: 12px; }
.calendar-legend span:not(:first-child) { margin-left: 8px; }
.module-bar {
  min-width: 0;
  padding: 3px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: .78rem;
  color: var(--purple-dark);
  background: var(--purple-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 2px;
}
.module-bar:hover, .module-bar[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--purple-dark); }
button.calendar-day:not(.exam):hover, button.calendar-day:not(.exam)[aria-pressed="true"] { background: var(--purple-soft); }

/* Public site and account entry */
.signup, .verify-email { min-height: 100vh; background: #f8f4ff; }
.signup-shell { width: min(100% - 26px, 660px); margin: 34px auto 48px; padding: clamp(16px,4vw,32px); }
.signup-shell h1 { margin: 5px 0; font-size: clamp(1.7rem,5vw,2.45rem); letter-spacing: -.04em; }
.signup-copy { margin: 9px 0 16px; color: var(--muted); line-height: 1.6; }
.signup-shell .stack-form { grid-template-columns: minmax(0, 1fr); }
.signup-shell .stack-form .button { max-width: 100%; white-space: normal; }
#change-signup-plan { display: inline-block; margin-bottom: 16px; }
.billing-note { padding: 13px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--purple-soft); }
.billing-note p { margin-top: 5px; line-height: 1.5; }
#signup-profile legend { padding: 10px 0; font-weight: 750; }
.field-hint { color: var(--muted); font-size: .9rem; margin: 0 0 9px; }
.verification-resend { margin-top: 20px; }
.verification-resend summary { cursor: pointer; color: var(--purple-dark); text-decoration: underline; }
.verification-resend form { margin-top: 12px; }

/* My Account */
.workspace { width: min(1180px, calc(100% - 64px)); }
.calendar-region { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 27%); gap: 16px; align-items: start; margin-top: 18px; }
.calendar-region:has(.calendar-sidebar[hidden]) { grid-template-columns: minmax(0, 1fr); }
.calendar-sidebar { display: grid; gap: 14px; }
.calendar-sidebar .panel + .panel { margin-top: 0; }
.calendar-sidebar h2 { font-size: 1.08rem; }
.calendar-sidebar h3 { margin-top: 5px; font-size: 1rem; overflow-wrap: anywhere; line-height: 1.35; }
.calendar-sidebar .sync-status, .update-context, .update-excerpt { margin-top: 8px; }
.update-context, .update-excerpt { color: var(--muted); font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.assistant-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 44vw, 548px);
  padding: clamp(16px, 4vw, 40px);
  color: #fbf6ff;
  background: #251044;
  border-color: #7044ae;
}
.assistant-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -32%;
  background:
    radial-gradient(ellipse at 15% 25%, #914af5 0, transparent 49%),
    radial-gradient(ellipse at 77% 66%, #bd5ad5 0, transparent 47%),
    radial-gradient(ellipse at 44% 91%, #572ade 0, transparent 58%);
  animation: assistant-flow 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes assistant-flow {
  from { transform: translate(-9%, 3%) rotate(-11deg); }
  to { transform: translate(10%, -7%) rotate(16deg) scale(1.14); }
}
:root[data-theme="dark"] .assistant-panel { background: #1b0b35; border-color: #714bb1; }
:root[data-theme="dark"] .assistant-panel::before { opacity: .72; }
.assistant-panel .panel-header { justify-content: center; flex-wrap: wrap; gap: 5px 11px; margin-bottom: 16px; }
.assistant-panel h2 { font-size: clamp(2rem, 5.2vw, 3.65rem); letter-spacing: .09em; text-shadow: 0 3px 18px #1c083e; }
.assistant-panel .quiet-label { color: #f3e1ff; }
.assistant-panel .chat-messages { width: min(100%, 620px); max-height: 160px; color: var(--ink); }
.assistant-panel .chat-message.student { background: #341765; }
.assistant-panel .chat-prompts { justify-content: center; }
.assistant-composer {
  align-items: center;
  width: min(100%, 620px);
  min-height: 56px;
  border: 1px solid #ae77ff;
  border-radius: 100px;
  padding: 5px 6px 5px 14px;
  gap: 4px;
  background: var(--paper);
  animation: composer-glow 3.4s ease-in-out infinite alternate;
}
@keyframes composer-glow {
  from { box-shadow: 0 0 0 2px #be91ff70, 0 0 14px #9f54ef7a; }
  to { box-shadow: 0 0 0 2px #eee0ffab, 0 0 24px #f2b4fbba; }
}
.assistant-composer:focus-within { outline: 2px solid #e9cdff; outline-offset: 3px; }
.assistant-composer input { padding: 0; outline: 0; border: 0; background: transparent; }
.assistant-composer .composer-control {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
}
.composer-send { background: #622bd1; color: white; font-size: 1.45rem; font-weight: 700; line-height: 1; }
.composer-send:disabled { background: #7b54bd; }
.composer-mic { background: transparent; color: var(--purple-dark); }
.composer-mic span { position: relative; display: block; width: 13px; height: 10px; margin-top: 6px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 9px 9px; }
.composer-mic span::before, .composer-mic span::after { position: absolute; left: 50%; transform: translateX(-50%); background: currentColor; content: ""; }
.composer-mic span::before { top: -7px; width: 6px; height: 12px; border-radius: 5px; }
.composer-mic span::after { width: 2px; height: 4px; bottom: -5px; }
.calendar-day[aria-current="date"] {
  background: var(--purple-soft);
  box-shadow: inset 0 0 0 2px var(--purple);
}
:root[data-theme="dark"] .calendar-day[aria-current="date"] { box-shadow: inset 0 0 0 2px #b68aff; }
[aria-current="date"] .day-number { min-width: 26px; min-height: 26px; }
.today-marker { color: var(--purple-dark); font-size: .65rem; font-weight: 800; line-height: 1.4; }
.calendar-sidebar .lift-tile { min-height: 152px; }
#daily-goal-list input:checked + span { text-decoration: none; }
.goal-task {
  background: linear-gradient(currentColor,currentColor) 0 54% / 0 1.5px no-repeat;
  transition: background-size .32s ease, color .32s ease;
}
#daily-goal-list input:checked + .goal-content .goal-task { background-size: 100% 1.5px; color: var(--muted); }
.goal-content small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.goals-celebration { position: relative; width: fit-content; margin: 12px 0 0; padding: 7px 13px; color: #087348; background: #e0f8ed; border: 1px solid #7cceab; border-radius: 7px; }
.goals-celebration.celebrate { animation: goal-stamp .52s cubic-bezier(.2,1.4,.5,1) both; }
.goal-confetti { position: absolute; inset: 0; pointer-events: none; }
.goal-confetti i { position: absolute; left: 50%; top: 50%; width: 7px; height: 10px; border-radius: 2px; background: var(--spark); animation: goal-spark .8s ease-out both; }
@keyframes goal-stamp { from { transform: scale(.65) rotate(-9deg); opacity: 0; } to { transform: scale(1); opacity: 1; box-shadow: 0 0 18px #47d58c70; } }
@keyframes goal-spark { from { transform: translate(0,0); opacity: 1; } to { transform: translate(var(--x),var(--y)) rotate(160deg); opacity: 0; } }
#goal-placeholder:empty, #daily-goal-status:empty { display: none; }
@media (max-width: 850px) {
  .calendar-region { grid-template-columns: minmax(0,1fr); }
  .calendar-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 570px) {
  .workspace { width: calc(100% - 26px); }
  .calendar-sidebar { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-panel::before, .assistant-composer, .goals-celebration.celebrate { animation: none; }
  .assistant-composer { box-shadow: 0 0 0 2px #be91ff70; }
  .goal-confetti { display: none; }
  .goal-task { transition: none; }
}
