:root {
--bg: #fafafa;
--surface: #ffffff;
--surface-muted: #f4f4f5;
--border: #e4e4e7;
--text: #09090b;
--text-secondary: #52525b;
--text-muted: #71717a;
--accent: #18181b;
--accent-fg: #fafafa;
--check-fg: #ffffff;
--rose: #b91c1c;
--rose-soft: #fef2f2;
--rose-border: #fecaca;
--amber: #a16207;
--amber-soft: #fefce8;
--amber-border: #fef08a;
--sage: #15803d;
--sage-soft: #f0fdf4;
--sage-border: #bbf7d0;
--radius: 12px;
--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
[data-theme="dark"] {
--bg: #000000;
--surface: #111113;
--surface-muted: #18181b;
--border: #27272a;
--text: #ededef;
--text-secondary: #a1a1aa;
--text-muted: #8a8a93;
--accent: #e4e4e7;
--accent-fg: #09090b;
--check-fg: #09090b;
--rose: #e58a8a;
--rose-soft: rgba(229, 138, 138, 0.10);
--rose-border: rgba(229, 138, 138, 0.25);
--amber: #d8b06a;
--amber-soft: rgba(216, 176, 106, 0.10);
--amber-border: rgba(216, 176, 106, 0.25);
--sage: #7bc89c;
--sage-soft: rgba(123, 200, 156, 0.10);
--sage-border: rgba(123, 200, 156, 0.25);
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
transition: none !important;
animation: none !important;
}
}
*, *::before, *::after {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
html, body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.35;
overflow-x: hidden;
overscroll-behavior-y: contain;
-webkit-font-smoothing: antialiased;
}
.app {
width: 100%;
max-width: 680px;
margin: 0 auto;
padding-bottom: calc(32px + env(safe-area-inset-bottom));
display: flex;
flex-direction: column;
gap: 10px;
}
/* Compact Sticky Header */
.sticky-hud {
position: sticky;
top: 0;
z-index: 30;
background: var(--bg);
border-bottom: 1px solid var(--border);
padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
display: flex;
flex-direction: column;
gap: 8px;
}
.hud-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
min-width: 0;
}
.hud-brand {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex-wrap: wrap;
}
h1 {
margin: 0;
font-size: 17px;
font-weight: 800;
letter-spacing: -0.02em;
white-space: nowrap;
}
.due-pill {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 8px;
border-radius: 999px;
font-size: 11.5px;
font-weight: 700;
font-variant-numeric: tabular-nums;
background: var(--rose-soft);
color: var(--rose);
border: 1px solid var(--rose-border);
white-space: nowrap;
}
.hud-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.hud-btn {
appearance: none;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
height: 36px;
min-width: 36px;
padding: 0 10px;
border-radius: 9px;
font-size: 12px;
font-weight: 600;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
cursor: pointer;
position: relative;
transition: transform 0.08s ease;
}
.hud-btn::after {
content: "";
position: absolute;
inset: -4px;
}
.hud-btn:active { transform: scale(0.95); }
.hud-btn.has-alert {
border-color: var(--amber-border);
color: var(--amber);
}
/* Progress Row */
.hud-progress {
display: flex;
align-items: center;
gap: 10px;
}
.progress-track {
flex: 1;
height: 6px;
background: var(--surface-muted);
border-radius: 999px;
overflow: hidden;
border: 1px solid var(--border);
}
.progress-fill {
height: 100%;
width: 0%;
background: var(--accent);
border-radius: 999px;
transition: width 0.22s ease;
}
.progress-nums {
font-size: 12px;
font-weight: 700;
font-variant-numeric: tabular-nums;
color: var(--text);
white-space: nowrap;
}
.progress-left {
font-weight: 500;
color: var(--text-muted);
margin-left: 4px;
}
/* Compact Pack Check & Budget Strip */
.pack-bar {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
}
.pack-head {
appearance: none;
width: 100%;
border: none;
background: transparent;
color: var(--text);
padding: 8px 12px;
min-height: 36px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
cursor: pointer;
font-size: 12px;
font-weight: 700;
}
.pack-left {
display: inline-flex;
align-items: center;
gap: 6px;
min-width: 0;
}
.budget-pill {
font-family: var(--font-mono);
font-size: 11px;
font-weight: 700;
padding: 2px 7px;
border-radius: 6px;
background: var(--surface-muted);
border: 1px solid var(--border);
color: var(--text-secondary);
white-space: nowrap;
}
.pack-grid {
display: none;
padding: 0 10px 10px;
gap: 6px;
flex-wrap: wrap;
}
.pack-bar.open .pack-grid {
display: flex;
}
.pack-chip {
appearance: none;
border: 1px solid var(--border);
background: var(--surface-muted);
color: var(--text-secondary);
min-height: 32px;
padding: 4px 9px;
border-radius: 7px;
font-size: 11.5px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 5px;
}
.pack-chip.checked {
background: var(--sage-soft);
border-color: var(--sage-border);
color: var(--sage);
text-decoration: line-through;
}
.drawer-meta {
margin: 0;
font-size: 12px;
color: var(--text);
}
/* 1-Line Shape + Color Legend */
.legend {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 11px;
font-weight: 600;
color: var(--text-secondary);
overflow-x: auto;
scrollbar-width: none;
}
.legend::-webkit-scrollbar { display: none; }
.legend-item {
display: inline-flex;
align-items: center;
gap: 4px;
white-space: nowrap;
}
/* 5-Pill Segmented Control */
.seg-wrap {
padding: 0 14px;
}
.seg-control {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 3px;
padding: 4px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 11px;
}
.seg-tab {
appearance: none;
border: none;
background: transparent;
color: var(--text-secondary);
min-height: 36px;
padding: 6px 2px;
border-radius: 8px;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.01em;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 3px;
white-space: nowrap;
transition: transform 0.08s ease, background 0.12s ease, color 0.12s ease;
}
.seg-tab:active { transform: scale(0.96); }
.seg-tab.active {
background: var(--accent);
color: var(--accent-fg);
}
.seg-count {
font-size: 10px;
font-variant-numeric: tabular-nums;
opacity: 0.78;
}
/* Main List */
.main-list {
padding: 0 14px;
display: flex;
flex-direction: column;
gap: 12px;
}
.group-block {
display: flex;
flex-direction: column;
gap: 6px;
}
.group-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 2px 2px 0;
}
.group-label {
font-size: 11.5px;
font-weight: 800;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--text-muted);
margin: 0;
}
.group-frac {
font-size: 11.5px;
font-weight: 700;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
}
/* 2-Line Scannable Task Row */
.task-row {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
display: flex;
flex-direction: column;
transition: opacity 0.16s ease, border-color 0.16s ease;
}
.task-row.is-done {
opacity: 0.6;
background: var(--surface-muted);
}
.task-row.tone-rose:not(.is-done) {
border-left: 3px solid var(--rose);
}
.task-row.tone-amber:not(.is-done) {
border-left: 3px solid var(--amber);
}
.task-row.tone-sage {
border-left: 3px solid var(--sage);
}
.row-main {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 10px 10px 11px;
min-height: 58px;
cursor: pointer;
}
.check-btn {
appearance: none;
width: 26px;
height: 26px;
min-width: 26px;
border-radius: 7px;
border: 2px solid var(--border);
background: var(--bg);
color: var(--check-fg);
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
cursor: pointer;
position: relative;
flex-shrink: 0;
transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}
.check-btn::after {
content: "";
position: absolute;
inset: -10px;
}
.check-btn:active { transform: scale(0.9); }
.task-row.is-done .check-btn {
background: var(--sage);
border-color: var(--sage);
}
/* Shape + Number Badge */
.num-tag {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
min-width: 34px;
height: 24px;
padding: 0 6px;
border-radius: 6px;
font-size: 11px;
font-weight: 800;
font-variant-numeric: tabular-nums;
flex-shrink: 0;
border: 1px solid var(--border);
background: var(--surface-muted);
color: var(--text-secondary);
}
.num-tag.rose { background: var(--rose-soft); border-color: var(--rose-border); color: var(--rose); }
.num-tag.amber { background: var(--amber-soft); border-color: var(--amber-border); color: var(--amber); }
.num-tag.sage { background: var(--sage-soft); border-color: var(--sage-border); color: var(--sage); }
.row-content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.row-title {
margin: 0;
font-size: 14.5px;
font-weight: 700;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.task-row.is-done .row-title {
text-decoration: line-through;
}
.chip-line {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 5px;
min-width: 0;
}
.chip {
font-size: 11px;
font-weight: 600;
padding: 2px 6px;
border-radius: 5px;
background: var(--surface-muted);
border: 1px solid var(--border);
color: var(--text-secondary);
white-space: nowrap;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.chip.must {
font-family: var(--font-mono);
font-size: 10.5px;
font-weight: 700;
color: var(--text);
border-color: var(--text-muted);
}
.chev-btn {
appearance: none;
border: none;
background: transparent;
color: var(--text-muted);
width: 32px;
height: 36px;
min-width: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
padding: 0;
position: relative;
flex-shrink: 0;
transition: transform 0.16s ease;
}
.chev-btn::after {
content: "";
position: absolute;
inset: -6px;
}
.task-row.is-open .chev-btn {
transform: rotate(180deg);
color: var(--text);
}
/* Progressive Disclosure Drawer */
.row-drawer {
display: none;
border-top: 1px solid var(--border);
padding: 10px 12px;
background: var(--surface-muted);
border-radius: 0 0 var(--radius) var(--radius);
flex-direction: column;
gap: 8px;
}
.task-row.is-open .row-drawer {
display: flex;
}
.drawer-note {
margin: 0;
font-size: 12.5px;
color: var(--text-secondary);
}
.drawer-path {
font-family: var(--font-mono);
font-size: 11px;
color: var(--text-muted);
word-break: break-word;
}
.place-picker {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.place-label {
font-size: 11px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
width: 100%;
}
.place-chip {
appearance: none;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-secondary);
min-height: 32px;
padding: 4px 9px;
border-radius: 7px;
font-size: 11.5px;
font-weight: 600;
cursor: pointer;
transition: transform 0.08s ease;
}
.place-chip:active { transform: scale(0.96); }
.place-chip.selected {
background: var(--accent);
color: var(--accent-fg);
border-color: var(--accent);
}
.drawer-rem {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.rem-input {
font-family: var(--font-sans);
font-size: 12px;
padding: 6px 8px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text);
min-height: 36px;
}
.mini-btn {
appearance: none;
border: 1px solid var(--border);
background: var(--surface);
color: var(--text-secondary);
min-height: 34px;
padding: 5px 10px;
border-radius: 8px;
font-size: 11.5px;
font-weight: 700;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
}
.mini-btn:active { transform: scale(0.96); }
.mini-btn.active {
background: var(--amber-soft);
border-color: var(--amber-border);
color: var(--amber);
}
/* ROUTE Tab UI */
.route-map-wrap {
position: relative;
width: 100%;
height: 250px;
border-radius: var(--radius);
border: 1px solid var(--border);
background: #09090b;
overflow: hidden;
}
#routeMap {
width: 100%;
height: 100%;
background: #09090b;
}
[data-theme="dark"] #routeMap .leaflet-tile-pane {
filter: invert(100%) hue-rotate(180deg) brightness(90%) contrast(92%) grayscale(45%);
}
[data-theme="dark"] #routeMap .leaflet-control-zoom a {
background: #111113;
color: #ededef;
border-color: #27272a;
}
.map-fallback-msg {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 16px;
font-size: 12.5px;
color: var(--text-secondary);
pointer-events: none;
}
.route-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
}
.route-summary-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
}
.route-stats {
font-size: 13.5px;
font-weight: 800;
font-variant-numeric: tabular-nums;
color: var(--text);
}
.route-controls {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.stop-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 8px;
}
.stop-top {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.stop-num {
width: 28px;
height: 28px;
min-width: 28px;
border-radius: 999px;
background: var(--accent);
color: var(--accent-fg);
font-size: 12px;
font-weight: 800;
font-variant-numeric: tabular-nums;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.stop-num.is-start {
background: var(--surface-muted);
color: var(--text);
border: 1px solid var(--border);
}
.stop-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.stop-name {
font-size: 14px;
font-weight: 700;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stop-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
/* Completed Drawer in NOW tab */
.done-collapse {
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
overflow: hidden;
}
.done-toggle {
appearance: none;
width: 100%;
border: none;
background: transparent;
color: var(--text-secondary);
padding: 11px 14px;
font-size: 12.5px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
}
.done-inner {
display: none;
padding: 0 8px 8px;
flex-direction: column;
gap: 6px;
}
.done-collapse.open .done-inner {
display: flex;
}
/* Folder Map Cards */
.map-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 11px 12px;
display: flex;
align-items: center;
gap: 12px;
}
.map-num {
width: 36px;
height: 36px;
min-width: 36px;
border-radius: 9px;
background: var(--surface-muted);
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
font-weight: 800;
font-variant-numeric: tabular-nums;
color: var(--text);
}
.map-body {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.map-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.map-title {
font-size: 13.5px;
font-weight: 700;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.map-line {
margin: 0;
font-size: 12px;
color: var(--text-secondary);
}
/* Slide-Up Alarms & Tools Sheet */
.sheet-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.72);
z-index: 60;
display: none;
align-items: flex-end;
justify-content: center;
padding: 12px;
}
.sheet-backdrop.open {
display: flex;
}
.sheet {
width: 100%;
max-width: 560px;
max-height: calc(100dvh - 32px);
overflow-y: auto;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
animation: sheetIn 0.18s ease-out;
}
@keyframes sheetIn {
from { opacity: 0; transform: scale(0.96) translateY(8px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.sheet-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.sheet-title {
margin: 0;
font-size: 15px;
font-weight: 800;
}
.status-pill {
font-size: 11px;
font-weight: 700;
padding: 3px 8px;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--surface-muted);
color: var(--text-secondary);
}
.status-pill.ok { background: var(--sage-soft); color: var(--sage); border-color: var(--sage-border); }
.status-pill.warn { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-border); }
.btn-stack {
display: flex;
flex-direction: column;
gap: 8px;
}
.btn {
appearance: none;
border: 1px solid var(--border);
background: var(--surface-muted);
color: var(--text);
min-height: 44px;
padding: 10px 14px;
border-radius: 10px;
font-size: 13px;
font-weight: 700;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
cursor: pointer;
text-decoration: none;
transition: transform 0.08s ease;
}
.btn:active { transform: scale(0.975); }
.btn.primary {
background: var(--accent);
border-color: var(--accent);
color: var(--accent-fg);
}
.helper-note {
margin: 0;
font-size: 12px;
color: var(--text-secondary);
}
.due-box {
background: var(--amber-soft);
border: 1px solid var(--amber-border);
border-radius: 10px;
padding: 9px 11px;
font-size: 12.5px;
display: none;
flex-direction: column;
gap: 2px;
}
.due-box.show { display: flex; }
details.backup-box {
border-top: 1px solid var(--border);
padding-top: 10px;
}
details.backup-box summary {
font-size: 12.5px;
font-weight: 700;
color: var(--text-secondary);
cursor: pointer;
list-style: none;
}
textarea.backup-area {
width: 100%;
min-height: 68px;
margin-top: 8px;
font-family: var(--font-mono);
font-size: 11px;
padding: 8px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text);
resize: vertical;
}
/* Toast with Undo */
.toast {
position: fixed;
left: 50%;
bottom: calc(16px + env(safe-area-inset-bottom));
transform: translateX(-50%) translateY(16px);
background: var(--accent);
color: var(--accent-fg);
padding: 9px 14px;
border-radius: 10px;
font-size: 12.5px;
font-weight: 700;
display: inline-flex;
align-items: center;
gap: 10px;
opacity: 0;
pointer-events: none;
transition: opacity 0.16s ease, transform 0.16s ease;
z-index: 80;
max-width: calc(100vw - 28px);
}
.toast.show {
opacity: 1;
pointer-events: auto;
transform: translateX(-50%) translateY(0);
}
.toast-undo {
appearance: none;
border: 1px solid currentColor;
background: transparent;
color: inherit;
font-size: 11.5px;
font-weight: 800;
padding: 3px 8px;
border-radius: 6px;
cursor: pointer;
}