.route-notes-page{max-width:960px;margin:auto;padding-bottom:28px}.route-notes-intro,.route-note-card{padding:18px;border:2px solid color-mix(in srgb,var(--note-color,var(--blue)) 55%,var(--line));border-radius:18px;background:var(--paper)}.route-notes-intro small{color:var(--blue);font-size:10px;letter-spacing:1.4px}.route-notes-intro h2{margin:8px 0}.route-notes-intro p,.route-note-distance,[data-location-status]{color:var(--muted);font-size:12px}.route-notes-tools,.route-note-folders,.route-note-actions,.route-note-add{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.route-notes-tools .primary{flex:1}.route-note-folders button{min-height:38px;max-width:100%;overflow-wrap:anywhere}.route-notes-page [data-search]{box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);margin-bottom:14px}.route-notes-list{display:grid;gap:12px}.route-note-title{display:block;text-align:left;background:none;border:0;color:var(--ink);font-size:20px;font-weight:800;padding:8px 0;overflow-wrap:anywhere}.route-note-card{border-left:5px solid var(--note-color);min-width:0}.route-note-nearby{display:inline-block;color:var(--note-color);font-weight:750;background:color-mix(in srgb,var(--note-color) 12%,transparent);padding:6px 10px;border-radius:999px}.route-note-field{position:relative;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:12px}.route-note-field>small{display:block;color:var(--muted);font-size:12px}.route-note-field p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;line-height:1.6}.route-note-field img,.route-note-edit-field img{max-width:100%;max-height:340px;object-fit:contain;border-radius:10px}.route-note-actions{justify-content:flex-end}.route-note-delete{color:#f87171;background:rgba(244,63,94,.08);border:1px solid rgba(244,63,94,.3);border-radius:10px;padding:9px 14px}.route-note-builder{display:grid;gap:14px}.route-note-builder label{display:grid;gap:7px;font-size:12px;color:var(--muted)}.route-note-builder input:not([type=checkbox]),.route-note-builder textarea,.route-note-builder select{box-sizing:border-box;width:100%;min-width:0;padding:11px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font:inherit;font-size:16px}.route-note-fields-editor{display:grid;gap:12px}.route-note-edit-field{padding:12px;display:grid;gap:10px;border:1px solid var(--line);border-radius:12px;min-width:0}.route-note-field-head{display:flex;align-items:center;gap:6px}.route-note-field-head strong{margin-right:auto;font-size:12px}.route-note-field-head button{width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}.route-note-builder .route-note-template{display:flex;align-items:center;gap:9px}.route-note-builder input[type=checkbox]{width:22px;height:22px;accent-color:var(--blue)}.route-note-add select{flex:1}.route-note-builder [data-error]{color:#fb7185}.route-note-builder.is-template .route-note-edit-field>:not(.route-note-field-head):not(input[placeholder]){display:none}.route-note-builder.uses-template .route-note-field-head button{display:none}.route-note-builder.uses-template input[placeholder="Custom field label"]{pointer-events:none;background:transparent;border:0;font-size:12px;padding:0}.route-notes-page [data-all]{width:100%;margin:14px 0}.route-notes-page [hidden],.route-note-builder [hidden]{display:none!important}@media(min-width:760px){.route-notes-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.route-notes-tools button{font-size:12px;padding:10px}.route-note-card{padding:13px}}
.route-note-folders{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:20px 0}.route-note-collections-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.route-note-collections-heading h2{margin:0;font-size:27px;letter-spacing:-.6px;overflow-wrap:anywhere}.route-note-collections-heading button{flex-shrink:0;border-radius:999px;min-width:42px}.route-note-folder-group{overflow:hidden;border-radius:22px;background:var(--paper);border:1px solid var(--line)}.route-note-folder-group .route-note-folder-row{position:relative;display:flex;align-items:center;gap:16px;width:100%;max-width:none;min-height:92px;margin:0;padding:18px 22px;text-align:left;border:0;border-radius:0;background:transparent;color:var(--ink);box-shadow:none}.route-note-folder-row:not(:last-child):after{content:'';position:absolute;bottom:0;left:76px;right:22px;height:1px;background:var(--line)}.route-note-folder-row>svg{width:34px;height:34px;flex-shrink:0;color:var(--folder-color)}.route-note-folder-text{display:grid;gap:6px;min-width:0;flex:1}.route-note-folder-text strong{font-size:18px;font-weight:750;overflow-wrap:anywhere}.route-note-folder-text small{font-size:14px;color:var(--muted);font-weight:400}.route-note-folder-chevron{color:var(--muted);font-size:30px;font-weight:400}.route-note-folder-row:hover{background:color-mix(in srgb,var(--blue) 6%,transparent)}.route-note-folder-row:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}@media(max-width:360px){.route-note-folder-group .route-note-folder-row{padding:16px;gap:12px}.route-note-folder-text strong{font-size:16px}.route-note-folder-row:not(:last-child):after{left:62px;right:16px}}
.route-notes-list{display:block;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--paper)}.route-notes-list:empty{display:none}.route-notes-list .route-note-list-row{position:relative;padding:20px 56px 20px 20px;border:0;border-radius:0;background:transparent;cursor:pointer}.route-note-list-row:not(:last-child):after{content:'';height:1px;position:absolute;bottom:0;left:20px;right:20px;background:var(--line)}.route-note-list-row .route-note-title{font-size:19px;line-height:1.35;padding:0 0 9px}.route-note-preview{display:grid;gap:7px;margin:0}.route-note-preview-line{display:flex;gap:7px;align-items:baseline;min-width:0;font-size:14px;line-height:1.5}.route-note-preview-label{flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}.route-note-preview-value{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.route-note-preview-tag{border-radius:5px;padding:1px 7px;background:color-mix(in srgb,var(--note-color) 24%,var(--paper));color:var(--note-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.route-note-row-more{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:36px;height:40px;padding:0;border:0;background:none;color:var(--blue);font-size:17px;letter-spacing:1px}.route-note-list-row:hover{background:color-mix(in srgb,var(--blue) 4%,transparent)}.route-note-list-row:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}.route-note-preview-settings{display:grid;gap:14px;padding-top:8px}.route-note-preview-settings>p{font-size:13px;color:var(--muted)}.route-note-preview-settings label{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.route-note-preview-settings input{width:20px;height:20px;accent-color:var(--blue);flex-shrink:0}
.route-notes-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--blue) 5%,var(--paper));font-size:12px;color:var(--muted)}.route-notes-hud #routeNotesBackupStatus{width:auto;margin:0;padding:3px 0;border:0;background:none;color:var(--muted);font-size:11px;text-align:right;box-shadow:none}.route-notes-hud #routeNotesBackupStatus:before{content:'●';font-size:8px;margin-right:5px;color:var(--blue)}.route-notes-hud #routeNotesBackupStatus[data-state=error]{color:var(--muted);border:0;background:none}.route-notes-tools{flex-wrap:nowrap}.route-notes-tools [data-locate]{flex:0 0 auto;font-size:12px;padding-inline:12px}.route-notes-page [data-location-status]{margin:8px 0 12px;font-size:11px}.route-note-nearby-quick{width:100%;display:grid;gap:6px;text-align:left;padding:12px 15px;margin-bottom:14px;border:1px solid color-mix(in srgb,var(--blue) 50%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--blue) 8%,var(--paper));color:var(--ink)}.route-note-nearby-quick small{color:var(--blue);font-size:10px}.route-note-nearby-quick strong{font-size:15px;overflow-wrap:anywhere}.route-note-nearby-quick span{color:var(--muted);font-size:11px}.route-notes-page [data-search]{margin-top:0}.route-note-folders{margin-top:4px}.route-note-collections-heading h2{font-size:23px}
.route-note-header-actions{display:flex;gap:8px;margin-left:auto}.route-note-header-actions>button{display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:999px;border:1px solid var(--line);background:color-mix(in srgb,var(--paper) 88%,transparent);color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);font-size:28px;font-weight:400}.route-note-header-actions svg{width:19px;height:19px}.route-notes-page .page-back-header{display:flex;align-items:center;gap:10px}.route-notes-page .page-back-header h1{font-size:25px}.route-note-templates-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.route-note-templates-heading h2{margin:0;font-size:23px}.route-notes-page.is-search{min-height:calc(100dvh - 190px);padding-bottom:110px}.route-notes-page.is-search .page-back-header h1{font-size:34px;font-weight:850;letter-spacing:-1px}.route-note-search-empty{min-height:46dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px;color:var(--muted);padding:20px}.route-note-search-empty svg{width:65px;height:65px;opacity:.5}.route-note-search-empty p{max-width:280px;font-size:17px;line-height:1.5;opacity:.75}.route-note-search-bar{position:fixed;bottom:calc(84px + env(safe-area-inset-bottom));left:16px;right:16px;z-index:45;display:flex;gap:10px;padding:8px 0;background:var(--bg)}.route-note-search-bar>button{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;padding:12px;border-radius:999px;border:1px solid var(--line);background:var(--paper);color:var(--ink)}.route-note-search-bar svg{width:23px;height:23px}.route-note-search-bar label{display:flex;align-items:center;gap:9px;flex:1;min-width:0;padding:0 15px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}.route-note-search-bar label>span{font-size:27px}.route-notes-page .route-note-search-bar [data-search]{border:0;padding:12px 0;background:none;margin:0;outline:none;font-size:16px;border-radius:0}.route-note-search-bar label:focus-within{border-color:var(--blue)}.route-note-search-template{width:100%;padding:15px 20px;text-align:left;background:color-mix(in srgb,var(--blue) 6%,var(--paper));color:var(--blue);border:0;border-bottom:1px solid var(--line);font-weight:700}@media(min-width:761px){.route-note-search-bar{left:max(250px,calc((100vw - 700px)/2));right:max(24px,calc((100vw - 1100px)/2));bottom:24px;max-width:850px}.route-notes-page.is-search{min-height:calc(100dvh - 100px)}}
/* Keep the entire Search surface inside the visible viewport when iOS opens the keyboard. */
.route-notes-page.is-search{position:fixed;z-index:150;top:var(--search-viewport-top,0px);left:0;right:0;width:auto;max-width:none;height:var(--search-viewport-height,100dvh);min-height:0;margin:0;box-sizing:border-box;padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:var(--bg);display:flex;flex-direction:column;gap:12px;overflow:hidden;overscroll-behavior:none}.route-notes-page.is-search>.page-back-header{flex:0 0 auto;margin:0;min-height:42px}.route-notes-page.is-search>.route-notes-tools,.route-notes-page.is-search>[data-nearby]{display:none}.route-notes-page.is-search>[data-library]{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:12px}.route-notes-page.is-search>[data-detail]:not(:empty){flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.route-notes-page.is-search>[data-detail]:empty{display:none}.route-notes-page.is-search>.route-note-search-bar{position:static;flex:0 0 auto;inset:auto;width:100%;max-width:none;margin:0;padding:4px 0;box-sizing:border-box}.route-notes-page.is-search .route-note-search-empty{min-height:0;height:100%;box-sizing:border-box}.route-notes-page.is-search .route-note-search-empty svg{flex-shrink:0;width:48px;height:48px}.route-notes-page.is-search>[data-all]{flex-shrink:0;margin:0}.route-notes-page.is-search .route-notes-list{margin-top:0}@media(min-width:761px){.route-notes-page.is-search{padding-left:max(24px,calc((100vw - 960px)/2));padding-right:max(24px,calc((100vw - 960px)/2))}}
.route-note-accent-picker{min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--blue) 3%,var(--paper))}.route-note-accent-picker legend{padding:0 6px;font-size:12px;color:var(--muted)}.route-note-accent-picker [data-color-swatches]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.route-note-color-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;padding:10px 3px;border:1px solid transparent;border-radius:12px;color:var(--muted);background:transparent;font-size:10px}.route-note-color-option i{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}.route-note-color-option[aria-pressed=true]{color:var(--ink);border-color:color-mix(in srgb,var(--blue) 50%,var(--line));background:color-mix(in srgb,var(--blue) 10%,var(--paper))}.route-note-color-option[aria-pressed=true] i:after{content:'✓';color:white;font-size:16px;text-shadow:0 1px 3px #0008}.route-note-color-option span{text-align:center;overflow-wrap:anywhere}.route-note-accent-picker>small{display:block;margin-top:11px;font-size:10px;color:var(--muted)}.route-note-builder>label{font-weight:600}.route-note-builder .route-note-add{padding:10px;border-radius:13px;background:color-mix(in srgb,var(--blue) 4%,var(--paper));border:1px solid var(--line)}.route-note-color-option:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.route-note-builder.is-template>.route-note-fields-editor,.route-note-builder.is-template>.route-note-add{display:none}.route-template-fields-button{display:flex;align-items:center;gap:12px;width:100%;padding:16px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--blue) 5%,var(--paper));color:var(--ink);text-align:left}.route-template-fields-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--blue) 12%,var(--paper));color:var(--blue);font-size:24px}.route-template-fields-button small{margin-left:auto;color:var(--muted);font-size:12px}.route-fields-sheet{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px!important;border-radius:24px!important}.route-fields-sheet>header{position:sticky;top:-20px;background:var(--paper);z-index:2;padding-block:6px 14px}.route-fields-form{display:grid;gap:18px}.route-fields-caption{font-size:12px;line-height:1.5;color:var(--muted);margin:0}.route-fields-selected,.route-fields-catalog{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:color-mix(in srgb,var(--blue) 3%,var(--paper))}.route-fields-form h3{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);padding:14px 16px;margin:0}.route-fields-selected>.route-fields-caption{padding:0 16px 16px}.route-field-row{display:flex;align-items:center;gap:9px;padding:14px 12px;min-width:0;border-top:1px solid var(--line)}.route-field-remove,.route-field-plus{width:25px;height:25px;flex-shrink:0;border:0;border-radius:50%;display:grid;place-items:center;font-size:22px;line-height:1}.route-field-remove{color:#fb7185;background:rgba(244,63,94,.12);padding:0}.route-field-plus{color:var(--green);background:color-mix(in srgb,var(--green) 14%,transparent)}.route-field-mark{font-size:23px;font-weight:600;color:var(--blue);width:28px;flex-shrink:0;text-align:center}.route-field-label{display:grid;gap:4px;flex:1;min-width:0}.route-field-label input{width:100%;min-width:0;box-sizing:border-box;background:transparent;color:var(--ink);border:0;border-bottom:1px solid transparent;font-size:16px;font-weight:650;padding:3px 0;outline:none}.route-field-label input:focus{border-bottom-color:var(--blue)}.route-field-label small{font-size:11px;color:var(--muted)}.route-field-order{display:flex;flex-direction:column;gap:2px}.route-field-order button,.route-field-drag{border:0;background:transparent;color:var(--muted);padding:2px 5px;font-size:15px}.route-field-order button:disabled{opacity:.25}.route-field-drag{touch-action:none;padding:10px 3px;font-size:20px;cursor:grab}.route-field-row.is-dragging{background:color-mix(in srgb,var(--blue) 12%,var(--paper));outline:1px solid var(--blue);outline-offset:-1px}.route-field-add{display:flex;align-items:center;gap:12px;width:100%;padding:15px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);text-align:left}.route-field-add strong{font-size:14px;font-weight:600}.route-field-add-hint{margin-left:auto;font-size:11px;color:var(--muted)}.route-fields-form>button[type=submit]{position:sticky;bottom:-20px;min-height:44px;box-shadow:0 -8px 20px var(--paper)}@media(max-width:370px){.route-field-row{gap:6px;padding-inline:8px}.route-field-mark{width:23px}.route-field-drag{padding-inline:0}}
.route-accent-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line);font-size:14px;font-weight:650;color:var(--ink)}.route-icon-preview{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.route-icon-preview svg{width:28px;height:28px}.route-note-accent-picker [data-color-swatches]{display:flex;gap:9px;overflow-x:auto;padding:3px 1px 9px;scrollbar-width:thin}.route-note-accent-picker .route-note-color-option{flex:0 0 46px;min-height:46px;padding:5px;border-radius:999px}.route-note-accent-picker .route-note-color-option i{width:32px;height:32px}.route-note-accent-picker .route-note-color-option span{display:none}.route-icon-sheet{width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 32px);border-radius:24px!important}.route-icon-search{box-sizing:border-box;width:100%;padding:12px 15px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--ink);font-size:16px;margin:8px 0 18px}.route-icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.route-icon-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:84px;padding:10px 4px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--blue) 4%,var(--paper))}.route-icon-grid svg{width:30px;height:30px}.route-icon-grid small{font-size:10px;color:var(--muted)}.route-icon-grid button[aria-pressed=true]{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 13%,var(--paper));box-shadow:inset 0 0 0 1px var(--blue)}.route-icon-grid button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.route-template-menu-button{display:grid;place-items:center;flex-shrink:0;min-width:42px;height:38px;padding:0 8px;margin-left:auto;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--paper) 90%,transparent);color:var(--ink);letter-spacing:2px;font-size:16px}.route-notes-page.is-folder .page-back-header{gap:12px;margin-bottom:14px}.route-notes-page.is-folder .page-back-header>[data-back]{width:38px;min-width:38px;height:38px;padding:0;border-radius:999px;font-size:28px;line-height:1}.route-notes-page.is-folder .page-back-header h1{font-size:21px;line-height:1.25;min-width:0;overflow-wrap:anywhere;flex:1;margin:0}.route-notes-page.is-folder .route-note-folders{display:none}.route-template-menu{width:min(360px,calc(100vw - 32px));border-radius:20px!important}.route-template-menu>button{display:block;width:100%;min-height:46px;text-align:left;margin-top:9px;border-radius:12px}.route-notes-page.is-folder .route-notes-tools{margin:0 0 16px}

