/* ============================================================
   Executive Task Tracker - Editorial Dashboard Aesthetic
   - Refined off-white canvas + deep navy sidebar
   - Fraunces (display serif) + Manrope (sans body)
   - Warm brass accent
   ============================================================ */

:root {
  --bg:           #f5f2ec;
  --bg-elevated:  #ffffff;
  --bg-warm:      #faf7f1;
  --ink:          #1a1d23;
  --ink-muted:    #5b6068;
  --ink-soft:     #8b9099;
  --line:         #e3ddd1;
  --line-soft:    #ecead1;
  --line-strong:  #cbc4b4;

  --navy:         #1d2630;
  --navy-deep:    #131922;
  --navy-soft:    #2a3340;

  --brass:        #b08a4a;
  --brass-bright: #d4a017;
  --brass-soft:   #efe2c4;

  --success:      #2f7d5b;
  --warn:         #c87a2f;
  --danger:       #b53a3a;
  --info:         #3a6ea5;

  --shadow-sm: 0 1px 2px rgba(20, 25, 35, 0.04), 0 1px 3px rgba(20, 25, 35, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 25, 35, 0.06), 0 2px 4px rgba(20, 25, 35, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 25, 35, 0.10), 0 4px 8px rgba(20, 25, 35, 0.04);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font-serif: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-sans:  'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(at 20% 0%, rgba(176, 138, 74, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(29, 38, 48, 0.03) 0px, transparent 50%);
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ SIDEBAR ============ */
.sidebar {
  background: var(--navy-deep);
  color: #d8dde4;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brass-bright);
  color: var(--navy-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brass-bright);
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  background: transparent;
  border: none;
  color: #b0b7c0;
  padding: 11px 14px;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
}
.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}
.nav-item.active {
  background: rgba(212, 160, 23, 0.10);
  color: #fff;
}
.nav-item.active .nav-dot {
  background: var(--brass-bright);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: all 0.15s ease;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.clock {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.day-name {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-top: 6px;
}

/* ============ MAIN ============ */
.main {
  padding: 40px 56px 64px;
  max-width: 1300px;
  width: 100%;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 6px;
}
.title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.title em, .title i {
  font-style: italic;
  color: var(--brass);
}
.subtitle {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 15px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-picker, .ghost-btn {
  font: inherit;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ghost-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.date-picker:hover { border-color: var(--ink); }

/* ============ HERO STAT CARDS ============ */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.hero-card {
  background: var(--bg-elevated);
  padding: 22px 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-card.accent {
  background: var(--navy);
  color: #f5f2ec;
  border-color: var(--navy);
}
.hero-card.accent .hero-label { color: var(--brass-bright); }
.hero-card.accent .hero-sub   { color: #b0b7c0; }
.hero-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}
.hero-unit {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 4px;
}
.hero-card.accent .hero-unit { color: #b0b7c0; }
.hero-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.hero-bar {
  margin-top: 14px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.hero-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright));
  width: 0%;
  transition: width 0.4s ease;
}

/* ============ TASK GROUPS ============ */
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.block-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.task-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.task-group {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.group-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.group-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.group-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: var(--navy);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.group-pill.company { background: var(--brass); }
.group-pill.parallel { background: var(--info); }
.group-pill.misc { background: var(--ink-muted); }
.group-pill .code {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.85;
}
.group-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.group-meta {
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.task-row {
  display: grid;
  grid-template-columns: 30px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.12s ease;
}
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: var(--bg-warm); }
.task-row.completed { opacity: 0.55; }
.task-row.completed .task-name { text-decoration: line-through; }
.task-row.in-progress { background: rgba(212, 160, 23, 0.06); }

.task-check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.task-check:hover { border-color: var(--ink); }
.task-check.checked {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.task-check.checked::after {
  content: '✓';
  font-size: 13px;
  font-weight: 700;
}
.task-check.in-progress {
  border-color: var(--brass-bright);
  background: rgba(212, 160, 23, 0.10);
}
.task-check.in-progress::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--brass-bright);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.task-info { min-width: 0; }
.task-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}
.task-desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.4;
}
.task-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 500;
  white-space: nowrap;
}
.task-timer {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brass);
  min-width: 56px;
  text-align: right;
}
.task-action {
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-muted);
  transition: all 0.15s ease;
}
.task-action:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.task-action.notes-btn::before {
  content: '✎';
  margin-right: 4px;
}
.task-row.has-notes .task-action.notes-btn {
  color: var(--brass);
  border-color: var(--brass);
}

