/* Nearby list shares the app's mobile frame and existing bottom navigation. */
.tim-makeup-app.tm-nearby-reference{--nr-ink:var(--tm-color-text);--nr-green:var(--tm-color-primary);--nr-muted:var(--tm-color-muted);--nr-tint:var(--tm-color-soft);--nr-bg:var(--tm-color-page);width:100%;max-width:var(--tm-mobile-frame,430px);margin-inline:auto;color:var(--nr-ink);background:var(--nr-bg)}
.tim-makeup-app.tm-partners-mode.tm-nearby-reference .tm-main{padding:0!important;min-width:0;background:var(--nr-bg)}
.tim-makeup-app.tm-partners-mode.tm-nearby-reference .tm-screen{padding:0!important;min-width:0;background:transparent}
.tim-makeup-app.tm-nearby-reference .nr-page{box-sizing:border-box;width:100%;min-width:0;padding:0 14px 20px;background:var(--nr-bg)}
.tim-makeup-app.tm-nearby-reference .nr-page *{box-sizing:border-box}
.tim-makeup-app.tm-nearby-reference .nr-page button,.tim-makeup-app.tm-nearby-reference .nr-page input{font:inherit;color:inherit;letter-spacing:normal}
.tim-makeup-app.tm-nearby-reference .nr-page button{cursor:pointer;border:0;box-shadow:none;background:transparent;padding:0}
.tim-makeup-app.tm-nearby-reference .nr-page button:focus-visible,.tim-makeup-app.tm-nearby-reference .nr-page a:focus-visible,.tim-makeup-app.tm-nearby-reference .nr-page input:focus-visible{outline:2px solid var(--tm-color-primary);outline-offset:2px}
.tim-makeup-app.tm-nearby-reference .nr-page [hidden]{display:none!important}
.tim-makeup-app.tm-nearby-reference .nr-page svg{display:block;flex:none;width:20px;height:20px}
.tim-makeup-app.tm-nearby-reference .nr-header{min-height:68px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px}
.tim-makeup-app.tm-nearby-reference .nr-header h1{font-size:20px!important;font-weight:700!important;letter-spacing:-.4px;line-height:1.2;margin:0!important;color:var(--nr-ink)!important}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-back{width:40px;min-width:40px;height:44px;min-height:44px;border-radius:50%;background:#fff;display:grid;place-items:center}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{justify-self:end;border-radius:22px;background:#fff;display:flex;gap:4px;align-items:center;padding:0 8px;max-width:112px;min-height:44px;font-size:12px;white-space:nowrap}
.tim-makeup-app.tm-nearby-reference .nr-location span{overflow:hidden;text-overflow:ellipsis}
.tim-makeup-app.tm-nearby-reference .nr-location svg{width:14px;height:16px}
.tim-makeup-app.tm-nearby-reference .nr-search{min-height:48px;background:#fff;border-radius:14px;display:flex;align-items:center;gap:8px;padding:0 12px;margin:0 0 10px}
.tim-makeup-app.tm-nearby-reference .nr-search input{border:0!important;outline:0;box-shadow:none!important;background:transparent!important;width:100%;min-width:0;padding:0!important;font-size:16px!important;height:48px!important;min-height:48px!important;color:var(--nr-ink)}
.tim-makeup-app.tm-nearby-reference .nr-search input::placeholder{color:var(--tm-color-muted);opacity:1}
.tim-makeup-app.tm-nearby-reference .nr-filters{display:flex;align-items:center;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:0 0 4px;margin-bottom:10px}
.tim-makeup-app.tm-nearby-reference .nr-filters button{flex:none;min-height:44px;background:#fff;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 12px;white-space:nowrap;font-size:13px;line-height:1.2}
.tim-makeup-app.tm-nearby-reference .nr-filters button.active{color:#fff;background:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-filters button.selected{box-shadow:inset 0 0 0 1px var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-filters svg{width:15px;height:15px}
.tim-makeup-app.tm-nearby-reference .nr-categories{display:grid;grid-auto-flow:column;grid-auto-columns:82px;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:2px 2px 6px;margin:0 -2px 10px;scroll-snap-type:x proximity}
.tim-makeup-app.tm-nearby-reference .nr-categories button{background:#fff;min-height:92px;border:1px solid transparent;border-radius:13px;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;padding:10px 5px;gap:8px;min-width:0;scroll-snap-align:start}
.tim-makeup-app.tm-nearby-reference .nr-categories button.active{background:var(--tm-color-page);border-color:var(--tm-color-primary);box-shadow:0 0 0 1px var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-categories svg{width:28px;height:28px;color:var(--tm-color-primary);stroke-width:1.4}
.tim-makeup-app.tm-nearby-reference .nr-categories span{font-size:12px;line-height:1.35;text-align:center;overflow-wrap:anywhere}
.tim-makeup-app.tm-nearby-reference .nr-results-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-bottom:6px}
.tim-makeup-app.tm-nearby-reference .nr-results-head h2{margin:0!important;font-size:15px!important;line-height:1.3!important;color:var(--tm-color-text)!important;font-weight:700!important}
.tim-makeup-app.tm-nearby-reference .nr-results-head strong{color:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-results-head button{display:flex;align-items:center;gap:4px;font-size:12px;white-space:nowrap;min-height:44px}
.tim-makeup-app.tm-nearby-reference .nr-results-head svg{width:15px;height:15px}
.tim-makeup-app.tm-nearby-reference .nr-list{display:flex;flex-direction:column;gap:8px;min-width:0}
.tim-makeup-app.tm-nearby-reference .nr-list[aria-busy=true]{opacity:.65;transition:opacity .15s}
.tim-makeup-app.tm-nearby-reference .nr-card{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr) 36px;column-gap:10px;row-gap:6px;background:#fff;border-radius:12px;padding:10px;color:var(--nr-ink);min-width:0}
.tim-makeup-app.tm-nearby-reference .nr-photo{display:block;grid-column:1;grid-row:1 / 3;width:76px;height:86px;overflow:hidden;border-radius:8px;align-self:start}
.tim-makeup-app.tm-nearby-reference .nr-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 35%;border-radius:0!important}
.tim-makeup-app.tm-nearby-reference .nr-photo-empty{display:grid;place-items:center;width:100%;height:100%;background:var(--nr-tint)}
.tim-makeup-app.tm-nearby-reference .nr-photo-empty svg{width:36px;height:36px}
.tim-makeup-app.tm-nearby-reference .nr-card-body{grid-column:2 / 4;grid-row:1;min-width:0}
.tim-makeup-app.tm-nearby-reference .nr-name{display:block;min-height:0!important;padding:0!important;text-decoration:none!important;color:var(--tm-color-text)!important}
.tim-makeup-app.tm-nearby-reference .nr-name h3{font-size:15px!important;letter-spacing:-.2px;line-height:1.35!important;font-weight:700!important;margin:0!important;color:inherit!important;overflow-wrap:anywhere}
.tim-makeup-app.tm-nearby-reference .nr-meta{display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:5px;align-items:center;font-size:12px;line-height:1.35;color:var(--nr-muted)}
.tim-makeup-app.tm-nearby-reference .nr-rating{display:flex;align-items:center;gap:3px;color:#425b75;white-space:nowrap}
.tim-makeup-app.tm-nearby-reference .nr-rating b{font-size:15px;line-height:1;color:#ffbf00;font-weight:400}
.tim-makeup-app.tm-nearby-reference .nr-rating>span{color:var(--nr-muted)}
.tim-makeup-app.tm-nearby-reference .nr-area{display:flex;gap:5px;align-items:center;min-width:0;max-width:100%;white-space:nowrap}
.tim-makeup-app.tm-nearby-reference .nr-area svg{color:var(--tm-color-primary);width:12px;height:14px}
.tim-makeup-app.tm-nearby-reference .nr-area i{font-style:normal}
.tim-makeup-app.tm-nearby-reference .nr-address{overflow:hidden;text-overflow:ellipsis}
.tim-makeup-app.tm-nearby-reference .nr-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.tim-makeup-app.tm-nearby-reference .nr-tags span{display:block;max-width:100%;background:var(--nr-tint);border-radius:7px;padding:4px 6px;color:var(--tm-color-primary);font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.tim-makeup-app.tm-nearby-reference .nr-price{grid-column:2;grid-row:2;justify-self:start;align-self:center;background:var(--nr-tint);color:var(--tm-color-primary);border-radius:14px;padding:6px 8px;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap}
.tim-makeup-app.tm-nearby-reference .nr-card .nr-save{grid-column:3;grid-row:2;align-self:end;justify-self:end;width:44px;height:44px;min-height:44px;display:grid;place-items:center;color:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-save svg{width:21px;height:21px;stroke-width:1.8}
.tim-makeup-app.tm-nearby-reference .nr-save[aria-pressed=true] svg{fill:var(--tm-color-primary);color:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-active{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.tim-makeup-app.tm-nearby-reference .nr-active button{background:var(--tm-color-soft);padding:8px 10px;min-height:44px;border-radius:10px;font-size:12px}
.tim-makeup-app.tm-nearby-reference .nr-more{display:block!important;margin:14px auto!important;padding:10px 24px!important;min-height:44px;border-radius:12px!important;background:var(--tm-color-page)!important;font-size:14px!important}
.tim-makeup-app.tm-nearby-reference .nr-more[hidden]{display:none!important}
.tim-makeup-app.tm-nearby-reference .nr-empty,.tim-makeup-app.tm-nearby-reference .nr-status{padding:24px 12px;text-align:center;font-size:14px;line-height:1.5}
.tim-makeup-app.tm-nearby-reference .nr-status{background:var(--tm-color-page);border-radius:12px}
.tim-makeup-app.tm-nearby-reference .nr-dialog{border:0;border-radius:20px;padding:18px;width:calc(100% - 32px);max-width:398px;max-height:75dvh;overflow:auto;color:var(--tm-color-primary);background:#fff;box-shadow:0 12px 60px #0F362333}
.tim-makeup-app.tm-nearby-reference .nr-dialog::backdrop{background:#0F362355}
.tim-makeup-app.tm-nearby-reference .nr-dialog header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}
.tim-makeup-app.tm-nearby-reference .nr-dialog h2{font-size:20px!important;margin:0!important;color:var(--tm-color-primary)!important}
.tim-makeup-app.tm-nearby-reference .nr-dialog header button{width:44px;height:44px;font-size:28px;background:var(--tm-color-page);border-radius:50%}
.tim-makeup-app.tm-nearby-reference .nr-dialog h3{font-size:15px;margin:18px 0 6px}
.tim-makeup-app.tm-nearby-reference .nr-dialog p{font-size:15px;line-height:1.6}
.tim-makeup-app.tm-nearby-reference .nr-dialog .nr-option{padding:13px 10px;min-height:44px;display:flex;justify-content:space-between;width:100%;text-align:left;font-size:15px;border-radius:10px;color:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-dialog .nr-option.active{background:var(--tm-color-page);color:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-dialog .nr-option:hover{background:var(--tm-color-page)}
@media(max-width:360px){.tim-makeup-app.tm-nearby-reference .nr-page{padding-inline:10px}.tim-makeup-app.tm-nearby-reference .nr-header{gap:5px}.tim-makeup-app.tm-nearby-reference .nr-header h1{font-size:18px!important}.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{max-width:95px}.tim-makeup-app.tm-nearby-reference .nr-card{grid-template-columns:64px minmax(0,1fr) 36px;column-gap:8px}.tim-makeup-app.tm-nearby-reference .nr-photo{width:64px;height:76px}}
@media(prefers-reduced-motion:reduce){.tim-makeup-app.tm-nearby-reference .nr-list{transition:none!important}}

/* Price aligned to the upper-right corner of each partner card. */
.tim-makeup-app.tm-nearby-reference .nr-card .nr-name{padding-right:82px!important;min-height:28px!important}
.tim-makeup-app.tm-nearby-reference .nr-card .nr-price{position:absolute;top:10px;right:10px;max-width:82px;grid-column:auto;grid-row:auto;margin:0}

/* Reference photo layout: full-height left panel, 41% of the card width. */
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card{grid-template-columns:41% minmax(0,1fr);grid-template-rows:1fr 44px;column-gap:0;row-gap:0;padding:0;min-height:200px;overflow:hidden;border:1px solid var(--tm-color-border);border-radius:14px}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-photo{grid-column:1;grid-row:1 / 3;width:100%;height:100%;min-height:200px;align-self:stretch;border-radius:0;position:relative}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-photo img{position:absolute;inset:0;object-fit:cover!important;object-position:center center}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card-body{grid-column:2;grid-row:1;padding:12px 12px 0;min-width:0}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-name{padding-right:72px!important;min-height:28px!important}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-price{top:12px;right:12px;padding:6px;font-size:11px}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-save{grid-column:2;grid-row:2;justify-self:end;align-self:end;margin:0 8px 4px 0}

/* Compact equal-height cards: size rows to content, not a tall photo minimum. */
.tim-makeup-app.tm-nearby-reference .nr-list{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:8px}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card{min-height:0;grid-template-rows:1fr 40px}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-photo{min-height:0}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card-body{padding:10px 10px 0}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-name{min-height:0!important}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-name h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-meta{margin-top:4px;row-gap:3px}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-tags{margin-top:5px;gap:4px}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-save{margin-bottom:0}

/* Keep service tags on one line; JS measures the remaining +N indicator. */
.tim-makeup-app.tm-nearby-reference .nr-list .nr-tags{flex-wrap:nowrap;overflow:hidden;min-width:0}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-tags span{flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-tags .nr-tag-more{flex-shrink:0;font-weight:600}

/* Balance the bottom service row with the title's 10px top inset. */
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card-body{display:flex;flex-direction:column}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-tags{margin-top:auto!important;margin-right:46px;transform:translateY(30px)}

/* Portrait photos use an exact 3:4 frame inside borderless cards. */
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card{border:0;box-shadow:none}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-photo{aspect-ratio:3 / 4;height:auto;align-self:start}

/* Smaller portrait column keeps the card proportional to its content. */
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card{grid-template-columns:32% minmax(0,1fr)}

/* Balanced nearby toolbar and consistent service icon tiles. */
.tim-makeup-app.tm-nearby-reference .nr-header{grid-template-columns:44px minmax(0,1fr) auto;min-height:68px;gap:8px}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-back{width:44px;height:44px}
.tim-makeup-app.tm-nearby-reference .nr-header h1{font-size:19px!important;line-height:1.25;letter-spacing:-.3px}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{padding:0 8px;max-width:112px;gap:4px}
.tim-makeup-app.tm-nearby-reference .nr-search{border-radius:14px;margin-bottom:10px;gap:10px}
.tim-makeup-app.tm-nearby-reference .nr-search input{font-size:16px!important}
.tim-makeup-app.tm-nearby-reference .nr-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow:visible;margin-bottom:14px;padding:0}
.tim-makeup-app.tm-nearby-reference .nr-filters button{height:44px;border-radius:12px;gap:8px;font-size:13px;font-weight:500;padding:0 10px}
.tim-makeup-app.tm-nearby-reference .nr-categories{grid-auto-columns:calc((100% - 24px)/4);gap:8px;margin:0 0 10px;padding:0;scrollbar-width:none;scroll-padding-inline:0}
.tim-makeup-app.tm-nearby-reference .nr-categories::-webkit-scrollbar{display:none}
.tim-makeup-app.tm-nearby-reference .nr-categories button{height:96px;min-height:96px;justify-content:center;padding:10px 4px;gap:7px;border:0;border-radius:14px}
.tim-makeup-app.tm-nearby-reference .nr-categories button.active{background:var(--tm-color-page);box-shadow:inset 0 0 0 1.5px var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-categories svg{width:30px;height:30px;stroke-width:1.6}
.tim-makeup-app.tm-nearby-reference .nr-categories span{display:flex;align-items:center;justify-content:center;min-height:32px;font-size:12px;line-height:16px;overflow-wrap:normal;font-weight:500}
@media(max-width:360px){.tim-makeup-app.tm-nearby-reference .nr-header{gap:6px}.tim-makeup-app.tm-nearby-reference .nr-header h1{font-size:17px!important}.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{max-width:92px;padding-inline:7px}.tim-makeup-app.tm-nearby-reference .nr-categories span{font-size:11px}}

/* Card copy has real spacing; there is no reserved save-button row. */
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card{grid-template-rows:minmax(0,1fr)}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-photo{grid-row:1}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card-body{grid-row:1;padding:12px 10px;gap:0}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-name h3{line-height:1.4!important}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-meta{margin-top:8px;gap:6px 8px;line-height:1.5}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-rating,.tim-makeup-app.tm-nearby-reference .nr-list .nr-area{min-height:18px}
.tim-makeup-app.tm-nearby-reference .nr-list .nr-tags{margin-top:auto!important;margin-right:0;padding-top:10px;transform:none}

/* 0.9.398 — align partner name with price and stack address below rating. */
.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-name{display:block!important;min-width:0!important;padding-right:78px!important}.tim-makeup-app.tm-nearby-reference .nr-list .nr-name h3{display:block!important;overflow:hidden!important;margin:0!important;white-space:nowrap!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important}.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-price{top:12px!important;right:10px!important;display:inline-flex!important;min-height:24px!important;align-items:center!important;padding:4px 7px!important;border-radius:999px!important;font-size:10.5px!important;line-height:1!important}.tim-makeup-app.tm-nearby-reference .nr-list .nr-meta{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;margin-top:5px!important}.tim-makeup-app.tm-nearby-reference .nr-list .nr-rating{order:1!important;min-height:17px!important}.tim-makeup-app.tm-nearby-reference .nr-list .nr-area{order:2!important;width:100%!important;min-height:17px!important;overflow:hidden!important}.tim-makeup-app.tm-nearby-reference .nr-list .nr-address{min-width:0!important;max-width:100%!important}
@media(max-width:360px){.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-name{padding-right:72px!important}.tim-makeup-app.tm-nearby-reference .nr-list .nr-card .nr-price{right:8px!important;padding-inline:6px!important;font-size:10px!important}}

/* Compact mobile toolbar with a readable location and fully contained category rings. */
.tim-makeup-app.tm-nearby-reference .nr-header{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:60px;padding:8px 0 10px}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-back{width:34px;min-width:34px;height:34px;min-height:34px;flex:none}
.tim-makeup-app.tm-nearby-reference .nr-back svg{width:17px;height:17px}
.tim-makeup-app.tm-nearby-reference .nr-heading{min-width:0}
.tim-makeup-app.tm-nearby-reference .nr-header h1{font-size:16px!important;line-height:21px!important;letter-spacing:-.2px;white-space:nowrap;margin:0!important}
.tim-makeup-app.tm-nearby-reference .nr-heading p{margin:3px 0 0!important;color:var(--tm-color-muted);font-size:10px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{min-height:32px;height:32px;max-width:140px;padding:0 7px;gap:3px;font-size:9px;line-height:14px;border-radius:18px}
.tim-makeup-app.tm-nearby-reference .nr-location svg{width:12px;height:14px;flex:none}
.tim-makeup-app.tm-nearby-reference .nr-location svg:last-child{width:8px;height:8px}
.tim-makeup-app.tm-nearby-reference .nr-search{height:38px;min-height:38px;margin:0 0 8px;padding:0 6px 0 12px;gap:9px;border-radius:22px;box-shadow:none}
.tim-makeup-app.tm-nearby-reference .nr-search>svg{width:16px;height:16px;flex:none;color:var(--tm-color-muted)}
.tim-makeup-app.tm-nearby-reference .nr-search input{height:38px!important;min-height:38px!important;flex:1;min-width:0;font-size:16px!important}
.tim-makeup-app.tm-nearby-reference .nr-search input::placeholder{font-size:11px}
.tim-makeup-app.tm-nearby-reference .nr-search .nr-filter-toggle{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;border-radius:50%;background:var(--tm-color-page);color:var(--tm-color-soft)}
.tim-makeup-app.tm-nearby-reference .nr-filter-toggle svg{width:15px;height:15px}
.tim-makeup-app.tm-nearby-reference .nr-search .nr-filter-toggle.selected{background:var(--tm-color-page);color:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-categories{grid-auto-columns:calc((100% - 40px)/6);gap:8px;margin:0 0 4px;padding:4px 0 6px;overflow-x:auto;overflow-y:hidden;scroll-padding-inline:0;scroll-snap-type:x proximity}
.tim-makeup-app.tm-nearby-reference .nr-categories button{height:auto;min-height:84px;justify-content:flex-start;gap:5px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.tim-makeup-app.tm-nearby-reference .nr-categories button.active{background:transparent;box-shadow:none;color:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-categories .nr-category-photo{display:block;box-sizing:border-box;flex:none;width:100%;height:auto;min-height:0;aspect-ratio:1;border-radius:50%;border:4px solid white;background-image:url('home-category-photo-sprite-v2.webp');background-size:400% 200%;background-position:var(--nr-photo-x) var(--nr-photo-y);background-repeat:no-repeat;outline:none;box-shadow:none}
.tim-makeup-app.tm-nearby-reference .nr-categories .active .nr-category-photo{outline:1px solid var(--tm-color-primary);outline-offset:-1px}
.tim-makeup-app.tm-nearby-reference .nr-categories .nr-category-fallback{background-image:none;background-color:var(--tm-color-page);display:grid;place-items:center}
.tim-makeup-app.tm-nearby-reference .nr-categories .nr-category-label{display:block;min-height:28px;font-size:10px;line-height:14px;font-weight:500;white-space:normal;overflow-wrap:normal;color:inherit}
.tim-makeup-app.tm-nearby-reference .nr-results-head{min-height:36px;margin-bottom:8px}
.tim-makeup-app.tm-nearby-reference .nr-results-head h2{font-size:14px!important;line-height:20px!important}
.tim-makeup-app.tm-nearby-reference .nr-results-head button{font-size:11px;min-height:36px;color:var(--tm-color-muted)}
.tim-makeup-app.tm-nearby-reference .nr-results-head svg{width:13px;height:13px}
@media(max-width:380px){.tim-makeup-app.tm-nearby-reference .nr-header{grid-template-columns:30px minmax(0,1fr) auto;gap:6px}.tim-makeup-app.tm-nearby-reference .nr-header .nr-back{width:30px;min-width:30px;height:30px;min-height:30px}.tim-makeup-app.tm-nearby-reference .nr-header h1{font-size:15px!important}.tim-makeup-app.tm-nearby-reference .nr-heading p{font-size:9px}.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{max-width:136px;font-size:9px;padding-inline:6px;gap:3px}}
@media(max-width:340px){.tim-makeup-app.tm-nearby-reference .nr-header{grid-template-columns:30px minmax(0,1fr);column-gap:8px}.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{grid-column:2;justify-self:start;max-width:100%;height:26px;min-height:26px}.tim-makeup-app.tm-nearby-reference .nr-heading p{font-size:10px}}

@media(max-width:380px){.tim-makeup-app.tm-nearby-reference .nr-categories .nr-category-label{font-size:9px;line-height:13px}}

/* One native link covers the complete partner card. */
.tim-makeup-app.tm-nearby-reference .nr-list a.nr-card{text-decoration:none;cursor:pointer}
.tim-makeup-app.tm-nearby-reference .nr-list a.nr-card:focus-visible{outline:2px solid var(--tm-color-primary);outline-offset:3px}

/* Readable mobile header: title first, location second, generous search target. */
.tim-makeup-app.tm-nearby-reference .nr-page{padding-inline:16px}
.tim-makeup-app.tm-nearby-reference .nr-header{grid-template-columns:40px minmax(0,1fr);column-gap:10px;row-gap:8px;min-height:0;padding:14px 0 12px;align-items:center}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-back{grid-column:1;grid-row:1;width:40px;min-width:40px;height:44px;min-height:44px}
.tim-makeup-app.tm-nearby-reference .nr-back svg{width:21px;height:21px}
.tim-makeup-app.tm-nearby-reference .nr-heading{grid-column:2;grid-row:1;min-width:0}
.tim-makeup-app.tm-nearby-reference .nr-header h1{font-size:20px!important;line-height:26px!important;letter-spacing:-.35px;white-space:normal}
.tim-makeup-app.tm-nearby-reference .nr-heading p{font-size:12px;line-height:17px;margin:3px 0 0!important;white-space:normal;overflow:visible;text-overflow:clip}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{grid-column:2;grid-row:2;justify-self:start;width:auto;max-width:100%;height:36px;min-height:36px;font-size:12px;line-height:18px;padding:0 12px;gap:6px;border-radius:18px;background:var(--tm-color-soft);color:var(--tm-color-primary)}
.tim-makeup-app.tm-nearby-reference .nr-location svg{width:16px;height:18px}
.tim-makeup-app.tm-nearby-reference .nr-location svg:last-child{width:12px;height:12px}
.tim-makeup-app.tm-nearby-reference .nr-search{height:46px;min-height:46px;margin-bottom:14px;border-radius:15px;padding:0 14px;gap:10px}
.tim-makeup-app.tm-nearby-reference .nr-search>svg{width:20px;height:20px}
.tim-makeup-app.tm-nearby-reference .nr-search input{height:46px!important;min-height:46px!important;font-size:16px!important}
.tim-makeup-app.tm-nearby-reference .nr-search input::placeholder{font-size:13px}
.tim-makeup-app.tm-nearby-reference .nr-categories{grid-auto-columns:66px;gap:12px;margin-bottom:8px;padding:3px 1px 8px;scrollbar-width:none}
.tim-makeup-app.tm-nearby-reference .nr-categories::-webkit-scrollbar{display:none}
.tim-makeup-app.tm-nearby-reference .nr-categories button{min-height:104px;gap:7px}
.tim-makeup-app.tm-nearby-reference .nr-categories .nr-category-photo{border-width:3px}
.tim-makeup-app.tm-nearby-reference .nr-categories .nr-category-label{min-height:32px;font-size:12px;line-height:16px}
.tim-makeup-app.tm-nearby-reference .nr-categories .active .nr-category-label{font-weight:700}
.tim-makeup-app.tm-nearby-reference .nr-results-head{min-height:40px;margin-bottom:10px;gap:8px}
.tim-makeup-app.tm-nearby-reference .nr-results-head h2{font-size:15px!important;line-height:21px!important}
.tim-makeup-app.tm-nearby-reference .nr-results-head button{font-size:12px;min-height:40px}
@media(min-width:410px){.tim-makeup-app.tm-nearby-reference .nr-categories{grid-auto-columns:70px;gap:12px}}

/* Align back, title and location on one row; subtitle shares title edge. */
.tim-makeup-app.tm-nearby-reference .nr-header{grid-template-columns:36px minmax(0,1fr) auto;column-gap:8px;row-gap:0;padding:12px 0;align-items:center}
.tim-makeup-app.tm-nearby-reference .nr-heading{display:contents}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-back{grid-column:1;grid-row:1 / 3;width:36px;min-width:36px;height:44px;min-height:44px;align-self:center}
.tim-makeup-app.tm-nearby-reference .nr-header h1{grid-column:2;grid-row:1;font-size:18px!important;line-height:24px!important;white-space:nowrap;letter-spacing:-.4px}
.tim-makeup-app.tm-nearby-reference .nr-heading p{grid-column:2 / 4;grid-row:2;margin:0!important;font-size:11px;line-height:17px}
.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{grid-column:3;grid-row:1;justify-self:end;max-width:136px;height:36px;min-height:36px;padding:0 8px;gap:4px;font-size:11px}
.tim-makeup-app.tm-nearby-reference .nr-location svg{width:14px;height:16px}
.tim-makeup-app.tm-nearby-reference .nr-location svg:last-child{width:10px;height:10px}
@media(max-width:359px){.tim-makeup-app.tm-nearby-reference .nr-header{grid-template-columns:36px minmax(0,1fr)}.tim-makeup-app.tm-nearby-reference .nr-header .nr-location{grid-column:2;grid-row:3;justify-self:start;max-width:100%;margin-top:6px}.tim-makeup-app.tm-nearby-reference .nr-heading p{grid-column:2}.tim-makeup-app.tm-nearby-reference .nr-header .nr-back{grid-row:1 / 3}}

/* Search focus belongs to the rounded search surface, not its inner input. */
.tim-makeup-app.tm-nearby-reference .nr-page .nr-search input:is(:focus,:focus-visible){outline:none!important;outline-offset:0!important;box-shadow:none!important}
.tim-makeup-app.tm-nearby-reference .nr-page .nr-search:focus-within{background:#f4faf7!important;box-shadow:inset 0 0 0 1px #a5cfb9!important}
.tim-makeup-app.tm-nearby-reference .nr-page .nr-search:focus-within>svg{color:var(--tm-color-primary)}