.route-notes-page.is-folder .page-back-header{margin:0 0 14px;padding:18px 20px;border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--blue) 10%,var(--paper));color:var(--ink);box-shadow:var(--shadow)}.route-notes-page.is-folder .page-back-header h1{font-size:22px;line-height:1.2;letter-spacing:-.025em}.route-folder-search{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;min-height:46px;margin:0 0 16px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted)}.route-folder-search svg{width:19px;height:19px;flex-shrink:0}.route-folder-search input{flex:1;min-width:0;width:100%;padding:12px 0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:16px;outline:none}.route-folder-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 12%,transparent)}@media(max-width:760px){.route-notes-page.is-folder .page-back-header{padding:16px;border-radius:15px}.route-notes-page.is-folder .page-back-header h1{font-size:21px}}

.route-notes-page:not(.is-search):not(.is-folder)>.page-back-header{margin:0 0 14px;padding:18px 20px;border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--blue) 10%,var(--paper));color:var(--ink);box-shadow:var(--shadow)}
.route-notes-page:not(.is-search):not(.is-folder)>.page-back-header h1{margin:0;font-size:22px;line-height:1.2;letter-spacing:-.025em;flex:1;min-width:0}
.route-notes-page:not(.is-search):not(.is-folder)>.page-back-header>[data-back]{padding:0;width:38px;min-width:38px;height:38px;border-radius:999px;font-size:28px;line-height:1}
.route-notes-page:not(.is-search):not(.is-folder) .route-note-header-actions{gap:6px}
@media(max-width:760px){.route-notes-page:not(.is-search):not(.is-folder)>.page-back-header{padding:16px;border-radius:15px}.route-notes-page:not(.is-search):not(.is-folder)>.page-back-header h1{font-size:21px}}
@media(max-width:360px){.route-notes-page:not(.is-search):not(.is-folder)>.page-back-header{gap:7px;padding:14px 12px}.route-notes-page:not(.is-search):not(.is-folder)>.page-back-header h1{font-size:19px}}

.route-template-hold{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;touch-action:pan-y}

body .route-note-folder-row,body .route-note-folder-row *{-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important}body .route-note-folder-row svg{-webkit-user-drag:none;pointer-events:none}

.route-note-card.route-note-detail{padding:16px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:16px;background:var(--paper)}
.route-note-detail-header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.route-note-detail-header .route-note-title{flex:1;min-width:0;font-size:19px;line-height:1.3;padding:0}.route-note-detail-header .route-note-actions{margin:0;flex-wrap:nowrap;gap:6px;flex-shrink:0}.route-note-detail-header .route-note-actions button{min-height:32px;padding:6px 9px;font-size:11px}
.route-note-field-group{overflow:hidden;border-radius:12px;background:color-mix(in srgb,var(--bg) 40%,var(--paper));border:1px solid color-mix(in srgb,var(--line) 55%,transparent)}
.route-note-detail .route-note-field{margin:0;padding:12px 14px;border:0;border-bottom:1px solid color-mix(in srgb,var(--ink) 8%,transparent);border-radius:0}.dark .route-note-detail .route-note-field{border-bottom-color:rgba(255,255,255,.08)}.route-note-detail .route-note-field:last-child{border-bottom:0}.route-note-detail .route-note-field>small{font-size:11px;font-weight:500;line-height:1.4;color:var(--muted)}.route-note-detail .route-note-field p{font-size:17px;font-weight:600;line-height:1.45;margin:5px 0 0;color:var(--ink)}.route-note-detail .route-note-field img{display:block;margin-top:8px}.route-note-detail .route-note-distance{display:block;margin-bottom:10px}.route-notes-tools:has(>[data-create][hidden]){display:none}

.route-template-sort-row{position:relative;display:flex;align-items:stretch;min-width:0}.route-template-sort-row:not(:last-child):after{position:absolute;content:'';left:76px;right:18px;bottom:0;height:1px;background:var(--line)}.route-template-sort-row .route-note-folder-row{flex:1;min-width:0;padding-right:6px}.route-template-sort-row .route-note-folder-row:after{display:none}.route-template-sort-handle{flex:0 0 38px;align-self:stretch;margin:0 8px 0 0;padding:0;border:0;background:transparent;color:var(--muted);font-size:19px;touch-action:none;cursor:grab;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.route-template-sort-row.is-sorting{background:color-mix(in srgb,var(--blue) 13%,var(--paper));box-shadow:inset 0 0 0 1px var(--blue);z-index:1}.route-template-sort-handle:focus-visible{outline:2px solid var(--blue);outline-offset:-4px;border-radius:8px}

.route-notes-page.is-folder:not(.is-search) .route-notes-tools{position:fixed;z-index:40;right:max(16px,env(safe-area-inset-right));bottom:calc(88px + env(safe-area-inset-bottom));width:auto;margin:0;padding:5px;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--paper) 80%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 8px 26px rgba(0,0,0,.22)}
.route-notes-page.is-folder:not(.is-search) .route-notes-tools [data-create]{flex:none;min-width:150px;min-height:46px;padding:12px 23px;border-radius:999px;font-size:15px;font-weight:750;box-shadow:0 4px 18px color-mix(in srgb,var(--blue) 24%,transparent)}
.route-notes-page.is-folder:not(.is-search){padding-bottom:100px}.route-notes-page.is-folder:not(.is-search) .route-folder-search{margin-top:0}
@media(min-width:761px){.route-notes-page.is-folder:not(.is-search) .route-notes-tools{bottom:26px;right:32px}}

.driver-tool-dialog.route-note-entry-sheet{width:min(620px,calc(100vw - 20px));max-height:calc(100dvh - 28px);border:1px solid var(--line);border-radius:28px;padding:20px;background:var(--bg)}
.route-note-entry-sheet>header{position:sticky;top:-20px;z-index:3;display:flex;align-items:center;gap:10px;margin:0 0 20px;padding:8px 0 14px;background:var(--bg)}.route-note-entry-sheet>header h2{flex:1;text-align:center;font-size:19px;margin:0}.route-note-entry-sheet>header>button:first-child{order:0;flex-shrink:0;width:40px;height:40px;border-radius:999px}.route-note-entry-sheet>header>button[type=submit]{width:auto;min-width:70px;min-height:40px;padding:8px 17px;border-radius:999px;font-size:14px;background:var(--blue);color:var(--accent-foreground,#fff);border:1px solid var(--blue)}
.route-note-entry-folder{margin:0;color:var(--muted);font-size:11px;text-align:center}.route-note-entry-form{gap:16px}.route-note-entry-form>label{padding:13px 16px;background:var(--paper);border-radius:16px;font-size:11px}.route-note-entry-form>label>input{padding:8px 0 0!important;border:0!important;background:none!important;font-size:17px!important;font-weight:600}.route-note-entry-form .route-note-fields-editor{gap:0;border:1px solid color-mix(in srgb,var(--line) 55%,transparent);border-radius:18px;overflow:hidden;background:var(--paper)}.route-note-entry-form .route-note-edit-field{border:0;border-bottom:1px solid color-mix(in srgb,var(--ink) 8%,transparent);border-radius:0;padding:14px 16px;gap:6px}.route-note-entry-form .route-note-edit-field:last-child{border-bottom:0}.route-note-entry-form .route-note-entry-label{font-size:12px;color:var(--muted);font-weight:600}.route-note-entry-form .route-note-edit-field>input:not([type=file]):not([type=checkbox]),.route-note-entry-form .route-note-edit-field>textarea{background:none;border:0;border-radius:0;padding:5px 0;font-size:17px;color:var(--ink);font-weight:500}.route-note-entry-form .route-note-edit-field>textarea{min-height:130px;resize:vertical}.route-note-entry-form .route-note-edit-field>input:focus,.route-note-entry-form .route-note-edit-field>textarea:focus{outline:0;box-shadow:none}.route-note-entry-form .route-note-edit-field:focus-within{background:color-mix(in srgb,var(--blue) 4%,var(--paper))}.route-note-photo-choose{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:130px;border:1px dashed var(--line);border-radius:14px;background:color-mix(in srgb,var(--bg) 45%,var(--paper));color:var(--muted);font-size:12px}.route-note-photo-choose svg{width:34px;height:34px}.route-note-entry-form .route-note-edit-field[data-field-type=photo]{gap:10px;padding-block:18px}.route-note-entry-form .route-note-field-head{display:none}

.route-field-link{display:inline-block;margin-top:7px;color:var(--blue);font-size:16px;font-weight:600;text-decoration:none;overflow-wrap:anywhere}.route-field-stars{display:flex;gap:5px;margin-top:5px}.route-field-stars button{border:0;background:transparent;color:var(--blue);font-size:27px;padding:2px;min-width:32px;min-height:38px}.route-field-check{display:flex;align-items:center;gap:9px;padding:9px 0;font-size:14px}.route-field-check input{width:19px;height:19px;accent-color:var(--blue)}.route-field-timer{margin-top:8px;border-radius:999px!important;font-size:12px!important}.route-note-detail .route-field-address{font-size:12px!important;color:var(--muted)!important;font-weight:400!important}

.driver-tool-dialog.route-starter-gallery{width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 32px);border-radius:24px;padding:20px}.route-starter-list{display:grid;gap:10px;margin-top:16px}.route-starter-blank{display:grid;gap:6px;padding:17px;text-align:left;border:1px solid var(--blue);border-radius:16px;background:color-mix(in srgb,var(--blue) 10%,var(--paper));color:var(--ink)}.route-starter-blank strong{color:var(--blue);font-size:16px}.route-starter-blank small{color:var(--muted);font-size:12px}.route-starter-card{display:flex;align-items:flex-start;gap:12px;padding:16px 14px;text-align:left;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);min-width:0}.route-starter-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid color-mix(in srgb,var(--starter-color) 25%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--starter-color) 10%,var(--paper));color:var(--starter-color)}.route-starter-icon svg{width:24px;height:24px}.route-starter-copy{display:grid;gap:6px;min-width:0;flex:1}.route-starter-copy strong{font-size:14px;line-height:1.35}.route-starter-copy small{font-size:12px;line-height:1.5;color:var(--muted)}.route-starter-count{font-size:10px;color:var(--starter-color);margin-top:2px}.route-starter-chevron{align-self:center;color:var(--muted);font-size:24px}.route-starter-card:hover{border-color:var(--starter-color)}.route-starter-list button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