/* ============ WEEK GRID ============ */
.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.day-col {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.day-col.today {
  border: 2px solid var(--brass);
  box-shadow: 0 0 0 4px rgba(176, 138, 74, 0.08);
}
.day-col-header {
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.day-col.today .day-col-header { background: var(--brass); }
.day-col-day {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 600;
}
.day-col.today .day-col-day { color: #fff; }
.day-col-date {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.day-col-companies {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
  font-size: 12px;
}
.day-col-companies .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.company-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 4px 2px 0;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-mono);
}
.day-tasks {
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-task {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  color: var(--ink-muted);
}
.mini-task.completed { color: var(--ink-soft); text-decoration: line-through; }
.mini-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}
.mini-status.completed { background: var(--success); }
.mini-status.in_progress { background: var(--brass-bright); }
.day-col-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  background: var(--bg-warm);
  display: flex;
  justify-content: space-between;
}

/* ============ COMPANIES GRID ============ */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.company-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.company-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-color, var(--brass));
}
.company-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.company-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.company-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.company-day {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.company-day.daily { color: var(--brass); }

.company-detail {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 24px;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.detail-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 4px 10px;
  line-height: 1;
}
.note-form {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.note-form textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  background: var(--bg-warm);
}
.note-form textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.note-item {
  padding: 12px 14px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 13px;
  border-left: 3px solid var(--brass);
}
.note-meta {
  font-size: 11px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}
.note-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--danger);
  font-size: 11px;
}

/* ============ STATS ============ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  align-items: center;
  gap: 14px;
}
.bar-row-label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.bar-row-track {
  height: 10px;
  background: var(--line-soft);
  border-radius: 5px;
  overflow: hidden;
}
.bar-row-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}
.bar-row-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: right;
}

.line-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 180px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.line-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  position: relative;
  transition: all 0.15s ease;
}
.line-bar:hover { opacity: 0.85; transform: translateY(-2px); }
.line-bar:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  white-space: nowrap;
  margin-bottom: 6px;
}

/* ============ TEMPLATES ============ */
.templates-list {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.template-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 140px 100px;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.template-row:last-child { border-bottom: none; }
.template-row input, .template-row select {
  font: inherit;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  width: 100%;
}
.template-row input:focus, .template-row select:focus {
  outline: none; border-color: var(--brass);
}
.template-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 35, 0.55);
  display: grid;
  place-items: center;
  z-index: 100;
  backdrop-filter: blur(3px);
}
.modal-backdrop.hidden { display: none; }
.modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: min(520px, 90vw);
  box-shadow: var(--shadow-lg);
}
.modal h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.modal-sub {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-warm);
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brass); background: #fff;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary:hover { background: var(--navy); }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden { display: none !important; }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  body { grid-template-columns: 220px 1fr; }
  .main { padding: 30px 32px 60px; }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .week-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
  }
  .brand { margin-bottom: 0; padding-bottom: 0; border: none; }
  .nav { flex-direction: row; flex-wrap: wrap; margin-left: auto; }
  .sidebar-footer { display: none; }
  .main { padding: 24px 20px 60px; }
  .title { font-size: 32px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .task-row { grid-template-columns: 24px 1fr auto; gap: 10px; }
  .task-action, .task-timer { display: none; }
  .template-row { grid-template-columns: 1fr; gap: 8px; }
  .bar-row { grid-template-columns: 1fr; }
  .bar-row-label { font-size: 12px; }
}
