/* Shared responsive system: preserve information order, reflow the same components. */
:root{--layout-gutter:clamp(18px,3vw,48px);--layout-content:1280px;--space-section:clamp(28px,4vw,48px);--type-page:clamp(28px,3vw,36px);--type-section:18px;--type-card:16px;--type-body:15px;--type-meta:12px;--type-label:14px;--type-input:16px;--type-badge:11px}
.today-heading h1,.page-title,.planner-mast h1,.report-detail-title h1{font-size:var(--type-page);line-height:1.15}
.section-head h2,.planner-section-head h2,.report-list-head strong{font-size:var(--type-section)}
.task-title,.project-row-copy strong,.weekly-planner .plan-title,.list-row h3{font-size:var(--type-card)}
.today-heading p,.page-subtitle,.task-meta,.project-row-copy span,.list-row p,.report-summary,.report-story p,.weekly-item-group li{font-size:var(--type-body)}
.week-strip span,.planner-stats small,.report-panel-head span,.report-tag,.project-detail-meta span,.weekly-item-group>p{font-size:var(--type-meta)}
select,.button,.head-action,.email-auth-submit,.google-login{min-height:44px}
.app.account-login-mode .content{width:100%;max-width:none}
.app.account-login-mode .view{width:100%;display:grid;place-items:center}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 clamp(24px,3vw,36px)}
.page-intro h1{margin:0;color:#1f3454;font-family:"Pretendard Variable",sans-serif;font-size:var(--type-page);font-weight:780;line-height:1.15;letter-spacing:-.055em}
.page-intro p{margin:7px 0 0;color:#7b8da8;font-size:var(--type-body);line-height:1.5}
.page-intro-add{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:14px;background:var(--accent);color:#fff;font-size:23px;line-height:1}

/* Numeric goals behave as one compact field instead of two disconnected boxes. */
.weekly-planner .target-option{max-width:none;justify-self:end}
.weekly-planner .target-option summary{min-height:34px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid #cbd9eb;border-radius:9px;background:#fff;color:#607795;font-size:11px;line-height:1;white-space:nowrap}
.weekly-planner .target-option[open]{display:inline-flex;align-items:center;gap:6px;padding:4px;border:1px solid #b9cdea;border-radius:11px;background:#f3f7fd}
.weekly-planner .target-option[open] summary{min-height:32px;padding-inline:7px;border:0;background:transparent;color:#4e6b93}
.weekly-planner .target-option .target{width:88px!important;min-height:34px;padding:0 9px;border:1px solid #d2deed;border-radius:8px;background:#fff;color:#2d4668!important;font-size:12px!important;text-align:left}
.weekly-planner .target-option .target::placeholder{color:#93a2b7}

/* Reports prioritise the report itself; the calendar is a compact navigator. */
.reports-calendar-layout{display:grid;grid-template-areas:"preview" "calendar";gap:22px}
.calendar-preview{grid-area:preview;min-width:0;padding-top:0;position:static}
.calendar-surface{grid-area:calendar;min-width:0}
.calendar-report-preview,.calendar-empty{min-height:240px}
.calendar-empty{display:grid;place-content:center}
.calendar-events:empty{display:none}
.report-calendar-week:has(.calendar-events:empty){padding-block:1px}
/* Small visual controls keep their intended size; only the hit area reaches 44px. */
.task-complete,.icon-button,.planner-section-head>button,.deadline-sort,.check-add{position:relative}
.task-complete::before,.icon-button::after,.planner-section-head>button::after,.deadline-sort::after,.check-add::after{content:"";position:absolute;inset:auto;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
.task-complete{min-width:0;min-height:0}
.task-menu,.circle-add,.icon-button,.planner-section-head>button{min-width:0;min-height:0}

@media (min-width:768px) and (max-width:1099px){
  .content,.content.today-content,.content.report-content{width:100%;max-width:960px;padding:48px 32px 112px}
  .weekly-planner,.record-archive,.project-list,.project-dashboard,.plan-card,.toolbar,.search,.calendar-head,.calendar,.directory,.list-row{width:100%;max-width:none}
  .project-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-grid,.weekly-item-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
  .today-layout{width:100%;max-width:none}
  .reports-calendar-layout{grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);grid-template-areas:"preview calendar";align-items:start;gap:20px}
  .calendar-surface{padding:20px 14px 16px}
  .reports-month-head{margin-bottom:16px}.reports-month-head h2{font-size:21px}
  .calendar-surface,.calendar-report-preview,.calendar-empty{min-height:380px}
}

@media (max-width:520px){
  .page-intro{align-items:flex-start;margin-bottom:24px}.page-intro p{max-width:260px}
  .weekly-planner .result-row{grid-template-columns:20px minmax(0,1fr)}
  .weekly-planner .target-option{grid-column:2;justify-self:start;margin:2px 0 8px}
}

@media (min-width:1100px){
  .app{grid-template-columns:200px minmax(0,1fr)}
  .desktop-nav{padding:34px 20px 28px}
  .desktop-brand{margin-bottom:52px}
  .workspace{min-width:0}
  .content,.content.today-content,.content.report-content{width:min(100%,var(--layout-content));max-width:var(--layout-content);margin:0 auto;padding:clamp(52px,6vh,72px) var(--layout-gutter) 112px}
  .view{width:100%}
  .today-layout{width:100%;max-width:none;margin:0;grid-template-columns:minmax(0,2.15fr) minmax(280px,.85fr);grid-template-areas:"heading support" "main support";column-gap:clamp(36px,4vw,64px)}
  .today-support:empty{display:none}
  .today-layout:has(.today-support:empty){grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "main"}
  .today-heading{margin-bottom:30px}.today-main{min-width:0}.today-support{position:sticky;top:52px;align-self:start}.today-input{margin-bottom:28px}
  .today-lists .section{margin-top:var(--space-section)}.today-lists .task{min-height:76px;padding-block:16px}.composer{padding:14px 18px 10px}.capture-row input{font-size:16px}
  .weekly-planner{width:100%;max-width:none;margin:0;padding-bottom:72px}.planner-mast{margin-bottom:24px}.planner-stats>div{padding:18px 20px}.week-strip>div{padding:16px 8px}.week-strip b{font-size:16px}.planner-project-line{margin:18px 0 32px}.planner-section-head{margin-top:36px}
  .planner-directions{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.weekly-planner .plan-card{height:100%}.planner-empty{grid-column:1/-1;min-height:190px}
  .project-page-actions,.project-dashboard,.project-list,.archive-section,.record-archive,.report-list,.report-detail-page,.plan-history-list,.toolbar,.search,.calendar-head,.calendar,.directory,.list-row{width:100%;max-width:none}
  .project-dashboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .project-row{min-height:116px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff}.archive-section{margin-top:32px}.archive-section .project-list{margin-top:12px}.record-entry{padding-block:16px}
  .report-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.report-row{min-height:0;padding:24px}.report-narrative,.report-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-calendar-layout{grid-template-columns:minmax(0,1.65fr) minmax(340px,.75fr);grid-template-areas:"preview calendar";gap:28px;align-items:start}
  .calendar-preview{position:static;padding-top:0}.calendar-surface{position:sticky;top:42px;padding:20px 16px 16px}
  .reports-month-head{margin-bottom:16px}.reports-month-head h2{font-size:22px}.reports-month-head .calendar-this-month{font-size:11px}
  .report-weekdays{margin-bottom:5px}.report-calendar-week{padding-block:2px}.report-day{min-height:44px;font-size:12px}
  .calendar-surface,.calendar-report-preview,.calendar-empty{min-height:390px}
  .calendar-report-preview,.calendar-empty{padding:clamp(26px,3vw,42px)}
  .calendar-report-preview h2{max-width:680px;font-size:clamp(22px,2vw,28px);line-height:1.55}
  .preview-counts{margin-top:34px}.calendar-report-preview .button{max-width:260px;margin-top:34px}
}

@media (min-width:1600px){
  :root{--layout-content:1440px;--layout-gutter:64px}
  .app{grid-template-columns:220px minmax(0,1fr)}
  .today-layout{grid-template-columns:minmax(0,880px) minmax(300px,380px)}
  .weekly-planner .plan-card{min-height:160px}
  .report-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .reports-calendar-layout{grid-template-columns:minmax(0,2fr) 390px}
}

@media (min-width:900px) and (max-height:800px){
  .content,.content.today-content,.content.report-content{padding-top:34px;padding-bottom:72px}
  .desktop-brand{margin-bottom:28px}.desktop-nav nav button{min-height:48px}.today-heading,.planner-mast{margin-bottom:18px}.today-input{margin-bottom:20px}.today-lists .section{margin-top:28px}.planner-section-head{margin-top:26px}.planner-empty{min-height:140px}
}