.driver-tool-dialog.route-number-keypad{position:fixed;inset:auto 0 0;margin:0 auto;width:min(460px,100vw);max-width:100vw;max-height:95dvh;box-sizing:border-box;padding:20px 18px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:var(--paper);border:1px solid var(--line);border-top:2px solid var(--blue)}.route-number-display{display:block;min-height:48px;text-align:right;font-size:34px;font-weight:700;padding:10px 6px 18px;overflow-wrap:anywhere;color:var(--ink)}.route-number-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.route-number-keys button{min-height:53px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--blue) 4%,var(--bg));color:var(--ink);font-size:25px;font-weight:600}.route-number-keys button:active{background:color-mix(in srgb,var(--blue) 20%,var(--paper))}.route-number-actions{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px;margin-top:13px}.route-number-actions button{min-height:44px;border-radius:999px}.route-number-keypad>header h2{font-size:17px}.route-number-keypad>p{margin-top:8px}

.route-choice-pills{display:flex;flex-wrap:wrap;gap:7px;padding:7px 0}.route-choice-pills button{padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--muted);font-size:13px;max-width:100%;overflow-wrap:anywhere}.route-choice-pills button[aria-pressed=true]{color:var(--blue);background:color-mix(in srgb,var(--blue) 14%,var(--paper));border-color:var(--blue)}.route-field-label .route-choice-options{font-size:12px;font-weight:400;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--bg);margin-top:5px}.route-note-entry-form input.route-hud-switch[type=checkbox]{appearance:none;-webkit-appearance:none;display:block;position:relative;width:50px;height:29px;min-height:29px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--muted) 28%,var(--paper));margin:5px 0;cursor:pointer;transition:background .16s}.route-hud-switch:before{content:'';position:absolute;width:21px;height:21px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0003;transition:transform .16s}.route-note-entry-form input.route-hud-switch:checked{background:var(--blue);border-color:var(--blue)}.route-hud-switch:checked:before{transform:translateX(21px)}.route-note-entry-form input.route-hud-switch:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

.route-notes-page.is-folder .page-back-header{flex-wrap:wrap;gap:10px}.route-template-emblem{display:grid;place-items:center;color:var(--template-accent,var(--blue));width:27px;flex:0 0 27px}.route-template-emblem svg{width:25px;height:25px}.route-template-telemetry{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%;padding-left:48px;margin-top:1px}.route-template-telemetry span{font-size:9px;font-weight:750;letter-spacing:.65px;padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--paper) 65%,transparent);color:var(--muted)}.route-template-telemetry .route-gps-auto{color:var(--blue);border-color:color-mix(in srgb,var(--blue) 25%,var(--line))}.route-notes-page.empty-folder .route-notes-list{border:0;background:none;overflow:visible}.route-folder-empty-hud{text-align:center;padding:28px 22px;border:2px solid color-mix(in srgb,var(--template-accent,var(--blue)) 28%,var(--line));border-radius:22px;background:radial-gradient(ellipse at top,color-mix(in srgb,var(--template-accent,var(--blue)) 10%,transparent),transparent 70%),color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(14px);box-shadow:inset 0 1px rgba(255,255,255,.05)}.route-empty-radar{width:80px;height:80px;margin:0 auto 12px;color:var(--template-accent,var(--blue));filter:drop-shadow(0 0 12px color-mix(in srgb,var(--template-accent,var(--blue)) 40%,transparent))}.route-empty-radar svg{width:100%;height:100%}.route-empty-eyebrow{display:inline-flex;font-size:9px;font-weight:750;letter-spacing:1px;color:var(--blue);border-radius:999px;padding:5px 9px;background:color-mix(in srgb,var(--blue) 10%,var(--paper))}.route-folder-empty-hud h2{font-size:22px;line-height:1.25;letter-spacing:-.4px;margin:16px 0 9px;overflow-wrap:anywhere}.route-folder-empty-hud>p{color:var(--muted);font-size:12px;line-height:1.6;margin:0 auto;max-width:340px}.route-empty-field-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:18px 0 22px}.route-empty-field-chips span{font-size:10px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--paper)}.route-folder-empty-hud>.primary{width:100%;min-height:46px;border-radius:13px}.route-notes-page.has-folder-notes .route-notes-list{border:0;background:transparent;overflow:visible;display:grid;gap:10px}.route-notes-page.has-folder-notes .route-note-list-row{border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:15px;background:var(--paper);padding:16px 48px 16px 16px}.route-notes-page.has-folder-notes .route-note-list-row:after{display:none}.route-note-list-row .route-note-preview{display:flex;flex-wrap:wrap;gap:6px}.route-note-list-row .route-note-preview-line{display:flex;max-width:100%;gap:5px;padding:4px 7px;border:1px solid color-mix(in srgb,var(--line) 70%,transparent);border-radius:8px;background:color-mix(in srgb,var(--bg) 40%,var(--paper));font-size:11px}.route-note-list-row .route-note-preview-label{max-width:100px}.route-note-list-row .route-note-preview-value{max-width:180px}.route-note-list-row .route-note-distance,.route-note-gps-pill{display:inline-flex;font-size:9px;padding:3px 7px;border-radius:999px;color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,var(--paper));margin:0 0 9px}@media(max-width:360px){.route-notes-page.is-folder .page-back-header h1{font-size:18px}.route-template-emblem{width:20px;flex-basis:20px}}

.route-tag-picker,.route-tag-editor{width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 32px);border-radius:24px!important}.route-tag-picker>header{display:flex;gap:10px}.route-tag-picker>header h2{flex:1}.route-tag-add{border:1px solid var(--line);border-radius:999px;width:38px;height:38px;color:var(--blue);background:var(--paper);font-size:26px}.route-tag-list{border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:14px 0}.route-tag-row{display:flex;align-items:center;border-bottom:1px solid var(--line)}.route-tag-row:last-child{border-bottom:0}.route-tag-select{display:flex;align-items:center;gap:12px;min-height:54px;flex:1;min-width:0;padding:12px 14px;background:var(--paper);color:var(--ink);text-align:left;border:0;font-size:15px}.route-tag-select>span:not(.route-tag-mark){overflow-wrap:anywhere;flex:1}.route-tag-mark{width:22px;flex:0 0 22px}.route-tag-mark svg{width:22px;height:22px}.route-tag-check{color:var(--blue);font-size:18px}.route-tag-edit{border:0;background:none;color:var(--muted);padding:12px}.route-tag-form{display:grid;gap:16px}.route-tag-form label{display:grid;gap:8px;font-size:12px;color:var(--muted)}.route-tag-form input:not([type=checkbox]){padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--ink);font-size:16px}.route-tag-form .route-tag-color-toggle{display:flex;align-items:center;justify-content:space-between}.route-tag-colors{display:flex;gap:10px;overflow:auto;padding:4px}.route-tag-swatch{width:32px;height:32px;flex:0 0 32px;border:2px solid var(--paper);border-radius:999px}.route-tag-swatch[aria-pressed=true]{outline:2px solid var(--blue);outline-offset:2px}.route-tag-form [data-icon]{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px}.route-tag-form [data-icon] svg{width:28px;height:28px;color:var(--blue)}.route-tag-field-button{display:flex;align-items:center;gap:10px;padding:10px 0;border:0;background:none;color:var(--ink);text-align:left;font-size:17px}.route-tag-field-button>span:not(.route-tag-mark){flex:1}.route-tag-field-button small{color:var(--muted);font-size:22px}.route-manage-tags{font-size:11px;margin-top:6px;padding:8px;border-radius:9px}.route-tag-form input.route-hud-switch{appearance:none;-webkit-appearance:none;position:relative;width:50px;height:29px;border:1px solid var(--line);border-radius:999px;background:var(--line)}.route-tag-form input.route-hud-switch:checked{background:var(--blue)}.route-tag-colors[hidden]{display:none}

.route-tag-form .route-tag-delete{width:100%;min-height:43px;margin-top:2px;text-align:center;border-radius:12px}

.route-selected-tag{display:inline-block;max-width:100%;box-sizing:border-box;width:fit-content;padding:3px 9px;border-radius:7px;background:var(--tag-color,var(--blue));color:var(--tag-ink,#fff);font-size:12px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;vertical-align:middle}.route-selected-tag.is-neutral{background:color-mix(in srgb,var(--muted) 14%,var(--paper));color:var(--ink);border:1px solid var(--line)}.route-note-field>.route-selected-tag{margin-top:7px;font-size:15px;padding:4px 10px}.route-note-list-row .route-note-preview-line:has(.route-selected-tag){align-items:center}.route-tag-field-button>.route-selected-tag{flex:0 1 auto!important;font-size:15px}.route-tag-field-button>small{margin-left:auto}

.route-tag-picker>header{align-items:center;margin-bottom:16px;gap:8px}.route-tag-heading-copy{flex:1;min-width:0}.route-tag-heading-copy>small{display:block;font-size:9px;letter-spacing:1.4px;font-weight:750;color:var(--muted);margin-bottom:5px}.route-tag-heading-copy h2{font-size:19px!important;line-height:1.25;overflow-wrap:anywhere;margin:0!important}.route-tag-picker>header .route-tag-add{width:auto;min-width:66px;min-height:36px;height:36px;padding:0 11px;border-radius:999px;color:var(--blue);font-size:12px;font-weight:700;background:color-mix(in srgb,var(--blue) 8%,var(--paper))}.route-tag-picker>header>button:last-child{flex:0 0 36px;width:36px;height:36px;border-radius:999px}.route-tag-picker>.route-icon-search{display:block;margin:0 0 14px;min-height:44px;background:var(--bg);border-color:color-mix(in srgb,var(--line) 80%,transparent)}.route-tag-picker .route-tag-list{margin:0;max-height:50dvh;overflow-y:auto;overscroll-behavior:contain}.route-tag-row{padding:4px 8px 4px 0;background:var(--paper)}.route-tag-row.is-selected{background:color-mix(in srgb,var(--blue) 10%,var(--paper))}.route-tag-row .route-tag-select{background:transparent;min-height:55px;padding:9px 12px;font-size:15px;font-weight:600;gap:11px}.route-tag-select .route-tag-mark{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:9px;border:1px solid color-mix(in srgb,var(--tag-medallion-color,var(--blue)) 22%,var(--line));background:color-mix(in srgb,var(--tag-medallion-color,var(--blue)) 11%,var(--paper))}.route-tag-select .route-tag-mark svg{width:21px;height:21px}.route-tag-check{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:999px;background:var(--blue);color:var(--accent-foreground,#fff);font-size:13px}.route-tag-row .route-tag-edit{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--paper) 80%,transparent);color:var(--ink);font-size:12px;letter-spacing:1px;opacity:.85}.route-tag-quick-create{display:block;width:100%;padding:15px;text-align:left;border:0;background:color-mix(in srgb,var(--blue) 7%,var(--paper));color:var(--blue);font-size:14px;font-weight:650;overflow-wrap:anywhere}.route-tag-list>.route-fields-caption{padding:16px}.route-tag-picker button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}

.driver-tool-dialog.route-fields-sheet{max-width:none;width:calc(100% - 12px);margin:8px auto;padding:12px!important;box-sizing:border-box;max-height:calc(100dvh - 16px);height:calc(100dvh - 16px);border-radius:22px!important;overflow:hidden;background:linear-gradient(145deg,color-mix(in srgb,var(--blue) 4%,var(--paper)),var(--paper))}.driver-tool-dialog.route-fields-sheet[open]{display:flex;flex-direction:column;gap:12px}.route-fields-sheet>header{position:static;flex:0 0 auto;padding:2px 0 8px;margin:0}.route-fields-sheet>header h2{font-size:20px}.route-fields-sheet>.route-fields-form{display:flex;flex-direction:column;gap:14px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 1px 10px;scrollbar-width:thin}.route-fields-sheet>button[type=submit]{position:static;flex:0 0 auto;min-height:46px;width:100%;border-radius:13px;margin:0;box-shadow:0 -8px 20px color-mix(in srgb,var(--paper) 90%,transparent)}.route-fields-form h3{font-size:10px;letter-spacing:1.2px;padding:13px 12px}.route-fields-selected,.route-fields-catalog{flex:0 0 auto}.route-field-row{padding:12px 10px;gap:9px}.route-field-row>.route-field-mark{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;font-size:21px;border-radius:10px;border:1px solid color-mix(in srgb,var(--blue) 20%,var(--line));background:color-mix(in srgb,var(--blue) 10%,var(--paper));box-shadow:inset 0 1px rgba(255,255,255,.05)}.route-field-label{gap:7px}.route-field-label input{font-size:15px}.route-field-label>small{display:inline-block;width:fit-content;max-width:100%;box-sizing:border-box;padding:3px 6px;font-size:8px;letter-spacing:.6px;font-weight:750;text-transform:uppercase;line-height:1.35;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:color-mix(in srgb,var(--bg) 40%,var(--paper))}.route-field-order{display:flex;flex-direction:row;gap:0;padding:2px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--bg) 40%,var(--paper));flex-shrink:0}.route-field-order button{width:25px;height:30px;padding:0;font-size:15px}.route-field-drag{font-size:19px;padding:10px 2px;flex-shrink:0}.route-field-remove{width:25px;height:25px;font-size:21px;flex-shrink:0}.route-manage-tags{width:fit-content;max-width:100%;border-radius:999px!important;border:1px solid color-mix(in srgb,var(--blue) 20%,var(--line));background:color-mix(in srgb,var(--blue) 7%,var(--paper));font-size:10px;padding:7px 10px!important;overflow-wrap:anywhere}@media(max-width:360px){.route-field-row{padding:11px 7px;gap:6px}.route-field-order button{width:22px}.route-field-row>.route-field-mark{width:30px;height:30px;flex-basis:30px}.route-field-remove{width:22px;height:22px}.route-field-label input{font-size:14px}}

.route-selected-tag:not(.is-neutral){color:#fff!important;text-shadow:0 1px 2px #0005}.route-modern-value{display:block;width:100%;padding:11px 0;border:0;background:transparent;color:var(--ink);font-size:18px;font-weight:600;text-align:left}.route-modern-value:after{content:'›';float:right;color:var(--muted)}.route-input-picker{width:min(430px,calc(100vw - 24px));border-radius:24px!important}.route-input-form{display:grid;gap:18px}.route-time-controls{display:flex;gap:10px}.route-time-controls label{display:grid;gap:8px;flex:1;min-width:0;font-size:11px;color:var(--muted)}.route-time-controls select{width:100%;min-width:0;padding:14px 7px;border:1px solid var(--line);border-radius:13px;background:var(--bg);color:var(--ink);font-size:21px}.route-calendar-nav{display:flex;align-items:center;justify-content:space-between;gap:8px}.route-calendar-nav strong{font-size:17px}.route-calendar-nav button{border-radius:999px;font-size:22px}.route-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}.route-calendar-grid small{padding:6px;color:var(--muted)}.route-calendar-grid button{padding:0;min-height:38px;border:0;border-radius:999px;background:transparent;color:var(--ink);font-size:16px}.route-calendar-grid button[aria-pressed=true]{background:var(--blue);color:#fff}

.driver-tool-dialog.route-time-wheel-sheet{width:min(430px,calc(100vw - 20px));border-radius:25px;padding:20px;background:var(--paper);border:1px solid color-mix(in srgb,var(--blue) 35%,var(--line))}.route-wheel-summary{display:block;text-align:center;font-size:24px;font-weight:750;color:var(--blue);margin:12px 0}.route-wheel-shell{position:relative;display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid var(--line);border-radius:20px;background:var(--bg);overflow:hidden;margin:16px 0 20px}.route-wheel-shell:before{content:'';position:absolute;pointer-events:none;left:7px;right:7px;top:88px;height:44px;border-radius:12px;background:color-mix(in srgb,var(--blue) 12%,transparent);border:1px solid color-mix(in srgb,var(--blue) 20%,transparent);box-sizing:border-box}.route-time-wheel{height:220px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;padding:88px 0;box-sizing:border-box;overscroll-behavior:contain;touch-action:pan-y;mask-image:linear-gradient(transparent,black 32%,black 68%,transparent);-webkit-mask-image:linear-gradient(transparent,black 32%,black 68%,transparent)}.route-time-wheel::-webkit-scrollbar{display:none}.route-time-wheel button{display:block;width:100%;height:44px;min-height:44px;scroll-snap-align:center;padding:0;border:0;background:transparent;color:var(--muted);font-size:24px;line-height:44px;font-weight:500}.route-time-wheel button.is-selected{color:var(--ink);font-weight:750}.route-time-wheel:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}.route-wheel-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.route-wheel-actions button{min-height:44px;border-radius:999px}

.route-timer-wheels{grid-template-columns:1fr 1fr}.route-timer-modes{display:flex;gap:6px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--bg);margin:12px 0}.route-timer-modes button{flex:1;border:0;border-radius:999px;padding:9px;color:var(--muted);background:transparent;font-size:12px;font-weight:650}.route-timer-modes button[aria-pressed=true]{background:color-mix(in srgb,var(--blue) 15%,var(--paper));color:var(--blue)}.route-timer-manual{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px 0 24px}.route-timer-manual label{display:grid;gap:8px;color:var(--muted);font-size:12px}.route-timer-manual input{min-width:0;width:100%;box-sizing:border-box;padding:17px 10px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--ink);font-size:28px;text-align:center}.route-time-wheel-sheet [hidden]{display:none!important}

