:root{--gutter:clamp(16px,3vw,32px);--control:44px;--edge:#d7dfd4;--forest:#284c39;--surface:#fffef9;--soft:#edf2e9}
[hidden]{display:none!important}
body{background:#f4f5ee}.wrap{width:min(1180px,calc(100% - 2 * var(--gutter)))}
.mast-inner{justify-content:space-between;gap:24px}.mast-inner nav{gap:clamp(14px,3vw,36px)}
.mast-inner .nav-item.active{color:var(--forest)}.nav-item.active:after{background:#527c55}
.app-page{max-width:720px;margin:0 auto;padding:clamp(22px,4vw,50px) 0 48px}.page-heading{display:flex;align-items:center;gap:14px;margin-bottom:22px}.page-heading h1{font-weight:630;font-size:clamp(1.85rem,4vw,2.8rem);letter-spacing:-.055em;line-height:1.1;margin:0}.page-heading>span{width:48px;height:48px;border-radius:16px;background:var(--forest);color:#ecf3d8;display:grid;place-items:center}.page-heading h1:focus{outline:none}
#page-content{display:grid;gap:16px}.surface,.app-page .trip-form,.app-page .trip-results:not(:empty){background:var(--surface);border:1px solid var(--edge);border-radius:18px;padding:clamp(16px,3vw,26px);box-shadow:0 3px 14px #23351e06}
.app-page h2,.app-page h3{line-height:1.22;letter-spacing:-.035em}.section-label,.settings-group h2{font-size:1.05rem;margin:0 0 10px}
.app-page .place-row:last-child,.settings-group>:last-child{border-bottom:0}.places-surface .search-field{margin-bottom:22px}.place-choice{min-width:0}.place-choice span{overflow-wrap:anywhere}.place-choice>.icon{color:#59724f}
.app-page :is(input,select),dialog :is(input,select){border:1px solid var(--edge);border-radius:10px;background:#fffefa;padding:9px 12px;min-height:var(--control);min-width:0;max-width:100%;font:inherit;box-sizing:border-box}
.search-field{min-height:var(--control);border-radius:11px;background:#f6f7f1;padding:0 12px}.search-field input{border:0;background:transparent;padding:8px 0;flex:1}
.setting-line,.setting-row{min-height:60px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--edge);padding:8px 0}.setting-line{justify-content:space-between}.setting-line>label,.setting-line>span,.setting-row strong{font-weight:570}.setting-line select{max-width:60%}.setting-row{width:100%;text-align:left}.setting-row .icon:first-child{color:#57754d}.setting-row .icon:last-child{margin-left:auto;color:#758474}
.setting-line .units{margin:0}.units button{min-height:36px;min-width:46px}.settings-group .units button[aria-pressed=true],.day-switch button[aria-pressed=true]{background:var(--forest)}
.action,.quiet,.prefs-button{min-height:var(--control);padding:10px 16px;border-radius:10px}.action{background:var(--forest);color:white}.icon-button,.chart-pager .icon-button,.dialog-head .icon-button{width:40px;height:40px;border-radius:10px}.day-switch button,.chart-switch button{min-height:36px}.panel-heading{gap:10px}.heading-title{min-width:0}.chart-info{gap:12px}.brief-item{gap:14px}.card,.hero{border-radius:18px}.card{background-color:var(--surface)}.hero{background-color:#273a32}.weekend-invite{margin-top:16px}
.app-page .trip-results:not(:empty){margin:0}.app-page .trip-results:empty{display:none}.trip-form fieldset{display:grid;gap:15px}.trip-place,.trip-time{margin:0}.trip-form input,.trip-form select{margin-top:6px;width:100%}.trip-vias:empty,.route-estimate:empty{display:none}.trip-via{justify-self:start;min-height:38px;padding:6px 12px;background:var(--soft);border-radius:9px;color:var(--forest)}.trip-zone,.route-credit{margin-top:4px}.trip-form .action{margin:0}.trip-matches:empty{display:none}.trip-matches button{min-height:42px}.trip-advice{padding:14px;border-radius:12px;background:var(--soft)}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;gap:4px;background:var(--soft);border-radius:12px}.auth-tabs button{min-height:40px;border-radius:9px;font-weight:600}.auth-tabs [aria-pressed=true]{background:var(--surface);box-shadow:0 1px 5px #24372521;color:var(--forest)}.account-controls,.account-controls form{gap:14px}.account-controls label{gap:6px}.account-controls form small{margin-top:-8px;color:var(--muted)}.device-profile output:not(:empty){padding:12px;background:#f6ecdb;border-radius:10px}.device-profile details summary{cursor:pointer;padding:9px 0}.device-profile details[open] label{margin:12px 0}.account-controls>.setup-banner{margin:0}.device-profile .setup-banner p{color:#edf2e8}
@media(max-width:740px){.mast-inner{height:52px}.masthead{background:#f4f5ee}.mast-inner nav{gap:2px}.mast-inner nav .nav-item{border-radius:10px;padding:7px 2px;min-height:50px}.mast-inner nav .nav-item.active{background:#e5eee1;color:var(--forest)}.app-page{padding:20px 0 16px}.page-heading{gap:10px;margin-bottom:16px}.page-heading>span{width:42px;height:42px}.location-bar{padding:16px 0}.dashboard{gap:14px}.card,.hero{padding:18px}.day-switch button{min-height:39px}.app-page .trip-time{grid-template-columns:1fr}.activity-grid button{min-height:46px}.place-choice{padding:13px 0}.app-page .action{width:100%}.setting-line{flex-wrap:wrap}.brief-item:last-child{padding-bottom:0}}
@media(max-width:370px){:root{--gutter:12px}.card,.hero{padding:14px}.panel-heading{flex-wrap:wrap}}

.mast-inner .nav-item{text-decoration:none}
.location-action{display:flex;align-items:center;gap:9px;min-height:44px;color:var(--forest);background:var(--soft);border-radius:10px;padding:9px 14px;margin-bottom:14px}.device-indicator,#device-status{color:var(--muted);font-size:.8rem}.device-indicator{display:block;margin-top:4px}#device-status{margin:8px 0 0}.setting-line input[type=checkbox]{width:24px;height:24px;min-height:24px;accent-color:var(--forest);cursor:pointer}
.places-surface .place-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px}.role-buttons{grid-column:1/-1;display:flex;gap:6px;padding-bottom:12px}.role-buttons button{min-height:36px;border:1px solid var(--edge);border-radius:20px;padding:4px 14px;font-size:.84rem}.role-buttons [aria-pressed=true]{background:var(--forest);color:white}.commute-brief{border-top:1px solid var(--edge);margin-top:16px;padding-top:16px}.commute-brief h3{margin:0;font-size:1.16rem}.commute-brief small{color:var(--muted)}.commute-brief p{font-size:.92rem;margin:6px 0}.commute-brief summary{color:var(--forest);cursor:pointer;padding:6px 0}
