:root{font-family:system-ui,-apple-system,sans-serif;color:#142b3d;background:#f3f6f8;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
.shell{max-width:680px;margin:auto;padding:20px 16px calc(90px + env(safe-area-inset-bottom))}
.boot-screen{padding-top:40px}
.boot-screen p{color:#345166;line-height:1.5}
.boot-screen[hidden]{display:none}
.auth-screen{display:flex;flex-direction:column;min-height:100svh;gap:24px;padding-top:36px}
.auth-screen[hidden],.shell[hidden],#trip-rescue-paywall[hidden],#trip-rescue-trial-controls[hidden],#trip-rescue-paywall-manage[hidden],#trip-rescue-cancel[hidden],.promo-entry[hidden],#trip-rescue-paywall label[hidden]{display:none}
.auth-screen h1{font-size:1.5rem}
.auth-screen p{line-height:1.5;margin:0}
.manager-blog-link{display:inline-flex;align-items:center;min-height:58px;padding:12px 18px;border:2px solid #527e9b;border-radius:12px;background:#e4f2fa;color:#0e4265;font-weight:750;text-decoration:none}
.auth-main{display:grid;justify-items:center;gap:16px;margin:auto 0;text-align:center}
.auth-links{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 20px;padding-top:16px;border-top:1px solid #dce5eb}
.auth-links a,.account-card a{color:#0c527f;font-weight:700;text-underline-offset:3px}
#trip-rescue-sign-in{display:flex;justify-content:center;width:100%}
#trip-rescue-paywall{width:min(100%,480px);text-align:left}
#trip-rescue-paywall{display:grid;gap:16px;padding:22px;border:2px solid #125b89;border-radius:18px;background:#fff}
#trip-rescue-trial-controls{display:grid;gap:16px}
#trip-rescue-paywall label{font-weight:700}
#trip-rescue-paywall input,.shell>section.stop input{width:100%;min-height:58px;padding:12px;border:2px solid #65859a;border-radius:10px;color:#142b3d;background:#fff;font:inherit;font-size:1.1rem}
#trip-rescue-paywall .terms-acceptance{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:12px;min-height:58px;padding:10px 12px;border:2px solid #65859a;border-radius:10px;line-height:1.45}
#trip-rescue-paywall .terms-acceptance input{width:28px;height:28px;min-height:28px;margin:0;padding:0;accent-color:#125b89}
#trip-rescue-paywall .terms-acceptance a{color:#0c527f;font-weight:700}
.promo-entry{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px}
#trip-rescue-apply-code{min-height:58px;padding:10px;border-color:#527e9b;background:#e4f2fa;color:#0e4265;font-size:1rem}
#trip-rescue-offer-status{font-weight:700;color:#175339}
#trip-rescue-paywall-manage{min-height:58px;border-color:#527e9b;background:#e4f2fa;color:#0e4265;font-size:1rem}
header{position:sticky;top:0;z-index:5;padding:0 2px 20px;background:#f3f6f8}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
#menu-toggle{width:60px;min-height:60px;padding:8px;border:2px solid #527e9b;background:#dcecf6;color:#103f60}
#menu-toggle span{font-size:1.6rem}
#menu{display:grid;gap:8px;margin:8px 0 16px;padding:10px;border:1px solid #d8e0e5;border-radius:14px;background:#fff;box-shadow:0 4px 12px #17263315}
#menu[hidden],#history-view[hidden],#active[hidden],#detail-view[hidden],#account-view[hidden]{display:none}
#menu button{min-height:62px;justify-content:flex-start;border:1px solid #66879d;background:#edf4f8;color:#183c56;font-size:1.1rem}
#menu .menu-link{display:flex;align-items:center;min-height:62px;padding:16px 18px;border:1px solid #66879d;border-radius:14px;background:#edf4f8;color:#183c56;font-size:1.1rem;font-weight:750;text-decoration:none}
#menu button[aria-current="page"]{background:#dceefa;color:#0e4c73}
#lookup-usage{margin:8px 0;color:#31566d;font-size:.95rem;font-weight:700}
#trip-rescue-subscription-status{margin:0;color:#31566d;font-size:1.05rem;line-height:1.4;font-weight:700}
#trip-rescue-account-message{margin:0;color:#175339;font-size:.95rem;line-height:1.4;font-weight:700}
#account-view>h2{margin:0 0 14px}
.account-card{display:grid;gap:16px}
.account-card p{margin:0;line-height:1.5}
#account-view #trip-rescue-manage,#account-view #trip-rescue-sign-out{min-height:58px;border-color:#527e9b;background:#e4f2fa;color:#0e4265;font-size:1rem}
#account-view #trip-rescue-cancel{min-height:58px;border-color:#a55e50;background:#f9e7e2;color:#792d23;font-size:1rem}
h1{font-size:1.22rem;margin:0;font-weight:750}
h2{font-size:1.48rem;margin:0;line-height:1.25}
h3{font-size:1.25rem;margin:0}
.stop,.history-stop{background:#fff;border:1px solid #bdcbd5;border-radius:18px;box-shadow:0 2px 8px #1726330a}
.stop{padding:22px;margin-bottom:16px}
.current{border:2px solid #125b89}
.empty{padding:26px 22px}
.empty h2{margin-bottom:22px}
.stop-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.flag{white-space:nowrap;border-radius:20px;padding:7px 10px;font-size:.9rem;font-weight:750}
.flag.active{color:#0e4b72;background:#dceef9}
.timing{display:grid;gap:5px;color:#415a6c;font-size:1rem;line-height:1.4;margin:0 0 20px}
button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:70px;border:2px solid transparent;border-radius:14px;padding:16px 18px;font:inherit;font-size:1.2rem;line-height:1.2;font-weight:750;cursor:pointer}
button,summary,.multi-run-choice{touch-action:manipulation;-webkit-tap-highlight-color:#0c527f33}
button:not(:disabled):active,summary:active,.multi-run-choice:active{filter:brightness(.92)}
button:disabled{opacity:.55;cursor:wait}
button:focus-visible,.photo:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #cf8d0a;outline-offset:3px}
.button-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;flex:none;font-size:1.4rem;line-height:1}
.primary{border-color:#0c4a74;background:#0c527f;color:#fff}
.evidence{min-height:58px;margin-top:10px;border-color:#65859a;background:#f5f8fa;color:#183c56;font-size:1rem}
.note-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.text-evidence{border-color:#527e9b;background:#e4f2fa;color:#0e4265;font-size:1.05rem;padding:12px 8px}
.text-evidence .button-icon{width:20px;font-size:1.25rem}
.note-form{display:grid;gap:14px;margin-top:12px;padding:18px;border:1px solid #bdcbd5;border-radius:14px;background:#f5f8fa;scroll-margin-top:100px}
.note-form[hidden]{display:none}
.note-form label{display:grid;gap:7px;color:#183c56;font-size:1rem;font-weight:700}
.note-form textarea{width:100%;min-height:74px;padding:12px;border:2px solid #65859a;border-radius:10px;background:#fff;color:#142b3d;font:inherit;font-size:1.1rem;resize:none;overflow:hidden}
.note-form .multi-run-choice{display:flex;align-items:center;gap:14px;min-height:62px;padding:12px 14px;border:2px solid #65859a;border-radius:10px;background:#fff;font-size:1.1rem;cursor:pointer}
.note-form .multi-run-choice[hidden]{display:none}
.multi-run-choice input{width:26px;height:26px;flex:none;accent-color:#0c527f}
.note-form p{margin:0;color:#415a6c;line-height:1.4}
.finish{margin-top:16px;border-color:#527e9b;background:#dceef9;color:#0e4265}
.delete{margin-top:20px;border-color:#a55e50;background:#f9e7e2;color:#792d23}
.photo-count{margin:20px 0 0;color:#175339;font-size:1.05rem;font-weight:750}
.pending-count{margin:8px 0 0;color:#0e4265;font-size:1rem;font-weight:700}
.saved-photos h2{margin-bottom:14px}
.photos{display:grid;gap:14px;margin-top:14px}
.note-item{padding:16px;border:1px solid #bdcbd5;border-radius:13px;background:#fff;overflow-wrap:anywhere}
.note-item strong{display:block;color:#0e4265;font-size:1.06rem}
.note-item p{margin:8px 0 0;white-space:pre-wrap;line-height:1.45}
.note-item .note-location{color:#415a6c;font-size:.92rem}
.note-item .google-match{margin-top:8px;color:#245274;font-size:.95rem;line-height:1.45}
.google-match a{color:#0e4265;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.match-choice{min-height:62px;margin-top:8px;justify-content:flex-start;border-color:#527e9b;background:#e4f2fa;color:#0e4265;font-size:1rem;text-align:left;overflow-wrap:anywhere}
.note-item .linked-pickup{color:#0e4265;font-weight:700}
.note-item .identity-status{color:#175339;font-weight:700}
.copy-evidence{min-height:58px;margin-top:14px;border-color:#527e9b;background:#e4f2fa;color:#0e4265;font-size:1.05rem}
.multi-run-edit{min-height:58px;margin-top:8px;border-color:#65859a;background:#f5f8fa;color:#183c56;font-size:1rem}
.pickup-choices{display:grid;gap:8px}
.pickup-choices[hidden]{display:none}
.pickup-choices>strong{color:#183c56}
.pickup-choices>p{margin:0;padding:12px;border:1px solid #65859a;border-radius:10px;background:#fff;color:#183c56;font-weight:700;overflow-wrap:anywhere}
.pickup-choice{min-height:58px;justify-content:flex-start;border-color:#65859a;background:#fff;color:#183c56;font-size:1rem;text-align:left;overflow-wrap:anywhere}
.pickup-choice[aria-pressed="true"]{border-color:#0c4a74;background:#dceef9}
.photo{display:block;overflow:hidden;border:1px solid #bdcbd5;border-radius:13px;background:#fff;color:#23445c;text-decoration:none}
.photo-label{display:flex;align-items:center;gap:12px;padding:13px 14px;font-size:1rem;font-weight:700}
.photo-number{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border-radius:50%;background:#dceef8;color:#0e4b72}
.photo img{display:block;width:100%;height:auto;background:#edf1f4}
.save-photo{min-height:58px;margin-bottom:8px;border-color:#527e9b;background:#e4f2fa;color:#0e4265;font-size:1.05rem}
.history>h2{margin:0 0 14px}
.history>div>p{color:#415a6c;font-size:1rem}
.history-month,.history-week,.history-day{overflow:hidden;margin-bottom:12px;border:1px solid #bdcbd5;border-radius:15px;background:#fff}
.history-month>summary,.history-week>summary,.history-day>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:70px;padding:16px 18px;list-style:none;cursor:pointer}
.history-month>summary::-webkit-details-marker,.history-week>summary::-webkit-details-marker,.history-day>summary::-webkit-details-marker{display:none}
.history-month>summary{background:#dceef9;color:#103e5e}
.history-week>summary{background:#eaf3f8;color:#153d58}
.history-day>summary{background:#f5f8fa;color:#183e59}
.history-month>summary>span,.history-week>summary>span,.history-day>summary>span{font-size:1.6rem;color:#1b4e71}
.history-month[open]>summary>span,.history-week[open]>summary>span,.history-day[open]>summary>span{transform:rotate(180deg)}
.group-heading{display:grid;gap:3px;min-width:0}
.group-heading strong{font-size:1.15rem;line-height:1.25}
.group-heading span{font-size:1rem;line-height:1.3}
.group-body{padding:10px 9px 0}
.history-day>.group-body{padding-bottom:1px}
.history-stop{overflow:hidden;margin-bottom:12px}
.history-stop summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:88px;padding:18px 20px;list-style:none;cursor:pointer}
.history-stop summary::-webkit-details-marker{display:none}
.history-summary-text{display:grid;gap:5px;min-width:0}
.history-summary-text strong{font-size:1.2rem;overflow-wrap:anywhere}
.history-summary-text span{color:#415a6c;font-size:1rem;line-height:1.35}
.history-stop summary>span{font-size:1.6rem;color:#1b4e71}
.history-stop[open] summary{border-bottom:1px solid #e4e9ed}
.history-stop[open] summary>span{transform:rotate(180deg)}
.history-body{padding:20px}
.history-body>p:not(.photo-count){color:#415a6c;margin:16px 0 0}
#detail-view h2{margin:14px 0}
.detail-back{min-height:54px;justify-content:flex-start;padding:10px 14px;border-color:#65859a;background:#fff;color:#183c56;font-size:1rem}
.detail-status{padding:14px;border-radius:12px;background:#e4f1fa;color:#145a85;font-weight:750}
.detail-content{display:grid;gap:16px}
.detail-block{padding:18px;border:1px solid #bdcbd5;border-radius:14px;background:#fff;overflow-wrap:anywhere}
.detail-block p{line-height:1.45}
.confirm-form{display:grid;gap:12px;margin-top:18px}
.confirm-form[hidden]{display:none}
.confirm-form label{display:grid;gap:6px;color:#183c56;font-weight:700}
.confirm-form input{width:100%;min-height:54px;padding:10px 12px;border:2px solid #65859a;border-radius:10px;color:#142b3d;background:#fff;font:inherit;font-size:1.05rem}
.confirm-button{min-height:58px;border-color:#527e9b;background:#e4f2fa;color:#0e4265;font-size:1rem}
.detail-copy{min-height:74px;border-color:#0c4a74;background:#0c527f;color:#fff}
.detail-help{display:inline-flex;align-items:center;justify-self:start;min-height:44px;color:#0c527f;font-weight:700}
footer{margin-top:32px;text-align:center;font-size:.9rem}
footer a{color:#315f7d}
#notice{position:fixed;z-index:10;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:640px;margin:auto;padding:16px 18px;border-radius:13px;box-shadow:0 5px 20px #17263330;font-size:1.05rem;font-weight:750;line-height:1.35}
#notice[hidden]{display:none}
#notice.success{background:#dff3e5;color:#185b32;border:1px solid #a9d8b7}
#notice.working{background:#e4f1fa;color:#145a85;border:1px solid #a9cee5}
#notice.info{background:#e4f1fa;color:#145a85;border:1px solid #a9cee5}
#notice.error{background:#fae7e4;color:#922f27;border:1px solid #e6afa8}
@media(max-width:600px){.control-stage{min-height:calc(100vh - 70px);min-height:calc(100svh - 70px)}}
@media(max-width:400px){.stop-top{flex-direction:column;align-items:flex-start}.flag{margin-top:2px}}