.route-default-sort{display:grid;gap:15px;padding-top:10px}.route-default-sort label{display:grid;gap:8px;font-size:12px;color:var(--muted)}.route-default-sort select{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);font-size:16px}.route-folder-sort{display:block;margin:-4px 0 14px auto;border-radius:999px;padding:7px 13px;font-size:11px}.route-note-preview{max-width:100%}.route-note-preview-line{max-width:100%}

.route-note-list-row .route-note-preview{display:grid;grid-template-columns:minmax(0,1fr);gap:0;width:100%;margin-top:3px}.route-note-list-row .route-note-preview-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px;width:100%;box-sizing:border-box;max-width:none;min-width:0;padding:5px 0;border:0;border-radius:0;background:none;font-size:13px;line-height:1.5}.route-note-list-row .route-note-preview-label{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;color:var(--ink);font-weight:500}.route-note-list-row .route-note-preview-value{flex:1 1 80px;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;color:var(--muted);font-weight:400}.route-note-list-row .route-note-preview-line:has(.route-selected-tag){align-items:center}.route-note-list-row .route-selected-tag{flex:0 1 auto;max-width:100%;font-size:12px;padding:2px 8px}.route-notes-page.has-folder-notes .route-note-list-row{padding:18px 45px 16px 17px}.route-note-list-row .route-note-title{font-size:19px;padding-bottom:8px}.route-note-row-more{top:19px;transform:none;height:32px}.route-note-list-row .route-note-preview-line+.route-note-preview-line{margin-top:1px}

.route-preview-option{padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--paper)}.route-note-preview-settings .route-preview-option>label{border:0;padding:0;border-radius:0}.route-note-preview-settings .route-preview-empty-control{margin:10px 0 0 30px;padding-top:9px!important;justify-content:space-between;font-size:11px;color:var(--muted)}.route-preview-empty-control input{appearance:none;-webkit-appearance:none;position:relative;width:35px!important;height:21px!important;border:1px solid var(--line);border-radius:999px;background:var(--line);cursor:pointer}.route-preview-empty-control input:before{content:'';position:absolute;top:2px;left:2px;width:15px;height:15px;background:#fff;border-radius:50%;transition:transform .15s}.route-preview-empty-control input:checked{background:var(--blue);border-color:var(--blue)}.route-preview-empty-control input:checked:before{transform:translateX(14px)}.route-preview-empty-control input:disabled{opacity:.4;cursor:default}

.route-arrival-notice{position:fixed;z-index:10000;top:calc(14px + env(safe-area-inset-top));left:12px;right:12px;margin:auto;max-width:460px;display:grid;gap:7px;padding:16px;text-align:left;color:var(--ink);background:var(--paper);border:1px solid var(--blue);border-radius:18px;box-shadow:0 12px 45px #0005}.route-arrival-notice small{color:var(--blue);font-size:11px}.route-arrival-notice strong{font-size:17px}.route-arrival-notice span{font-size:13px;overflow-wrap:anywhere}.route-arrival-enable{font-size:12px;margin:8px 0 12px}

.route-note-proximity{margin:0 0 16px;padding:15px;border:1px solid color-mix(in srgb,var(--blue) 45%,var(--line));border-radius:18px;background:linear-gradient(120deg,color-mix(in srgb,var(--blue) 14%,var(--paper)),color-mix(in srgb,var(--blue) 5%,var(--paper)));backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 #ffffff0c,0 5px 24px color-mix(in srgb,var(--blue) 8%,transparent)}
.route-proximity-top{display:flex;align-items:center;gap:8px;margin-bottom:12px}.route-proximity-eyebrow{display:flex;align-items:center;gap:8px;color:var(--blue);font-size:10px;font-weight:750;letter-spacing:1.2px;flex:1}.route-proximity-dot{width:7px;height:7px;background:var(--blue);border-radius:50%;box-shadow:0 0 10px var(--blue);animation:route-radar-pulse 2.2s ease-out infinite}.route-proximity-distance{font-size:10px;color:var(--blue);padding:4px 8px;border:1px solid color-mix(in srgb,var(--blue) 25%,transparent);border-radius:999px;white-space:nowrap}.route-proximity-dismiss{width:28px;height:28px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--ink) 5%,transparent);color:var(--muted);font-size:20px}.route-proximity-content{display:flex;align-items:center;gap:12px}.route-proximity-copy{display:grid;gap:5px;flex:1;min-width:0}.route-proximity-copy strong{font-size:17px;overflow-wrap:anywhere}.route-proximity-copy small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.route-proximity-open{flex:none;border:1px solid color-mix(in srgb,var(--blue) 30%,transparent);background:color-mix(in srgb,var(--blue) 12%,transparent);color:var(--blue);border-radius:999px;padding:8px 12px;font-size:11px;font-weight:700}
.route-note-folder-row>.route-template-medallion{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;color:var(--folder-color,var(--blue));background:color-mix(in srgb,var(--folder-color,var(--blue)) 12%,transparent);border:1px solid color-mix(in srgb,var(--folder-color,var(--blue)) 24%,transparent);box-sizing:border-box}.route-template-medallion>svg{width:26px;height:26px;margin:0}.route-template-field-chips{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.route-template-field-chips>span{padding:3px 6px;font-size:9px;line-height:1.3;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:6px;background:color-mix(in srgb,var(--ink) 3%,transparent)}.route-template-sort-row .route-note-folder-row{min-height:0;padding-top:16px;padding-bottom:16px}.route-template-add-prompt{display:block;width:100%;margin-top:12px;padding:13px;border:1px dashed color-mix(in srgb,var(--blue) 32%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--blue) 4%,transparent);color:var(--muted);font-size:12px;text-align:center}
@keyframes route-radar-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--blue) 45%,transparent)}100%{box-shadow:0 0 0 7px transparent}}@media(prefers-reduced-motion:reduce){.route-proximity-dot{animation:none}}

.route-arrival-enable{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;box-sizing:border-box;margin:8px 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--blue) 5%,var(--paper));text-align:left}.route-arrival-prompt-copy{min-width:0;font-size:11px;font-weight:500;line-height:1.5;color:var(--muted)}.route-arrival-prompt-action{flex:none;padding:5px 11px;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--blue) 12%,transparent);color:var(--blue);font-size:11px;font-weight:700}.route-template-field-chips>.route-template-field-overflow{color:var(--muted);background:color-mix(in srgb,var(--ink) 5%,transparent);font-variant-numeric:tabular-nums}

