/*
 * The search overlay's stylesheet (planner-538). Public skin: every color is a theme role token (docs/CLAUDE-theming.md), each
 * with a plain fallback so the overlay still reads where the roles are missing. The portal skin overrides the --so-* variables.
 * Layout: a full-screen layer, the page blurred under a mask, a big field across the content, a Top result bar, column cards.
 * Accessibility decisions A11Y-01 to A11Y-20: docs/CLAUDE-search-overlay.md.
 */
.omo-so{
	--so-mask:var(--color-search-mask,rgba(60,45,35,.74));
	--so-on-mask:var(--color-search-on-mask,#fff);
	--so-surface:var(--color-surface,#fff);
	--so-surface-alt:var(--color-surface-alt,#f3f0eb);
	--so-text:var(--color-text,#1c1917);
	--so-muted:var(--color-muted,#6b6259);
	--so-border:var(--color-border,#e2ddd6);
	--so-border-strong:var(--ctl-border,#8a8279);
	--so-accent:var(--color-coffee,#4a3b31);
	--so-top-bg:var(--btn-primary-bg,#4a3b31);
	--so-top-fg:var(--btn-primary-fg,#fff);
	--so-page:var(--color-page,#fff);
	--so-sample-bg:var(--color-teal-tint,#e2edea);
	--so-sample-fg:var(--color-teal-ink,#1a5f52);
	/* The sample band (17 Nov 2026, John: the portal's tile band is now solid): a SOLID teal with white text on light, the tint pair on dark. */
	--so-band-bg:var(--color-teal,#00806b);
	--so-band-fg:#fff;
	--so-serif:Georgia,"Times New Roman",serif;
	/* The highlight and tile tint: the text color mixed into the surface, a little more in light (10%) than in dark (8%), because a
	   dark surface is so much darker that the same percentage is a far bigger step; the two land near 1.24:1 against the surface. */
	--so-tint-pct:10%;
	--so-tint:color-mix(in srgb,var(--so-text) var(--so-tint-pct),var(--so-surface));
}
:root[data-theme="dark"] .omo-so{--so-tint-pct:8%;--so-band-bg:var(--so-sample-bg);--so-band-fg:var(--so-sample-fg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .omo-so{--so-tint-pct:8%;--so-band-bg:var(--so-sample-bg);--so-band-fg:var(--so-sample-fg)}}
html.omo-so-open{overflow:hidden}
dialog.omo-so{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;
	background:var(--so-mask);color:var(--so-on-mask);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font:inherit}
dialog.omo-so:not([open]){display:none}
dialog.omo-so::backdrop{background:transparent}
.omo-so *,.omo-so *::before,.omo-so *::after{box-sizing:border-box}
.omo-so__sheet{height:100%;max-width:1440px;margin-inline:auto;padding:24px clamp(16px,4vw,56px) 16px;display:flex;flex-direction:column;gap:12px}
.omo-so__box{display:flex;align-items:center;gap:14px;margin:0;padding:12px 14px 12px 20px;background:var(--so-surface);color:var(--so-text);
	border:1px solid var(--so-border-strong);border-radius:14px;flex:none}
.omo-so__lens{flex:none;width:26px;height:26px;color:var(--so-muted)}
.omo-so__input{flex:1;min-width:0;border:0;background:transparent;color:inherit;font:400 28px/1.25 var(--so-serif);padding:4px 0;margin:0;outline:0;box-shadow:none;border-radius:0;height:auto;width:auto}
.omo-so__input::placeholder{color:var(--so-muted);opacity:1}
.omo-so__input::-webkit-search-cancel-button{display:none}
.omo-so__box:focus-within{outline:2px solid var(--so-accent);outline-offset:2px}
.omo-so__close{display:inline-flex;align-items:center;gap:6px;flex:none;margin:0;padding:8px 12px;background:transparent;color:var(--so-text);border:1px solid var(--so-border-strong);border-radius:8px;font:inherit;font-size:14px;line-height:1.2;cursor:pointer}
.omo-so__close:hover{background:var(--so-tint)}
.omo-so__close:focus-visible{outline:2px solid var(--so-accent);outline-offset:2px}
.omo-so__close svg{width:16px;height:16px}
.omo-so__close-label--narrow{display:none}
.omo-so__list{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;overflow-y:auto;overscroll-behavior:contain;padding:3px}
.omo-so__list[hidden],.omo-so__top[hidden],.omo-so__none[hidden]{display:none}
.omo-so__list[aria-busy="true"] .omo-so__cols,.omo-so__list[aria-busy="true"] .omo-so__top{opacity:.6}
.omo-so__none{margin:0;padding:6px 2px;font:400 22px/1.3 var(--so-serif)}
.omo-so__top{flex:none}
.omo-so__cols{display:grid;gap:12px;grid-template-columns:minmax(0,1fr);align-items:start}
.omo-so__cols[data-cards="2"]{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.omo-so__cols[data-cards="3"]{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)}
.omo-so__card{background:var(--so-surface);color:var(--so-text);border:1px solid var(--so-border);border-radius:12px;padding:12px 12px 10px;min-width:0}
.omo-so__group+.omo-so__group{margin-top:12px}
.omo-so__h{margin:0 0 4px 10px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--so-muted)}
.omo-so__rows{display:flex;flex-direction:column;gap:2px}
/* Every group of books is a grid of cover tiles: the public Books group and the portal's In your library and Not in your library yet (without this a cover in the portal groups was as wide as its column). */
.omo-so__group--books .omo-so__rows,.omo-so__group--library .omo-so__rows,.omo-so__group--catalog .omo-so__rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px}

/* A row: a real link with role=option. */
.omo-so__opt{display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:8px;border:2px solid transparent;color:inherit;text-decoration:none;min-width:0}
.omo-so__opt .omo-so__title{font-size:15px;line-height:1.3;color:inherit;overflow-wrap:anywhere}
.omo-so__body{display:flex;flex-direction:column;gap:2px;min-width:0}
.omo-so__meta{font-size:12px;line-height:1.35;color:var(--so-muted)}
.omo-so__opt.is-active{border-color:var(--so-accent);background:var(--so-tint)}
.omo-so__opt:hover{background:var(--so-tint)}
.omo-so__icon{flex:none;width:30px;height:30px;border-radius:7px;background:var(--so-tint);border:1px solid var(--so-border);position:relative}
.omo-so__icon::before{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;background:var(--so-muted);-webkit-mask:var(--so-icon,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6l-6 6'/%3E%3C/svg%3E")) center/contain no-repeat;mask:var(--so-icon,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6l-6 6'/%3E%3C/svg%3E")) center/contain no-repeat}
.omo-so__icon--book{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0'/%3E%3Cpath d='M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0'/%3E%3Cpath d='M3 6v13M12 6v13M21 6v13'/%3E%3C/svg%3E")}
.omo-so__icon--series{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6l-8 4l8 4l8-4l-8-4'/%3E%3Cpath d='M4 14l8 4l8-4'/%3E%3C/svg%3E")}
.omo-so__icon--page{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M17 21h-10a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z'/%3E%3C/svg%3E")}
.omo-so__icon--post{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E")}
.omo-so__icon--faq{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 17v.01M12 13.5a1.5 1.5 0 0 1 1-1.5a2.6 2.6 0 1 0-3-4'/%3E%3C/svg%3E")}
.omo-so__icon--recent{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v4l2 2'/%3E%3Cpath d='M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5'/%3E%3C/svg%3E")}
.omo-so__icon--home{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l-2 0l9 -9l9 9l-2 0'/%3E%3Cpath d='M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7'/%3E%3Cpath d='M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6'/%3E%3C/svg%3E")}
.omo-so__icon--compass{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16l2 -6l6 -2l-2 6l-6 2'/%3E%3Cpath d='M12 3a9 9 0 1 0 0 18a9 9 0 0 0 0 -18'/%3E%3C/svg%3E")}
.omo-so__icon--target{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E")}
.omo-so__icon--user{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2'/%3E%3C/svg%3E")}
.omo-so__icon--chart{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4 -4l3 3l5 -6'/%3E%3C/svg%3E")}
.omo-so__icon--check{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E")}
.omo-so__icon--tag{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 7.5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0'/%3E%3Cpath d='M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3z'/%3E%3C/svg%3E")}
.omo-so__icon--bookmark{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6a2 2 0 0 1 2 2v14l-5 -3l-5 3v-14a2 2 0 0 1 2 -2'/%3E%3C/svg%3E")}
.omo-so__icon--arrow{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6l-6 6'/%3E%3C/svg%3E")}
.omo-so__icon--language{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3.6 9h16.8M3.6 15h16.8'/%3E%3Cpath d='M11.5 3a17 17 0 0 0 0 18M12.5 3a17 17 0 0 1 0 18'/%3E%3C/svg%3E")}
.omo-so__icon--bell{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6'/%3E%3Cpath d='M9 17v1a3 3 0 0 0 6 0v-1'/%3E%3C/svg%3E")}
.omo-so__icon--shortcut{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6l-6 6'/%3E%3C/svg%3E")}
.omo-so__icon--filter{--so-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v2.172a2 2 0 0 1-.586 1.414L15 12v7l-6 2v-8.5L4.52 7.572A2 2 0 0 1 4 6.172z'/%3E%3C/svg%3E")}

/* A language's flag in its icon tile (the same three shapes as the site's language chips: a recolored mask, a plain SVG, an image,
   the registry emoji). */
/* A language row: the name, then its region under it in the catalog's own region style (small, bold, uppercase, muted). */
.omo-so__rm{margin-left:auto;flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;color:var(--so-muted);opacity:0;transition:opacity .12s}
.omo-so__opt--recent:hover .omo-so__rm,.omo-so__opt--recent.is-active .omo-so__rm{opacity:1}
.omo-so__rm:hover{background:var(--so-border);color:var(--so-text)}
@media (hover:none){.omo-so__rm{opacity:1}}
@media (forced-colors:active){.omo-so__rm{opacity:1;color:CanvasText}}
.omo-so__group--books .omo-so__h,.omo-so__group--library .omo-so__h,.omo-so__group--catalog .omo-so__h{margin-left:8px}
.omo-so__opt--language .omo-so__meta{text-transform:uppercase;font-weight:700;font-size:11px;letter-spacing:.04em}
.omo-so__icon--flag::before{display:none}
.omo-so__flag{display:block;width:20px;height:20px;border-radius:50%;margin:auto;position:absolute;inset:0;flex:none;overflow:hidden}
.omo-so__flag--svg svg{display:block;width:100%;height:100%;border-radius:50%}
.omo-so__flag--img{object-fit:cover}
.omo-so__flag--emoji{display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;border-radius:0}
.omo-so__flag--mask{background-color:var(--lang-icon-tone,var(--lang-icon-recolor,currentColor));-webkit-mask-image:var(--lang-icon-svg);mask-image:var(--lang-icon-svg);-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;border-radius:0}
@media (forced-colors:active){.omo-so__flag--mask{background-color:CanvasText}}

/* Books are cover tiles. */
.omo-so__opt--book{flex-direction:column;align-items:stretch;gap:6px;padding:6px;border-radius:8px}
.omo-so__cover{position:relative;display:block;aspect-ratio:2/3;width:100%;border-radius:3px;overflow:hidden;background:var(--so-tint);border:1px solid var(--so-border)}
.omo-so__cover-img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
/* The cover clips its band with its own rounded box; its background takes the band's color so the anti-aliased corner pixels are not the box's tint (a pale halo). The top is anchored so a badged cover file's dark foot strip is the part that is cut. */
.omo-so__cover:has(.omo-so__band){background:var(--so-band-bg)}
/* A held free sample: a band across the bottom of the cover, the same teal pair as the portal's tiles (planner-543); real text. Smaller on the narrow covers (the Top result's, a strip's). */
.omo-so__band{position:absolute;left:0;right:0;bottom:0;padding:5px 2px;background:var(--so-band-bg);color:var(--so-band-fg);font-family:inherit;font-weight:700;font-size:.64rem;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;text-align:center;pointer-events:none}
.omo-so__opt--top .omo-so__band,.omo-so__cols[data-layout="strip"] .omo-so__band{padding:2px 1px;font-size:.44rem;letter-spacing:.03em}
.omo-so__opt--book .omo-so__title{font:500 14px/1.25 var(--so-serif)}

/* The Top result: a filled bar on the mask. */
.omo-so__opt--top{background:var(--so-top-bg);color:var(--so-top-fg);border:2px solid transparent;border-radius:12px;padding:8px 14px;gap:12px}
.omo-so__opt--top:hover{background:var(--so-top-bg)}
.omo-so__opt--top.is-active{background:var(--so-top-bg);border-color:var(--so-on-mask);outline:2px solid var(--so-top-bg);outline-offset:0}
.omo-so__opt--top .omo-so__title{font:500 17px/1.3 var(--so-serif)}
.omo-so__opt--top .omo-so__meta{color:inherit;opacity:.85}
.omo-so__opt--top .omo-so__icon,.omo-so__opt--top .omo-so__cover{background:var(--so-top-fg);border-color:var(--so-top-fg)}
.omo-so__opt--top .omo-so__icon::before{background:var(--so-top-bg)}
.omo-so__opt--top.omo-so__opt--book{flex-direction:row;align-items:center}
.omo-so__opt--top .omo-so__cover{width:44px;flex:none}
.omo-so__cta{font-size:13px;font-weight:500;opacity:.95}
.omo-so__cta::after{content:" \2192"}

/* Footer on the mask: the all-results link (the last option). */
.omo-so__foot{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:auto;padding:2px 0;font-size:13px;flex:none}
.omo-so__tools{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex:none;padding:2px 0;font-size:13px}
.omo-so__clear{margin:0 0 0 auto;padding:6px 2px;background:none;border:2px solid transparent;border-radius:8px;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.omo-so__clear[hidden]{display:none}
.omo-so__clear:focus-visible{outline:2px solid var(--so-on-mask);outline-offset:0}
.omo-so__allslot{margin-left:auto}
.omo-so__all{display:inline-block;padding:6px 2px;border:2px solid transparent;border-radius:8px;color:inherit;text-decoration:underline;text-underline-offset:3px}
.omo-so__all::after{content:" \2192"}
.omo-so__all.is-active{border-color:var(--so-on-mask)}
.omo-so__status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* A few books: a horizontal strip across the top (cover beside the text); the other cards share the full width below. */
.omo-so__cols[data-layout="strip"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.omo-so__cols[data-layout="strip"][data-cards="2"]{grid-template-columns:minmax(0,1fr)}
.omo-so__cols[data-layout="strip"] .omo-so__card:first-child{grid-column:1/-1}
.omo-so__cols[data-layout="strip"] .omo-so__group--books .omo-so__rows,.omo-so__cols[data-layout="strip"] .omo-so__group--library .omo-so__rows,.omo-so__cols[data-layout="strip"] .omo-so__group--catalog .omo-so__rows{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px 16px}
.omo-so__cols[data-layout="strip"] .omo-so__opt--book{flex-direction:row;align-items:center;gap:14px;padding:8px 10px}
.omo-so__cols[data-layout="strip"] .omo-so__opt--book .omo-so__cover{width:56px;flex:none}
@media (max-width:700px){
	.omo-so__cols[data-cards="2"],.omo-so__cols[data-cards="3"],.omo-so__cols[data-layout="strip"],.omo-so__cols[data-layout="strip"][data-cards="2"]{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
	.omo-so__sheet{padding:12px 12px 12px;gap:10px}
	.omo-so__box{padding:8px 10px 8px 14px;gap:10px}
	.omo-so__lens{width:22px;height:22px}
	.omo-so__input{font-size:20px}
	.omo-so__close-label--wide{display:none}
	.omo-so__close-label--narrow{display:inline}
	.omo-so__card{padding:12px}
	.omo-so__opt--top{padding:10px 12px}
}
@media (pointer:coarse){.omo-so__opt,.omo-so__all,.omo-so__close{min-height:44px}}

/* Motion: only where the person has not asked for less (the sitewide reduced-motion rule also applies). The layer fades in, the
   field rises, then the Top result and each card rise a few pixels one after another on the first render. */
@media (prefers-reduced-motion:no-preference){
	dialog.omo-so[open]{animation:omo-so-in .15s ease-out}
	dialog.omo-so[open] .omo-so__box{animation:omo-so-rise .3s cubic-bezier(.2,.7,.2,1) both}
	.omo-so__top.omo-so__anim,
	.omo-so__cols.omo-so__anim > .omo-so__card{animation:omo-so-rise .34s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * 55ms + 70ms)}
	dialog.omo-so[open].omo-so--closing{animation:omo-so-out .19s ease-in both;pointer-events:none}
	dialog.omo-so[open].omo-so--closing .omo-so__sheet{animation:omo-so-sink .19s ease-in both}
	@keyframes omo-so-out{from{opacity:1}to{opacity:0}}
	@keyframes omo-so-sink{from{opacity:1;transform:none}to{opacity:0;transform:translateY(8px)}}
	@keyframes omo-so-in{from{opacity:0}to{opacity:1}}
	@keyframes omo-so-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
}
/* Less transparency, or no backdrop-filter: the mask lies over a solid page color, so the panels keep their contrast. */
@media (prefers-reduced-transparency:reduce){
	dialog.omo-so{-webkit-backdrop-filter:none;backdrop-filter:none;background:linear-gradient(var(--so-mask),var(--so-mask)),var(--so-page)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
	dialog.omo-so{background:linear-gradient(var(--so-mask),var(--so-mask)),var(--so-page)}
}
/* Forced colors: nothing relies on a background color alone. */
@media (forced-colors:active){
	dialog.omo-so{background:Canvas;color:CanvasText}
	.omo-so__clear:focus-visible{outline-color:Highlight}
	.omo-so__box,.omo-so__card,.omo-so__close{border:1px solid CanvasText}
	.omo-so__opt--top{border:2px solid CanvasText;background:Canvas;color:CanvasText}
	.omo-so__opt.is-active,.omo-so__opt--top.is-active,.omo-so__all.is-active{outline:2px solid Highlight;outline-offset:0;border-color:Highlight}
	.omo-so__icon,.omo-so__cover{border:1px solid CanvasText}
	.omo-so__icon::before{background:CanvasText}
	.omo-so__all{color:LinkText}
}
