2026-05-13 10:21:24 +03:00
|
|
|
* {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
--bg: #121212;
|
|
|
|
|
--surface: #1e1e1e;
|
|
|
|
|
--primary: #bb86fc;
|
|
|
|
|
--on-bg: #e0e0e0;
|
|
|
|
|
--on-surface: #ffffff;
|
|
|
|
|
--positive: #cf6679;
|
|
|
|
|
--negative: #03dac6;
|
|
|
|
|
--muted: #888;
|
|
|
|
|
--border: #333;
|
|
|
|
|
--radius: 8px;
|
|
|
|
|
--safe-area-top: env(safe-area-inset-top, 0px);
|
|
|
|
|
--safe-area-bottom: env(safe-area-inset-bottom, 0px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html, body {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#app {
|
|
|
|
|
max-width: 600px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
#app { max-width: 100%; padding: 0 24px; }
|
|
|
|
|
.summary-row { gap: 12px; padding: 14px 16px; }
|
|
|
|
|
.gps-map { height: 450px; }
|
|
|
|
|
.sd-map { height: 400px; }
|
|
|
|
|
.modal { max-width: 100%; }
|
|
|
|
|
.sd-row { gap: 16px; }
|
|
|
|
|
.sd-val { font-size: 22px; }
|
|
|
|
|
.products-screen, .settings-screen { max-width: 700px; margin: 0 auto; }
|
|
|
|
|
.log-section { max-width: 700px; margin: 0 auto; }
|
|
|
|
|
.day-header, .summary-row, .micro-strip { max-width: 700px; margin-left: auto; margin-right: auto; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Header / date navigation */
|
|
|
|
|
.day-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 12px 16px;
|
2026-05-14 14:17:57 +03:00
|
|
|
padding-top: calc(12px + var(--safe-area-top));
|
2026-05-13 10:21:24 +03:00
|
|
|
background: var(--surface);
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.day-header button {
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.day-header button:active {
|
|
|
|
|
background: rgba(187, 134, 252, 0.15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.day-header .date-text {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Weight display */
|
|
|
|
|
.weight-row {
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.weight-row span {
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Entry list */
|
|
|
|
|
.entries {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entry-item {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 50px 1fr 70px;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 10px 16px;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entry-item:active {
|
|
|
|
|
background: rgba(255, 255, 255, 0.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entry-time {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entry-desc {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entry-kcal {
|
|
|
|
|
text-align: right;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entry-kcal.intake {
|
|
|
|
|
color: var(--positive);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entry-kcal.expenditure {
|
|
|
|
|
color: var(--negative);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Balance summary */
|
|
|
|
|
.balance-bar {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-top: 1px solid var(--border);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.balance-bar .label {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.balance-bar .value {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.balance-bar .value.deficit {
|
|
|
|
|
color: var(--negative);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.balance-bar .value.surplus {
|
|
|
|
|
color: var(--positive);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* FAB (add button) */
|
|
|
|
|
.fab {
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 80px;
|
|
|
|
|
right: 24px;
|
|
|
|
|
width: 56px;
|
|
|
|
|
height: 56px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
color: #000;
|
|
|
|
|
border: none;
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.fab:active {
|
|
|
|
|
transform: scale(0.95);
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-14 14:17:57 +03:00
|
|
|
/* Bottom nav — see .nav-btn below for button styles */
|
2026-05-13 10:21:24 +03:00
|
|
|
|
|
|
|
|
/* Modal / add entry overlay */
|
|
|
|
|
.modal-overlay {
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
background: rgba(0, 0, 0, 0.7);
|
|
|
|
|
z-index: 100;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: flex-end;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-sheet {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 480px;
|
|
|
|
|
border-radius: 16px 16px 0 0;
|
|
|
|
|
padding: 20px 16px;
|
|
|
|
|
max-height: 85vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-sheet h2 {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Form elements */
|
|
|
|
|
.form-group {
|
2026-05-21 00:48:27 +03:00
|
|
|
position: relative;
|
2026-05-13 10:21:24 +03:00
|
|
|
margin-bottom: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-group label {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-group input,
|
|
|
|
|
.form-group select,
|
|
|
|
|
.form-group textarea {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-family: inherit;
|
2026-05-21 00:06:50 +03:00
|
|
|
color-scheme: dark;
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
appearance: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
select {
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
color-scheme: dark;
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-group input:focus,
|
|
|
|
|
.form-group select:focus,
|
|
|
|
|
.form-group textarea:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.type-chips {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.type-chip {
|
|
|
|
|
padding: 6px 14px;
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
background: none;
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.type-chip.selected {
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
color: #000;
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
flex: 1;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
border: none;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-primary {
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
color: #000;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-secondary {
|
|
|
|
|
background: var(--border);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Setup screen */
|
|
|
|
|
.setup-screen {
|
|
|
|
|
padding: 24px 16px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.setup-screen h1 {
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.setup-screen p {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Kcal preview */
|
|
|
|
|
.kcal-preview {
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
background: rgba(187, 134, 252, 0.1);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Empty state */
|
|
|
|
|
.empty-state {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
padding: 40px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Screen layout */
|
|
|
|
|
|
|
|
|
|
.bottom-nav {
|
|
|
|
|
order: 2;
|
2026-05-14 14:17:57 +03:00
|
|
|
display: flex;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-top: 1px solid var(--border);
|
2026-05-13 10:21:24 +03:00
|
|
|
position: sticky;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.screen-content {
|
|
|
|
|
order: 1;
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-10 15:26:05 +03:00
|
|
|
/* Gap-fill preview panel (track detail): floats above the bottom, dismissible. */
|
|
|
|
|
.gap-panel {
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 8px;
|
|
|
|
|
right: 8px;
|
|
|
|
|
bottom: calc(16px + var(--safe-area-bottom));
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
z-index: 100000;
|
|
|
|
|
box-shadow: 0 2px 14px rgba(0,0,0,0.55);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
.gap-panel-hint { color: var(--muted); font-size: 12px; }
|
|
|
|
|
.gap-panel-btns { display: flex; gap: 8px; }
|
|
|
|
|
.gap-panel-btns button { flex: 1; padding: 8px 12px; }
|
|
|
|
|
|
2026-05-13 10:21:24 +03:00
|
|
|
.nav-btn {
|
2026-05-14 14:17:57 +03:00
|
|
|
flex: 1;
|
2026-05-13 10:21:24 +03:00
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--muted);
|
2026-05-14 14:17:57 +03:00
|
|
|
font-size: 12px;
|
|
|
|
|
padding: 14px 4px;
|
|
|
|
|
padding-bottom: calc(14px + var(--safe-area-bottom));
|
2026-05-13 10:21:24 +03:00
|
|
|
cursor: pointer;
|
|
|
|
|
font-family: inherit;
|
2026-05-14 14:17:57 +03:00
|
|
|
text-align: center;
|
|
|
|
|
-webkit-tap-highlight-color: rgba(187,134,252,0.15);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-btn:active {
|
|
|
|
|
background: rgba(187,134,252,0.1);
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav-btn.active {
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
font-weight: 600;
|
2026-05-14 14:17:57 +03:00
|
|
|
border-top: 2px solid var(--primary);
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Day navigation */
|
|
|
|
|
.day-header h2 {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.day-nav {
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
padding: 4px 10px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Summary cards */
|
|
|
|
|
.summary-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-card {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 6px 4px;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-val {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-lbl {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-card.surplus .summary-val { color: #cf6679; }
|
|
|
|
|
.summary-card.deficit .summary-val { color: #03dac6; }
|
|
|
|
|
.summary-card.balanced .summary-val { color: var(--on-bg); }
|
|
|
|
|
|
|
|
|
|
/* Log sections */
|
|
|
|
|
.log-section {
|
|
|
|
|
padding: 0 0 4px;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 8px 14px 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section-header h3 {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.add-btn {
|
|
|
|
|
background: none;
|
2026-05-29 20:30:36 +03:00
|
|
|
border: 0.5px solid var(--border);
|
2026-05-29 18:21:49 +03:00
|
|
|
border-radius: 6px;
|
2026-05-13 10:21:24 +03:00
|
|
|
color: var(--primary);
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
cursor: pointer;
|
2026-05-29 18:21:49 +03:00
|
|
|
padding: 4px 10px;
|
|
|
|
|
min-width: 40px;
|
|
|
|
|
min-height: 36px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.log-list {
|
|
|
|
|
list-style: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.log-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 7px 14px;
|
|
|
|
|
border-top: 1px solid rgba(255,255,255,0.04);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.log-time {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
min-width: 38px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.log-desc {
|
|
|
|
|
flex: 1;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.log-desc small {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.log-kcal {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
min-width: 52px;
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.log-empty {
|
|
|
|
|
padding: 6px 14px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.del-btn {
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: #555;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 2px 4px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.del-btn:active { color: #cf6679; }
|
|
|
|
|
|
|
|
|
|
.food-edit-item { cursor: pointer; }
|
|
|
|
|
.food-edit-item:active { background: rgba(255,255,255,0.05); }
|
RDI table, nutrient % in food/recipes, daily deficiency strip
RDI (bmr.js):
- 27 nutrients per TR TS 022/2011 Russian daily intake standards
- Exposed as window.BMR.RDI
Supplement columns (db.js):
- 12 new columns: B5, B7(biotin), D, K, Cr, Mn, Mo, I, P, Si, V, lutein, lycopene, carotene
- getSupplementTotalsForDate expanded to sum all new columns
Food nutrient display (main.js):
- Removed asterisk (*) from daily kcal (guessed tint stays)
- getFoodForDate now JOINs all micronutrient columns from products
- foodNutrientLine() shows "C 12%, Ca 5%, Fe 8%..." under each food item
- calculateRecipeNutrition expanded to 19 micronutrients with cooking loss
Daily nutrients section (main.js):
- "Нутриенты" section on Today screen between Добавки and Сон
- calcDailyNutrients() sums food (on-the-fly from products) + supplements
- Sorted by % RDI ascending — most deficient first
- Color coded: red < 30%, orange 30-80%, green >= 80%
Recipe detail:
- "Микронутриенты (на порцию, % РСП)" chips section
2026-05-29 13:38:14 +03:00
|
|
|
.food-edit-item .log-desc { white-space: normal; }
|
2026-05-13 10:21:24 +03:00
|
|
|
|
|
|
|
|
/* Sleep info */
|
|
|
|
|
.sleep-info {
|
|
|
|
|
padding: 6px 14px 8px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sleep-line {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Modal */
|
|
|
|
|
.modal-overlay {
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
z-index: 500;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
height: 100%;
|
|
|
|
|
padding-top: var(--safe-area-top);
|
|
|
|
|
padding-bottom: var(--safe-area-bottom);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-back {
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
padding: 4px 8px 4px 0;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-body {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 16px 16px 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal h3 {
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-btns {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
border-top: 1px solid var(--border);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
Track detail de-jitter: fix overlay stacking, native dialogs, slow save
Fixes to the smoothing/routes UI reported on device:
- Blank detail after save/revert: showSessionDetail was called from inside the
open detail modal, stacking a second overlay; querySelector("#sd-map") then
hit the stale, already-initialized Leaflet map and threw, aborting the rest
of the render (map + speed chart). New reopenDetail() closes the current
detail (and its fullscreen-map child) and reopens fresh, like recalc/refine.
- Native confirm()/prompt() replaced with in-app appConfirm/appPrompt dialogs
(winStack + history integrated, hardware back cancels). Used for smoothed
save, route delete, route rename.
- Slow smoothed save: one UPDATE per point (4000+ IPC round-trips) replaced
with a chunked CASE update — 18 statements for 4366 points, params kept
under SQLite's 999 limit. Verified value-for-value on a copy DB.
- Closing the fullscreen map now also closes the smoothing panel (it is a
fixed element that otherwise lingered over the collapsed map).
- "≈" button active state now reflects panel-open only, not session.smoothed
(it looked permanently pressed after a save).
Docs: README + PROJECT_MAP updated for saved routes, de-jitter, accuracy_m,
routes table and new gps_points/gps_sessions columns. Version 0.1.393.
2026-07-31 23:51:20 +03:00
|
|
|
/* In-app confirm / prompt dialog — centered card over a dimmed backdrop,
|
|
|
|
|
above full-screen modals (z-index 500) and fullscreen maps (9999). */
|
|
|
|
|
.confirm-overlay {
|
|
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 0 24px;
|
|
|
|
|
z-index: 10000;
|
|
|
|
|
}
|
|
|
|
|
.confirm-box {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
padding: 20px 18px 16px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 340px;
|
|
|
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
|
|
|
}
|
|
|
|
|
.confirm-msg {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
}
|
|
|
|
|
.confirm-input {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
}
|
|
|
|
|
.confirm-btns {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
.confirm-btns button {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-13 10:21:24 +03:00
|
|
|
.btn-primary, .btn-secondary {
|
|
|
|
|
flex: 1;
|
|
|
|
|
padding: 12px;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
border: none;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-primary {
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
color: #000;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn-secondary {
|
|
|
|
|
background: var(--border);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.full-width { width: 100%; }
|
|
|
|
|
|
|
|
|
|
/* Products screen */
|
|
|
|
|
.products-screen, .stub-screen, .settings-screen {
|
|
|
|
|
padding: 16px;
|
2026-05-14 14:17:57 +03:00
|
|
|
padding-top: calc(16px + var(--safe-area-top));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-section {
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-section-title {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
padding: 8px 14px 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 12px 14px;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-item:last-child { border-bottom: none; }
|
|
|
|
|
.settings-item:active { background: rgba(255,255,255,0.03); }
|
|
|
|
|
|
|
|
|
|
.settings-item-title {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-item-desc {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-arrow {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-toggle {
|
|
|
|
|
width: 44px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
border: none;
|
|
|
|
|
background: var(--border);
|
|
|
|
|
position: relative;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
transition: background 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-toggle::after {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 2px;
|
|
|
|
|
left: 2px;
|
|
|
|
|
width: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: var(--on-bg);
|
|
|
|
|
transition: transform 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-toggle.on {
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.settings-toggle.on::after {
|
|
|
|
|
transform: translateX(20px);
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.products-screen h2, .stub-screen h2, .settings-screen h2 {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stub-note {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 10px 14px;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-input:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Product count & hint */
|
|
|
|
|
.prod-count {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
padding: 0 0 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-hint {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-style: italic;
|
|
|
|
|
padding: 20px 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 6px;
|
2026-05-21 00:48:27 +03:00
|
|
|
max-height: calc(100vh - 209px - var(--safe-area-top) - var(--safe-area-bottom));
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-list .prod-card {
|
|
|
|
|
flex-shrink: 0;
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Product card — collapsed */
|
|
|
|
|
.prod-card {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
transition: border-color 0.15s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-card.open {
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-card-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-card-header:active {
|
|
|
|
|
background: rgba(255,255,255,0.03);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-card-name {
|
|
|
|
|
flex: 1;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-brand {
|
|
|
|
|
display: inline;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-weight {
|
|
|
|
|
display: inline;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-card-kcal {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Product card — expanded */
|
|
|
|
|
.prod-details {
|
|
|
|
|
padding: 0 12px 12px;
|
|
|
|
|
border-top: 1px solid var(--border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-macros {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
padding: 10px 0 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.macro {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 6px 4px;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.macro-val {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.macro-lbl {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-composition {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
line-height: 1.4;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
max-height: 80px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prod-add-btn {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Modal product search */
|
2026-05-21 00:48:27 +03:00
|
|
|
.search-dropdown {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
max-height: 60vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.5);
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-dropdown .sd-item,
|
|
|
|
|
.search-dropdown .modal-prod-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
.search-dropdown .sd-item:active,
|
|
|
|
|
.search-dropdown .modal-prod-item:active {
|
|
|
|
|
background: rgba(255,255,255,0.05);
|
|
|
|
|
}
|
|
|
|
|
.sd-item-kcal {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-dropdown .prod-card {
|
|
|
|
|
border: none;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-13 10:21:24 +03:00
|
|
|
.modal-search-results {
|
2026-05-21 00:48:27 +03:00
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
max-height: 50vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.5);
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-prod-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 8px 10px;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-prod-item:active {
|
|
|
|
|
background: rgba(187, 134, 252, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-selected {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 8px 10px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
background: rgba(187, 134, 252, 0.12);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-selected:active {
|
|
|
|
|
background: rgba(187, 134, 252, 0.2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Micronutrient strip on Today */
|
|
|
|
|
.micro-strip {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.micro-strip::-webkit-scrollbar { display: none; }
|
|
|
|
|
|
|
|
|
|
.micro-chip {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.micro-low { background: rgba(207,102,121,0.2); color: #cf6679; }
|
|
|
|
|
.micro-mid { background: rgba(255,183,77,0.2); color: #ffb74d; }
|
|
|
|
|
.micro-ok { background: rgba(3,218,198,0.2); color: #03dac6; }
|
|
|
|
|
|
|
|
|
|
/* GPS screen */
|
|
|
|
|
.gps-screen {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-map {
|
|
|
|
|
height: 250px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #1a1a1a;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
|
Seed products DB + Settings screen + build fixes
GPS recording overhaul: inline screen (not modal), floating bar
on other screens, manual pause/resume, crash recovery via
localStorage + JSONL file, _processIncomingPoint extracted.
Settings: profile as button, GPS config, permissions, app info.
Products seed DB: 9299 products bundled, imported on first launch.
Build: version/hash in build.rs, signing, install command.
2026-05-15 14:36:22 +03:00
|
|
|
/* Floating recording bar */
|
|
|
|
|
.rec-floating-bar {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 8px 16px;
|
|
|
|
|
padding-top: calc(8px + var(--safe-area-top));
|
|
|
|
|
background: rgba(187, 134, 252, 0.15);
|
|
|
|
|
border-bottom: 1px solid var(--primary);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
order: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rec-bar-dot {
|
|
|
|
|
width: 8px;
|
|
|
|
|
height: 8px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: #f44336;
|
|
|
|
|
animation: pulse 1.5s infinite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes pulse {
|
|
|
|
|
0%, 100% { opacity: 1; }
|
|
|
|
|
50% { opacity: 0.3; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#rec-bar-text {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-14 14:17:57 +03:00
|
|
|
/* Recording screen */
|
|
|
|
|
.rec-screen {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-25 16:54:45 +03:00
|
|
|
.rec-panel {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
Activity types (squats/jumprope/stretch/swim), road map, tile import, fixes
Activity types:
- New types: squats, jump rope, stretching, swimming pool
- MET-based kcal auto-calculation (6.0/12.3/2.3/8.0)
- Dynamic modal fields per type (sets/reps, distance, minutes)
- Fix: state.latestWeight is object {weight_kg}, not number
Road map:
- road_points table with 2m dedup, activity type (bike/walk)
- Rust rebuild_roads + get_road_points (bypass SQL plugin 28K limit)
- Segment detection by 100m gap, bike=blue walk=brown
Tile system:
- CSP fix: a.tile.openstreetmap.org matches *.tile pattern
- pack_tiles.js tool, import from file/router, ureq body limit bypass
- Tile errors: done(null,tile) prevents crash cascade
Other fixes:
- Manual routes: skip gap segmentation (synthetic timestamps)
- Draw route: own CSS class, not affected by landscape rotation
- Orientation lock button (A/L), hysteresis 65/35 degrees
- GPS placeholder only when state=waiting_gps
- Food amount inputmode=text for formula support (4*30)
- showModal onMount callback
2026-06-26 21:04:21 +03:00
|
|
|
.draw-screen {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
.draw-map {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-height: 200px;
|
|
|
|
|
}
|
2026-06-25 16:54:45 +03:00
|
|
|
|
|
|
|
|
.rec-map-wrap {
|
2026-05-14 14:17:57 +03:00
|
|
|
flex: 1;
|
2026-06-25 16:54:45 +03:00
|
|
|
min-height: 200px;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.rec-map {
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
}
|
Health-diet.ru products (24K), GPS session safety, build.sh upload fix
Products:
- health-diet.ru scraper (Tampermonkey) + import script
- 11469 products with 37 nutrients, Dodo 258, McDonalds 619, KFC 361, Ashan 2000
- Rust import_seed_products: dynamic column list, auto-create missing columns
- Seed version bumped to 10
GPS session safety:
- Separate gps_points_{ts}.jsonl per session, deleted only after DB save
- Toast on DB errors, NaN guard in finishGpsSession
Other:
- build.sh: router/VPS upload only with -u flag
- Orientation buttons bottom-right, weather via Yandex Pogoda
2026-06-28 23:17:51 +03:00
|
|
|
.rec-map-btn {
|
Tile import, road map, orientation lock, CSP fix, tile error handling
- Tile import: pack_tiles.js (PNG→SQLite), Rust import_tiles + download_file
commands, JS importFromSqlite, UI in settings (file + router download)
- Road map: road_points table with 2m dedup, rebuild_roads + get_road_points
Rust commands (bypass Tauri SQL plugin 28K row limit), bike=blue walk=brown
- Orientation lock button (A/L) on recording map, hysteresis 65/35 degrees
- CSP fix: tile URL a.tile.openstreetmap.org (matches *.tile CSP pattern)
- Tile errors: done(null, tile) instead of Error to prevent crash cascade
- GPS placeholder: only show when state=waiting_gps (not on screen re-enter)
- ureq body size: use into_reader() to bypass 10MB limit for tile downloads
2026-06-26 16:41:14 +03:00
|
|
|
position: absolute;
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
background: rgba(30, 30, 30, 0.8);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
Health-diet.ru products (24K), GPS session safety, build.sh upload fix
Products:
- health-diet.ru scraper (Tampermonkey) + import script
- 11469 products with 37 nutrients, Dodo 258, McDonalds 619, KFC 361, Ashan 2000
- Rust import_seed_products: dynamic column list, auto-create missing columns
- Seed version bumped to 10
GPS session safety:
- Separate gps_points_{ts}.jsonl per session, deleted only after DB save
- Toast on DB errors, NaN guard in finishGpsSession
Other:
- build.sh: router/VPS upload only with -u flag
- Orientation buttons bottom-right, weather via Yandex Pogoda
2026-06-28 23:17:51 +03:00
|
|
|
.rec-map-btn.active {
|
2026-07-31 22:11:55 +03:00
|
|
|
background: rgba(255, 255, 255, 0.5);
|
|
|
|
|
color: #1a1a1a;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.6);
|
Tile import, road map, orientation lock, CSP fix, tile error handling
- Tile import: pack_tiles.js (PNG→SQLite), Rust import_tiles + download_file
commands, JS importFromSqlite, UI in settings (file + router download)
- Road map: road_points table with 2m dedup, rebuild_roads + get_road_points
Rust commands (bypass Tauri SQL plugin 28K row limit), bike=blue walk=brown
- Orientation lock button (A/L) on recording map, hysteresis 65/35 degrees
- CSP fix: tile URL a.tile.openstreetmap.org (matches *.tile CSP pattern)
- Tile errors: done(null, tile) instead of Error to prevent crash cascade
- GPS placeholder: only show when state=waiting_gps (not on screen re-enter)
- ureq body size: use into_reader() to bypass 10MB limit for tile downloads
2026-06-26 16:41:14 +03:00
|
|
|
}
|
2026-07-07 00:28:27 +03:00
|
|
|
.rec-rotate-btn { right: 8px; bottom: 48px; font-size: 18px; transition: transform 0.15s; }
|
|
|
|
|
.rec-freeze-btn { right: 8px; bottom: 86px; }
|
|
|
|
|
.rec-roads-toggle { right: 8px; bottom: 124px; }
|
|
|
|
|
.rec-mode-btn { right: 8px; bottom: 162px; font-size: 11px; }
|
2026-07-31 22:11:55 +03:00
|
|
|
.rec-route-toggle { right: 8px; bottom: 200px; }
|
2026-09-09 13:33:05 +03:00
|
|
|
.rec-dark-toggle { right: 8px; bottom: 238px; }
|
|
|
|
|
/* Dark map: invert ONLY the tile layer (overlays — track, route, roads, puck — keep
|
|
|
|
|
their colours). User-tuned filter on OSM standard tiles. Applies to every Leaflet map. */
|
|
|
|
|
body.dark-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(1.5); }
|
2026-09-09 13:46:22 +03:00
|
|
|
/* Darken the map backdrop too, else the light Leaflet container (#ddd) flashes bright
|
|
|
|
|
between/behind tiles while zooming or where a tile is missing. */
|
|
|
|
|
body.dark-map .leaflet-container { background: #1b1f24; }
|
POI overlay on maps: circular contrasting icons + category filter (offline)
Points of interest (cafe, shops, water, toilets, bank/ATM, bus, shelter,
viewpoint, ...) as circular contrasting badges (emoji in a white/dark circle,
readable on light and dark tiles) — not pins. A 📍 control toggles the layer
and opens a per-category filter (checkboxes, remembered). Markers are culled to
the visible bounds and shown from zoom 13 (cap 500/view), on the recording,
track-detail and roads maps.
Data is bundled and fully offline: frontend/data/pois.json ([{la,lo,c,n}], 358KB,
5662 POIs) fetched once from Overpass for ~100km around region (the whole
bbox returned in one query; adaptive subdivision was ready if it had truncated).
Verified functionally on device: 124 badges rendered in view at z16 over
region with correct bounds/category culling; the live visual could not be
screenshotted (the WebView surface is black under CDP). frontend/data + poi.js.
2026-09-09 16:51:58 +03:00
|
|
|
|
|
|
|
|
/* POI overlay: circular contrasting icon badges (readable on light & dark tiles). */
|
|
|
|
|
.poi-badge-wrap { background: none; border: none; }
|
|
|
|
|
.poi-badge {
|
|
|
|
|
width: 26px; height: 26px; line-height: 22px; text-align: center; font-size: 15px;
|
|
|
|
|
background: #fff; border: 2px solid #222; border-radius: 50%;
|
|
|
|
|
box-shadow: 0 1px 3px rgba(0,0,0,.5);
|
|
|
|
|
}
|
|
|
|
|
body.dark-map .poi-badge { background: #111; border-color: #eee; }
|
|
|
|
|
.poi-panel {
|
|
|
|
|
margin-top: 4px; max-height: 55vh; overflow: auto; min-width: 150px;
|
|
|
|
|
background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
|
|
|
|
|
padding: 6px 8px; box-shadow: 0 2px 8px rgba(0,0,0,.45);
|
|
|
|
|
}
|
|
|
|
|
.poi-row { display: block; font-size: 13px; color: var(--on-bg); padding: 2px 0; cursor: pointer; white-space: nowrap; }
|
|
|
|
|
.poi-head { font-weight: 600; border-bottom: 1px solid var(--border); margin-bottom: 4px; padding-bottom: 4px; }
|
|
|
|
|
.poi-btn.active { background: rgba(255,255,255,0.5); color: #1a1a1a; }
|
2026-09-09 17:33:11 +03:00
|
|
|
#re-brouter.active { background: #4caf50; color: #fff; }
|
2026-07-07 00:28:27 +03:00
|
|
|
/* Always-on compass needle: red half = North, grey = South. Rotates to point to real north.
|
|
|
|
|
Top-RIGHT (zoom controls are top-left), below the status-bar safe area. */
|
2026-08-24 23:06:26 +03:00
|
|
|
/* Position/direction puck (SVG divIcon) — no default leaflet-div-icon box. */
|
|
|
|
|
.rec-puck { background: none; border: none; pointer-events: none; }
|
|
|
|
|
.rec-puck svg { display: block; overflow: visible; }
|
|
|
|
|
|
2026-07-07 00:28:27 +03:00
|
|
|
.rec-compass {
|
|
|
|
|
position: absolute; top: calc(8px + var(--safe-area-top, 0px)); right: 8px; z-index: 1001;
|
|
|
|
|
width: 40px; height: 40px; border-radius: 50%;
|
|
|
|
|
background: rgba(20,20,20,0.8); border: 1px solid var(--border);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
/* Keep Leaflet zoom controls below the status bar on the recording map. */
|
|
|
|
|
.rec-map-wrap .leaflet-top { margin-top: var(--safe-area-top, 0px); }
|
2026-09-07 17:15:19 +03:00
|
|
|
/* Status-bar backdrop. The recording map is edge-to-edge (draws behind the system
|
|
|
|
|
status bar), so the bar had no backing and its icons were unreadable over the map
|
|
|
|
|
tiles. Paint a solid strip the height of the top inset — like the header on every
|
|
|
|
|
other screen — so the status bar stays visible. Controls already start below it. */
|
|
|
|
|
.rec-map-wrap::before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0; left: 0; right: 0;
|
|
|
|
|
height: var(--safe-area-top, 0px);
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
z-index: 1100;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
.rec-screen.rot-90 .rec-map-wrap::before,
|
|
|
|
|
.rec-screen.rot-270 .rec-map-wrap::before { display: none; }
|
2026-07-07 00:28:27 +03:00
|
|
|
.rec-compass-arrow { position: absolute; inset: 0; transition: transform 0.12s linear; }
|
|
|
|
|
.rec-compass-arrow::before {
|
|
|
|
|
content: "N"; position: absolute; top: 1px; left: 50%; transform: translateX(-50%);
|
|
|
|
|
color: #f44336; font: 700 11px sans-serif;
|
|
|
|
|
}
|
|
|
|
|
.rec-compass-arrow::after {
|
|
|
|
|
content: ""; position: absolute; left: 50%; top: 14px; bottom: 6px; width: 3px; margin-left: -1.5px;
|
|
|
|
|
background: linear-gradient(to bottom, #f44336 0 55%, #9e9e9e 55% 100%);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
2026-06-25 16:54:45 +03:00
|
|
|
.gps-placeholder {
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
z-index: 1000;
|
|
|
|
|
background: url('../img/gps-placeholder.png') center/cover;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
.gps-placeholder-text {
|
|
|
|
|
background: rgba(0,0,0,0.7);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
padding: 12px 24px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-07 00:28:27 +03:00
|
|
|
/* Manual screen rotation (rotate button). 90/270 = landscape (swap dims, panel to side).
|
|
|
|
|
180 is intentionally not used — it would flip the panel text upside down.
|
|
|
|
|
Map compensates via setBearing(heading - rotOffset). */
|
|
|
|
|
.rec-screen.rot-90,
|
|
|
|
|
.rec-screen.rot-270 {
|
2026-06-25 16:54:45 +03:00
|
|
|
position: fixed;
|
|
|
|
|
width: 100vh;
|
|
|
|
|
height: 100vw;
|
|
|
|
|
top: calc((100vh - 100vw) / 2);
|
|
|
|
|
left: calc((100vw - 100vh) / 2);
|
|
|
|
|
z-index: 9999;
|
2026-06-25 18:23:58 +03:00
|
|
|
flex-direction: row;
|
2026-06-25 16:54:45 +03:00
|
|
|
}
|
2026-07-07 00:28:27 +03:00
|
|
|
.rec-screen.rot-90 { transform: rotate(90deg); }
|
|
|
|
|
.rec-screen.rot-270 { transform: rotate(270deg); }
|
|
|
|
|
.rec-screen.rot-90 .rec-map-wrap,
|
|
|
|
|
.rec-screen.rot-270 .rec-map-wrap { min-height: 0; }
|
|
|
|
|
.rec-screen.rot-90 .rec-panel,
|
|
|
|
|
.rec-screen.rot-270 .rec-panel {
|
2026-06-25 18:23:58 +03:00
|
|
|
width: 200px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: space-evenly;
|
|
|
|
|
border-left: 1px solid var(--border);
|
|
|
|
|
}
|
2026-07-07 00:28:27 +03:00
|
|
|
.rec-screen.rot-90 .rec-stats,
|
|
|
|
|
.rec-screen.rot-270 .rec-stats {
|
2026-06-25 18:23:58 +03:00
|
|
|
flex-direction: column;
|
|
|
|
|
border-top: none;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
}
|
2026-07-07 00:28:27 +03:00
|
|
|
.rec-screen.rot-90 .rec-bottom .rec-status,
|
|
|
|
|
.rec-screen.rot-270 .rec-bottom .rec-status { display: none; }
|
|
|
|
|
.rec-screen.rot-90 .rec-hr-row,
|
|
|
|
|
.rec-screen.rot-270 .rec-hr-row { display: none; }
|
2026-05-14 14:17:57 +03:00
|
|
|
|
|
|
|
|
.rec-stats {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
padding: 12px 8px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-top: 1px solid var(--border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rec-stat {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rec-val {
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rec-lbl {
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
OTA updates, BLE HR, water tracking, GPS altitude filter, BMR fix, nutrient units
OTA: VPS nginx endpoint, build.sh -u upload flag, Kotlin check + browser download
BLE HR: FitPro protocol (PAIR/CCCD/HR_SWITCH/REALTIME/MEASURE), GATT queue,
ACK responses, auto-detect device type, auto-start with GPS, re-trigger 25s
Kotlin BleHrService, btleplug for desktop, file IPC for Android
Water: products.water_pct column, getDailyWaterMl(), progress bar on today screen
GPS altitude: outlier spike filter (>4m), stuck run interpolation (5+ identical),
configurable smoothing (altSmoothHalf setting), filtered raw for kcal calc
BMR: removed broken estimateRealBmr, added activity level dropdown (1.2-1.725),
fixed 7-day trend using dailyBase instead of raw bmr
Nutrients: ginseng/resveratrol/coq10 columns, fixed folate/selenium units (removed
mult:1000), iodine/chromium input in mcg, addSupplement now inserts all 41 columns
UI: parseAmount() for 4*30 expressions, recipe portion amount field, nutrient
reserves strip, GPS sessions in today view, pan on charts, showToast(),
HR norms in settings, HR on recording screen, HR chart in track details
Scrapers: 5ka Load JSON button, magnit_scraper.user.js (NUXT_DATA parsing)
2026-06-07 01:36:38 +03:00
|
|
|
.rec-hr-row { display:flex; align-items:baseline; justify-content:center; gap:8px; padding:6px 8px; background:var(--surface); border-top:1px solid var(--border); }
|
|
|
|
|
.rec-hr-val { font-size:42px; font-weight:700; }
|
|
|
|
|
.rec-hr-unit { font-size:14px; color:var(--muted); }
|
|
|
|
|
.rec-hr-extra { font-size:14px; color:var(--muted); margin-left:12px; }
|
|
|
|
|
.hr-zone-green { color:#81c784; }
|
|
|
|
|
.hr-zone-yellow { color:#ffb74d; }
|
|
|
|
|
.hr-zone-orange { color:#ff8a65; }
|
|
|
|
|
.hr-zone-red { color:#ef5350; }
|
|
|
|
|
|
2026-05-14 14:17:57 +03:00
|
|
|
.rec-bottom {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2026-09-07 17:10:16 +03:00
|
|
|
flex-wrap: wrap;
|
2026-05-14 14:17:57 +03:00
|
|
|
gap: 12px;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
padding-bottom: calc(8px + var(--safe-area-bottom));
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rec-bottom .rec-status {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.rec-bottom .gps-rec {
|
|
|
|
|
padding: 12px 32px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-13 17:53:19 +03:00
|
|
|
.gps-header {
|
2026-05-13 10:21:24 +03:00
|
|
|
padding: 10px 12px;
|
2026-05-14 14:17:57 +03:00
|
|
|
padding-top: calc(10px + var(--safe-area-top));
|
2026-05-13 10:21:24 +03:00
|
|
|
background: var(--surface);
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-btns {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-type-sel {
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
padding: 8px 10px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
color-scheme: dark;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-type-sel option {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-rec {
|
|
|
|
|
flex: 1;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-rec.recording {
|
|
|
|
|
background: #cf6679;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-menu-wrap {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-menu-btn {
|
|
|
|
|
background: var(--border);
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-menu {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
top: 100%;
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
z-index: 50;
|
|
|
|
|
min-width: 200px;
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-menu.hidden { display: none; }
|
|
|
|
|
|
|
|
|
|
.gps-menu-item {
|
|
|
|
|
padding: 10px 14px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-menu-item:active {
|
|
|
|
|
background: rgba(187, 134, 252, 0.1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Session detail */
|
|
|
|
|
.sd-section {
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-title {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-stat {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-val {
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-lbl {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-map {
|
|
|
|
|
height: 200px;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
cursor: pointer;
|
2026-05-16 10:49:55 +03:00
|
|
|
touch-action: pan-y pinch-zoom;
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-map-full {
|
|
|
|
|
position: fixed !important;
|
|
|
|
|
inset: 0 !important;
|
|
|
|
|
height: 100vh !important;
|
|
|
|
|
width: 100vw !important;
|
|
|
|
|
max-width: none !important;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-14 14:17:57 +03:00
|
|
|
.sd-map-full .leaflet-top {
|
|
|
|
|
top: var(--safe-area-top) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-map-full .leaflet-bottom {
|
|
|
|
|
bottom: var(--safe-area-bottom) !important;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-13 10:21:24 +03:00
|
|
|
.sd-map-fs-btn {
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 10000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sd-map-fs-btn {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
color: var(--on-bg);
|
2026-05-14 14:17:57 +03:00
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
2026-05-13 10:21:24 +03:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
cursor: pointer;
|
2026-05-14 14:17:57 +03:00
|
|
|
font-size: 18px;
|
|
|
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
|
2026-05-13 10:21:24 +03:00
|
|
|
}
|
2026-07-31 22:11:55 +03:00
|
|
|
.sd-map-fs-btn.active {
|
|
|
|
|
background: rgba(255, 255, 255, 0.5);
|
|
|
|
|
color: #1a1a1a;
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.6);
|
|
|
|
|
}
|
|
|
|
|
.sd-smooth-panel {
|
|
|
|
|
position: fixed;
|
|
|
|
|
z-index: 10001;
|
|
|
|
|
left: 8px;
|
|
|
|
|
bottom: 8px;
|
|
|
|
|
width: 210px;
|
|
|
|
|
background: rgba(20, 20, 20, 0.93);
|
|
|
|
|
color: #eee;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
padding: 8px 10px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
|
|
|
|
}
|
|
|
|
|
.sd-smooth-panel label { display: block; margin: 6px 0 2px; }
|
|
|
|
|
.sd-smooth-panel input[type=range] { width: 100%; }
|
|
|
|
|
.sd-smooth-panel .sm-stat { margin: 4px 0; color: #9be89b; }
|
2026-05-13 10:21:24 +03:00
|
|
|
|
2026-05-13 17:53:19 +03:00
|
|
|
.zoom-display {
|
|
|
|
|
background: rgba(0,0,0,0.6);
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-16 21:21:13 +03:00
|
|
|
.chart-wrap {
|
|
|
|
|
position: relative;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
height: 200px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
Seed DB: +5ka (3103) +ION (1078) with micronutrients, GPS fixes, UI improvements
Products:
- 5ka scraper: recursive category BFS, 3103 products imported
- ION scraper (web.ion.ru): fetch-based, 1111 products with full vitamins/minerals
- Seed DB now 13480 products (magnit 8627, 5ka 3103, ion 1078, kdv 672)
- 13 micronutrient columns added: Na, K, Ca, Mg, P, Fe, vit A/B1/B2/B3/C/E, carotene
GPS fixes:
- computeStats sorts points by seq/ts before calculating (fixes wrong elevation/kcal)
- Trail restore on recording screen sorts points
- Old tracks with NULL seq repaired via migration (db.js)
- Activity type saved to localStorage, restored on GPS screen
UI:
- Track points invisible but tappable (popup with time/alt/speed)
- Charts: pointer-events:none on canvas when minimized (page scrolls)
- Navigation history stack (20 entries), back gesture doesn't close app
- Session list sort: added id DESC tiebreaker
2026-05-19 23:53:49 +03:00
|
|
|
/* Block touch on canvas when chart is minimized — lets page scroll normally.
|
|
|
|
|
Clicks on the .chart-wrap div still work (pointer-events: auto on parent). */
|
|
|
|
|
.chart-wrap:not(.chart-full) canvas {
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-16 21:21:13 +03:00
|
|
|
.chart-full {
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: var(--safe-area-top);
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
width: 100vw;
|
|
|
|
|
height: calc(100vh - var(--safe-area-top) - var(--safe-area-bottom));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.chart-close-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: calc(12px + var(--safe-area-top));
|
|
|
|
|
right: calc(12px + var(--safe-area-right, 0px));
|
|
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
z-index: 10000;
|
|
|
|
|
}
|
|
|
|
|
|
Seed DB: +5ka (3103) +ION (1078) with micronutrients, GPS fixes, UI improvements
Products:
- 5ka scraper: recursive category BFS, 3103 products imported
- ION scraper (web.ion.ru): fetch-based, 1111 products with full vitamins/minerals
- Seed DB now 13480 products (magnit 8627, 5ka 3103, ion 1078, kdv 672)
- 13 micronutrient columns added: Na, K, Ca, Mg, P, Fe, vit A/B1/B2/B3/C/E, carotene
GPS fixes:
- computeStats sorts points by seq/ts before calculating (fixes wrong elevation/kcal)
- Trail restore on recording screen sorts points
- Old tracks with NULL seq repaired via migration (db.js)
- Activity type saved to localStorage, restored on GPS screen
UI:
- Track points invisible but tappable (popup with time/alt/speed)
- Charts: pointer-events:none on canvas when minimized (page scrolls)
- Navigation history stack (20 entries), back gesture doesn't close app
- Session list sort: added id DESC tiebreaker
2026-05-19 23:53:49 +03:00
|
|
|
.point-popup .leaflet-popup-content-wrapper {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
}
|
|
|
|
|
.point-popup .leaflet-popup-tip {
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-13 10:21:24 +03:00
|
|
|
.gps-download-status {
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
padding: 6px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-sessions {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-sessions h3 {
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-session-item {
|
|
|
|
|
padding: 10px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-session-item:active {
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-session-head {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-session-type {
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gps-session-stats {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.supp-summary {
|
|
|
|
|
padding: 0 12px 8px;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Supplement pick list (in modal) */
|
|
|
|
|
.supp-pick-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
max-height: 200px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.supp-pick-item {
|
|
|
|
|
padding: 8px 10px;
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.supp-pick-item.selected {
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
background: rgba(187, 134, 252, 0.12);
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.supp-pick-item:active {
|
|
|
|
|
background: rgba(187, 134, 252, 0.08);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.supp-pick-divider {
|
|
|
|
|
padding: 6px 10px 2px;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Micronutrient grid in supplement edit modal */
|
|
|
|
|
.micro-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
|
gap: 8px 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.micro-field label {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.micro-field input {
|
|
|
|
|
padding: 6px 8px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
RDI table, nutrient % in food/recipes, daily deficiency strip
RDI (bmr.js):
- 27 nutrients per TR TS 022/2011 Russian daily intake standards
- Exposed as window.BMR.RDI
Supplement columns (db.js):
- 12 new columns: B5, B7(biotin), D, K, Cr, Mn, Mo, I, P, Si, V, lutein, lycopene, carotene
- getSupplementTotalsForDate expanded to sum all new columns
Food nutrient display (main.js):
- Removed asterisk (*) from daily kcal (guessed tint stays)
- getFoodForDate now JOINs all micronutrient columns from products
- foodNutrientLine() shows "C 12%, Ca 5%, Fe 8%..." under each food item
- calculateRecipeNutrition expanded to 19 micronutrients with cooking loss
Daily nutrients section (main.js):
- "Нутриенты" section on Today screen between Добавки and Сон
- calcDailyNutrients() sums food (on-the-fly from products) + supplements
- Sorted by % RDI ascending — most deficient first
- Color coded: red < 30%, orange 30-80%, green >= 80%
Recipe detail:
- "Микронутриенты (на порцию, % РСП)" chips section
2026-05-29 13:38:14 +03:00
|
|
|
/* Per-food-item nutrient line */
|
2026-05-30 15:59:50 +03:00
|
|
|
.src-badge {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
padding: 1px 5px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
.src-magnit { background: rgba(229, 57, 53, 0.25); color: #ef5350; }
|
|
|
|
|
.src-5ka { background: rgba(129, 199, 132, 0.2); color: #a5d6a7; }
|
|
|
|
|
.src-kdv { background: rgba(255, 167, 38, 0.25); color: #ffb74d; }
|
|
|
|
|
.src-ion { background: rgba(158, 158, 158, 0.2); color: #9e9e9e; }
|
|
|
|
|
.src-manual { background: rgba(255, 235, 59, 0.2); color: #fff176; }
|
2026-08-27 04:31:58 +03:00
|
|
|
.src-chzn { background: rgba(66, 165, 245, 0.22); color: #64b5f6; }
|
2026-05-30 15:59:50 +03:00
|
|
|
|
RDI table, nutrient % in food/recipes, daily deficiency strip
RDI (bmr.js):
- 27 nutrients per TR TS 022/2011 Russian daily intake standards
- Exposed as window.BMR.RDI
Supplement columns (db.js):
- 12 new columns: B5, B7(biotin), D, K, Cr, Mn, Mo, I, P, Si, V, lutein, lycopene, carotene
- getSupplementTotalsForDate expanded to sum all new columns
Food nutrient display (main.js):
- Removed asterisk (*) from daily kcal (guessed tint stays)
- getFoodForDate now JOINs all micronutrient columns from products
- foodNutrientLine() shows "C 12%, Ca 5%, Fe 8%..." under each food item
- calculateRecipeNutrition expanded to 19 micronutrients with cooking loss
Daily nutrients section (main.js):
- "Нутриенты" section on Today screen between Добавки and Сон
- calcDailyNutrients() sums food (on-the-fly from products) + supplements
- Sorted by % RDI ascending — most deficient first
- Color coded: red < 30%, orange 30-80%, green >= 80%
Recipe detail:
- "Микронутриенты (на порцию, % РСП)" chips section
2026-05-29 13:38:14 +03:00
|
|
|
.food-nutrients {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
white-space: normal;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Daily nutrient totals strip — chips sorted by deficiency */
|
|
|
|
|
.nutrient-strip {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
padding: 8px 14px;
|
Manual KBJU input, omega-3/6/9, product micronutrients, nutrient strip expand
1. Manual food entry: added B/Zh/U fields. Creates custom product in DB
with user-provided KBJU, then logs it. Fixed addProduct lastInsertId.
2. Omega 3-6-9: columns in supplements, in supplement totals query,
in MICRO_FIELDS form (34 fields total now).
3. Product card micronutrients: searchProducts now fetches all micro
columns. renderProdDetails shows nutrient chips (sorted by deficiency)
when product is expanded.
4. Supplement form: added B5, B7, chromium, manganese, molybdenum,
iodine, phosphorus, omega-3/6/9, silicon, vanadium, lutein, lycopene.
5. Nutrient strip: tap to expand/collapse. Collapsed = 1 row (36px).
Tap = toggle full view showing all nutrients.
6. Seed DB v6: added "Тесто для чебуреков 500г" (261 kcal, 7.1/3.8/48.2).
2026-05-29 14:47:09 +03:00
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2026-05-29 14:55:59 +03:00
|
|
|
/* Collapsed: single scrollable row */
|
Manual KBJU input, omega-3/6/9, product micronutrients, nutrient strip expand
1. Manual food entry: added B/Zh/U fields. Creates custom product in DB
with user-provided KBJU, then logs it. Fixed addProduct lastInsertId.
2. Omega 3-6-9: columns in supplements, in supplement totals query,
in MICRO_FIELDS form (34 fields total now).
3. Product card micronutrients: searchProducts now fetches all micro
columns. renderProdDetails shows nutrient chips (sorted by deficiency)
when product is expanded.
4. Supplement form: added B5, B7, chromium, manganese, molybdenum,
iodine, phosphorus, omega-3/6/9, silicon, vanadium, lutein, lycopene.
5. Nutrient strip: tap to expand/collapse. Collapsed = 1 row (36px).
Tap = toggle full view showing all nutrients.
6. Seed DB v6: added "Тесто для чебуреков 500г" (261 kcal, 7.1/3.8/48.2).
2026-05-29 14:47:09 +03:00
|
|
|
.nutrient-strip.nutrient-collapsed {
|
2026-05-29 14:55:59 +03:00
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
scrollbar-width: none;
|
RDI table, nutrient % in food/recipes, daily deficiency strip
RDI (bmr.js):
- 27 nutrients per TR TS 022/2011 Russian daily intake standards
- Exposed as window.BMR.RDI
Supplement columns (db.js):
- 12 new columns: B5, B7(biotin), D, K, Cr, Mn, Mo, I, P, Si, V, lutein, lycopene, carotene
- getSupplementTotalsForDate expanded to sum all new columns
Food nutrient display (main.js):
- Removed asterisk (*) from daily kcal (guessed tint stays)
- getFoodForDate now JOINs all micronutrient columns from products
- foodNutrientLine() shows "C 12%, Ca 5%, Fe 8%..." under each food item
- calculateRecipeNutrition expanded to 19 micronutrients with cooking loss
Daily nutrients section (main.js):
- "Нутриенты" section on Today screen between Добавки and Сон
- calcDailyNutrients() sums food (on-the-fly from products) + supplements
- Sorted by % RDI ascending — most deficient first
- Color coded: red < 30%, orange 30-80%, green >= 80%
Recipe detail:
- "Микронутриенты (на порцию, % РСП)" chips section
2026-05-29 13:38:14 +03:00
|
|
|
}
|
2026-05-29 14:55:59 +03:00
|
|
|
.nutrient-strip.nutrient-collapsed::-webkit-scrollbar { display: none; }
|
RDI table, nutrient % in food/recipes, daily deficiency strip
RDI (bmr.js):
- 27 nutrients per TR TS 022/2011 Russian daily intake standards
- Exposed as window.BMR.RDI
Supplement columns (db.js):
- 12 new columns: B5, B7(biotin), D, K, Cr, Mn, Mo, I, P, Si, V, lutein, lycopene, carotene
- getSupplementTotalsForDate expanded to sum all new columns
Food nutrient display (main.js):
- Removed asterisk (*) from daily kcal (guessed tint stays)
- getFoodForDate now JOINs all micronutrient columns from products
- foodNutrientLine() shows "C 12%, Ca 5%, Fe 8%..." under each food item
- calculateRecipeNutrition expanded to 19 micronutrients with cooking loss
Daily nutrients section (main.js):
- "Нутриенты" section on Today screen between Добавки and Сон
- calcDailyNutrients() sums food (on-the-fly from products) + supplements
- Sorted by % RDI ascending — most deficient first
- Color coded: red < 30%, orange 30-80%, green >= 80%
Recipe detail:
- "Микронутриенты (на порцию, % РСП)" chips section
2026-05-29 13:38:14 +03:00
|
|
|
.nut-item {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
padding: 3px 8px;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
}
|
|
|
|
|
.nut-low { color: #f44336; border-color: #f44336; }
|
|
|
|
|
.nut-mid { color: #ffb74d; border-color: #ffb74d; }
|
|
|
|
|
.nut-ok { color: #81c784; border-color: #81c784; }
|
|
|
|
|
|
2026-05-21 00:06:50 +03:00
|
|
|
/* Recipe components */
|
|
|
|
|
/* Guessed nutrients indicator — slight tint on food items with estimated micronutrients */
|
|
|
|
|
.log-item.guessed {
|
|
|
|
|
background: rgba(187, 134, 252, 0.2);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.seed-progress {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
height: 60vh;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
padding: 0 32px;
|
|
|
|
|
}
|
|
|
|
|
.seed-label {
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
.seed-bar {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 300px;
|
|
|
|
|
height: 8px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.seed-bar-fill {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 30%;
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
animation: seed-slide 1.2s ease-in-out infinite;
|
|
|
|
|
}
|
|
|
|
|
@keyframes seed-slide {
|
|
|
|
|
0% { margin-left: 0%; }
|
|
|
|
|
50% { margin-left: 70%; }
|
|
|
|
|
100% { margin-left: 0%; }
|
|
|
|
|
}
|
|
|
|
|
/* When progress is known, switch to determinate mode */
|
|
|
|
|
.seed-bar-fill.determinate {
|
|
|
|
|
animation: none;
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
transition: width 0.3s;
|
|
|
|
|
}
|
OTA updates, BLE HR, water tracking, GPS altitude filter, BMR fix, nutrient units
OTA: VPS nginx endpoint, build.sh -u upload flag, Kotlin check + browser download
BLE HR: FitPro protocol (PAIR/CCCD/HR_SWITCH/REALTIME/MEASURE), GATT queue,
ACK responses, auto-detect device type, auto-start with GPS, re-trigger 25s
Kotlin BleHrService, btleplug for desktop, file IPC for Android
Water: products.water_pct column, getDailyWaterMl(), progress bar on today screen
GPS altitude: outlier spike filter (>4m), stuck run interpolation (5+ identical),
configurable smoothing (altSmoothHalf setting), filtered raw for kcal calc
BMR: removed broken estimateRealBmr, added activity level dropdown (1.2-1.725),
fixed 7-day trend using dailyBase instead of raw bmr
Nutrients: ginseng/resveratrol/coq10 columns, fixed folate/selenium units (removed
mult:1000), iodine/chromium input in mcg, addSupplement now inserts all 41 columns
UI: parseAmount() for 4*30 expressions, recipe portion amount field, nutrient
reserves strip, GPS sessions in today view, pan on charts, showToast(),
HR norms in settings, HR on recording screen, HR chart in track details
Scrapers: 5ka Load JSON button, magnit_scraper.user.js (NUXT_DATA parsing)
2026-06-07 01:36:38 +03:00
|
|
|
.drink-bar-wrap { padding: 6px 14px; display: flex; align-items: center; gap: 8px; }
|
|
|
|
|
.drink-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
|
|
|
|
|
.drink-bar { flex: 1; height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; }
|
|
|
|
|
.drink-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
|
|
|
|
|
.drink-bar-fill.low { background: #cf6679; }
|
|
|
|
|
.drink-bar-fill.mid { background: #ffb74d; }
|
|
|
|
|
.drink-bar-fill.ok { background: #81c784; }
|
|
|
|
|
|
2026-05-21 00:06:50 +03:00
|
|
|
.seed-count {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sub-tabs {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 0;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
}
|
|
|
|
|
.sub-tab {
|
|
|
|
|
flex: 1;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
|
}
|
|
|
|
|
.sub-tab.active {
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
border-bottom-color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.recipe-macros-hint {
|
|
|
|
|
padding: 2px 12px 8px;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.recipe-ing-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
border-bottom: 1px solid rgba(255,255,255,0.04);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.recipe-ing-info {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.recipe-ing-name {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.recipe-ing-weight {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.recipe-ing-cm {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.recipe-totals {
|
|
|
|
|
padding: 10px 0;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--primary);
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
Alternative units, analytics charts, elevation smoothing, batch GPS update
Alternative food units (Phase 3a):
- serving_units table: шт, ст.л., ч.л., стакан, мл
- product_units junction: eggs linked to шт (60g)
- Unit selector chips in food modal after product selection
- Display "2 шт" instead of "120г" in food log when unit is set
- amount_g stays canonical, unit info is display metadata
Analytics (Phase 4):
- Stats section on Today screen with period selector (30d/90d)
- Weight trend chart (line, purple)
- Macros donut (protein/fat/carbs with kcal center text)
- Kcal balance bar chart (intake green vs expenditure red, includes BMR)
- Chart fullscreen + zoom support (reuses GPS chart patterns)
GPS improvements:
- Elevation smoothing: 5-point moving average + 1m dead zone
- Fixes inflated elevation gain (440m → ~70m for a real 70m route)
- Batch polyline update: poll loop suppresses per-point addLatLng,
calls onBatchUpdate to rebuild polyline from sorted points at once
- Eliminates visual jumps when app returns from background
Boot screen: removed verbose migration/GPS status labels,
shows "Загрузка..." only, updates text only during actual seed import
2026-05-23 17:12:19 +03:00
|
|
|
/* Unit chips (alternative food units) */
|
|
|
|
|
.unit-chips {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
overflow-x: auto;
|
|
|
|
|
padding: 4px 0;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
.unit-chip {
|
|
|
|
|
padding: 4px 12px;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
}
|
|
|
|
|
.unit-chip.selected {
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
color: #000;
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Stats charts */
|
|
|
|
|
.stats-chart-block {
|
|
|
|
|
margin-bottom: 16px;
|
2026-06-01 13:51:47 +03:00
|
|
|
padding: 0 14px;
|
Alternative units, analytics charts, elevation smoothing, batch GPS update
Alternative food units (Phase 3a):
- serving_units table: шт, ст.л., ч.л., стакан, мл
- product_units junction: eggs linked to шт (60g)
- Unit selector chips in food modal after product selection
- Display "2 шт" instead of "120г" in food log when unit is set
- amount_g stays canonical, unit info is display metadata
Analytics (Phase 4):
- Stats section on Today screen with period selector (30d/90d)
- Weight trend chart (line, purple)
- Macros donut (protein/fat/carbs with kcal center text)
- Kcal balance bar chart (intake green vs expenditure red, includes BMR)
- Chart fullscreen + zoom support (reuses GPS chart patterns)
GPS improvements:
- Elevation smoothing: 5-point moving average + 1m dead zone
- Fixes inflated elevation gain (440m → ~70m for a real 70m route)
- Batch polyline update: poll loop suppresses per-point addLatLng,
calls onBatchUpdate to rebuild polyline from sorted points at once
- Eliminates visual jumps when app returns from background
Boot screen: removed verbose migration/GPS status labels,
shows "Загрузка..." only, updates text only during actual seed import
2026-05-23 17:12:19 +03:00
|
|
|
}
|
|
|
|
|
.stats-period {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-13 10:21:24 +03:00
|
|
|
/* Loading */
|
|
|
|
|
.loading {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 40px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
Tire pressure Crr, lap comparison, auto climb segments, bike maintenance
Idea 1 — Tire pressure:
- tire_pressure_bar field in bikes table and bike modal
- Crr corrected by sqrt(3.0 / pressure), reference 3.0 bar
- Passed through all opts chains (recording, recovery, recalculate)
Idea 3 — Lap comparison:
- "Сравнить с..." button in session detail
- Shows sessions with same type and similar distance (+-30%)
- Overlay: current track green/red (faster/slower), comparison cyan dashed
- Nearest-neighbor speed matching between tracks
- Summary: time and speed difference
Idea 4 — Auto climb segments:
- computeStats returns segments[] with type (climb/flat/descent)
- Gradient > 2% = climb, < -2% = descent, else flat
- Min 50m per segment, adjacent same-type merged
- Stats per segment: distance, elevation, gradient, duration, speed
- UI section in session detail with colored icons
Idea 5 — Bike maintenance log:
- bike_maintenance table (date, description, mileage, next_service_km)
- Total mileage from GPS sessions per bike
- Overdue indicator when current mileage >= next_service_km
- Add/delete entries in bike modal
- CRUD functions on window.DB
2026-05-27 16:45:33 +03:00
|
|
|
|
|
|
|
|
/* Climb segments (session detail) */
|
|
|
|
|
.climb-segments {
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.segment-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
.segment-item:last-child {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
.segment-item.climb .seg-icon {
|
|
|
|
|
color: #f44336;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
.segment-item.descent .seg-icon {
|
|
|
|
|
color: #4caf50;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
.segment-item.flat .seg-icon {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.seg-icon {
|
|
|
|
|
width: 20px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
.seg-info {
|
|
|
|
|
flex: 1;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
.seg-stats {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Bike maintenance list */
|
|
|
|
|
.maint-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
.maint-item:last-child {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
.maint-overdue {
|
|
|
|
|
background: rgba(244, 67, 54, 0.08);
|
|
|
|
|
}
|
|
|
|
|
.maint-info {
|
|
|
|
|
flex: 1;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
.maint-date {
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
min-width: 40px;
|
|
|
|
|
}
|
|
|
|
|
.maint-desc {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
.maint-km {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.maint-warn {
|
|
|
|
|
color: #f44336;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
.maint-del {
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 4px 8px;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
}
|
|
|
|
|
.maint-del:active {
|
|
|
|
|
color: #f44336;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Compare session list */
|
|
|
|
|
.compare-list {
|
|
|
|
|
max-height: 60vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
.compare-item {
|
|
|
|
|
padding: 12px;
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.compare-item:active {
|
|
|
|
|
border-color: var(--primary);
|
|
|
|
|
background: rgba(187, 134, 252, 0.05);
|
|
|
|
|
}
|
2026-05-27 17:45:50 +03:00
|
|
|
|
|
|
|
|
/* 7-day balance trend (IDEA 6) */
|
|
|
|
|
.balance-trend {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
background: var(--surface);
|
|
|
|
|
border-bottom: 1px solid var(--border);
|
|
|
|
|
min-height: 0;
|
|
|
|
|
}
|
|
|
|
|
.balance-trend:empty {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.balance-trend-label {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
}
|
|
|
|
|
.balance-trend-val {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
.trend-deficit {
|
|
|
|
|
color: #03dac6;
|
|
|
|
|
}
|
|
|
|
|
.trend-surplus {
|
|
|
|
|
color: #cf6679;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Goal markers (IDEA 2) */
|
|
|
|
|
.goal-markers-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
max-height: 50vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
.goal-marker-card {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
background: var(--bg);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
}
|
|
|
|
|
.goal-marker-info {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
.goal-marker-name {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
}
|
|
|
|
|
.goal-marker-coords {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
.goal-marker-notes {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Goal marker map (add marker modal) */
|
|
|
|
|
.gm-map-wrap {
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
}
|
|
|
|
|
.gm-map {
|
|
|
|
|
height: 250px;
|
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.gm-coords {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Goal markers in session detail */
|
|
|
|
|
.goal-marker-item {
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
border-bottom: 1px solid rgba(255,255,255,0.04);
|
|
|
|
|
}
|
|
|
|
|
.goal-marker-item:last-child {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
}
|
|
|
|
|
.goal-marker-dist {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
.goal-bar-wrap {
|
|
|
|
|
height: 6px;
|
|
|
|
|
background: var(--border);
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.goal-bar-fill {
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
transition: width 0.3s;
|
|
|
|
|
}
|
|
|
|
|
.goal-progress {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
.goal-better {
|
|
|
|
|
color: #03dac6;
|
|
|
|
|
}
|
|
|
|
|
.goal-worse {
|
|
|
|
|
color: #cf6679;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Food cost of workout (IDEA 8) */
|
|
|
|
|
.food-cost {
|
|
|
|
|
padding: 4px 0;
|
|
|
|
|
}
|
|
|
|
|
.food-cost-total {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
color: var(--on-surface);
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
.food-cost-items {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
}
|
|
|
|
|
.food-cost-line {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: var(--on-bg);
|
|
|
|
|
padding: 2px 0;
|
|
|
|
|
}
|
|
|
|
|
.food-cost-or {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: var(--muted);
|
|
|
|
|
font-style: italic;
|
|
|
|
|
padding: 0 0 0 8px;
|
|
|
|
|
}
|