/* Full-width creation flow with a fixed header and scrolling gallery. */
.driver-tool-dialog.route-starter-gallery{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:var(--bg);box-shadow:none}
.route-starter-gallery[open]{display:flex;flex-direction:column}
.route-starter-gallery>header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:calc(18px + env(safe-area-inset-top)) 18px 16px;background:color-mix(in srgb,var(--blue) 6%,var(--paper));border-bottom:1px solid var(--line)}
.route-starter-heading{display:grid;gap:6px;min-width:0}.route-starter-heading>small{font-size:9px;letter-spacing:1.6px;font-weight:750;color:var(--blue)}.route-starter-heading>h2{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.5px}
.route-starter-gallery>header>button{flex:none;width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;font-size:24px;border:1px solid var(--line);background:color-mix(in srgb,var(--ink) 4%,var(--paper));color:var(--ink)}
.route-starter-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 12px calc(24px + env(safe-area-inset-bottom));scrollbar-width:thin}
.route-starter-body>.route-fields-caption{font-size:12px;line-height:1.6;margin:0 4px 16px;max-width:650px}
.route-starter-list{margin-top:0;gap:12px}.route-starter-blank{position:relative;padding:18px;border-radius:18px;border:1px solid color-mix(in srgb,var(--blue) 50%,var(--line));background:linear-gradient(115deg,color-mix(in srgb,var(--blue) 16%,var(--paper)),color-mix(in srgb,var(--blue) 5%,var(--paper)));box-shadow:inset 0 1px 0 #ffffff0a}.route-starter-blank strong{font-size:17px}.route-starter-blank small{font-size:12px;line-height:1.5}
.route-starter-card{padding:16px 13px;gap:12px;border-radius:18px;border-color:color-mix(in srgb,var(--starter-color) 20%,var(--line));background:linear-gradient(120deg,color-mix(in srgb,var(--starter-color) 5%,var(--paper)),var(--paper));box-shadow:0 3px 14px #00000008;transition:background .15s,transform .15s}
.route-starter-icon{flex-basis:44px;width:44px;height:44px;border-radius:13px}.route-starter-icon svg{width:27px;height:27px}.route-starter-copy{gap:7px}.route-starter-copy strong{font-size:15px;line-height:1.35}.route-starter-copy small{font-size:12px;line-height:1.55}.route-starter-count{justify-self:start;font-size:10px;font-weight:650;letter-spacing:.2px}.route-starter-chevron{font-size:23px}.route-starter-card:active,.route-starter-blank:active{transform:scale(.99)}
.driver-tool-dialog.route-template-builder-sheet{width:calc(100% - 12px);max-width:none;box-sizing:border-box;margin:8px auto;max-height:calc(100dvh - 16px);padding:16px;border-radius:20px}
@media(min-width:760px){.route-starter-gallery>header{padding-left:28px;padding-right:28px}.route-starter-body{padding:24px 28px 32px}.route-starter-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.route-starter-blank{grid-column:1/-1}.route-starter-card{padding:20px;min-height:150px}.route-template-builder-sheet>.route-note-builder{max-width:900px;margin-inline:auto}}
@media(min-width:1200px){.route-starter-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.route-starter-card{transition:none}}

/* A quieter library hierarchy with explicit arrival controls. */
.route-arrival-settings{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:0 0 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--ink) 2%,var(--paper))}.route-arrival-settings-copy{display:grid;gap:4px;min-width:0}.route-arrival-settings-copy strong{font-size:12px;font-weight:650}.route-arrival-settings-copy small{font-size:10px;color:var(--muted);line-height:1.4}.route-arrival-toggle{display:flex;align-items:center;gap:9px;flex:none;padding:5px 7px 5px 11px;min-height:34px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--muted);font-size:11px;font-weight:700}.route-arrival-toggle i{display:block;width:22px;height:22px;border-radius:50%;background:var(--muted);box-shadow:0 1px 4px #0003}.route-arrival-toggle[aria-checked=true]{border-color:color-mix(in srgb,var(--blue) 50%,transparent);background:color-mix(in srgb,var(--blue) 20%,var(--paper));color:var(--blue)}.route-arrival-toggle[aria-checked=true] i{background:var(--blue)}
.route-notes-page:not(.is-folder):not(.is-search)>.page-back-header{padding:14px 16px;border-color:color-mix(in srgb,var(--blue) 22%,var(--line));border-radius:18px}.route-notes-hud{margin:12px 0;padding:10px 12px;border-radius:12px}.route-note-proximity{border-color:color-mix(in srgb,var(--blue) 30%,var(--line));padding:14px;border-radius:16px}.route-note-folders{margin:14px 0;gap:10px}.route-note-folder-group{border-radius:17px;height:auto;min-height:0;display:block}.route-template-sort-row{height:auto;min-height:0;align-items:center}.route-template-sort-row .route-note-folder-row{height:auto!important;min-height:0!important;padding:16px 6px 16px 14px;gap:12px;align-items:center}.route-note-folder-text{gap:4px}.route-note-folder-text strong{font-size:16px;line-height:1.35}.route-note-folder-text small{font-size:12px}.route-template-field-chips{margin-top:5px;gap:4px}.route-template-sort-handle{align-self:center;min-height:44px;height:44px;flex-basis:30px;font-size:17px;margin-right:6px;opacity:.7}.route-note-folder-chevron{font-size:23px}.route-template-add-prompt{margin-top:4px;padding:12px;font-size:11px;border-color:color-mix(in srgb,var(--ink) 17%,transparent)}

.route-notes-page .route-note-header-actions>button[data-open-search],.route-notes-page .route-note-header-actions>button[data-new-template]{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--blue) 20%,transparent)}.route-notes-page .route-note-header-actions>button[data-open-search] svg{color:#fff;stroke:#fff}.route-notes-page .route-note-header-actions>button:hover{filter:brightness(1.08)}

.route-notes-page .route-note-header-actions>button[data-open-search]{position:fixed;right:18px;bottom:calc(92px + env(safe-area-inset-bottom));z-index:46;width:54px;height:54px;display:grid;place-items:center;padding:0;box-shadow:0 6px 22px #0004,0 0 0 5px color-mix(in srgb,var(--blue) 12%,transparent)}.route-notes-page .route-note-header-actions>button[data-open-search] svg{width:23px;height:23px;display:block}.route-notes-page .route-note-header-actions>button[data-new-template]{display:grid;place-items:center;padding:0;line-height:1}.route-notes-page .route-note-header-actions>button[data-new-template] svg{display:block;width:23px;height:23px;margin:0;color:#fff;stroke:#fff}.route-notes-page.is-search .route-note-header-actions>button[data-open-search]{display:none}.route-notes-page:not(.is-folder):not(.is-search){padding-bottom:90px}@media(min-width:761px){.route-notes-page .route-note-header-actions>button[data-open-search]{right:28px;bottom:28px}}

.route-template-edit-toggle{flex:none;margin-left:8px;padding:5px 12px;min-height:30px;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--blue) 9%,transparent);color:var(--blue);font-size:12px;font-weight:700}.route-template-edit-toggle[aria-pressed=true]{background:var(--blue);color:#fff}.route-template-edit-controls{display:flex;align-items:center;gap:5px;margin-right:10px;flex:none}.route-template-remove{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #ef444433;border-radius:50%;background:#ef444415;color:#ef4444;font-size:22px;line-height:1}.route-template-edit-controls .route-template-sort-handle{width:34px;height:44px;margin:0}.route-notes-page.is-editing-templates .route-note-folder-chevron{display:none}.route-notes-page.is-editing-templates .route-note-folder-row{padding-right:8px}.route-notes-page:not(.is-editing-templates) .route-note-folder-row{padding-right:16px}.route-notes-page.is-editing-templates .route-template-add-prompt{display:none}

.route-note-folder-group:has(.is-drag-floating){overflow:visible}.route-template-sort-row.is-drag-floating{background:var(--paper);border:1px solid color-mix(in srgb,var(--blue) 45%,var(--line));border-radius:15px;box-shadow:0 14px 35px #0005;transform:scale(1.025);pointer-events:none;will-change:top,transform}.route-template-sort-row.is-drag-floating:after{display:none}.route-template-drag-placeholder{box-sizing:border-box;border:1px dashed color-mix(in srgb,var(--blue) 22%,transparent);background:color-mix(in srgb,var(--blue) 5%,transparent);border-radius:12px}.route-template-edit-controls .route-template-sort-handle{touch-action:none;cursor:grab}.is-drag-floating .route-template-sort-handle{cursor:grabbing}

/* Edge-to-edge Templates navigation and contextual settings. */
.route-notes-page:not(.is-folder):not(.is-search)>.page-back-header{position:relative;width:calc(100% + 24px);margin:0 -12px 14px;padding:12px;box-sizing:border-box;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;gap:9px}
.route-notes-page:not(.is-folder):not(.is-search)>.page-back-header h1{font-size:22px;letter-spacing:-.5px;flex:1;min-width:0;margin:0}.route-notes-page:not(.is-folder):not(.is-search)>.page-back-header>[data-back]{width:34px;height:34px;min-height:34px;padding:0;flex:none;border-radius:50%;font-size:25px}
.route-note-header-actions{align-items:center;gap:7px}.route-note-header-actions>.route-template-edit-toggle{margin:0;padding:5px 10px;min-height:32px;font-size:11px;width:auto;height:auto}.route-notes-page .route-note-header-actions>[data-new-template]{width:36px;height:36px;min-height:36px;flex:none}.route-template-settings{position:relative;flex:none}.route-template-settings-trigger{position:relative;display:grid;place-items:center;width:34px;height:34px;box-sizing:border-box;list-style:none;border:1px solid var(--line);border-radius:50%;background:color-mix(in srgb,var(--ink) 4%,var(--paper));color:var(--ink);cursor:pointer}.route-template-settings-trigger::-webkit-details-marker{display:none}.route-template-settings-trigger svg{width:18px;height:18px}.route-template-settings-trigger i{display:none;position:absolute;right:0;top:0;width:6px;height:6px;border:2px solid var(--paper);border-radius:50%;background:#10b981}.route-template-settings-trigger[data-enabled=true] i{display:block}
.route-template-settings>.route-arrival-settings{position:absolute;z-index:70;right:-43px;top:calc(100% + 10px);width:290px;max-width:calc(100vw - 28px);box-sizing:border-box;margin:0;padding:16px;border:1px solid rgba(15,23,42,.12);border-radius:16px;background:rgba(255,255,255,.96);color:#0f172a;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 12px 36px #0f172a26}.dark .route-template-settings>.route-arrival-settings{background:rgba(15,23,42,.96);border-color:rgba(148,163,184,.22);color:#f1f5f9;box-shadow:0 12px 36px #0006}.route-template-settings .route-arrival-settings-copy strong{font-size:13px}.route-template-settings .route-arrival-settings-copy small{font-size:11px}.route-template-settings-trigger:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.route-notes-page.is-folder .route-template-settings,.route-notes-page.is-search .route-template-settings{display:none}
@media(max-width:360px){.route-notes-page:not(.is-folder):not(.is-search)>.page-back-header{gap:6px}.route-notes-page:not(.is-folder):not(.is-search)>.page-back-header h1{font-size:20px}.route-note-header-actions{gap:5px}}

.route-template-settings .route-arrival-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:70px;height:34px;min-height:34px;min-width:70px;box-sizing:border-box;flex:0 0 70px;padding:5px 6px 5px 10px;font-size:11px;font-weight:700;line-height:1;border-radius:999px;box-shadow:none}.route-template-settings .route-arrival-toggle>span{font-size:11px;line-height:1;white-space:nowrap}.route-template-settings .route-arrival-toggle>i{position:static;display:block;flex:0 0 22px;width:22px;height:22px;margin:0}.route-template-settings .route-arrival-settings-copy{flex:1;min-width:0}.route-template-settings .route-arrival-settings-copy small{white-space:normal;line-height:1.5}

.route-notes-page.is-folder>.page-back-header{display:flex;flex-wrap:nowrap;align-items:center;gap:9px;width:calc(100% + 24px);box-sizing:border-box;margin:0 -12px 12px;padding:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}.route-notes-page.is-folder>.page-back-header h1{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:20px;line-height:1.3;margin:0}.route-notes-page.is-folder>.page-back-header [data-back]{flex:none;width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;font-size:25px}.route-notes-page.is-folder .route-template-emblem{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;margin:0;color:var(--template-accent);background:color-mix(in srgb,var(--template-accent) 12%,transparent)}.route-template-emblem svg{width:20px;height:20px}.route-notes-page.is-folder [data-template-menu]{flex:none;width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;font-size:17px;letter-spacing:1px}.route-notes-page>.route-template-telemetry{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;margin:0 0 14px;background:var(--paper);border:1px solid var(--line);border-radius:12px}.route-template-telemetry>.route-folder-counts{border:0;padding:0;background:none;font-size:12px;letter-spacing:0;color:var(--muted);white-space:nowrap}.route-template-telemetry>.route-gps-auto{margin-left:auto;font-size:8px;white-space:nowrap}
.route-folder-controls{display:flex;align-items:center;gap:8px;margin-bottom:14px;min-width:0}.route-folder-controls>.route-folder-search{flex:1;min-width:0;width:auto;margin:0}.route-folder-search input{min-width:0;width:100%;font-size:12px}.route-folder-controls>.route-folder-sort{position:relative;flex:none;display:block;margin:0;padding:0;border:0;background:none}.route-folder-sort-trigger{display:flex;align-items:center;gap:7px;padding:10px 11px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);font-size:11px;font-weight:650;white-space:nowrap;list-style:none;cursor:pointer}.route-folder-sort-trigger::-webkit-details-marker{display:none}.route-folder-sort-menu{position:absolute;z-index:65;right:0;top:calc(100% + 7px);width:180px;max-width:calc(100vw - 30px);padding:5px;border-radius:15px;background:rgba(255,255,255,.96);border:1px solid rgba(15,23,42,.12);color:#0f172a;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 12px 32px #0f172a26}.dark .route-folder-sort-menu{background:rgba(15,23,42,.96);border-color:rgba(148,163,184,.22);color:#f1f5f9;box-shadow:0 12px 32px #0005}.route-folder-sort-option{display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px;border:0;border-radius:9px;background:transparent;color:inherit;font-size:12px;text-align:left}.route-folder-sort-option[aria-selected=true]{background:color-mix(in srgb,var(--blue) 12%,transparent);color:var(--blue);font-weight:700}.route-folder-sort-option+.route-folder-sort-option{border-top:1px solid color-mix(in srgb,var(--ink) 7%,transparent)}

.route-notes-tools>[data-create].is-note-plus{display:grid;place-items:center;width:54px;height:54px;min-width:54px;padding:0;border-radius:50%;font-size:32px;font-weight:400;line-height:1}.route-notes-page.is-folder [data-template-menu]{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;letter-spacing:0!important;display:grid;place-items:center}.route-preview-stars{color:#f59e0b;letter-spacing:2px;white-space:nowrap}.route-hours-modes{display:flex;gap:8px;margin:12px 0 18px}.route-hours-modes button{flex:1;padding:10px 8px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--muted);font-size:12px}.route-hours-modes button[aria-pressed=true]{color:var(--blue);border-color:var(--blue);background:color-mix(in srgb,var(--blue) 10%,var(--paper))}.route-hours-values{display:grid;gap:14px;margin-bottom:20px}.route-hours-values label{display:grid;gap:7px;font-size:12px;color:var(--muted)}.route-hours-values button{width:100%;padding:15px;font-size:20px;border-radius:13px;color:var(--ink)}

.route-notes-page.is-folder:not(.is-search) .route-notes-tools>[data-create].is-note-plus{flex:0 0 54px;width:54px!important;min-width:54px!important;max-width:54px!important;height:54px;min-height:54px;padding:0!important;border-radius:50%;font-size:32px;line-height:1}.route-rating-preview{display:inline-flex;align-items:center;padding:3px 8px;border-radius:7px;border:1px solid color-mix(in srgb,var(--rating-color) 25%,transparent);background:color-mix(in srgb,var(--rating-color) 10%,transparent);letter-spacing:2px;white-space:nowrap;font-size:16px}.route-field-stars button{color:var(--rating-color,#f59e0b)!important}.route-rating-color{font-size:11px;padding:6px 10px;margin-top:8px;border-radius:999px}.route-rating-colors{display:flex;gap:10px;flex-wrap:wrap;padding:14px 0}.route-rating-colors button{width:40px;height:40px;padding:0;background:var(--bg);border:1px solid var(--line);border-radius:50%;font-size:27px}.route-rating-colors button[aria-pressed=true]{outline:2px solid var(--blue);outline-offset:2px}

.route-fields-sheet .route-field-row{padding:12px 10px;gap:10px;min-height:68px}.route-fields-sheet .route-field-mark{width:28px;height:28px;flex-basis:28px;border:0;background:none;font-size:23px}.route-field-configure{display:block;width:100%;padding:0;border:0;background:none;color:var(--ink);font-size:15px;font-weight:650;text-align:left;line-height:1.4;overflow-wrap:anywhere}.route-fields-sheet .route-field-label>small{display:block;width:auto;align-self:start;border:0;background:none;padding:0;font-size:11px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted)}.route-fields-sheet .route-field-label{gap:4px}.route-fields-sheet .route-field-drag{padding:10px 5px;font-size:21px;opacity:.65}.route-fields-sheet .route-field-remove{width:23px;height:23px;font-size:20px}.route-field-settings-form{display:grid;gap:18px;padding-top:10px}.route-field-settings-form>label:not(.route-field-setting-switch){display:grid;gap:7px;font-size:12px;color:var(--muted)}.route-field-settings-form input:not([type=checkbox]),.route-field-settings-form select{padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--bg);color:var(--ink);font-size:15px;width:100%;box-sizing:border-box}.route-field-setting-switch{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px}.route-field-setting-switch input{appearance:none;width:42px;height:25px;border-radius:999px;background:var(--line);position:relative;flex:none}.route-field-setting-switch input:before{content:'';position:absolute;top:3px;left:3px;width:19px;height:19px;background:white;border-radius:50%;transition:transform .15s}.route-field-setting-switch input:checked{background:var(--blue)}.route-field-setting-switch input:checked:before{transform:translateX(17px)}.route-field-settings-type{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--blue)}

.route-fields-sheet>header{display:grid!important;grid-template-columns:70px 1fr 70px;align-items:center;gap:10px}.route-fields-sheet>header h2{text-align:center;margin:0;font-size:20px}.route-fields-sheet>header>.route-fields-edit{justify-self:start;width:auto;height:34px;min-height:34px;padding:6px 13px;border-radius:999px;font-size:13px;background:color-mix(in srgb,var(--ink) 5%,var(--paper));color:var(--ink);border:1px solid var(--line)}.route-fields-sheet>header>button:last-child{justify-self:end;width:36px;height:36px;min-height:36px}.route-fields-selected{position:relative}.route-fields-sheet .route-field-chevron{font-size:24px;color:var(--muted);padding:0 6px}.route-fields-sheet:not(.is-fields-editing) .route-field-row{cursor:pointer;padding:15px 14px;gap:13px}.route-fields-sheet .route-field-row.is-drag-floating{background:var(--paper);border:1px solid var(--blue);border-radius:12px;box-shadow:0 12px 30px #0005;transform:scale(1.025);pointer-events:none;will-change:top}.route-fields-sheet .route-field-drag{touch-action:none}.route-fields-sheet .route-field-row.is-drag-floating:after{display:none}.route-fields-sheet .route-fields-caption{font-size:11px}.route-fields-sheet .route-manage-tags{display:none}

.route-fields-sheet .route-field-row,.route-fields-sheet .route-field-row *,.route-fields-drag-active,.route-fields-drag-active *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}.route-fields-sheet .route-field-row img,.route-fields-sheet .route-field-row svg{-webkit-user-drag:none;pointer-events:none}.route-fields-sheet .route-field-drag{touch-action:none;-webkit-tap-highlight-color:transparent}.route-fields-sheet .route-field-row::selection,.route-fields-sheet .route-field-row *::selection{background:transparent}

.route-note-field-group+.route-note-field-group{margin-top:16px}.route-note-editor-divider{height:16px;flex:none;background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:8px -1px}.route-note-entry-form .route-note-fields-editor:has(.route-note-editor-divider){border:0;background:transparent;overflow:visible}.route-note-entry-form .route-note-editor-divider+.route-note-edit-field{border-radius:14px 14px 0 0}.route-layout-catalog>.route-fields-caption{padding:0 14px 12px}

.driver-tool-dialog.route-field-settings-sheet{width:calc(100% - 20px);max-width:500px;padding:18px;border-radius:22px;border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line));max-height:calc(100dvh - 32px);overflow:auto}.route-field-settings-sheet>header{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:14px}.route-field-settings-sheet>header h2{font-size:21px}.route-field-settings-form{gap:14px}.route-field-settings-form .route-field-setting-switch{padding:13px 12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--ink) 2%,var(--paper))}.route-setting-copy{display:grid;gap:5px;min-width:0}.route-setting-copy strong{font-size:12px;font-weight:650}.route-setting-copy small{font-size:10px;line-height:1.5;color:var(--muted)}.route-field-setting-switch.is-disabled{opacity:.45}.route-field-settings-form>button[type=submit]{border-radius:12px;min-height:44px}.route-field-settings-sheet select{color-scheme:light}.dark .route-field-settings-sheet select{color-scheme:dark}

