:root { --bg: #f4f6f1; --surface: #ffffff; --text: #1c211c; --muted: #667066; --border: #dfe5db; --accent: #2f8f4e; --accent-soft: #e3f2e7; --accent-text: #ffffff; --great: #2f8f4e; --fine: #7a9a2e; --meh: #c98a12; --no: #c2412d; --bad: #c2412d; --radius: 14px; color-scheme: light dark; } @media (prefers-color-scheme: dark) { :root { --bg: #111511; --surface: #1a1f1a; --text: #e8ece6; --muted: #93a093; --border: #2b332b; --accent: #4cb46d; --accent-soft: #1f3324; --accent-text: #0c120d; --great: #4cb46d; --fine: #a3c14a; --meh: #e0a93a; --no: #e06a55; --bad: #e06a55; } } * { box-sizing: border-box; } body { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; } a { color: var(--accent); } .muted { color: var(--muted); } header { display: flex; align-items: center; gap: 12px; padding: 16px 0 12px; } header h1 { font-size: 1.15rem; margin: 0; flex: 1; white-space: nowrap; } .health { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); } .dot.ok { background: var(--great); } .dot.bad { background: var(--bad); } .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; } .card h2 { font-size: 1rem; margin: 0 0 10px; } .card.error { border-color: var(--bad); color: var(--bad); } /* the form */ #ask { display: grid; gap: 12px; } .where { display: flex; gap: 8px; } input[type=text], textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; } input[type=text]:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; } fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } legend { font-size: .8rem; color: var(--muted); padding: 0 0 4px; width: 100%; } .pill input { position: absolute; opacity: 0; pointer-events: none; } .pill span { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: .92rem; user-select: none; } .pill input:checked + span { background: var(--accent-soft); border-color: var(--accent); font-weight: 600; } .pill input:focus-visible + span { outline: 2px solid var(--accent); } button { padding: 10px 18px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; } button:disabled { opacity: .55; cursor: progress; } button.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 500; } button.go { font-size: 1.05rem; padding: 12px; } .htmx-request button.go::after { content: " …"; } /* weather */ .weather .now { display: flex; align-items: center; gap: 12px; } .weather .icon { font-size: 2.4rem; line-height: 1; } .weather .temp { font-size: 2.4rem; font-weight: 700; letter-spacing: -1px; } .facts { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 10px 0; font-size: .9rem; } .hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); gap: 4px; list-style: none; padding: 0; margin: 0; overflow-x: auto; font-size: .82rem; text-align: center; } .hours li { display: grid; gap: 1px; padding: 6px 2px; border-radius: 8px; background: var(--bg); } .hours li.night { opacity: .7; } .hours .rain { color: #3b6cf6; } /* scores */ .scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; } .score { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--muted); border-radius: 12px; padding: 8px; text-align: center; cursor: help; } .score .label { font-size: .78rem; color: var(--muted); } .score .value { font-size: 1.5rem; font-weight: 700; } .score .verdict { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; } .score.great { border-top-color: var(--great); } .score.great .verdict { color: var(--great); } .score.fine { border-top-color: var(--fine); } .score.fine .verdict { color: var(--fine); } .score.meh { border-top-color: var(--meh); } .score.meh .verdict { color: var(--meh); } .score.no { border-top-color: var(--no); } .score.no .verdict { color: var(--no); } .score.indoor { cursor: default; } .score.picked { outline: 2px solid var(--accent); background: var(--accent-soft); } .later { margin: 0 0 12px; font-size: .92rem; } /* coach */ #thread { display: grid; gap: 12px; } .msg.user { justify-self: end; background: var(--accent-soft); padding: 6px 12px; border-radius: 12px 12px 4px 12px; max-width: 85%; } .plain { white-space: pre-wrap; } .markdown > :first-child { margin-top: 0; } .markdown > :last-child { margin-bottom: 0; } .markdown p, .markdown ul { margin: 0 0 8px; } .markdown ul { padding-left: 20px; } .error { color: var(--bad); font-size: .9rem; margin: 6px 0 0; } .streaming:empty::after { content: "● ● ●"; letter-spacing: 2px; color: var(--muted); animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .3; } } .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; } .chips button { padding: 5px 10px; font-size: .85rem; } #composer { display: flex; gap: 8px; } #composer textarea { resize: none; max-height: 160px; } /* routes */ .map { height: 300px; border-radius: 10px; margin-bottom: 10px; z-index: 0; } .route-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .route-list li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .9rem; } .route-list li.active { border-color: var(--accent); background: var(--accent-soft); } .route-list .name { font-weight: 600; } .badge { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .72rem; font-weight: 600; vertical-align: 1px; } .badge.signposted { background: #1f6f3a; color: #fff; } .route-list .links { display: flex; gap: 14px; margin-top: 4px; } .junction { margin: 10px 0 0; font-size: .9rem; } .node { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: 50%; background: #1f6f3a; color: #fff; font-weight: 700; font-size: .8rem; } footer { margin-top: 24px; font-size: .78rem; color: var(--muted); text-align: center; } @media (max-width: 520px) { .scores { grid-template-columns: repeat(2, 1fr); } .weather .temp, .weather .icon { font-size: 2rem; } header h1 { font-size: 1rem; } .health { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }