button, input, select, textarea { font-family: inherit; }
input, select, textarea { color: var(--text); }
.session-pending > * { visibility: hidden; }
.task-edit-row { display: flex; align-items: center; min-width: 0; }
.task-edit-row > label { flex: 1; min-width: 0; }
.row-edit { min-width: 40px; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 22px; }
.check-indicator { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line-teal); border-radius: 6px; flex: 0 0 auto; }
.check-indicator .icon { width: 16px; height: 16px; opacity: 0; }
input:checked + .check-indicator { color: #0b2328; background: var(--primary); }
input:checked + .check-indicator .icon { opacity: 1; }
.row-name { overflow-wrap: anywhere; min-width: 0; }
.task-row > .icon { width: 16px; height: 16px; color: var(--gold); }
.habit-directory-card { border: 1px solid var(--line-teal); border-radius: 17px; overflow: hidden; background: var(--panel); }
.habit-directory-card .habit-directory-row { border: 0; border-radius: 0; background: transparent; }
.item-actions { display: flex; gap: 8px; padding: 4px 14px 9px; flex-wrap: wrap; }
.item-actions button { border: 0; background: transparent; color: var(--muted); font-size: 11px; min-height: 38px; padding: 3px 9px; border-radius: 8px; }
.item-actions button:hover { color: var(--primary); background: var(--primary-soft); }
.danger { color: #f1aaa6 !important; }
.date-picker, select, .add-field textarea { min-width: 0; max-width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid var(--line-teal); border-radius: 10px; background: #0c1b25; font: inherit; color: var(--text); }
.date-picker { width: 154px; font-size: 11px; }
.add-field select, .add-field textarea { width: 100%; }
.add-field textarea { min-height: 95px; resize: vertical; }
.repeat-days { display: flex; gap: 6px; flex-wrap: wrap; padding: 0; margin: 0; border: 0; }
.repeat-days legend { font-size: 12px; margin-bottom: 8px; color: var(--muted); }
.repeat-days label { display: flex; gap: 5px; align-items: center; padding: 5px 7px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; }
.repeat-days input { accent-color: var(--primary); width: 17px; height: 17px; }
.priority-field { display: flex; align-items: center; gap: 8px; font-size: 12px; min-height: 44px; }
.priority-field input { accent-color: var(--gold); }
.plan-period { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.plan-actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.goal-track { display: block; margin-top: 8px; }
.goal-card > summary > .goal-progress { display: flex; flex-direction: column; gap: 1px; margin: 0; }
.goal-card > summary > .goal-progress > strong { font-size: 14px; color: var(--primary); }
.goal-info small { font-size: 10px; color: var(--muted); }
.habit-directory-card .item-actions { border-top: 1px solid var(--line); }
#monthlyStats { margin-top: 16px; }
.window-footer { flex-wrap: wrap; gap: 6px; min-height: 34px; }
#saveStatus[data-error="true"] { color: var(--gold); }
.window-footer .list-toggle { margin: 0; padding: 0 9px; min-height: 30px; }
.report-window { height: min(800px, calc(100dvh - 60px)); }
.report-window .window-content { display: grid; gap: 15px; align-content: start; }
.report-habit { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.report-habit > span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.answer-options { display: flex; gap: 5px; flex: 0 0 auto; }
.answer-options button { min-height: 42px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; }
.answer-options button[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--line-teal); color: #a2ece3; }
.report-date { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.report-date > span { color: var(--muted); font-size: 11px; }
.report-buttons { display: flex; gap: 9px; flex-wrap: wrap; }
.export-preview { width: 100%; min-height: 300px; background: #0a1720; color: var(--text); padding: 15px; border: 1px solid var(--line-teal); border-radius: 15px; line-height: 1.9; font: inherit; resize: vertical; }
.report-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.report-layout .add-field { min-width: 0; }
.report-wide { grid-column: 1 / -1; }
@media (max-width:700px) {
  .report-window { height: calc(100dvh - 26px); }
  .report-layout { grid-template-columns: minmax(0,1fr); }
  .report-wide { grid-column: auto; }
  .report-habit { align-items: flex-start; flex-direction: column; gap: 9px; }
  .answer-options { width: 100%; }
  .answer-options button { flex: 1; min-height: 44px; }
  .item-actions button { min-height: 44px; }
  .date-picker { width: 135px; }
  .weekly-value { max-width: 145px; }
  .week-navigation > span { font-size: 11px; }
}
