/* Saved photos and "Your people" (saved.js). The new look only, as the feature is. */
:root[data-look="new"] { --sv-star: #b98a00; --sv-star-soft: #fff6d6; }
@media (prefers-color-scheme: dark) { :root[data-look="new"]:not([data-theme="light"]) { --sv-star: #f5c518; --sv-star-soft: #3a3214; } }
:root[data-look="new"][data-theme="dark"] { --sv-star: #f5c518; --sv-star-soft: #3a3214; }

/* The bookmark beside a photo's heart: the same button as the heart; filled once saved. */
[data-look="new"] .abar .ab-save.on { color: var(--fg); }
[data-look="new"] .abar .ab-save.pop svg { animation: abpop .3s ease-out; }
[data-look="new"] .viewer .abar .ab-save.on { color: #f1f4f1; }
/* Under a grid photo (a computer only: a phone's grid has no line under the photo; there, Save is in the viewer). */
[data-look="new"] .pg-line .ab-save { min-width: 0; width: 30px; height: 36px; min-height: 0; padding: 0; justify-content: center; }
[data-look="new"] .pg-line .ab-save svg { width: 20px; height: 20px; }
@media (max-width: 640px) { [data-look="new"] .ab-save { display: none; } [data-look="new"] .viewer .ab-save { display: inline-flex; } }

/* Stars on people. */
[data-look="new"] .sv-star, [data-look="new"] .sv-pstar, [data-look="new"] .sv-cstar { color: var(--fg); }
[data-look="new"] .sv-star.on, [data-look="new"] .sv-pstar.on, [data-look="new"] .sv-cstar.on { color: var(--sv-star); }
[data-look="new"] .sv-star.pop svg, [data-look="new"] .sv-pstar.pop svg, [data-look="new"] .sv-cstar.pop svg { animation: abpop .3s ease-out; }
/* A profile's header: an ordinary button, the star before the word. */
[data-look="new"] .person-actions .sv-pstar { display: inline-flex; align-items: center; gap: 8px; }
[data-look="new"] .sv-pstar svg { width: 18px; height: 18px; flex: none; }
[data-look="new"] .sv-pstar.on { background: var(--sv-star-soft); border-color: var(--sv-star); color: var(--fg); }
[data-look="new"] .sv-pstar.on svg { color: var(--sv-star); }
/* A person's card: a star in the photo's top corner; outlined only while pointed at, filled once starred. */
[data-look="new"] .card .ph { position: relative; }
[data-look="new"] .sv-cstar { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #15201a; cursor: pointer; opacity: 0; transition: opacity .12s; }
[data-look="new"] .sv-cstar svg { width: 18px; height: 18px; }
[data-look="new"] .sv-cstar.on { opacity: 1; color: #b98a00; }
[data-look="new"] .card:hover .sv-cstar, [data-look="new"] .card:focus-visible .sv-cstar, [data-look="new"] .sv-cstar:focus-visible { opacity: 1; }
[data-look="new"] .sv-cstar:hover { background: #fff; }
@media (hover: none) { [data-look="new"] .sv-cstar:not(.on) { display: none; } }
/* A row: face, name and class, a star at the end. */
[data-look="new"] .sv-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 12px; }
[data-look="new"] .sv-more:not([hidden]) { display: contents; }
[data-look="new"] .sv-row { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 6px 4px 6px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
[data-look="new"] .sv-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
[data-look="new"] .sv-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: var(--fg); padding: 2px 0; }
[data-look="new"] .sv-who .av { width: 44px; height: 44px; border: 0; }
[data-look="new"] .sv-who .av i { font-size: 14px; }
[data-look="new"] .sv-who-t { display: flex; flex-direction: column; min-width: 0; }
[data-look="new"] .sv-who-t b, [data-look="new"] .sv-who-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-look="new"] .sv-who-t b { font-size: 15px; font-weight: 700; line-height: 1.3; }
[data-look="new"] .sv-who-t small { font-size: 13px; color: var(--muted); line-height: 1.35; }
[data-look="new"] .sv-star { flex: none; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; }
[data-look="new"] .sv-star:hover { background: var(--surface-2); }
[data-look="new"] .sv-star svg { width: 22px; height: 22px; }

/* The pages. */
[data-look="new"] .sv-head h1 { margin: 0 0 4px; }
[data-look="new"] .sv-head > p, [data-look="new"] .sv-head > div > p { margin: 0; }
[data-look="new"] .sv-count { white-space: nowrap; color: var(--fg); }
[data-look="new"] .sv-find { margin: 18px 0 4px; }
[data-look="new"] .sv-hits { margin-top: 8px; }
[data-look="new"] .sv-hits > p { margin: 8px 0 0; }
[data-look="new"] .sv-sug { margin-top: 32px; }
[data-look="new"] .sv-sug-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
[data-look="new"] .sv-sug-head h2 { margin: 0; }
[data-look="new"] .sv-sug-head p { margin: 2px 0 0; }
[data-look="new"] .sv-sug-head button { flex: none; }
[data-look="new"] .sv-sug .sv-showall { margin-top: 8px; }
[data-look="new"] .sv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 12px; }
[data-look="new"] .sv-bar p { margin: 0; }
[data-look="new"] .sv-bar-acts { display: flex; gap: 8px; }
[data-look="new"] .sv-empty { margin: 18px 0; padding: 28px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
[data-look="new"] .sv-empty svg { width: 18px; height: 18px; vertical-align: -3px; }
[data-look="new"] .sv-feed-note { margin: 16px 0 0; }
[data-look="new"] .sv-feed-sec { margin-top: 8px; }
[data-look="new"] .sv-feed-h { margin: 24px 0 0; }
[data-look="new"] .sv-more-wrap { text-align: center; margin: 24px 0 0; }
/* Home, under the two photos. */
[data-look="new"] .sv-home { margin-top: 40px; }
[data-look="new"] .sv-home .memories-head { margin-bottom: 4px; }
[data-look="new"] .sv-home .sv-lead { margin: 0 0 4px; font-size: 15px; }
[data-look="new"] .sv-home .photo-grid { margin-top: 12px; }
/* By the "Your people" heading (Home and the page): the starred faces (whoRow's stack, its padding even all round so the
   faces sit on the heading's centre line). */
[data-look="new"] .sv-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }   /* the faces go under a heading too long for both, never breaking it */
[data-look="new"] .sv-title > h1, [data-look="new"] .sv-title > h2 { margin: 0; }
[data-look="new"] .sv-head .sv-title { margin: 0 0 4px; }
[data-look="new"] .sv-faces.who-sum { flex: none; padding: 2px; margin: 0; gap: 0; text-decoration: none; }
/* "Saved photos N" in Home's photo heading, beside the heading's links on a computer; on a phone, where those links take
   their own line, on the heading's line at the right (there's room there; a third link below overflowed at 375px). */
[data-look="new"] .sv-savedn { white-space: nowrap; display: inline-block; padding: 6px 0; line-height: 20px; }
[data-look="new"] .sv-savedn svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }
[data-look="new"] .sv-savedn .sv-short { display: none; }
[data-look="new"] .memories-head > .sv-savedn { margin-left: auto; margin-right: 4px; font-weight: 700; color: var(--accent); text-decoration: none; }   /* as .mem-head-acts a */
@media (max-width: 640px) {
  [data-look="new"] .sv-rows { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  [data-look="new"] .sv-sug-head { align-items: center; }
  [data-look="new"] .sv-sug-head h2 { font-size: 20px; }
  [data-look="new"] .sv-home { margin-top: 32px; }
  /* "Saved photos" is "Saved" by the bookmark, so it fits beside the heading even with Larger text. */
  [data-look="new"] .memories-head > .sv-savedn { margin: 0; }
  [data-look="new"] .sv-savedn .sv-long { display: none; } [data-look="new"] .sv-savedn .sv-short { display: inline; }
  /* Your people's one link stays on the heading's line when it fits beside the faces (the row's space-between puts it
     at the right); when it doesn't, it starts the next line at the left, as Home's other heading links do. */
  [data-look="new"] .sv-home .memories-head .mem-head-acts { width: auto; }
  [data-look="new"] .sv-home .memories-head .mem-head-acts a { display: inline-flex; align-items: center; min-height: 32px; box-sizing: border-box; padding-left: 0; padding-right: 0; }
}
