/* The home screen's paper, pastel fills, badges and ink contours across the workspace. */
.app-main:not(.view-overview) { max-width: 1240px; padding: 34px 42px 180px; }
.app-main:not(.view-overview) .page-heading { align-items: flex-start; margin-bottom: 28px; }
.page-heading h1 { font-size: clamp(1.45rem,2.5vw,1.9rem); font-weight: 650; letter-spacing: -.035em; }
.page-heading .empty-actions { justify-content: flex-end; margin: 0; }
.date-tools { gap: 6px; }
.date-tools .button,.date-tools .icon-button,.date-control input { min-height: 44px; }
.date-tools .icon-button { min-width: 44px; }
.date-control input { width: 142px; border-radius: 16px; }
.day-strip { padding: 8px; border: 1.5px solid var(--outline); border-radius: 26px; gap: 7px; }
.day-button { border-radius: 18px; min-height: 80px; }
.day-number { font-size: 1.2rem; font-weight: 650; }
.content-columns { grid-template-columns: minmax(0,1fr) 260px; gap: 22px; }
.content-columns > section,.analytics-columns > section { border: 1.5px solid var(--outline); border-radius: 26px; padding: 24px; }
.section-heading h2,.analytics-columns h2 { font-size: 1.1rem; font-weight: 650; }
.filters { gap: 4px; padding: 4px; background: var(--paper); border-radius: 24px; }
.filter { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 20px; }
.filter[aria-pressed='true'] { background: var(--ink); color: white; }
.task-toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.task-progress { height: 4px; background: #e9ede9; }
.task-progress > span { background: var(--ink); }
.context-section { border-radius: 24px; background: var(--sky); padding: 22px; }
.context-section:nth-child(2) { background: var(--butter); }
.context-section:nth-child(3) { background: var(--lilac); }
.context-section h2 { font-weight: 650; font-size: .9375rem; }
.context-section p,.context-section .stat-line,.context-section small { color: #46564e; }
.week-progress { height: 6px; background: #e1e7df; }
.week-progress > span { background: var(--ink); border-radius: 4px; }
.week-bar .bar { background: #c4dcdb; border-radius: 5px 5px 0 0; }
.week-bar .bar span { background: #4d7168; }
.week-board { grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: 16px; padding: 0; background: transparent; }
.week-column,.week-column + .week-column,.week-column:nth-child(n+5) { display: block; border: 1.5px solid var(--outline); border-radius: 24px; padding: 18px; background: white; }
.week-column.current-day { background: var(--mint); border-radius: 24px; }
.week-day-heading { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 0 14px; font-size: .8125rem; color: #46564e; }
.week-day-heading strong { margin: 0; font-size: 1.45rem; font-weight: 650; }
.week-task { padding: 17px 0; }
.week-task strong { font-size: .8125rem; font-weight: 600; line-height: 1.5; margin-top: 10px; }
.week-task.complete strong { text-decoration: none; }
.week-task .subject-badge { font-size: .6875rem; padding: 5px 9px; }
.week-add { background: var(--paper); border: 1px solid var(--line); }
.week-empty { padding-block: 20px; }
.notebook-intro { gap: 10px; margin-bottom: 24px; }
.notebook-intro > span { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 18px; background: var(--butter); color: #574c2d; }
.notebook-intro > span:nth-child(2) { background: var(--mint); color: #304630; }
.notebook-intro > span:nth-child(3) { background: var(--lilac); color: #503d5c; }
.notebook-intro strong { color: inherit; font-size: 1.2rem; }
.question-filters { padding: 4px; border-radius: 24px; background: #e9ede8; }
.question-filter { border-radius: 20px; min-height: 40px; }
.question-filter[aria-pressed='true'] { background: var(--ink); color: white; }
.question-search input { min-height: 48px; border-radius: 24px; padding-inline: 17px; }
.question-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.question-card { border: 1.5px solid var(--outline); border-radius: 26px; overflow: hidden; }
.question-card-body { padding: 22px; }
.question-meta { align-items: center; flex-wrap: wrap; }
.question-meta > span:first-child { background: var(--lilac); color: #503d5c; padding: 6px 11px; border-radius: 20px; font-weight: 650; }
.question-solved .question-meta > span:first-child { background: var(--mint); color: #304630; }
.question-photo { background: var(--sky); }
.question-actions .icon-button { min-width: 44px; min-height: 44px; }
.notebook-empty { border: 1.5px solid var(--outline); border-radius: 26px; background: #f1e6f9; padding: 60px 25px; }
.notebook-empty > svg { width: 54px; height: 54px; padding: 12px; border-radius: 18px; background: white; color: #68517f; }
.notebook-empty h2 { font-weight: 650; }
.notebook-empty p { color: #57465f; }
.progress-intro { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; border: 0; padding: 0; }
.progress-intro > div { border-radius: 24px; padding: 22px 25px; background: var(--mint); gap: 8px; }
.progress-intro > div:nth-child(2) { background: var(--sky); }
.progress-intro > div:nth-child(3) { background: var(--lilac); }
.progress-intro strong { font-weight: 600; }
.progress-intro > div > span { color: #46564e; }
.chart-bar { background: #d4f6cf; border: 1px solid #4c6950; border-radius: 9px 9px 0 0; }
.chart-column:nth-child(2n) .chart-bar { background: var(--lilac); border-color: #73647b; }
.subject-progress .stat-line { margin-top: 0; }
.subject-progress > div + div { margin-top: 24px; }
.subject-progress .week-progress { margin-top: 10px; }
.day-footnote { align-items: flex-start; }
.day-footnote svg { flex-shrink: 0; margin-top: 3px; }
/* Study cards borrow the reference's calm pastel surface and bottom action row. */
.view-day .content-columns > section { padding: 0; border: 0; border-radius: 0; background: transparent; }
.view-day .content-columns > section > .task-list { display: grid; gap: 16px; border: 0; }
.study-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 20px; border: 1px solid #263f3226; border-radius: 26px; background: var(--card-color,var(--sky)); min-width: 0; }
.study-card.complete { background: white; border-color: #bac8bb; }
.study-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.study-card .subject-badge { background: #ffffffb3; }
.study-card.complete .subject-badge { background: var(--card-color); }
.study-card .icon-button { min-width: 44px; min-height: 44px; background: #ffffffa6; color: var(--ink); }
.study-card .task-title { font-size: 1.15rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.35; margin: 0; }
.study-card.complete .task-title { color: var(--ink); text-decoration: none; }
.study-card .task-note { padding: 12px 14px; margin: 14px 0 0; border-radius: 16px; background: #ffffff80; color: #405147; font-size: .8125rem; }
.study-card-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.study-card .task-check { width: auto; min-height: 44px; margin: 0; gap: 8px; padding: 6px 10px; border-radius: 24px; font-size: .75rem; background: #ffffffa6; color: #2c4435; }
.study-card.complete .task-check { background: var(--mint); }
.study-card .task-count { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 24px; background: white; color: var(--ink); }
.study-card .task-count svg { width: 15px; height: 15px; }
.study-card .task-progress { max-width: none; margin-top: 12px; background: #ffffffa6; }
.week-task { background: var(--card-color,var(--sky)); border: 0; padding: 14px; border-radius: 20px; margin-bottom: 10px; }
.week-task.complete { background: #eef4eb; }
.week-task .subject-badge { background: #ffffffb3; }
.week-task > small { padding: 7px 9px; margin-top: 13px; border-radius: 20px; background: #ffffffb3; color: #3e4d43; }
.week-task.complete strong { color: #405147; }
.week-column.current-day { background: white; }
.week-column.current-day .week-day-heading strong { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 16px; background: var(--mint); }
.question-card:not(.question-solved) { background: #f3e6fa; }
.question-card:not(.question-solved):nth-child(3n+2) { background: #e1f5f7; }
.question-card:not(.question-solved):nth-child(3n+3) { background: #fbf0cd; }
.question-card .question-note { padding: 14px; border-radius: 16px; background: #ffffffa6; }
@media(min-width:1101px) { .view-day .content-columns > section > .task-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(min-width:1440px) { .week-board { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; } .week-column { padding: 14px; } }
@media(max-width:1100px) { .question-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .week-board { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:900px) {
  .app-main:not(.view-overview) { padding-inline: 24px; }
  .content-columns { grid-template-columns: 1fr; }
  .context-rail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .context-section { padding: 18px; }
  .context-section + .context-section { margin-top: 0; }
  .notebook-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .question-search { flex: auto; margin: 0; }
  .question-filters { align-self: flex-start; }
}
@media(max-width:700px) {
  .app-main:not(.view-overview) { padding: 24px 18px 32px; }
  .page-heading { flex-wrap: wrap; gap: 16px; }
  .page-heading .empty-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .day-strip { gap: 2px; padding: 5px; border-radius: 22px; }
  .day-button { padding-inline: 0; min-height: 74px; border-radius: 16px; }
  .day-number { font-size: 1rem; }
  .content-columns > section,.analytics-columns > section { padding: 18px; border-radius: 23px; }
  .context-rail { display: flex; flex-direction: column; gap: 14px; }
  .filters { gap: 0; }
  .filter { padding-inline: 10px; }
  .week-board { grid-template-columns: 1fr; }
  .week-column,.week-column + .week-column { border-radius: 23px; padding: 18px; }
  .week-day-heading { width: 100%; }
  .week-task { padding: 16px; }
  .question-grid { grid-template-columns: 1fr; }
  .question-filter { padding-inline: 10px; font-size: .75rem; }
  .notebook-empty { padding: 36px 20px; }
  .notebook-intro { gap: 8px; }
  .notebook-intro > span { padding: 10px 12px; font-size: .75rem; }
  .progress-intro { gap: 8px; }
  .progress-intro > div { padding: 16px 12px; border-radius: 20px; }
  .progress-intro strong { font-size: 1.55rem; }
  .progress-intro > div > span { font-size: .6875rem; line-height: 1.5; }
  .analytics-columns { grid-template-columns: 1fr; gap: 18px; }
  .chart { gap: 10px; }
  .overview-garden-slot .companion-label { max-width: calc(100% - 85px); line-height: 1.45; }
}
@media(prefers-contrast:more) { .subject-badge,.question-meta > span:first-child { border: 1px solid currentColor; } }
@media(min-width:701px) {
  body:not([data-view='overview']) .workspace { display: flex; flex-direction: column; height: calc(100dvh - 120px); min-height: 0; padding-bottom: 146px; overflow: hidden; }
  .app-main:not(.view-overview) { flex: 1; min-height: 0; width: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 28px; }
  body:not([data-view='overview']) .garden-companion { width: 176px; height: 130px; bottom: 26px; }
  body:not([data-view='overview']) .garden-companion .garden-current { width: 116px; height: 116px; bottom: 20px; }
}