.route-photo-settings{display:grid;gap:14px;margin:0;padding:14px;border:1px solid var(--line);border-radius:14px;min-width:0}.route-photo-settings legend{font-size:11px;color:var(--blue);padding:0 6px}.route-photo-settings>label:not(.route-field-setting-switch){display:grid;gap:7px;font-size:12px;color:var(--muted)}.route-note-list-row.has-photo-preview{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-content:center}.has-photo-preview>.route-note-thumbnail{grid-column:1;grid-row:1 / span 6;width:64px;height:auto;max-height:125px;object-fit:cover;border-radius:8px;align-self:center;border:1px solid var(--line)}.has-photo-preview>.route-note-thumbnail[data-size=small]{width:46px}.has-photo-preview>.route-note-thumbnail[data-size=large]{width:84px;max-height:150px}.has-photo-preview>.route-note-title,.has-photo-preview>.route-note-preview,.has-photo-preview>.route-note-distance,.has-photo-preview>.route-note-gps-pill{grid-column:2}.route-note-cover,.route-note-photo-display{display:flex;flex-direction:column;align-items:center;gap:8px;margin:18px auto;max-width:100%;text-align:center}.route-note-cover img,.route-note-photo-display img{display:block;width:auto;max-width:100%;height:auto;max-height:320px;object-fit:contain;border-radius:12px}.route-note-cover[data-size=small] img,.route-note-photo-display[data-size=small] img{max-height:180px}.route-note-cover[data-size=large] img,.route-note-photo-display[data-size=large] img{max-height:520px}.route-note-cover[data-preserve=false] img,.route-note-photo-display[data-preserve=false] img{width:100%;height:240px;object-fit:cover}.route-note-cover figcaption,.route-note-photo-display figcaption{font-size:11px;color:var(--muted)}

.route-fields-sheet .is-divider-field{cursor:default!important}.route-fields-sheet .is-divider-field .route-field-configure:disabled{opacity:1;color:var(--ink);cursor:default}.route-field-mark svg{display:block;width:24px;height:24px;color:var(--blue)}

.route-notes-page [data-detail]>.route-note-detail{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;max-width:none}.route-note-detail>.route-note-detail-header{padding:8px 2px 14px}.route-note-detail>.route-note-field-group{width:100%;box-sizing:border-box;border-radius:17px;overflow:hidden;background:var(--paper)}.route-selected-tag[role=button]{cursor:pointer}.route-selected-tag[role=button]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.route-note-cover img,.route-note-photo-display img{cursor:zoom-in}.driver-tool-dialog.route-photo-viewer{width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px);max-height:none;margin:auto;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);border-radius:18px}.route-photo-viewer>header{flex:none;display:flex;align-items:center;justify-content:space-between}.route-photo-viewer>img{display:block;flex:1;min-height:0;width:100%;height:100%;object-fit:contain;touch-action:pan-x pan-y pinch-zoom}.route-note-detail .route-note-cover{margin:10px auto 22px}

.route-note-detail>.route-note-field-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:5px;gap:1px;background:var(--paper)}.route-note-detail .route-note-field-group>.route-note-field{grid-column:1/-1;min-width:0;margin:0;padding:13px 12px;box-sizing:border-box;border:0;border-top:1px solid var(--line);border-radius:0}.route-note-detail .route-note-field-group>.route-telemetry-tile{grid-column:auto;background:color-mix(in srgb,var(--ink) 2%,transparent);border-radius:10px;padding:12px}.route-note-detail .route-note-field>small{font-size:10px;margin-bottom:6px}.route-note-detail .route-note-field p{font-size:15px;line-height:1.45;margin:0;overflow-wrap:anywhere}.route-note-detail .route-rating-preview{font-size:15px;padding:3px 0;border:0;background:none}.route-note-field[data-field-type=duration],.route-note-field.route-inline-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center}.route-note-field[data-field-type=duration]>small,.route-inline-action>small{grid-column:1/-1}.route-note-field[data-field-type=duration]>.route-field-timer,.route-inline-action>.route-field-link{grid-column:2;grid-row:2;margin:0;padding:7px 11px;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));border-radius:999px;font-size:11px;line-height:1.4;font-weight:650;color:var(--blue);background:color-mix(in srgb,var(--blue) 9%,transparent);white-space:nowrap;text-decoration:none}.route-inline-value{min-width:0;word-break:break-word}.route-field-check{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:14px}.route-field-check input{appearance:none;-webkit-appearance:none;flex:0 0 19px;width:19px;height:19px;margin:0;border:1px solid var(--line);border-radius:5px;background:var(--bg);display:grid;place-items:center}.route-field-check input:checked{background:var(--blue);border-color:var(--blue)}.route-field-check input:checked:after{content:'✓';font-size:14px;font-weight:750;color:white}.route-field-check input:checked+span{color:var(--muted);text-decoration:line-through}.route-field-check input:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

.route-note-detail>.route-note-field-group{grid-template-columns:minmax(0,1fr)}.route-note-detail .route-note-field-group>.route-telemetry-tile{grid-column:1/-1;background:transparent;border-radius:0;padding:13px 12px}

.route-notes-page.is-note-open>.page-back-header,.route-notes-page.is-note-open>.route-template-telemetry,.route-notes-page.is-note-open>.route-notes-hud,.route-notes-page.is-note-open>.route-folder-controls,.route-notes-page.is-note-open>.route-folder-search,.route-notes-page.is-note-open>.route-note-search-bar{display:none!important}.route-notes-page.is-note-open .route-note-detail-header>.route-note-actions{display:none!important}.route-open-note-nav{position:sticky;top:0;z-index:40;display:grid;grid-template-columns:90px minmax(0,1fr) 90px;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 4px 10px;margin:0 -4px 18px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent)}.route-open-note-nav>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:15px;font-weight:750}.route-open-note-nav button{display:grid;place-items:center;padding:0;border:0;color:var(--ink);background:transparent;min-height:38px;cursor:pointer}.route-open-note-nav>.route-open-note-back{justify-self:start;width:38px;height:38px;min-height:38px;border:1px solid var(--line);border-radius:50%;background:color-mix(in srgb,var(--ink) 5%,var(--paper));font-size:29px;line-height:1}.route-open-note-actions{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--ink) 5%,var(--paper));overflow:hidden}.route-open-note-actions button{width:43px;font-size:17px;letter-spacing:1px}.route-open-note-actions svg{width:21px;height:21px}.route-notes-page.is-note-open .route-note-detail-header{display:block;padding:0 2px 14px}.route-note-detail-header>.route-note-title{font-size:24px;line-height:1.3;pointer-events:none}.route-notes-page.is-note-open{overflow:visible}.route-open-note-nav button:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}

/* Keep the photo picker below an attached image and its removal action. */
.route-note-entry-form .route-note-edit-field[data-field-type=photo]>.route-note-photo-choose{order:2}
/* Full-width note entry sheet and distinct section spacing. */
.driver-tool-dialog.route-note-entry-sheet{box-sizing:border-box;width:calc(100% - 12px);max-width:none;margin:6px auto;max-height:calc(100dvh - 12px);padding:0 12px 16px;border-radius:20px;overflow:auto;scroll-padding-top:90px}
.route-note-entry-sheet>header{top:0;z-index:40;gap:10px;margin:0 -12px 12px;padding:12px; background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.route-note-entry-identity{flex:1;min-width:0;display:grid;gap:4px;text-align:center}.route-note-entry-identity h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.route-note-entry-folder{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;letter-spacing:.5px}
.route-note-entry-sheet>header>button:first-child:not(:focus-visible){outline:none;box-shadow:none}.route-note-entry-sheet>header>button:first-child:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.route-note-entry-form{gap:10px}.route-note-entry-form>label,.route-note-entry-form .route-note-edit-field{box-sizing:border-box;padding:12px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--paper) 94%,transparent);gap:8px;transition:border-color .15s,background .15s}
.route-note-entry-form .route-note-fields-editor,.route-note-entry-form .route-note-fields-editor:has(.route-note-editor-divider){gap:10px;border:0;border-radius:0;overflow:visible;background:transparent}
.route-note-entry-form .route-note-edit-field:last-child{border-bottom:1px solid var(--line)}
.route-note-entry-form .route-note-edit-field:focus-within,.route-note-entry-form>label:focus-within{border-color:color-mix(in srgb,var(--blue) 65%,var(--line));background:color-mix(in srgb,var(--blue) 5%,var(--paper))}
.route-note-entry-form .route-note-editor-divider{height:18px;margin:0;border:0;background:none}.route-note-entry-form .route-note-editor-divider+.route-note-edit-field{border-radius:14px}
.route-note-entry-form .route-note-edit-field[data-field-type=toggle]{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}.route-note-entry-form .route-note-edit-field[data-field-type=toggle]>.route-note-entry-label{flex:1;min-width:0}.route-note-entry-form .route-note-edit-field[data-field-type=toggle]>.route-hud-switch{flex-shrink:0;margin:0}
.route-note-entry-form .route-note-location-capture{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:12px;border:1px solid color-mix(in srgb,var(--blue) 35%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--blue) 10%,var(--paper));color:var(--blue);font-weight:650}.route-note-location-capture svg{width:20px;height:20px;flex-shrink:0}.route-note-entry-form .route-note-edit-field[data-field-type=location]>p{margin:4px 0 6px;font-size:14px;color:var(--muted)}

.route-note-action-popover{position:fixed;inset:auto;margin:0;padding:6px;width:225px;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);border-radius:16px;background:color-mix(in srgb,var(--paper) 85%,transparent);color:var(--ink);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 14px 45px #0005}.route-note-action-popover::backdrop{background:transparent}.route-note-action-popover button{display:flex;align-items:center;gap:12px;width:100%;height:44px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:inherit;font-size:14px;text-align:left}.route-note-action-popover button:first-child{border-bottom:1px solid var(--line);border-radius:9px 9px 0 0;margin-bottom:4px}.route-note-action-popover button:hover,.route-note-action-popover button:focus-visible{background:color-mix(in srgb,var(--blue) 10%,transparent)}.route-note-action-popover svg{width:20px;height:20px;flex-shrink:0}.route-note-action-popover .is-destructive{color:#f87171}.route-note-pin{display:inline-block;font-size:10px;color:var(--blue);margin:0 0 8px}.route-note-pin:before{content:'⌖ ';}.route-open-note-actions .route-quick-done{font-size:12px;letter-spacing:0;color:var(--blue)}.route-quick-field input:not([type=checkbox]),.route-quick-field textarea{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font:inherit;font-size:16px}.route-quick-field textarea{min-height:95px}.route-quick-field .route-field-stars{display:flex}.route-quick-field .route-field-stars button{background:transparent;border:0;color:var(--blue);font-size:24px}

.route-template-row-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;min-width:0}.route-template-gps-badge{display:inline-flex;align-items:center;padding:3px 6px;border:1px solid color-mix(in srgb,var(--blue) 25%,transparent);border-radius:999px;background:color-mix(in srgb,var(--blue) 8%,transparent);color:var(--blue);font-size:8px;font-weight:700;letter-spacing:.45px;line-height:1.3;white-space:nowrap}

