/* Boat profile shares the existing Montserrat, blue and red-night tokens. */
body[data-view=profile] .boat-bar{display:none}
#view-profile.boat-profile-view{max-width:none;margin:0;position:fixed;inset:0;z-index:1100;overflow-y:auto;overscroll-behavior:contain;background:var(--paper);padding-bottom:env(safe-area-inset-bottom)}
.boat-profile-header{position:sticky;top:0;z-index:2;background:var(--paper);display:flex;align-items:center;gap:14px;min-height:100px;padding:calc(16px + env(safe-area-inset-top)) 20px 16px;border-bottom:1px solid var(--line)}
.boat-profile-header>.icon-button{flex:0 0 44px;background:transparent}
.boat-profile-header>div{flex:1;min-width:0}.boat-profile-header h2{font-size:26px;letter-spacing:-.04em}.boat-profile-header p{font-size:12px;color:var(--muted);margin-top:5px}
.boat-profile-body{max-width:760px;margin:auto;padding:0 20px 36px}
.boat-profile-connection{padding:22px 0;font-size:13px;line-height:1.7;border-bottom:1px solid var(--line)}
.boat-profile-connection a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;margin-top:4px;font-weight:500}
.boat-profile-link:hover{text-decoration:none}.boat-profile-link>span{display:flex;align-items:center;gap:14px}.boat-profile-link>span>.icon{color:var(--blue)}
.boat-profile-planning{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line);min-height:64px}.boat-profile-planning>span{display:grid;gap:6px;min-width:0}.boat-profile-planning strong{font-size:14px;font-weight:500}.boat-profile-planning small{font-size:12px;color:var(--muted);line-height:1.6}.boat-profile-planning>.icon{flex:0 0 20px}
#boat-profile-fields,.boat-profile-types{border:0;padding:0;margin:0;min-width:0}
.boat-profile-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:stretch;gap:20px;margin-top:28px}.boat-profile-picture{width:100%;min-height:178px;border-radius:16px;background:var(--surface);overflow:hidden;display:grid;place-items:center;position:relative}
.boat-profile-picture>svg{width:80%;height:160px;max-height:100%}.boat-profile-picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.boat-profile-preview>div:last-child{min-width:0;flex:1}.boat-profile-preview-name{font-size:24px;font-weight:700;letter-spacing:-.035em;overflow-wrap:anywhere;line-height:1.2;margin-bottom:7px}
.boat-profile-photo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:10px}.boat-profile-photo-actions .secondary{position:relative;font-size:14px;padding:8px 12px;min-height:48px;font-weight:500;cursor:pointer;gap:6px}.boat-profile-photo-actions .secondary .icon{width:17px;height:17px}
.boat-profile-remove{display:flex;align-items:center;gap:4px;border:0;background:none;color:var(--muted);font-size:11px;min-height:44px;padding:4px 0}.boat-profile-remove .icon{width:15px;height:15px}
.boat-profile-photo-help,.boat-profile-photo-status{font-size:12px;line-height:1.7;color:var(--muted)}.boat-profile-photo-help{margin:14px 0 0}.boat-profile-photo-status{margin:6px 0 26px}.boat-profile-photo-status:empty{margin-top:0}.boat-profile-photo-status.error{color:var(--danger)}
.boat-profile-fields{display:grid;gap:22px}.boat-profile-fields label{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:13px;font-weight:500;min-width:0}.boat-profile-fields label>span{font-size:11px;color:var(--muted);font-weight:400;margin-left:auto}.boat-profile-fields input,.boat-profile-fields select{flex:0 0 100%;width:100%;min-width:0;font-size:15px}
.boat-profile-dimensions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.boat-profile-types{margin-top:32px;padding-top:26px;border-top:1px solid var(--line)}.boat-profile-types legend{font-size:16px;font-weight:500;padding:0;margin-bottom:7px;float:left;width:100%}.boat-profile-types>.subtle{clear:both;font-size:12px;margin-bottom:18px}
.boat-profile-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.boat-profile-type{position:relative;min-width:0;cursor:pointer}.boat-profile-type>input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0}.boat-profile-type>span{display:flex;align-items:center;flex-direction:column;justify-content:flex-start;gap:8px;min-height:142px;height:100%;padding:12px 3px;border:1px solid var(--line);border-radius:16px;background:var(--card);text-align:center}.boat-profile-type>span>svg{width:60px;height:78px;flex-shrink:0}.boat-profile-type>span>span{font-size:11px;line-height:1.4;overflow-wrap:anywhere}.boat-profile-type>input:checked+span{border-color:var(--blue);background:var(--tint);outline:1px solid var(--blue);color:var(--blue)}.boat-profile-type>input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}
.boat-profile-save{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.boat-profile-save>.subtle{font-size:12px;line-height:1.8}.boat-profile-save [role=status]{margin:14px 0 10px;font-size:13px;color:var(--blue);line-height:1.7}.boat-profile-save [role=status].error{color:var(--danger)}.boat-profile-save .primary{width:100%;margin-top:6px}
:root[data-theme=night] .boat-profile-picture>img{filter:grayscale(1) brightness(.6) sepia(1) saturate(8) hue-rotate(315deg)}
@media(min-width:700px){.boat-profile-header{padding-left:max(24px,calc((100vw - 800px)/2));padding-right:max(24px,calc((100vw - 800px)/2));min-height:112px}.boat-profile-header h2{font-size:32px}.boat-profile-body{padding-top:8px}.boat-profile-preview{gap:28px}.boat-profile-picture{min-height:216px}.boat-profile-picture>svg{height:196px}.boat-profile-preview-name{font-size:32px}.boat-profile-fields{gap:24px}.boat-profile-type-grid{gap:14px}.boat-profile-type>span{min-height:165px;padding:16px}.boat-profile-type>span>svg{width:70px;height:92px}.boat-profile-type>span>span{font-size:13px}.boat-profile-save .primary{width:auto;min-width:220px}}
@media(max-width:359px){.boat-profile-header{gap:8px;padding-left:12px;padding-right:12px}.boat-profile-header h2{font-size:24px}.boat-profile-body{padding-left:16px;padding-right:16px}.boat-profile-preview{gap:14px}.boat-profile-picture{min-height:178px}.boat-profile-preview-name{font-size:22px}.boat-profile-dimensions{gap:12px}.boat-profile-type-grid{gap:7px}.boat-profile-type>span{min-height:138px}.boat-profile-fields label{font-size:12px}.boat-profile-fields label>span{font-size:10px}}
/* Go route shell and existing accessible flag selector. */
body:has(#view-profile:not([hidden])) .app-header,body:has(#view-profile:not([hidden])) nav,body:has(#view-profile:not([hidden])) .places-header{display:none!important}
#view-profile.boat-profile-view{z-index:1300}.boat-profile-fields .select-field{flex:0 0 100%;width:100%;min-width:0}.boat-profile-fields .select-trigger{font-size:15px}.boat-profile-fields label .select-options span{margin:0}
