:root,[data-theme=light]{--icon-shadow:drop-shadow(0 1px 4px #00000040);--page-bg:#f3f4f6;--title-color:#312e81;--card-header-bg:#312e81;--card-header-text:#fff;--card-header-subtext:#a5b4fc;--time-header-bg:#312e81;--time-header-text:#fff;--time-header-subtext:#a5b4fc;--time-border:#4338ca;--label-bg:#f9fafb;--label-text:#4b5563;--label-border:#e5e7eb;--cell-bg:#fff;--cell-text:#111827;--cell-subtext:#6b7280;--row-border:#e5e7eb;--accent:#312e81;--accent-text:#fff;--accent-soft:#e0e7ff;--danger:#b91c1c;--warn-bg:#fef3c7;--warn-text:#92400e;--route:#4338ca;--input-bg:#fff;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark]{--icon-shadow:none;--page-bg:#0f172a;--title-color:#e2e8f0;--card-header-bg:#1e293b;--card-header-text:#f1f5f9;--card-header-subtext:#94a3b8;--time-header-bg:#334155;--time-header-text:#e2e8f0;--time-header-subtext:#94a3b8;--time-border:#475569;--label-bg:#334155;--label-text:#94a3b8;--label-border:#475569;--cell-bg:#1e293b;--cell-text:#e2e8f0;--cell-subtext:#64748b;--row-border:#334155;--accent:#a5b4fc;--accent-text:#0f172a;--accent-soft:#312e81;--danger:#f87171;--warn-bg:#451a03;--warn-text:#fcd34d;--route:#a5b4fc;--input-bg:#0f172a;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=rubber]{--icon-shadow:drop-shadow(0 1px 4px #0000004d);--page-bg:#ff3dc8;--title-color:#000;--card-header-bg:#00cfcf;--card-header-text:#000;--card-header-subtext:#0009;--time-header-bg:#ffe600;--time-header-text:#000;--time-header-subtext:#0009;--time-border:#00000026;--label-bg:#c60;--label-text:#fff;--label-border:#a50;--cell-bg:#fff;--cell-text:#111827;--cell-subtext:#6b7280;--row-border:#e5e7eb;--accent:#000;--accent-text:#ffe600;--accent-soft:#ffe600;--danger:#b91c1c;--warn-bg:#ffe600;--warn-text:#000;--route:#000;--input-bg:#fff;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html,body{margin:0}body{background-color:var(--page-bg);color:var(--cell-text);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.45}#root{min-height:100vh}.app{flex-direction:column;min-height:100vh;display:flex}a{color:var(--accent)}button,input,select,textarea{font:inherit;color:inherit}.top-bar{flex-wrap:wrap;align-items:center;gap:12px;padding:10px 16px;display:flex}.app-title{color:var(--title-color);margin-right:auto;font-size:18px;font-weight:700;text-decoration:none}.segmented{border:1px solid var(--accent);background:var(--cell-bg);border-radius:8px;display:inline-flex;overflow:hidden}.segmented button{cursor:pointer;color:var(--accent);background:0 0;border:0;padding:4px 10px;font-size:13px}[data-theme=rubber] .segmented button{color:#000}.segmented button[aria-pressed=true]{background:var(--accent);color:var(--accent-text)}.page{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:8px 16px 32px}.page h1{color:var(--title-color);margin:8px 0 16px;font-size:22px}.panel{background:var(--cell-bg);border-radius:12px;padding:16px;box-shadow:0 4px 14px #00000014}.muted{color:var(--cell-subtext)}.hint{color:var(--cell-subtext);font-size:13px}.btn{border:1px solid var(--row-border);background:var(--cell-bg);cursor:pointer;white-space:nowrap;border-radius:8px;align-items:center;gap:6px;padding:6px 12px;text-decoration:none;display:inline-flex}.btn:hover{border-color:var(--accent)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.btn.danger{color:var(--danger)}.btn.small{padding:2px 8px;font-size:13px}.btn:disabled{opacity:.5;cursor:default}.icon-btn{cursor:pointer;color:var(--cell-subtext);background:0 0;border:0;border-radius:6px;padding:4px 6px;font-size:16px;line-height:1}.icon-btn:hover{background:var(--label-bg);color:var(--cell-text)}label.field{flex-direction:column;gap:4px;font-size:13px;display:flex}.field-label{color:var(--label-text);font-weight:600}[data-theme=rubber] .field-label{color:var(--cell-text)}input[type=text],input[type=number],input[type=date],input[type=time],select{background:var(--input-bg);border:1px solid var(--row-border);border-radius:8px;min-width:0;padding:6px 8px}input:focus-visible,select:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.fields{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;display:grid}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.spacer{flex:1}.error{color:var(--danger)}.warning{background:var(--warn-bg);color:var(--warn-text);border-radius:8px;padding:6px 10px;font-size:13px}.modal{background:var(--cell-bg);width:min(480px,100vw - 32px);color:var(--cell-text);border:0;border-radius:12px;padding:0;box-shadow:0 12px 40px #0000004d}.modal.wide{width:min(820px,100vw - 32px)}.modal::backdrop{background:#0f172a80}.modal-body{padding:16px}.modal-body header{align-items:center;margin-bottom:12px;display:flex}.modal-body h2{flex:1;margin:0;font-size:18px}.modal .close{cursor:pointer;color:var(--cell-subtext);background:0 0;border:0;font-size:22px}.modal-actions{border-top:1px solid var(--row-border);justify-content:flex-end;align-items:center;gap:8px;padding:12px 16px;display:flex}.modal-actions .usage{margin-right:auto}.legal-frame{border:0;width:100%;height:min(70vh,640px)}.app-footer{color:var(--cell-subtext);flex-wrap:wrap;justify-content:center;gap:4px 14px;padding:16px;font-size:12px;display:flex}[data-theme=rubber] .app-footer,[data-theme=rubber] .app-footer a{color:#000}.app-footer a{color:var(--cell-subtext)}.small{font-size:13px}.link-btn{color:var(--accent);cursor:pointer;font-size:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.page-head h1{margin:8px 0}.page-head{margin-bottom:8px}.back{margin-top:4px;font-size:14px;text-decoration:none;display:inline-block}[data-theme=rubber] .back,[data-theme=rubber] .muted,[data-theme=rubber] .trip-summary{color:#000}input.inherited{color:var(--cell-subtext)}.check{cursor:pointer;align-items:center;gap:4px;display:inline-flex}.trip-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin:0;padding:0;list-style:none;display:grid}.trip-card{background:var(--cell-bg);border-radius:12px;flex-direction:column;display:flex;position:relative;overflow:hidden;box-shadow:0 4px 14px #00000014}.trip-card-link{background:var(--label-bg);aspect-ratio:4/3;display:block}.thumb{width:100%;height:100%;display:block}.trip-card-body{flex-direction:column;gap:2px;padding:10px 12px 12px;display:flex}.trip-card-name{color:var(--cell-text);font-size:16px;font-weight:700;text-decoration:none}.trip-card-actions{background:var(--cell-bg);opacity:.9;border-radius:8px;gap:2px;display:flex;position:absolute;top:6px;right:6px}.step{margin-bottom:16px}.step h2{color:var(--title-color);margin:0 0 8px;font-size:16px}[data-theme=rubber] .step h2{color:#000}.new-day{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.new-day input{flex:1;min-width:140px}.day-num{min-width:48px;font-weight:600}.add-days{border:2px dashed var(--row-border);border-radius:10px;margin-top:10px;padding:10px}.add-days.over{border-color:var(--accent);background:var(--accent-soft)}.sortable{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.sortable-row{background:var(--cell-bg);border:1px solid var(--row-border);border-radius:10px;align-items:center;gap:6px;padding:6px 6px 6px 2px;display:flex}.sortable-row.dragging{z-index:2;position:relative;box-shadow:0 8px 20px #0003}.sortable-body{flex:1;min-width:0}.drag-handle{cursor:grab;color:var(--cell-subtext);touch-action:none;background:0 0;border:0;padding:4px 6px;font-size:18px}.trip-summary{margin:0 0 12px}.tabs{border-bottom:2px solid var(--row-border);gap:4px;margin-bottom:16px;display:flex}.tabs a{color:var(--cell-subtext);border-bottom:3px solid #0000;margin-bottom:-2px;padding:8px 16px;font-weight:600;text-decoration:none}[data-theme=rubber] .tabs a{color:#000}.tabs a[aria-current=page]{color:var(--title-color);border-bottom-color:var(--accent)}.settings{margin-bottom:16px}.settings h2{margin:0 0 12px;font-size:16px}.start-when{flex-direction:column;gap:6px;display:flex}.trip-map-wrap{margin-bottom:16px}.trip-map-wrap .hint{margin:4px 0 0}.days{flex-direction:column;gap:6px;display:flex}.day-row{grid-template-columns:minmax(160px,2fr) minmax(120px,1.2fr) 90px 90px 32px;align-items:center;gap:8px;display:grid}.day-head{color:var(--cell-subtext);background:0 0;border-color:#0000;padding-top:0;padding-bottom:0;font-size:12px;font-weight:600}.day-head .drag-handle{visibility:hidden}.day-head .drag-handle:before{content:"⠿"}[data-theme=rubber] .day-head{color:#000}.day-title{flex-direction:column;min-width:0;display:flex}.day-title a{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.rest-note{grid-column:2/5}.day-row .time{font-variant-numeric:tabular-nums;font-weight:700}@media (width<=720px){.day-head{display:none}.day-row{grid-template-columns:1fr 1fr 32px}.day-row .day-title,.day-row>span:nth-child(2){grid-column:1/3}.day-row .start{grid-column:1}.day-row .start:before{content:"Start "}.day-row .finish:before{content:"Finish "}.day-row .time:before{color:var(--cell-subtext);font-weight:400}.rest-note{grid-column:1/3}}.day-nav{margin-bottom:4px}.day-header h1{margin-bottom:2px}.day-header p{margin:0 0 12px}.day-fields{margin-bottom:16px}.ride{grid-template:"map timeline""map add"1fr/minmax(0,3fr) minmax(300px,2fr);align-items:start;gap:12px 20px;display:grid}.map-wrap{grid-area:map}.map{background:var(--label-bg);border-radius:12px;height:520px;overflow:hidden}.map-below{margin-top:6px}.map-wrap p.hint{margin:4px 0 0}.timeline{flex-direction:column;grid-area:timeline;gap:6px;margin:0;padding:0;list-style:none;display:flex}.add-stop{grid-area:add}.add-stop input{width:80px}.timeline li{background:var(--cell-bg);border:1px solid var(--row-border);border-radius:10px;grid-template-columns:64px 1fr;gap:8px;padding:8px 10px;display:grid}.timeline .tl-stop.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.tl-time{font-variant-numeric:tabular-nums;flex-direction:column;font-weight:700;display:flex}.tl-what{min-width:0}.stop-num{background:var(--accent);width:22px;height:22px;color:var(--accent-text);border-radius:50%;place-items:center;font-size:12px;font-weight:700;display:inline-grid}.stop-name{flex:1;min-width:90px;font-weight:600}.stop-controls{margin-top:6px}.stop-controls .btn[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}.stop-controls input.minutes{width:64px}@media (width<=820px){.ride{grid-template-columns:1fr;grid-template-areas:"map""timeline""add"}.map{height:360px}}.map.trip-map{height:420px}.map-failed{text-align:center;color:var(--cell-subtext);place-items:center;padding:24px;display:grid}@media (width<=720px){.map.trip-map{height:320px}}.map-marker{color:#fff;cursor:pointer;border:2px solid #fff;border-radius:50%;place-items:center;width:24px;height:24px;font-size:12px;font-weight:700;display:grid;box-shadow:0 1px 4px #0006}.map-marker.start{background:#15803d}.map-marker.finish{background:#b91c1c}.map-marker.stop{background:#312e81}.map-marker.place{z-index:0;background:#fff;border-color:#312e81;width:22px;height:22px;font-size:12px}.map-marker.start,.map-marker.finish,.map-marker.stop{z-index:2}.units-choices{flex-direction:column;gap:12px;display:flex}.units-label{min-width:150px}.forecast{max-width:900px}.fc-status{margin-bottom:12px}.fc-cards{flex-direction:column;gap:16px;margin-bottom:16px;display:flex}.fc-card{background:var(--cell-bg);border-radius:12px;overflow:hidden;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.fc-head{background:var(--card-header-bg);padding:12px 16px}.fc-title{color:var(--card-header-text);font-size:14px;font-weight:700}.fc-title a{color:inherit;text-decoration:none}.fc-title a:hover{text-decoration:underline}.fc-sub{color:var(--card-header-subtext);margin-top:2px;font-size:12px}.fc-note{margin:0;padding:10px 16px;font-size:13px}.fc-note.warning{border-radius:0}.fc-scroll{overflow-x:auto}.fc-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}.fc-corner,.fc-time{background:var(--time-header-bg)}.fc-time{text-align:center;color:var(--time-header-text);border-left:1px solid var(--time-border);min-width:84px;padding:8px;font-weight:600}.fc-time-label{color:var(--time-header-subtext);font-weight:400}.fc-label{text-align:left;white-space:nowrap;background:var(--label-bg);color:var(--label-text);border-bottom:1px solid var(--label-border);width:96px;padding:8px;font-weight:700}.fc-corner,.fc-label{z-index:1;position:sticky;left:0}.fc-label-icon{font-size:15px;display:none}.fc-cell{text-align:center;background:var(--cell-bg);border-bottom:1px solid var(--row-border);border-left:1px solid var(--row-border);padding:8px}.fc-cond{flex-direction:column;align-items:center;gap:4px;display:flex}.fc-cond img{filter:var(--icon-shadow)}.fc-wind{flex-direction:column;align-items:center;gap:2px;display:flex}.fc-wind-dir{flex-wrap:nowrap;gap:4px}.wind-tag{border-radius:999px;margin-top:2px;padding:0 6px;font-size:11px;font-weight:600}.wind-tag.head{color:#991b1b;background:#fee2e2}.wind-tag.tail{color:#166534;background:#dcfce7}.wind-tag.cross{color:#92400e;background:#fef3c7}@media (width<=640px){.fc-label{text-align:center;width:36px;padding:8px 6px}.fc-label-text{display:none}.fc-label-icon{display:inline}.fc-time{min-width:76px}.fc-cond img{width:40px;height:40px}}