.route-note-section-heading{margin:24px 6px 10px;color:var(--muted);font-size:16px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}.route-note-entry-form .route-note-section-heading{margin:18px 4px 0}.route-note-detail>.route-note-section-heading+.route-note-field-group{margin-top:0}.route-note-detail>.route-note-section-heading:first-of-type{margin-top:16px}

.route-notes-page.is-folder:not(.is-search)>.page-back-header{position:sticky;top:0;z-index:40;background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.route-notes-page.is-folder>.page-back-header>[data-create].is-note-plus{position:static!important;inset:auto!important;transform:none!important;display:grid;place-items:center;flex:0 0 36px;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;margin:0;padding:0!important;border-radius:50%;font-size:26px;line-height:1;box-shadow:none}.route-notes-page>.route-notes-tools:empty{display:none}

.driver-tool-dialog.route-preview-sheet{box-sizing:border-box;width:calc(100% - 12px);max-width:none;margin:6px auto;padding:0 12px 16px;max-height:calc(100dvh - 12px);border:1px solid var(--line);border-radius:20px;overflow:auto;background:var(--bg)}.route-preview-sheet>header{position:sticky;top:0;z-index:40;margin:0 -12px 12px;padding:14px 12px;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.route-preview-sheet>header h2{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:18px;min-width:0}.route-preview-count{padding:4px 7px;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--blue) 10%,transparent);color:var(--blue);font-size:10px;font-weight:650;white-space:nowrap}.route-preview-sheet .route-note-preview-settings{gap:10px}.route-preview-sheet .route-preview-option{padding:12px;border-radius:14px}.route-preview-sheet .route-preview-option>label:first-child{min-height:24px}.route-preview-sheet .route-preview-empty-control[hidden]{display:none!important}.route-preview-sheet input[data-preview-field]{appearance:none;-webkit-appearance:none;display:grid;place-items:center;width:21px;height:21px;flex:0 0 21px;margin:0;border:1.5px solid color-mix(in srgb,var(--muted) 65%,var(--line));border-radius:6px;background:color-mix(in srgb,var(--ink) 3%,transparent)}.route-preview-sheet input[data-preview-field]:checked{background:var(--blue);border-color:var(--blue)}.route-preview-sheet input[data-preview-field]:checked:after{content:'✓';color:var(--accent-foreground,#fff);font-size:15px;font-weight:750}.route-preview-sheet input[data-preview-field]:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.route-preview-sheet .route-preview-option.is-selected{border-color:color-mix(in srgb,var(--blue) 25%,var(--line))}

.driver-tool-dialog.route-sort-sheet{box-sizing:border-box;width:calc(100% - 12px);max-width:none;margin:6px auto;padding:0 12px;max-height:calc(100dvh - 12px);border:1px solid var(--line);border-radius:20px;background:var(--bg);overflow:auto}.route-sort-sheet>header{position:sticky;top:0;z-index:2;margin:0 -12px;padding:14px 12px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.route-sort-sheet .route-default-sort{display:block}.route-sort-options{padding-bottom:12px}.route-sort-options h3{margin:16px 4px 8px;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.route-sort-group{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:color-mix(in srgb,var(--paper) 92%,transparent)}.route-sort-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:46px;padding:12px;border:0;border-radius:0;text-align:left;background:transparent;color:var(--ink);font:inherit;font-size:14px}.route-sort-row+.route-sort-row{border-top:1px solid color-mix(in srgb,var(--line) 65%,transparent)}.route-sort-row[aria-checked=true]{background:color-mix(in srgb,var(--blue) 8%,transparent)}.route-sort-row>span:first-child{overflow-wrap:anywhere}.route-sort-check{flex-shrink:0;color:var(--blue);font-size:18px;font-weight:750}.route-sort-row:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}.route-sort-footer{position:sticky;bottom:0;margin:0 -12px;padding:12px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.route-sort-directions{display:flex;gap:5px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--paper)}.route-sort-directions button{flex:1;min-width:0;min-height:38px;padding:8px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:12px;font-weight:650}.route-sort-directions button[aria-pressed=true]{background:var(--blue);color:var(--accent-foreground,#fff)}.route-sort-footer>.primary{width:100%;min-height:44px;border-radius:12px}.route-sort-footer>p{margin:10px 2px;font-size:11px}

.route-template-action-popover{width:230px}.route-template-action-popover button:first-child{border:0;border-radius:9px;margin:0}.route-template-action-popover button.has-section-divider{position:relative;margin-top:9px}.route-template-action-popover button.has-section-divider:before{content:'';position:absolute;top:-5px;left:12px;right:12px;height:1px;background:var(--line)}

.driver-tool-dialog.route-template-builder-sheet{width:calc(100% - 12px);max-width:none;margin:6px auto;max-height:calc(100dvh - 12px);padding:0 12px 16px;border:1px solid color-mix(in srgb,var(--line) 85%,transparent);background:var(--bg);overflow:auto}.route-template-builder-sheet>header{position:sticky;top:0;z-index:3;margin:0 -12px 16px;padding:14px 12px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.route-template-builder-sheet>header h2{display:flex;align-items:center;gap:10px;min-width:0;font-size:19px}.route-template-header-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid color-mix(in srgb,var(--preview-accent) 25%,var(--line));border-radius:11px;color:var(--preview-accent);background:color-mix(in srgb,var(--preview-accent) 12%,transparent)}.route-template-header-icon svg{width:23px;height:23px}.route-template-builder-sheet [data-color-swatches]{padding:6px 8px;scroll-padding-inline:8px}.route-template-builder-sheet>header>button:not(:focus-visible){outline:none;box-shadow:none}.route-template-builder-sheet>header>button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

.driver-tool-dialog.route-fields-sheet{width:calc(100% - 12px);max-width:none;margin:6px auto;height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border:1px solid color-mix(in srgb,var(--line) 85%,transparent)}.route-fields-sheet>header{background:color-mix(in srgb,var(--paper) 85%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.route-fields-sheet>header>button:not(:focus-visible){outline:none;box-shadow:none}.route-fields-sheet>header>button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.route-fields-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:10px}.route-fields-add-shortcut{flex-shrink:0;padding:6px 9px;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--blue) 8%,transparent);color:var(--blue);font-size:10px;font-weight:650}.route-fields-sheet .route-field-row.is-divider-field{min-height:48px;padding-block:8px;gap:10px}.route-fields-sheet .is-divider-field .route-field-label>small{display:none}.route-fields-sheet .is-divider-field .route-field-configure{font-size:12px;color:var(--muted)}.route-fields-sheet .is-divider-field>.route-field-mark{font-size:0;height:1px;background:var(--line);border-radius:0}.route-fields-sheet .route-field-drag{min-width:30px;min-height:40px}.route-fields-sheet .route-field-chevron{padding-right:0}
.route-note-detail .route-note-field p,.route-note-detail .route-field-check{font-size:17px;font-weight:600;line-height:1.5;color:var(--ink)}
.route-note-detail .route-note-field>small{font-size:13.5px;font-weight:500;line-height:1.4;color:color-mix(in srgb,var(--ink) 25%,var(--muted));margin-bottom:7px}
.route-note-detail>.route-note-section-heading{font-size:17px;font-weight:600;line-height:1.4;color:color-mix(in srgb,var(--ink) 20%,var(--muted))}
.route-note-detail .route-note-field[data-field-type=duration]>.route-field-timer,.route-note-detail .route-inline-action>.route-field-link,.route-note-detail .route-field-link{font-size:14px;font-weight:600;padding:9px 13px;line-height:1.4}
.route-note-detail .route-field-check input{flex:0 0 20px;width:20px;height:20px}.route-note-detail .route-field-check{gap:11px;padding:7px 0}.route-note-detail .route-field-check input:checked+span{color:var(--muted)}

.route-shared-starters{display:grid;gap:12px}.route-shared-starter-row{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.route-shared-starter-row strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}.route-shared-starter-row button{font-size:11px;padding:8px}

.route-plan-usage{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.route-plan-usage span{padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--muted);font-size:11px}.route-plan-usage span:first-child{color:var(--blue)}.driver-tool-dialog.route-premium-sheet{box-sizing:border-box;width:calc(100% - 12px);max-width:560px;padding:18px;border:1px solid var(--line);border-radius:20px;background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.route-premium-sheet>.primary,.route-premium-sheet>.secondary{width:100%;margin-top:10px;min-height:44px;border-radius:12px}.route-premium-reason{font-size:17px;font-weight:600;line-height:1.5}.route-premium-benefits{padding-left:22px;line-height:2;font-size:15px}
/* Expanded icon picker: reuse the existing dialog and SVG renderer. */
.driver-tool-dialog.route-icon-sheet{box-sizing:border-box;width:min(620px,calc(100% - 12px));max-width:none;max-height:calc(100dvh - 24px);padding:16px;border:1px solid var(--line);border-radius:20px!important;background:var(--paper);overflow:hidden}
.driver-tool-dialog.route-icon-sheet[open]{display:flex;flex-direction:column;gap:10px}
.route-icon-sheet>header{flex-shrink:0;margin:0;padding-bottom:5px}
.route-icon-search-wrap{position:relative;flex-shrink:0}
.route-icon-sheet .route-icon-search{margin:0;padding:12px 42px 12px 14px;width:100%;font-size:16px;min-height:44px}
.route-icon-search::-webkit-search-cancel-button{display:none}
.route-icon-sheet .route-icon-search-clear{position:absolute;right:5px;top:5px;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:24px}
.route-icon-search-clear[hidden]{display:none!important}
.route-icon-categories{display:flex;flex:0 0 auto;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:3px 2px 8px;scroll-padding-inline:2px}
.route-icon-categories button{flex:0 0 auto;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap}
.route-icon-categories button[aria-selected=true]{border-color:#f97316;color:#fb923c;background:color-mix(in srgb,#f97316 13%,var(--paper))}
body:not(.dark) .route-icon-categories button[aria-selected=true]{color:#a84300}
.route-icon-results{flex-shrink:0;margin:0 2px;font-size:11px;color:var(--muted)}
.route-icon-sheet .route-icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px 3px 8px;align-content:start}
.route-icon-tile{position:relative;min-width:0}
.route-icon-sheet .route-icon-choice{box-sizing:border-box;width:100%;height:100%;min-height:100px;gap:8px;padding:20px 8px 10px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--ink) 3%,var(--paper));transition:background .15s,border-color .15s,transform .15s}
.route-icon-sheet .route-icon-choice:hover{background:color-mix(in srgb,#f97316 8%,var(--paper));border-color:color-mix(in srgb,#f97316 45%,var(--line));transform:translateY(-1px)}
.route-icon-sheet .route-icon-choice[aria-pressed=true]{border-color:#f97316;box-shadow:inset 0 0 0 1px #f97316;background:color-mix(in srgb,#f97316 13%,var(--paper))}
.route-icon-choice small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.3;min-height:26px;max-width:100%;font-size:10px;color:var(--muted)}
.route-icon-choice svg{flex-shrink:0;width:29px;height:29px}
.route-icon-sheet .route-icon-favorite{position:absolute;right:2px;top:2px;display:grid;place-items:center;width:30px;height:30px;min-height:30px;padding:0;gap:0;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:19px;line-height:1}
.route-icon-sheet .route-icon-favorite[aria-pressed=true]{color:#fb923c;background:color-mix(in srgb,#f97316 9%,transparent)}
.route-icon-sheet .route-icon-favorite:hover{background:color-mix(in srgb,#f97316 15%,var(--paper))}
.route-icon-sheet button:focus-visible,.route-icon-sheet input:focus-visible{outline:2px solid #f97316;outline-offset:1px}
.route-icon-empty{grid-column:1/-1;padding:25px 12px;text-align:center;line-height:1.6;color:var(--muted);font-size:13px}
@media(max-width:360px){.route-icon-sheet .route-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.driver-tool-dialog.route-icon-sheet{padding:12px}.route-icon-sheet .route-icon-choice{min-height:96px}}
@media(prefers-reduced-motion:reduce){.route-icon-sheet .route-icon-choice{transition:none;transform:none}}

.route-notes-page .route-notes-hud.route-template-summary{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;padding:11px 12px;margin:12px 0 16px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--blue) 4%,var(--paper));font-size:11px;line-height:1.5}
.route-template-summary>.route-summary-plan{padding:3px 7px;border:1px solid color-mix(in srgb,var(--blue) 25%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--blue) 8%,transparent);color:var(--blue);font-size:10px;font-weight:650;white-space:nowrap}.route-template-summary>[data-counts]{font-size:11px;color:var(--muted);text-transform:none;letter-spacing:0}.route-template-summary>[data-counts][hidden]{display:none!important}.route-template-summary>.private-backup-status{margin-left:auto;white-space:nowrap;font-size:10px}
.route-playbook-hero{position:relative;box-sizing:border-box;padding:16px;border:1px solid color-mix(in srgb,var(--blue) 35%,var(--line));border-radius:22px;background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--blue) 16%,transparent),transparent 68%),color-mix(in srgb,var(--paper) 94%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:inset 0 1px color-mix(in srgb,var(--ink) 5%,transparent),0 12px 28px #0001;text-align:center}
.route-playbook-medallion{position:relative;display:grid;place-items:center;box-sizing:border-box;width:48px;height:48px;flex-shrink:0;margin:0 auto 10px;border:1px solid color-mix(in srgb,var(--blue) 60%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--blue) 15%,var(--paper));color:var(--blue);box-shadow:0 0 27px color-mix(in srgb,var(--blue) 25%,transparent),inset 0 0 16px color-mix(in srgb,var(--blue) 10%,transparent)}.route-playbook-medallion:before{content:'';position:absolute;inset:-4px;border:1px solid color-mix(in srgb,var(--blue) 15%,transparent);border-radius:18px}.route-playbook-medallion svg{display:block;width:24px;height:24px;flex-shrink:0}
.route-playbook-hero h2{margin:0;font-size:clamp(20px,3vw,24px);line-height:1.25;letter-spacing:-.5px;font-weight:800;color:var(--ink)}.route-playbook-hero>p{max-width:620px;margin:8px auto 12px;color:var(--muted);font-size:13px;line-height:1.45}.route-playbook-hero>.route-playbook-create{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border-radius:13px;font-size:14px;font-weight:750;box-shadow:0 6px 22px color-mix(in srgb,var(--blue) 22%,transparent)}
.route-playbook-blueprints{margin-top:8px}.route-playbook-blueprints>h3{margin:10px 3px 13px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:1.4px;text-transform:uppercase}.route-blueprint-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.route-blueprint-card{display:flex;flex-direction:column;min-width:0;padding:15px;border:1px solid var(--line);border-radius:17px;background:color-mix(in srgb,var(--blueprint-accent) 3%,var(--paper));box-shadow:inset 0 1px color-mix(in srgb,var(--ink) 4%,transparent)}.route-blueprint-heading{display:flex;align-items:center;gap:10px;min-width:0}.route-blueprint-heading h4{min-width:0;margin:0;font-size:14px;font-weight:700;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}.route-blueprint-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid color-mix(in srgb,var(--blueprint-accent) 30%,var(--line));border-radius:10px;color:var(--blueprint-accent);background:color-mix(in srgb,var(--blueprint-accent) 10%,transparent)}.route-blueprint-icon svg{width:22px;height:22px}.route-blueprint-card>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1;margin:12px 0;color:var(--muted);font-size:12px;line-height:1.55}.route-blueprint-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto}.route-blueprint-count{padding:3px 6px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:10px;white-space:nowrap}.route-blueprint-use{min-height:40px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--blueprint-accent) 30%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--blueprint-accent) 8%,var(--paper));color:var(--blueprint-accent);font-size:12px;font-weight:750;white-space:nowrap}
@media(min-width:761px){.route-playbook-hero{padding:16px}.route-blueprint-card{padding:18px}.route-blueprint-card>p{-webkit-line-clamp:2}.route-playbook-blueprints{margin-top:14px}}
@media(max-width:380px){.route-blueprint-grid{grid-template-columns:1fr}.route-playbook-hero{padding:16px}.route-blueprint-card>p{-webkit-line-clamp:2}}
body:not(.dark) .route-blueprint-use{color:color-mix(in srgb,var(--blueprint-accent) 50%,#172435)}


/* Native body already reserves the status bar; avoid counting its inset twice. */
@media(max-width:760px){#menuPage:has(>.route-notes-page.is-note-open){padding-top:4px}html[data-native-platform="ios"] .route-notes-page.is-note-open>.route-open-note-nav{top:var(--native-safe-top,env(safe-area-inset-top));padding:8px 4px;margin-bottom:12px}}

.route-playbook-hero>.route-notes-privacy{display:block;margin-top:10px;color:var(--muted);font-size:11px;line-height:1.4}
.route-note-detail>.route-note-location-meta{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;margin:0 0 12px;line-height:1.4;font-size:12px}
.route-note-location-meta>.route-note-nearby{flex:0 0 auto;font-size:11px;padding:5px 8px;white-space:nowrap}
.route-note-location-meta>.route-note-distance{display:block;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.route-note-location-dot{flex:none;color:var(--muted)}
.route-note-detail .route-note-field.route-location-status-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}
.route-note-detail .route-location-status-row>small{grid-column:1/-1}
.route-note-detail .route-location-status-row>p{grid-column:1;min-width:0;overflow-wrap:anywhere}
.route-note-detail .route-location-status{grid-column:2;grid-row:2;justify-self:end;white-space:nowrap;max-width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:999px;padding:7px 10px;font-size:12px;font-weight:600;line-height:1.4;color:var(--muted);background:color-mix(in srgb,var(--ink) 4%,var(--paper));box-shadow:inset 0 1px color-mix(in srgb,var(--ink) 4%,transparent)}
.route-note-detail .route-location-status.is-at-location{color:var(--blue);border-color:color-mix(in srgb,var(--blue) 30%,var(--line));background:color-mix(in srgb,var(--blue) 12%,var(--paper))}
.route-preview-sheet .route-notification-fields{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--blue) 4%,var(--paper));min-width:0}
.route-notification-fields h3{margin:0;font-size:15px;color:var(--ink)}
.route-notification-fields p{margin:0 0 4px;font-size:12px;line-height:1.5;color:var(--muted)}
.route-note-preview-settings .route-notification-slot{display:grid;grid-template-columns:65px minmax(0,1fr);gap:10px;align-items:center;padding:0;border:0;font-size:12px;color:var(--muted)}
.route-notification-slot select{box-sizing:border-box;min-width:0;width:100%;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font-family:inherit;font-size:16px}
.route-notification-slot select:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

.route-preview-card-heading{margin:8px 2px 0;font-size:15px;color:var(--ink)}
.route-starter-display-settings{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--paper);margin-bottom:18px;display:grid;gap:10px}.route-starter-display-settings h3{margin:0;font-size:15px}.route-starter-display-settings .route-notification-slot{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:10px}.route-starter-display-settings select{width:100%;min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font-size:14px}.route-shared-starter-row{flex-wrap:wrap}.route-shared-starter-row>strong{flex:1 1 100%}
/* Shared starter management: full-width sheet and grouped library. */
html dialog.route-shared-library-sheet[open]{width:100%;max-width:none;box-sizing:border-box;border-radius:0;border:0;margin:0!important;inset:0!important;inset-block-start:0!important;inset-block-end:0!important;max-height:100dvh!important;height:100dvh;overflow-y:auto;padding:0 16px calc(20px + var(--native-safe-bottom,env(safe-area-inset-bottom,0px)));background:var(--bg);box-shadow:none}
html dialog.route-shared-library-sheet>header{margin:0 -16px 18px;padding:calc(16px + var(--native-safe-top,env(safe-area-inset-top,0px))) 16px 16px;top:0;gap:12px}
html dialog.route-shared-library-sheet>header h2{font-size:20px;line-height:1.3;flex:1;min-width:0}
html dialog.route-shared-library-sheet .route-shared-starters{display:grid;gap:14px;max-width:1000px;width:100%;margin-inline:auto}
html dialog.route-shared-library-sheet .route-starter-display-settings{margin:0;padding:16px;gap:12px;border-radius:16px}
html dialog.route-shared-library-sheet .route-starter-display-settings .route-notification-slot{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:center;margin:0;min-width:0}
html dialog.route-shared-library-sheet .route-starter-slot-label{display:inline-flex;align-items:center;justify-content:center;width:56px;min-height:30px;white-space:nowrap;font-size:11px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:9px;background:var(--bg)}
html dialog.route-shared-library-sheet .route-notification-slot select{box-sizing:border-box;min-width:0;width:100%;min-height:42px;text-overflow:ellipsis;font-size:13px}
html dialog.route-shared-library-sheet .route-fields-caption{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
html dialog.route-shared-library-sheet .route-shared-library-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}
html dialog.route-shared-library-sheet .route-shared-library-heading h3{margin:0;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.12em;line-height:1.4}
html dialog.route-shared-library-sheet .route-shared-library-heading>button{width:auto;flex:none;margin:0;padding:9px 12px;min-height:36px;border-radius:10px;background:var(--blue);color:#fff;border:1px solid var(--blue);font-size:11px;font-weight:750;white-space:nowrap;box-shadow:none}
html dialog.route-shared-library-sheet .route-shared-library-card{overflow:hidden;padding:0;border:1px solid color-mix(in srgb,var(--blue) 20%,var(--line));border-radius:16px;background:color-mix(in srgb,var(--blue) 3%,var(--paper));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
html dialog.route-shared-library-sheet .route-shared-starter-row{display:block;padding:15px 14px;margin:0;border:0;border-bottom:1px solid rgba(255,255,255,.06);border-radius:0;background:none;box-shadow:none}
html dialog.route-shared-library-sheet .route-shared-starter-row:last-child{border-bottom:0}
html body:not(.dark) dialog.route-shared-library-sheet .route-shared-starter-row:not(:last-child){border-bottom-color:rgba(15,23,42,.08)}
html dialog.route-shared-library-sheet .route-shared-starter-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
html dialog.route-shared-library-sheet .route-shared-starter-title strong{flex:1;min-width:0;font-size:14px;line-height:1.4}
html dialog.route-shared-library-sheet .route-shared-slot-badge{flex:none;white-space:nowrap;padding:3px 7px;border:1px solid color-mix(in srgb,var(--blue) 30%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--blue) 10%,transparent);color:var(--blue);font-size:10px;font-weight:750}
html dialog.route-shared-library-sheet .route-shared-starter-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
html dialog.route-shared-library-sheet .route-shared-starter-actions button{min-height:36px;padding:8px 10px;font-size:11px;border-radius:10px;box-shadow:none}
@media(min-width:1000px){html dialog.route-shared-library-sheet>header{padding-left:max(16px,calc((100vw - 1000px)/2));padding-right:max(16px,calc((100vw - 1000px)/2))}}
/* One glass header and a compact Blank Template row. */
html dialog.route-starter-gallery[open]{inset:0!important;inset-block-start:0!important;inset-block-end:0!important;margin:0!important;max-height:100dvh!important;height:100dvh}
html dialog.route-starter-gallery>header{display:grid;grid-template-columns:minmax(0,1fr) 38px;grid-template-rows:auto auto;align-items:center;gap:12px 14px;padding:calc(16px + var(--native-safe-top,env(safe-area-inset-top,0px))) 16px 16px;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(11,16,26,.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);isolation:isolate}
html body:not(.dark) dialog.route-starter-gallery>header{background:color-mix(in srgb,var(--paper) 85%,transparent);border-bottom-color:rgba(15,23,42,.08)}
html dialog.route-starter-gallery>header .route-starter-heading{grid-column:1;grid-row:1;display:grid;gap:5px}
html dialog.route-starter-gallery>header .route-starter-heading>h2{margin:0;font-size:23px;line-height:1.25}
html dialog.route-starter-gallery>header>button{grid-column:2;grid-row:1;align-self:end;margin:0;min-height:38px;max-height:38px}
html dialog.route-starter-gallery>header>.route-fields-caption{grid-column:1/-1;grid-row:2;margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
html dialog.route-starter-gallery .route-starter-body{padding:14px 14px calc(24px + var(--native-safe-bottom,env(safe-area-inset-bottom,0px)));scroll-padding-bottom:24px}
html dialog.route-starter-gallery .route-starter-blank{display:flex;align-items:center;gap:11px;min-height:62px;padding:12px 14px;border-radius:14px;margin:0}
html dialog.route-starter-gallery .route-starter-blank-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--blue) 14%,transparent);color:var(--blue);font-size:24px;font-weight:500;line-height:1}
html dialog.route-starter-gallery .route-starter-blank-copy{display:flex;align-items:baseline;gap:10px;flex:1;min-width:0;flex-wrap:wrap}
html dialog.route-starter-gallery .route-starter-blank-copy strong{font-size:14px;line-height:1.35;color:var(--blue)}
html dialog.route-starter-gallery .route-starter-blank-copy small{font-size:11px;line-height:1.4;color:var(--muted)}
html dialog.route-starter-gallery .route-starter-blank>.route-starter-chevron{flex:none;font-size:22px}
@media(max-width:360px){html dialog.route-starter-gallery .route-starter-blank-copy{gap:3px;flex-direction:column}html dialog.route-starter-gallery>header .route-starter-heading>h2{font-size:21px}}
html dialog.route-starter-gallery .route-starter-body>button{margin:0 0 12px;min-height:36px;padding:8px 12px;font-size:12px;border-radius:10px;box-shadow:none}
/* Starter selection uses the same non-sticky page header as Templates. */
html dialog.route-starter-gallery[open]{display:block;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:calc(18px + var(--native-safe-top,env(safe-area-inset-top,0px))) 14px calc(24px + var(--native-safe-bottom,env(safe-area-inset-bottom,0px)))}
html dialog.route-starter-gallery>header{position:static;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:16px 12px;margin:0 0 20px;padding:0;border:0;background:transparent!important;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
html dialog.route-starter-gallery>header>.route-starter-back{grid-column:1;grid-row:1;align-self:center;display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-height:42px;max-height:none;margin:0;padding:10px 14px;border:1px solid var(--blue);border-radius:12px;background:var(--blue);color:#fff;font-size:14px;font-weight:750;line-height:1.3;white-space:nowrap;box-shadow:none}
html dialog.route-starter-gallery>header>h2{grid-column:2;grid-row:1;min-width:0;margin:0;font-size:21px;line-height:1.25;font-weight:750;letter-spacing:-.45px;color:var(--ink)}
html dialog.route-starter-gallery>header>.route-fields-caption{grid-column:1/-1;grid-row:2;margin:0;color:var(--muted);font-size:13px;line-height:1.55}
html dialog.route-starter-gallery .route-starter-body{overflow:visible;min-height:0;padding:0;flex:none}
@media(min-width:760px){html dialog.route-starter-gallery[open]{padding-left:28px;padding-right:28px}html dialog.route-starter-gallery>header>h2{font-size:24px}}
.route-fields-catalog .route-field-add.has-field-explanation{display:grid;grid-template-columns:25px 28px minmax(0,1fr) auto;gap:8px 12px}
.route-field-add.has-field-explanation>.route-field-add-description{grid-column:3/-1;display:block;min-width:0;margin:0;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5;white-space:normal}
.route-note-visit-stat {
 color: var(--accent-text, var(--blue));
 font-variant-numeric: tabular-nums;
 line-height: 1.5;
}
.route-voice-dialog .route-fields-caption {
 margin: 12px 0;
 line-height: 1.55;
}
.route-voice-status {
 min-height: 1.5em;
 margin: 16px 0 8px;
 color: var(--ink);
}
.route-voice-dialog audio {
 width: 100%;
}
.route-voice-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 margin-top: 12px;
}
.route-voice-actions[hidden], .route-voice-actions button[hidden] {
 display: none;
}
.route-voice-actions button {
 min-height: 44px;
}
.route-voice-backup {
 padding-top: 12px;
 border-top: 1px solid var(--line);
}
