* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --fg: #000;
  --bg: #fff;
  --line: #e2e2e2;
  --muted: #8a8a8a;
}
html[data-theme="dark"] {
  --fg: #fff;
  --bg: #000;
  --line: #2a2a2a;
  --muted: #999;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--fg); text-decoration: underline; }
a:hover { background: var(--fg); color: var(--bg); text-decoration: none; }
input::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fg) !important; }
button { font-family: inherit; }
input[type="date"] { max-width: 100%; }
input, select, textarea, button { border-radius: 0; }

/* ---- auth ---- */
.auth-screen { max-width: 400px; margin: 0 auto; padding: 64px 28px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: var(--bg); }
.auth-kicker { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.55; }
.auth-title { font-size: 24px; font-weight: 700; margin: 12px 0 0; letter-spacing: -0.4px; line-height: 1.1; }
.auth-sub { font-size: 13px; opacity: 0.65; margin: 10px 0 0; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.field-input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--fg); font-size: 14px; font-family: inherit; color: var(--fg); outline: none; background: var(--bg); }
.btn-primary { border: 1px solid var(--fg); background: var(--fg); color: var(--bg); padding: 12px 16px; font-size: 14px; letter-spacing: 0.2px; cursor: pointer; margin-top: 4px; width: 100%; }
.btn-primary:hover { background: var(--bg); color: var(--fg); }
.btn-link { border: none; background: none; color: var(--fg); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 16px 0 0; text-align: center; width: 100%; display: block; opacity: 0.8; }
.btn-link:hover { background: none; opacity: 1; }
.auth-error { font-size: 12.5px; border: 1px solid var(--fg); padding: 9px 12px; }
.auth-demo { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--fg); font-size: 12px; opacity: 0.6; text-align: center; line-height: 1.6; }
.field-errors { font-size: 12px; opacity: 0.75; margin-top: -4px; }

/* ---- shell ---- */
.shell { min-height: 100vh; background: var(--bg); }
.app-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }

/* ---- sidebar ---- */
.sidebar { flex: 1 1 190px; min-width: 190px; padding: 22px 0; display: flex; flex-direction: column; border-right: 1px solid var(--fg); }
.brand { padding: 0 20px 20px; margin-bottom: 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.brand-sub { font-size: 11px; opacity: 0.55; letter-spacing: 1.5px; text-transform: uppercase; margin: -14px 0 20px; padding: 0 20px; }

/* ---- wordmark "hackbit" ---- */
.wordmark { font-weight: 700; }
.wm-hi { color: var(--fg); }
.wm-dim { color: var(--muted); font-weight: 400; }
.auth-brand { font-size: 22px; margin-bottom: 4px; }

.sidebar-nav { display: flex; flex-direction: column; }
.nav-item { padding: 10px 20px; cursor: pointer; font-size: 14px; color: var(--fg); text-decoration: none; display: block; }
.nav-item:hover { background: var(--line); text-decoration: none; }
.nav-item.active { background: var(--fg); color: var(--bg); font-weight: 700; }
.nav-item.active:hover { background: var(--fg); color: var(--bg); }
.back-nav { padding: 4px 0; }
.back-link { display: block; padding: 10px 20px; font-size: 13px; }

.sidebar-footer { margin-top: auto; padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 26px; height: 26px; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.logout-btn { border: none; background: none; color: var(--fg); font-size: 12px; cursor: pointer; padding: 4px 0; opacity: 0.6; text-decoration: underline; }
.logout-btn:hover { opacity: 1; }
.theme-toggle { width: 22px; height: 22px; flex: none; cursor: pointer; border: 1px solid var(--fg); background: var(--fg); padding: 0; }
.theme-toggle:hover { background: var(--bg); }

/* ---- main ---- */
.main-col { flex: 3 1 420px; min-width: 280px; padding: 30px 32px 60px; }
.content-header { margin-bottom: 26px; background: var(--bg); position: relative; }
.content-kicker { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.55; }
.page-title { font-size: 20px; font-weight: 700; margin: 8px 0 0; letter-spacing: -0.2px; }

/* ---- score ring ---- */
.score-wrap { display: flex; flex-direction: column; align-items: center; padding: 4px 0 28px; }
.score-ring { position: relative; width: 156px; height: 156px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring-track { stroke: var(--line); }
.score-ring-fill { stroke: var(--fg); transition: stroke-dashoffset .4s ease; }
.score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-value { font-size: 38px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.score-max { font-size: 12px; opacity: 0.55; letter-spacing: 1px; margin-top: 3px; }
.score-caption { font-size: 12.5px; opacity: 0.65; margin-top: 14px; letter-spacing: 0.2px; }

/* ---- item list (tareas + hábitos de hoy) ---- */
.item-list { border-top: 1px solid var(--fg); }
.item-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.item-box { width: 17px; height: 17px; flex: none; border-radius: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; border: 1px solid var(--fg); background: var(--bg); color: var(--bg); }
.item-box.done { background: var(--fg); }
.item-box:hover { background: var(--bg); }
.item-box.done:hover { background: var(--fg); }
.item-box svg { width: 10px; height: 10px; display: block; }
.item-box svg path { stroke: currentColor; }
.item-box[disabled] { cursor: default; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-size: 14px; }
.item-title.done { opacity: 0.4; text-decoration: line-through; }
.item-meta { font-size: 10.5px; opacity: 0.5; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.item-points { font-size: 12px; opacity: 0.5; font-variant-numeric: tabular-nums; }
.item-remove { border: none; background: none; color: var(--fg); opacity: 0.45; font-size: 17px; line-height: 1; cursor: pointer; padding: 0 2px; }
.item-remove:hover { opacity: 1; }
.item-chevron { opacity: 0.4; font-size: 16px; line-height: 1; padding: 0 0 0 2px; text-decoration: none; }

.empty-state { text-align: center; opacity: 0.45; font-size: 13px; padding: 32px 0; }

.add-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.add-form input[type="text"],
.add-form input[type="date"] {
  min-width: 0;
  border: 1px solid var(--fg);
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  outline: none;
  background: var(--bg);
  padding: 10px 12px;
}
.add-form input[type="text"] { flex: 1 1 140px; }
.add-form input[type="date"] { flex: 1 1 130px; width: auto; color: var(--fg); font-size: 13px; padding: 10px 8px; }
.add-form-select { flex: 1 1 130px; width: auto; font-size: 13px; padding: 10px 8px; }
.btn-add { flex: none; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); padding: 10px 16px; font-size: 13px; cursor: pointer; }
.btn-add:hover { background: var(--bg); color: var(--fg); }

.section { margin-top: 6px; }
.section + .section { margin-top: 32px; padding-top: 4px; border-top: 1px solid var(--line); }
.section-label { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.55; margin-bottom: 10px; }

.upcoming { margin-top: 26px; }
.upcoming-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.upcoming-date { font-size: 11px; opacity: 0.5; }

/* ---- detalle de tarea / subtareas ---- */
.task-desc { font-size: 14px; opacity: 0.75; line-height: 1.6; margin-bottom: 22px; }
.task-notes-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.task-notes-input { resize: vertical; min-height: 70px; font-family: inherit; }
.task-notes-form .btn-secondary { align-self: flex-start; }
.subtask-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.task-reschedule-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 24px; border: 1px solid var(--fg); padding: 14px; }
.task-reschedule-form .field-label { margin-bottom: 0; flex-basis: 100%; }

/* ---- hábitos ---- */
.habit-form { border: 1px solid var(--fg); padding: 18px; margin-bottom: 18px; background: var(--bg); }
.field-label { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.55; margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-block; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); padding: 8px 14px; font-size: 12.5px; cursor: pointer; }
.day-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.day-chip { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); font-size: 12.5px; cursor: pointer; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-secondary { display: inline-block; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); padding: 10px 18px; font-size: 13px; cursor: pointer; }
.btn-dark { border: 1px solid var(--fg); background: var(--fg); color: var(--bg); padding: 10px 20px; font-size: 13px; cursor: pointer; }
.btn-dark:hover, .btn-secondary:hover { background: var(--bg); color: var(--fg); }
.btn-dashed { display: block; width: 100%; box-sizing: border-box; text-align: center; border: 1px dashed var(--fg); background: var(--bg); color: var(--fg); padding: 13px; font-size: 14px; cursor: pointer; margin-bottom: 18px; }
.btn-dashed:hover { background: var(--fg); color: var(--bg); border-style: solid; }

/* chips / checkboxes / toggle implementados con inputs nativos + CSS :has(), sin JS */
.chip-radio, .day-chip-checkbox, .form-toggle-checkbox {
  position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none;
}
.chip-radio:focus-visible + .chip, .day-chip-checkbox:focus-visible + .day-chip { outline: 1px solid var(--fg); outline-offset: 2px; }
.chip-radio:checked + .chip { background: var(--fg); color: var(--bg); }
.day-chip-checkbox:checked + .day-chip { background: var(--fg); color: var(--bg); }

.conditional-day-row { display: none; }
.habit-form:has(#freq-days:checked) .conditional-day-row { display: flex; }

.habit-toggle-wrap .conditional-form { display: none; }
.habit-toggle-wrap:has(.form-toggle-checkbox:checked) .conditional-form { display: block; }
.habit-toggle-wrap:has(.form-toggle-checkbox:checked) .toggle-open-label { display: none; }

.habit-row { display: flex; align-items: center; gap: 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.habit-title { font-size: 14px; }
.habit-meta { font-size: 10.5px; opacity: 0.5; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }

.conditional-progress-only { display: none; }
.habit-form:has(#kind-progress:checked) .conditional-check-only { display: none; }
.habit-form:has(#kind-progress:checked) .conditional-progress-only { display: block; }

.progress-mode-toggle { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; margin: 20px 0; }

/* ---- barra de progreso ---- */
.progress-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 320px; margin: 0 auto; }
.progress-amount { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.progress-track { position: relative; width: 100%; height: 10px; border: 1px solid var(--fg); overflow: hidden; background: var(--bg); margin-top: 14px; }
.progress-fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--fg); transition: width .4s ease; }
.progress-caption { font-size: 12.5px; opacity: 0.6; margin-top: 8px; }
.progress-side { display: flex; flex-direction: column; align-items: center; width: 100%; }
.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 24px; }
.progress-btn { border: 1px solid var(--fg); background: var(--bg); color: var(--fg); padding: 14px; font-size: 14px; cursor: pointer; font-family: inherit; }
.progress-btn:hover { background: var(--fg); color: var(--bg); }
.progress-reset-btn { border: none; background: none; color: var(--fg); opacity: 0.55; font-size: 12.5px; cursor: pointer; margin-top: 16px; padding: 6px; text-decoration: underline; }
.progress-reset-btn:hover { opacity: 1; }

/* ---- dashboard ---- */
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.stat-card { border: 1px solid var(--fg); padding: 16px; margin-bottom: 14px; }
.dash-label { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.55; margin-bottom: 10px; }
.dash-stat { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.dash-stat-sub { font-size: 12.5px; opacity: 0.6; margin-top: 4px; }
.habit-fail-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; gap: 10px; }
.habit-fail-name { flex: 1; min-width: 0; }
.fail-bar-track { flex: 1.4; height: 5px; background: var(--line); overflow: hidden; }
.fail-bar-fill { height: 100%; background: var(--fg); }
.habit-fail-pct { font-size: 12px; opacity: 0.6; font-variant-numeric: tabular-nums; width: 34px; text-align: right; }
.chart-wrap { position: relative; height: 180px; }

/* ---- rachas de hábitos ---- */
.streak-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13px; gap: 10px; }
.streak-name { flex: 1; min-width: 0; }
.streak-stars { display: flex; gap: 2px; font-size: 13px; letter-spacing: 1px; }
.star-done { color: var(--fg); }
.star-missed { color: var(--muted); }
.star-skip { color: var(--muted); opacity: 0.4; }
.streak-badge { font-size: 11.5px; opacity: 0.6; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- reprogramar (día/dashboard) ---- */
.reschedule-wrap { position: relative; }
.item-resched-btn { cursor: pointer; opacity: 0.45; font-size: 15px; padding: 0 2px; display: inline-block; }
.item-resched-btn:hover { opacity: 1; }
.reschedule-toggle-checkbox { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.reschedule-form { display: none; position: absolute; right: 0; top: 26px; background: var(--bg); border: 1px solid var(--fg); padding: 10px; gap: 8px; z-index: 5; flex-direction: column; min-width: 200px; }
.reschedule-wrap:has(.reschedule-toggle-checkbox:checked) .reschedule-form { display: flex; }
.reschedule-form .field-input { padding: 8px; font-size: 13px; }
.reschedule-form .btn-secondary { padding: 8px 12px; font-size: 12px; width: 100%; }

/* ---- proyectos ---- */
.item-project-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.color-swatch-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.color-radio { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.color-swatch { display: inline-block; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.color-radio:checked + .color-swatch { border-color: var(--fg); }
.color-radio:focus-visible + .color-swatch { outline: 1px solid var(--fg); outline-offset: 2px; }

/* ---- configuración ---- */
.settings-section { border: 1px solid var(--line); margin-bottom: 14px; }
.settings-section-title { list-style: none; cursor: pointer; padding: 14px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.settings-section-title::-webkit-details-marker { display: none; }
.settings-section-title::before { content: '+ '; opacity: 0.5; }
.settings-section[open] .settings-section-title::before { content: '– '; }
.settings-section-body { padding: 4px 16px 20px; }
.settings-help { font-size: 12.5px; opacity: 0.6; margin: -4px 0 16px; line-height: 1.5; }
.settings-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.settings-success { font-size: 12.5px; border: 1px solid var(--fg); padding: 9px 12px; }

/* ---- barras de progreso: hábitos y tareas ---- */
.progress-habit-card { border: 1px solid var(--line); padding: 14px; margin-bottom: 14px; }
.progress-habit-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.progress-buttons-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.progress-button-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--fg); padding: 6px 10px; font-size: 12.5px; }
.progress-button-pct { opacity: 0.55; }
.chip-remove { border: none; background: none; color: var(--fg); opacity: 0.45; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.chip-remove:hover { opacity: 1; }
.progress-buttons-empty { font-size: 12.5px; opacity: 0.5; }
.progress-button-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.progress-button-add .field-input { flex: 1 1 120px; padding: 8px 10px; font-size: 13px; }
.task-progress-wrap { max-width: 320px; margin: 20px 0; }

/* ---- calendario: mes ---- */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 16px; }
.cal-month-label { font-size: 15px; font-weight: 700; min-width: 140px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { text-align: center; font-size: 10.5px; opacity: 0.5; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 6px; }
.cal-cell { aspect-ratio: 1; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-size: 13px; }
.cal-cell:hover { background: var(--line); }
.cal-cell.other-month { opacity: 0.3; }
.cal-cell.today { background: color-mix(in srgb, var(--fg) 14%, var(--bg)); }
.cal-cell.today:hover { background: color-mix(in srgb, var(--fg) 22%, var(--bg)); }
.cal-cell.today .cal-cell-day { font-weight: 700; }
.cal-cell-dot { font-size: 9.5px; opacity: 0.6; }

/* ---- calendario: día (estilo Google Calendar) ---- */
.cal-day-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cal-add-trigger { margin-left: auto; }
.cal-day-untimed { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--fg); min-height: 30px; }
.cal-untimed-chip { display: inline-flex; align-items: center; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); padding: 6px 10px; font-size: 12.5px; text-decoration: none; }
.cal-untimed-chip.done { opacity: 0.45; text-decoration: line-through; }
.cal-untimed-empty { font-size: 12.5px; opacity: 0.45; align-self: center; }
.cal-timeline { position: relative; border-top: 1px solid var(--line); }
.cal-hour-row { border-bottom: 1px solid var(--line); position: relative; }
.cal-hour-label { position: absolute; left: 0; top: -7px; width: 44px; font-size: 10px; opacity: 0.5; text-align: right; padding-right: 10px; background: var(--bg); }
.cal-time-bar {
  position: absolute; left: 54px; right: 4px; overflow: hidden;
  background: var(--fg); color: var(--bg); text-decoration: none;
  font-size: 11.5px; padding: 3px 8px; display: flex; align-items: center; gap: 4px;
}
.cal-time-bar.done { opacity: 0.5; text-decoration: line-through; }

/* ---- modal genérico (agregar actividad en calendario, editar tarea) ---- */
.modal-toggle-checkbox { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 50; align-items: center; justify-content: center; padding: 20px; }
.modal-wrap:has(.modal-toggle-checkbox:checked) .modal-overlay { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 0; cursor: pointer; }
.modal-box { position: relative; z-index: 1; background: var(--bg); border: 1px solid var(--fg); max-width: 380px; width: 100%; padding: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-close { cursor: pointer; font-size: 20px; line-height: 1; opacity: 0.55; }
.modal-close:hover { opacity: 1; }
.item-edit-btn { cursor: pointer; opacity: 0.45; font-size: 14px; padding: 0 2px; display: inline-block; }
.item-edit-btn:hover { opacity: 1; }

.cal-add-form { display: flex; flex-direction: column; gap: 10px; }
.cal-add-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-add-time-row .field-input { width: 100%; }

/* ---- pomodoro ---- */
.pomodoro-timer { border: 1px solid var(--fg); padding: 32px 20px; margin-bottom: 32px; display: flex; flex-direction: column; align-items: center; }
.pomodoro-phase { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pomodoro-clock { font-size: 56px; font-weight: 700; letter-spacing: -1px; margin: 10px 0 20px; font-variant-numeric: tabular-nums; }
.pomodoro-controls { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 44px; }
.pomodoro-controls-hint { font-size: 13px; opacity: 0.45; text-align: center; }
.pomodoro-goal-block { width: 100%; max-width: 280px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.pomodoro-goal-block .progress-track { width: 100%; }
.pomodoro-goal-block .progress-caption { text-align: center; }
.pomodoro-goal-trigger { margin-top: 10px; width: 100%; text-align: center; }
.pomodoro-goal-form { display: flex; align-items: center; gap: 10px; max-width: 320px; }
.pomodoro-goal-form .field-input { width: 90px; flex: none; }

/* ---- navegación de día (hoy / otros días) ---- */
.day-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 10px; font-size: 13px; }
.day-nav-arrow { border: 1px solid var(--fg); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; }
.day-nav-arrow:hover { background: var(--fg); color: var(--bg); }
.day-nav-label { min-width: 90px; text-align: center; opacity: 0.75; }
.day-nav-today { font-size: 11.5px; opacity: 0.6; text-decoration: underline; }

/* ---- responsive (mobile) ---- */
@media (max-width: 680px) {
  .sidebar { border-right: none; border-bottom: 1px solid var(--fg); min-width: 100%; padding: 16px 0; }
  .main-col { padding: 24px 18px 50px; }
}

/* ---- responsive (desktop) ---- */
@media (min-width: 700px) {
  .dash-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }

  .item-row:hover { background: var(--line); }
  .habit-row:hover { background: var(--line); }

  /* la barra lateral y el título quedan fijos; solo el contenido hace scroll */
  .app-shell { height: 100vh; }
  .sidebar { height: 100vh; overflow-y: auto; position: sticky; top: 0; }
  .main-col { height: 100vh; overflow-y: auto; padding-top: 0; }
  .content-header {
    position: sticky; top: 0; z-index: 10;
    isolation: isolate;
    padding-top: 30px;
  }
}
