/* Orneos Search pages only (search.orneos.eu): rules moved out of style.css, loaded by search_layout.php after it. */
.search-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; --s-indent: 0px; }
@media (min-width: 900px) {
  .search-app { --s-indent: 152px; }
}
.search-top { position: relative; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter-r) 14px var(--gutter); background: var(--surface); }
.search-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 5; }
.search-progress::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--action), var(--mark-2), transparent); animation: s-progress 1.1s ease-in-out infinite; }
.search-top:not(.search-top-home) { border-bottom: 1px solid var(--line); }
.search-top-home { background: transparent; }
.search-mini-logo { display: inline-flex; align-items: center; gap: 8px; width: 128px; flex: none; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1875rem; letter-spacing: -.01em; min-height: 44px; }
.search-mini-logo svg { width: 30px; height: 30px; }
.search-nav { display: flex; align-items: center; gap: 16px; flex: none; }
.search-nav-link { color: var(--muted); font-size: var(--fs-small); text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.search-nav-link:hover, .search-nav-link:focus-visible { color: var(--ink); }
.search-top-home { --search-promo-end: var(--safran); }
.search-top-home .search-promo {
  background: linear-gradient(105deg, var(--muted) 12%, var(--search-promo-end) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.search-top-home .search-promo:hover, .search-top-home .search-promo:focus-visible {
  background: linear-gradient(105deg, var(--ink) 8%, var(--search-promo-end) 88%);
  -webkit-background-clip: text; background-clip: text;
}
body[data-event="halloween"] .search-top-home { --search-promo-end: #D9640F; }
body[data-event="valentine"] .search-top-home { --search-promo-end: #C2185B; }
body[data-event="christmas"] .search-top-home { --search-promo-end: #C41E3A; }
body[data-event="newyear"] .search-top-home,
body[data-event="winter"] .search-top-home { --search-promo-end: #6B82E8; }
body[data-event="spring"] .search-top-home { --search-promo-end: #D46A9A; }
body[data-event="summer"] .search-top-home { --search-promo-end: #E09400; }
body[data-event="autumn"] .search-top-home { --search-promo-end: #C85A14; }
body[data-event="april"] .search-top-home { --search-promo-end: var(--action); }
@media (prefers-color-scheme: dark) {
  body[data-event="halloween"] .search-top-home { --search-promo-end: #FF9A3D; }
  body[data-event="valentine"] .search-top-home { --search-promo-end: #F48FB1; }
  body[data-event="christmas"] .search-top-home { --search-promo-end: #F07178; }
  body[data-event="newyear"] .search-top-home,
  body[data-event="winter"] .search-top-home { --search-promo-end: #AEBBFF; }
}
.search-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-actions .search-nav-link { padding: 0 6px; }
.sbox { position: relative; flex: 1; max-width: 690px; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 4px 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: box-shadow var(--t-fast), border-color var(--t-fast); }
.sbox:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-tint); z-index: 20; /* above home widgets (they create stacking contexts via transform) */ }
.sbox input[type="search"] { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; outline: none; font-size: 1.0625rem; color: var(--ink); }
.sbox input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.sbox-go { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--action); color: var(--on-action); cursor: pointer; }
.sbox-go:hover { background: var(--action-hover); }
.sbox-lg { flex: none; width: 100%; min-height: 58px; padding-left: 20px; box-shadow: 0 10px 30px -18px rgba(15, 36, 64, .35); }
.sbox-lg input[type="search"] { height: 56px; font-size: 1.125rem; }
.sbox-lg .sbox-go { width: 46px; height: 46px; }
.sbox-lg .sbox-go { order: 2; }
.sbox-ai { order: 1; display: inline-flex; align-items: center; gap: 7px; flex: none; height: 40px; padding: 0 14px 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
.sbox-ai:hover, .sbox-ai:focus-visible { border-color: var(--action); color: var(--action); background: var(--action-tint); }
@media (max-width: 480px) {
  .sbox-ai { width: 40px; padding: 0; justify-content: center; }
  .sbox-ai span { display: none; }
}
.sbox-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 18px 40px -18px rgba(15, 36, 64, .45); }
.sbox-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--r-ctl); cursor: pointer; }
.sbox-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbox-list li b { font-weight: 700; }
.sbox-list li[aria-selected="true"], .sbox-list li:hover { background: var(--surface-2); }
.search-app:has(.search-home) { position: relative; isolation: isolate; overflow-x: hidden; background: var(--bg); }
.search-app:has(.search-home)::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 32% at 32% 22%, color-mix(in srgb, var(--action) 13%, transparent), transparent 70%),
              radial-gradient(26% 26% at 72% 14%, color-mix(in srgb, var(--safran) 15%, transparent), transparent 70%),
              radial-gradient(34% 30% at 62% 72%, color-mix(in srgb, var(--mark-2) 9%, transparent), transparent 70%);
  animation: home-drift 26s ease-in-out infinite alternate; }
.search-greet { margin: 0 0 -14px; color: var(--muted); font-size: 1.0625rem; font-weight: 500; animation: s-rise .35s .05s cubic-bezier(.2,.7,.2,1) both; }
.search-logo .search-mark { cursor: pointer; transform-origin: 50% 50%; animation: logo-in .6s cubic-bezier(.2,.8,.2,1) both; }
.search-logo-word, .search-logo span { animation: s-rise .35s .05s cubic-bezier(.2,.7,.2,1) both; }
.search-logo .search-mark.is-spin { animation: logo-spin .6s cubic-bezier(.3,.7,.2,1); }
.search-home > .sbox-lg { animation: s-rise-in .3s cubic-bezier(.2,.7,.2,1) both; /* focused on load: never invisible, only a short rise */ transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.search-home > .sbox-lg:hover { box-shadow: 0 16px 38px -18px rgba(15, 36, 64, .45); }
.search-event { margin: 0 0 -10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--ink); font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); animation: s-rise .5s .3s both; transition: transform var(--t-fast); }
.search-event:hover { transform: translateY(-1px) scale(1.03); }
.search-event:active { transform: scale(.97); }
.search-fx { position: fixed; inset: 0; z-index: 30; width: 100vw; height: 100vh; pointer-events: none; }
[data-event="halloween"] .search-app::before, body[data-event="halloween"]::before {
  background: radial-gradient(38% 32% at 30% 20%, rgba(240, 120, 20, .16), transparent 70%), radial-gradient(30% 28% at 72% 16%, rgba(110, 40, 170, .14), transparent 70%),
              radial-gradient(34% 30% at 60% 72%, rgba(240, 162, 2, .1), transparent 70%); }
body[data-event="halloween"] .search-logo > span:last-child { color: #D9640F; }
body[data-event="christmas"] .search-logo > span:last-child, body[data-event="winter"] .search-logo > span:last-child { text-shadow: 0 0 18px rgba(138, 158, 255, .45); }
body[data-event="valentine"] .search-logo > span:last-child { color: #C2185B; }
@media (prefers-color-scheme: dark) {
  body[data-event="halloween"] .search-logo > span:last-child { color: #FF9A3D; }
  body[data-event="valentine"] .search-logo > span:last-child { color: #F48FB1; }
}
.fx-roll { animation: fx-roll 1.2s cubic-bezier(.45,0,.2,1) .4s; }
.fx-askew .search-main, .fx-askew .search-top, .fx-askew .search-tabs { transform: rotate(1.2deg); }
.envol { position: fixed; inset: 0; z-index: 200; background: #001A66; animation: s-fade .25s ease-out both; touch-action: none; }
.envol canvas { display: block; width: 100%; height: 100%; outline: none; cursor: pointer; }
.envol-close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #FFFFFF; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.envol-close:hover { background: rgba(255, 255, 255, .26); }
.search-home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--gutter-r) 12vh var(--gutter); }
.search-logo { display: flex; align-items: center; gap: 14px; font-size: clamp(2.25rem, 7vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; }
.search-logo svg { width: 1.1em; height: 1.1em; }
.search-logo span { color: var(--action); font-weight: 500; margin-left: .1em; }
.search-signin { width: 100%; text-align: center; justify-items: center; }
.search-signin p { max-width: 46ch; }
.search-hint { color: var(--muted); font-size: var(--fs-small); text-align: center; max-width: 60ch; }
.sbox-list li.sbox-cmd { gap: 12px; }
.sbox-list li.sbox-cmd .sbox-cmd-id { font: 600 var(--fs-small)/1 var(--font-data); color: var(--action); flex: none; }
.sbox-list li.sbox-cmd .sbox-cmd-label { color: var(--muted); font-size: var(--fs-small); }
.search-tabs { display: flex; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding-inline-end: var(--gutter-r); }
.search-tabs-in { display: flex; align-items: center; gap: 2px; flex: 0 1 auto; min-width: 0; padding: 0 0 0 calc(var(--gutter) + var(--s-indent)); overflow-x: auto; scrollbar-width: none; }
.search-tabs-in > a, .time-menu > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; font-size: var(--fs-small); font-weight: 500; white-space: nowrap; transition: color var(--t-fast), border-color var(--t-fast); }
.search-tabs-in > a:hover { color: var(--ink); }
.search-tabs-in > a[aria-current="page"] { color: var(--action); border-bottom-color: var(--action); }
.time-menu { margin-left: 12px; position: relative; flex: none; display: flex; align-items: center; }
.search-main { flex: 1; padding: 22px var(--gutter-r) 48px calc(var(--gutter) + var(--s-indent)); }
.pane[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .search-progress::before { animation-duration: 3s; }
}
.search-col, .search-side { min-width: 0; }
.search-side { display: grid; gap: 20px; align-content: start; position: sticky; top: 16px; }
.search-correction { margin-bottom: 18px; font-size: 1.0625rem; }
.instant-q { color: var(--muted); font: 500 1rem/1.4 var(--font-data); overflow-wrap: anywhere; }
.instant-a { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.instant-copy { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.instant-copy:hover { background: var(--surface-2); color: var(--ink); }
.instant-copy.is-done { color: var(--ok); }
.instant-w { padding: 18px 22px 20px; gap: 12px; }
.instant-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.instant-body { position: relative; display: grid; gap: 12px; justify-items: start; }
.instant-body > .instant-copy { top: -4px; right: -8px; }
.instant-note { margin: 0; color: var(--muted); font-size: var(--fs-small); overflow-wrap: anywhere; }
.instant-w .instant-a { font-variant-numeric: tabular-nums; }
.instant-swatch { display: grid; place-items: center; width: 100%; height: 96px; border-radius: 12px; font: 700 1.25rem/1 var(--font-data); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.instant-codes { display: grid; gap: 2px; width: 100%; margin: 0; }
.instant-codes div { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
.instant-codes dt { color: var(--muted); font: 600 .75rem/1 var(--font-data); }
.instant-codes dd { margin: 0; }
.instant-codes .instant-copy { position: static; }
.instant-qrcode { padding: 10px; border-radius: 12px; background: #FFFFFF; line-height: 0; }
.instant-qrcode svg { width: 180px; height: 180px; }
.wx { display: grid; gap: 14px; width: 100%; }
.wx-place { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.wx-place b { color: var(--ink); font-weight: 600; }
.wx-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wx-now .wx-icon { width: 56px; height: 56px; }
.wx-now .instant-a { font-size: clamp(2.5rem, 7vw, 3.25rem); line-height: 1; }
.wx-now-text { display: grid; gap: 2px; min-width: 0; }
.wx-now-text span { color: var(--muted); font-size: var(--fs-small); }
.wx-hours, .wx-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(56px, 1fr); gap: 4px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.wx-hours li, .wx-days li { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.wx-days li { background: var(--surface-2); }
.wx-hours span, .wx-days span { color: var(--muted); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.wx-hours .wx-icon, .wx-days .wx-icon { width: 28px; height: 28px; }
.wx-days li.is-today { box-shadow: inset 0 0 0 1.5px var(--action); }
.wx-days li.is-today span { color: var(--action); }
.wx-days i { color: var(--muted); font-style: normal; font-size: var(--fs-small); }
.wx-hours small, .wx-days small { color: #2F7FD8; font-size: .6875rem; font-weight: 600; }
.wx-hours small.is-dry, .wx-days small.is-dry { visibility: hidden; }
.wx-icon { flex: none; overflow: visible; }
.wx-sun { fill: #F2B227; }
.wx-ray { stroke: #F2B227; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.wx-moon { fill: #9AA7C7; }
.wx-cloud { fill: #C5CEDC; stroke: #8E9BB0; stroke-width: 1.2; }
.wx-drop { stroke: #2F7FD8; stroke-width: 2.2; stroke-linecap: round; }
.wx-flake { fill: #7FB2E8; }
.wx-bolt { fill: #F2B227; }
.wx-fog { stroke: #9AA7B8; stroke-width: 2.4; stroke-linecap: round; }
.wx-wait { display: grid; grid-template-columns: 56px 1fr; gap: 10px 14px; width: 100%; }
.wx-wait span { height: 14px; border-radius: 7px; background: var(--surface-2); animation: s-fade 1s ease-in-out infinite alternate; }
.wx-wait span:first-child { grid-row: span 2; height: 56px; border-radius: 50%; }
.wx-wait span:last-child { width: 60%; }
.wx-source { font-size: .75rem; }
@media (prefers-color-scheme: dark) {
  .wx-cloud { fill: #56627A; stroke: #8391AA; }
}
.place-wait { width: 100%; aspect-ratio: 16 / 10; background:
    linear-gradient(160deg, #c5d4e8 0%, #e8eef5 42%, #b7c9a8 100%);
    animation: s-fade 1s ease-in-out infinite alternate; }
.place-wait span { display: block; width: 100%; height: 100%; }
.place-map {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 10;
    margin-top: 12px; overflow: hidden; color: inherit;
    background: linear-gradient(160deg, #9eb6d4 0%, #d7e2ef 45%, #a8bf92 100%);
    isolation: isolate;
}
.place-frame {
    position: absolute; inset: 0 0 -40px; width: 100%; height: calc(100% + 40px);
    border: 0; opacity: 0; transition: opacity .4s ease; background: #d7e2ef;
}
.place-map.is-ready .place-frame { opacity: 1; }
.place-map::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, rgba(15, 36, 64, .06) 0%, transparent 22%, transparent 70%, rgba(15, 36, 64, .22) 100%);
}
.place-pin {
    position: absolute; left: 50%; top: 50%; z-index: 2; width: 28px; height: 36px;
    margin: -36px 0 0 -14px; filter: drop-shadow(0 4px 8px rgba(15, 36, 64, .35));
    opacity: 0; transform: translateY(-18px); pointer-events: none;
}
.place-map.is-ready .place-pin {
    opacity: 1; transform: none;
    animation: place-drop .55s cubic-bezier(.2, .9, .3, 1.15) both;
}
.place-pin svg { display: block; width: 100%; height: 100%; fill: #002FA7; stroke: #FFFFFF; stroke-width: 1.2; }
.place-map-cta {
    position: absolute; left: 14px; bottom: 14px; z-index: 2; text-decoration: none;
    padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92);
    color: #0F2440; font-size: .75rem; font-weight: 600; letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(15, 36, 64, .18); opacity: 0; transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease, background .15s ease;
}
.place-map.is-ready .place-map-cta { opacity: 1; transform: none; transition-delay: .2s; }
.place-map-cta:hover, .place-map-cta:focus-visible { background: #FFFFFF; }
.place-meta { display: grid; gap: 10px; justify-items: start; padding: 16px 22px 4px; width: 100%; box-sizing: border-box; }
.place-name { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.place-name b { color: var(--ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.place-coords { margin: 0; color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.place-actions .instant-copy { position: static; width: auto; height: auto; padding: .4rem .85rem; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .place-frame, .place-pin, .place-map-cta { transition: none; animation: none; opacity: 1; transform: none; }
}
@media (prefers-color-scheme: dark) {
  .place-wait, .place-map { background: linear-gradient(160deg, #1a2a44 0%, #243552 45%, #2a3d2e 100%); }
  .place-frame { background: #243552; }
  .place-map::after { background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, transparent 30%, transparent 65%, rgba(0, 0, 0, .35) 100%); }
  .place-map-cta { background: rgba(20, 32, 52, .92); color: #E8EEF7; }
  .place-map-cta:hover, .place-map-cta:focus-visible { background: #1a2740; }
  .place-pin svg { fill: #5B8CFF; }
}
.speed { display: grid; gap: 14px; justify-items: start; width: 100%; }
.speed-gauge { display: flex; align-items: baseline; gap: 8px; }
.speed-gauge .instant-a { font-size: clamp(2.5rem, 7vw, 3.5rem); line-height: 1; }
.speed-gauge span { color: var(--muted); font-weight: 600; }
.speed.is-running .speed-gauge .instant-a { color: var(--action); }
.speed-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 0; }
.speed-stats div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); transition: box-shadow var(--t-fast); }
.speed-stats dt { color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.speed-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.speed[data-phase="down"] .speed-stats div:nth-child(2), .speed[data-phase="up"] .speed-stats div:nth-child(3) { box-shadow: inset 0 0 0 2px var(--action); }
.timer-ring { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.timer-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.timer-ring .timer-arc { stroke: var(--action); stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.timer-ring .instant-a { font-size: 2.25rem; }
.stopwatch { display: grid; gap: 12px; }
.laps { display: grid; gap: 2px; max-height: 180px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.laps li { display: flex; justify-content: space-between; gap: 24px; min-width: 220px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.pwgen { display: grid; gap: 12px; width: 100%; }
.pwgen-out { position: relative; padding: 12px 52px 12px 14px; border-radius: 10px; background: var(--surface-2); }
.pwgen-out .instant-a { font-size: 1.125rem; line-height: 1.5; letter-spacing: .04em; overflow-wrap: anywhere; word-break: break-all; }
.pwgen-out .instant-copy { top: 50%; right: 6px; transform: translateY(-50%); }
.pwgen-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: var(--fs-small); }
.pwgen-opts label { display: inline-flex; align-items: center; gap: 8px; }
.pwgen-opts input[type="range"] { accent-color: var(--action); }
@media (max-width: 640px) {
  .speed-stats { grid-template-columns: minmax(0, 1fr); }
}
.search-correction a { font-weight: 600; font-style: italic; }
.search-answer { position: relative; }
.search-answer.is-long .instant-a { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; }
.search-answer-src { color: var(--muted); font-size: var(--fs-small); text-decoration: none; }
.search-answer-src:hover { color: var(--action); }
.result-link { display: block; text-decoration: none; }
.result-site { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 4px; }
.site-txt { display: grid; min-width: 0; line-height: 1.3; }
.site-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: var(--fs-small); font-weight: 600; }
.fav { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  background: var(--fav-bg, var(--surface-2)); color: var(--fav-ink, var(--ink)); font: 700 .8125rem/1 var(--font-ui); }
@media (prefers-color-scheme: dark) {
  .fav { border-color: transparent; }
}
.result-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.result-link:focus-visible { outline: 2px solid var(--action); outline-offset: 6px; border-radius: 6px; }
.result-link:visited h3 { color: color-mix(in srgb, var(--action) 55%, #8B2FC9); }
.result-date { color: var(--muted); }
.result-thumb { position: relative; display: block; }
.result-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-ctl); background: var(--surface-2); }
.result-thumb i { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .75); color: #FFFFFF; font: 500 .75rem/1.3 var(--font-data); font-style: normal; }
.search-empty { padding: 24px 0; color: var(--muted); }
.image-grid { --row: 180px; display: flex; flex-wrap: wrap; gap: 16px 10px; }
.image-grid::after { content: ""; flex: 999 1 0; }
.image-grid > a { flex: var(--r) 1 calc(var(--r) * var(--row)); max-width: calc(var(--r) * var(--row) * 1.7); display: grid; gap: 6px; min-width: 0; color: var(--muted); text-decoration: none; font-size: .8125rem; border-radius: var(--r-ctl); }
.image-grid img { display: block; width: 100%; height: var(--row); object-fit: cover; border-radius: var(--r-ctl); background: var(--surface-2); transition: opacity var(--t-fast); }
.image-grid > a > span { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.image-grid > a > span .fav { width: 18px; height: 18px; font-size: .625rem; }
.image-grid > a:hover > span { color: var(--ink); }
.image-grid > a:hover img { opacity: .88; }
.image-grid > a:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.image-grid > a.is-current img { outline: 3px solid var(--action); outline-offset: 2px; }
.img-viewer { position: sticky; top: 16px; align-self: start; max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.img-viewer:focus { outline: none; }
.iv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; }
.iv-site { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; color: var(--ink); text-decoration: none; font-size: var(--fs-small); }
.iv-site b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.iv-site:hover b { text-decoration: underline; }
.iv-x, .iv-nav { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.iv-x:hover { background: var(--surface-2); }
.iv-stage { position: relative; display: grid; place-items: center; height: min(56dvh, 520px); background: var(--surface-2); overflow: hidden; }
.iv-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.iv-img.is-thumb { width: 100%; height: 100%; filter: blur(6px); transform: scale(1.02); }
.iv-img.is-full { animation: s-fade .2s ease-out both; }
.iv-nav { position: absolute; top: 50%; translate: 0 -50%; background: rgba(15, 36, 64, .62); color: #FFFFFF; }
.iv-nav:hover { background: rgba(15, 36, 64, .85); }
.iv-nav[hidden] { display: none; }
.iv-prev { left: 10px; }
.iv-next { right: 10px; }
.iv-info { display: grid; gap: 10px; padding: 16px 18px 18px; }
.iv-title { margin: 0; font-size: 1.125rem; line-height: 1.35; overflow-wrap: anywhere; }
.iv-title a { color: var(--ink); text-decoration: none; }
.iv-title a:hover { text-decoration: underline; }
.iv-text { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; overflow-wrap: anywhere; }
.iv-meta { margin: 0; color: var(--muted); font: 500 .8125rem/1.4 var(--font-data); }
.iv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.iv-copy.is-done { border-color: var(--ok); color: var(--ok); }
.iv-rights { margin: 2px 0 0; color: var(--muted); font-size: .75rem; }
@media (prefers-reduced-motion: reduce) {
  .iv-img.is-full { animation: none; }
}
@media (max-width: 899px) {
  .img-viewer { position: fixed; inset: 0; z-index: 200; top: 0; max-height: none; height: 100dvh; border: 0; border-radius: 0;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .iv-stage { height: min(60dvh, 560px); }
}
.search-related { margin-top: 36px; }
.search-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.search-related a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; overflow: hidden; }
.search-related a:hover { background: var(--action-tint); }
.search-pages { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.sk { display: block; height: .95em; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 35%, var(--surface)) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: sk-shine 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}
.sk-results { display: grid; gap: 30px; }
.sk-result { display: grid; gap: 9px; }
.sk-site { display: flex; align-items: center; gap: 10px; }
.sk-fav { width: 28px; height: 28px; flex: none; border-radius: 50%; }
.sk-site .sk-crumb { flex: none; }
.sk-crumb { width: 32%; height: .75rem; }
.sk-title { width: 64%; height: 1.3rem; }
.sk-text { width: 100%; }
.sk-short { width: 68%; }
.sk-cloud { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sk-cloud li { display: flex; align-items: center; gap: 12px; padding: 8px 6px; }
.sk-cloud-ico { width: 36px; height: 36px; flex: none; border-radius: 8px; }
.sk-cloud-text { flex: 1; min-width: 0; display: grid; gap: 6px; }
.sk-cloud-text .sk-title { width: 78%; height: .95rem; }
.sk-cloud-text .sk-crumb { width: 42%; }
.ai-box { position: relative; margin-bottom: 30px; padding: 18px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ai-box::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--action), var(--safran), var(--mark-2), var(--action)); background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; transition: opacity .4s; }
.ai-box.is-done::before { opacity: .35; }
.search-tabs-in > a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--safran); }
.fav { border: 0; border-radius: 8px; }
.ai-box { background: linear-gradient(100deg, color-mix(in srgb, var(--action) 8%, var(--surface)) 0%, var(--surface) 62%);
  box-shadow: 0 1px 2px rgba(15, 36, 64, .06), 0 10px 28px -14px rgba(15, 36, 64, .24); }
.ai-box::after { content: ""; position: absolute; left: 20px; top: -1px; width: 180px; height: 3px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--action), transparent); pointer-events: none; }
.ai-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1rem; font-weight: 600; }
.ai-body { display: grid; gap: 10px; font-size: 1rem; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.ai-body p, .ai-body li { margin: 0; }
.ai-body h3 { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 600; }
.ai-body ul { display: grid; gap: 6px; margin: 0; padding-left: 1.3rem; }
.ai-body code { font-family: var(--font-data); font-size: .9em; }
.ai-box .ai-body { max-height: 16rem; overflow: hidden; }
.ai-box.is-done:not(.is-open) .ai-body { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.ai-box.is-open .ai-body { max-height: none; }
.ai-cite { display: inline-flex; align-items: center; gap: 3px; max-width: 15em; margin-left: 2px; padding: 1px 9px; vertical-align: .08em; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); font-size: .8125rem; font-weight: 500; line-height: 1.55; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-cite:hover { background: var(--action-tint); color: var(--action); }
.ai-more { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-top: 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.ai-more:hover { background: var(--surface-2); }
.ai-note { margin: 12px 0 0; color: var(--muted); font-size: var(--fs-small); }
.ai-error { color: var(--danger); }
.search-main[data-tab="ai"] { padding: 0 var(--gutter-r) 0 0; display: flex; }
.pane-ai { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; min-width: 0; }
.ai-rail { position: sticky; top: 0; display: flex; flex-direction: column; width: 64px; height: calc(100dvh - 0px); max-height: 100dvh; padding: 12px 10px; border-right: 1px solid var(--line);
  background: var(--surface); transition: width .22s cubic-bezier(.2,.7,.2,1); overflow: hidden; }
.ai-rail.is-open { width: 288px; }
.ai-rail-head { display: flex; flex-direction: column; gap: 6px; }
.ai-rail.is-open .ai-rail-head { flex-direction: row; align-items: center; }
.ai-rail-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; height: 44px; padding: 0 11px; flex: none; border: 0; border-radius: 22px;
  background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: var(--fs-small); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.ai-rail-btn:hover { background: var(--surface-2); color: var(--ink); }
.ai-rail-new { background: var(--action-tint); color: var(--action); }
.ai-rail-new:hover { background: var(--action-tint); color: var(--action-hover); }
.ai-rail-new span { display: none; }
.ai-rail.is-open .ai-rail-new { flex: 1; justify-content: flex-start; padding: 0 16px; }
.ai-rail.is-open .ai-rail-new span { display: inline; }
.ai-rail-body { display: none; flex: 1; min-height: 0; flex-direction: column; gap: 6px; margin-top: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ai-rail.is-open .ai-rail-body { display: flex; animation: s-fade .2s ease-out both; }
.ai-rail-top { display: none; }
.ai-rail-list h3 { display: flex; align-items: center; gap: 6px; margin: 14px 10px 4px; font: 700 .75rem/1.3 var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ai-rail-list h3:first-child { margin-top: 0; }
.ai-rail-list ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.ai-conv { position: relative; display: flex; align-items: center; border-radius: 22px; }
.ai-conv a { flex: 1; min-width: 0; padding: 10px 12px; border-radius: inherit; color: var(--ink); font-size: var(--fs-small); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-conv:hover, .ai-conv:focus-within { background: var(--surface-2); }
.ai-conv.is-current { background: var(--action-tint); }
.ai-conv.is-current a { color: var(--action); font-weight: 600; }
.ai-conv-act { display: none; gap: 2px; padding-right: 4px; }
.ai-conv:hover .ai-conv-act, .ai-conv:focus-within .ai-conv-act { display: flex; }
.ai-conv-act button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.ai-conv-act button:hover { background: var(--surface); color: var(--ink); }
.ai-conv-act button[aria-pressed="true"] { color: var(--action); }
.ai-rail-empty { margin: 4px 10px; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.ai-rail-clear { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: auto 4px 4px; padding: 8px 10px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.ai-rail-clear[hidden] { display: none; }
.ai-rail-clear:hover { color: var(--danger); background: var(--surface-2); }
.ai-chat { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 800px; min-height: calc(100dvh - 140px); margin: 0 auto; padding: 22px 0 0 clamp(16px, 4vw, 48px); }
.ai-intro { display: grid; justify-items: center; gap: 10px; padding-top: 9vh; text-align: center; animation: s-rise .35s ease-out both; }
.ai-intro[hidden] { display: none; }
.ai-orb { width: 112px; height: 112px; display: grid; place-items: center; }
.ai-intro h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
.ai-intro p { max-width: 54ch; }
.ai-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ai-examples button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: var(--fs-small); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.ai-examples button:hover { border-color: var(--action); color: var(--action); transform: translateY(-1px); }
.ai-thread { display: grid; gap: 28px; }
.ai-thread:empty { display: none; }
.ai-msg { animation: s-rise .28s cubic-bezier(.2,.7,.2,1) both; }
.ai-user { justify-self: end; max-width: 85%; padding: 10px 16px; border-radius: 20px 20px 4px 20px; background: var(--action-tint); white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-user p { margin: 0; }
.ai-bot { display: grid; gap: 14px; }
.ai-status { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: var(--fs-small); font-weight: 500; }
.ai-status span:last-child { background: linear-gradient(90deg, var(--muted) 30%, var(--ink) 50%, var(--muted) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sk-shine 1.6s linear infinite; }
.ai-src-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ai-src-row[hidden] { display: none; }
.ai-src { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; animation: s-rise .3s ease-out both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color var(--t-fast); }
.ai-src:hover { border-color: var(--action); }
.ai-src .fav { width: 24px; height: 24px; font-size: .75rem; }
.ai-src > span:last-child { display: grid; min-width: 0; line-height: 1.3; }
.ai-src b, .ai-src small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-src b { font-size: .8125rem; font-weight: 600; }
.ai-src small { color: var(--muted); font-size: .75rem; }
.ai-src-more { justify-content: center; color: var(--muted); font: 600 .8125rem/1 var(--font-ui); cursor: pointer; }
.ai-src-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .ai-src-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ai-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; }
.ai-act { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.ai-act:hover { background: var(--surface-2); color: var(--ink); }
.ai-act.is-done { color: var(--ok); }
a.ai-act { text-decoration: none; }
.ai-sources { flex: 1 1 100%; }
.ai-sources summary { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 18px; color: var(--muted); font-size: var(--fs-small); font-weight: 600; cursor: pointer; list-style: none; }
.ai-sources summary::-webkit-details-marker { display: none; }
.ai-sources summary:hover { background: var(--surface-2); color: var(--ink); }
.ai-actions { position: relative; }
.ai-actions .ai-sources { flex: 0 1 auto; }
.ai-actions .ai-sources[open] { flex-basis: 100%; }
.ai-sources ol { display: grid; gap: 2px; margin: 4px 0 0; padding: 0; list-style: none; }
.ai-sources a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-ctl); color: var(--ink); font-size: var(--fs-small); text-decoration: none; }
.ai-sources a > span:last-child { display: grid; min-width: 0; }
.ai-sources a .fav { width: 24px; height: 24px; font-size: .75rem; }
.ai-sources a:hover { background: var(--surface-2); }
.ai-composer { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; align-items: flex-end; gap: 10px; margin-top: auto; padding: 6px 6px 6px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 14px 36px -18px rgba(15, 36, 64, .45); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.ai-composer:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-tint), 0 14px 36px -18px rgba(15, 36, 64, .45); }
.ai-composer textarea { flex: 1; min-width: 0; max-height: 200px; padding: 8px 0; border: 0; outline: none; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 1.0625rem; line-height: 1.5; }
.ai-composer { flex-wrap: wrap; padding-left: 8px; }
.ai-attach { flex: 0 0 36px; width: 36px; height: 36px; margin-bottom: 4px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast); }
.ai-attach:hover, .ai-attach:focus-visible { background: var(--surface-2); color: var(--ink); }
.ai-attach .icon { width: 20px; height: 20px; }
.ai-mic { flex: 0 0 auto; min-width: 36px; height: 36px; margin-bottom: 4px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 18px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast); }
.ai-mic[hidden] { display: none; }
.ai-mic:hover, .ai-mic:focus-visible { background: var(--surface-2); color: var(--ink); }
.ai-mic .icon { width: 20px; height: 20px; }
.ai-mic.is-rec { background: var(--danger, #c62828); color: #fff; }
.ai-mic.is-rec .icon, .ai-mic.is-busy .icon { animation: ai-mic-pulse 1.2s ease-in-out infinite; }
.ai-mic.is-busy { cursor: progress; }
@keyframes ai-mic-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ai-mic .icon { animation: none !important; } }
.ai-files { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 4px 2px; }
.ai-files[hidden] { display: none; }
.ai-file { position: relative; display: inline-flex; align-items: center; gap: 7px; max-width: 220px; height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); color: var(--ink); font-size: var(--fs-small); }
.ai-file > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-file-ext { flex: 0 0 auto; min-width: 30px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 5px; background: var(--muted); color: var(--surface);
  font: 700 .625rem/1 var(--font-data); letter-spacing: .03em; }
.ai-file-ext[data-ext="pdf"] { background: var(--danger); color: var(--surface); }
.ai-file-ext[data-ext="docx"] { background: var(--action); color: var(--on-action); }
.ai-file-ext[data-ext="pptx"] { background: var(--safran); color: var(--on-safran); }
.ai-file .icon { flex: 0 0 16px; width: 16px; height: 16px; color: var(--muted); }
.ai-file.is-img { width: 64px; height: 64px; padding: 0; overflow: visible; }
.ai-file.is-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ai-file.is-loading { animation: ai-file-pulse 1.3s ease-in-out infinite; }
@keyframes ai-file-pulse { 50% { opacity: .5; } }
.ai-file-x { position: absolute; right: 6px; top: 50%; width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); cursor: pointer; transform: translateY(-50%); }
.ai-file-x .icon { width: 12px; height: 12px; }
.ai-file-x:hover, .ai-file-x:focus-visible { background: var(--line); color: var(--ink); }
.ai-file.is-img .ai-file-x { top: -6px; right: -6px; background: var(--ink); color: var(--bg); transform: none; }
.ai-file.is-sent { padding-right: 10px; background: var(--surface); }
button.ai-file.is-img { cursor: zoom-in; font: inherit; }
.ai-file.is-img.is-sent { width: 120px; height: 120px; border-color: transparent; background: none; }
.ai-file.is-img.is-sent:hover img, .ai-file.is-img.is-sent:focus-visible img { outline: 2px solid var(--action); outline-offset: 2px; }
.ai-viewer { max-width: min(92vw, 1400px); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: transparent; overflow: visible; }
.ai-viewer::backdrop { background: rgba(5, 12, 24, .82); }
.ai-viewer img { display: block; max-width: min(92vw, 1400px); max-height: 92vh; border-radius: 16px; cursor: zoom-out; }
.ai-viewer-x { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.ai-viewer-x .icon { width: 16px; height: 16px; }
.ai-user { position: relative; }
.ai-edit { position: absolute; left: -40px; bottom: 4px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity var(--t-fast), background var(--t-fast), color var(--t-fast); }
.ai-edit .icon { width: 16px; height: 16px; }
.ai-user:hover .ai-edit, .ai-edit:focus-visible { opacity: 1; }
.ai-edit:hover, .ai-edit:focus-visible { background: var(--surface-2); color: var(--ink); }
@media (hover: none) { .ai-edit { opacity: 1; } }
.ai-user-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 2px 0 8px; white-space: normal; }
.ai-drop { position: fixed; inset: 12px; z-index: 80; display: grid; place-items: center; border: 2px dashed var(--action); border-radius: 22px;
  background: color-mix(in srgb, var(--action-tint) 88%, transparent); color: var(--action); font-weight: 700; pointer-events: none; }
.ai-drop[hidden] { display: none; }
.ai-drop span { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; }
.ai-drop .icon { width: 28px; height: 28px; }
@media (prefers-reduced-motion: reduce) { .ai-file.is-loading { animation: none; opacity: .6; } }
.ai-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; animation: s-rise .3s ease-out both; }
.ai-related p { flex-basis: 100%; margin: 0; color: var(--muted); font: 700 .75rem/1.3 var(--font-data); letter-spacing: .06em; text-transform: uppercase; }
.ai-related button { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-small); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast); }
.ai-related button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-related button:hover { border-color: var(--action); color: var(--action); }
.ai-retry { margin-top: 8px; justify-self: start; }
.ai-chat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding-bottom: 14px; text-align: center; }
.ai-chat-foot .ai-note { margin: 0; }
.ai-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-size: var(--fs-small); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); transform: translateX(-50%); animation: s-rise .2s ease-out both; }
.ai-toast[hidden] { display: none; }
.ai-toast button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 16px; background: transparent; color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; }
.ai-toast button:hover { background: rgba(255, 255, 255, .14); }
/* Keyboard shortcuts of the AI mode (Ctrl+/) */
.ai-keys { position: fixed; inset: 0; z-index: 100; width: min(520px, calc(100vw - 32px)); height: fit-content; max-height: calc(100vh - 48px); margin: auto;
  padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); }
.ai-keys:not([open]) { display: none; }
.ai-keys::backdrop { background: rgba(10, 25, 47, .45); }
.ai-keys h2 { margin: 0 0 14px; font-size: 1.15rem; }
.ai-keys dl { display: grid; gap: 8px; margin: 0; }
.ai-keys dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-keys dt { margin: 0; }
.ai-keys dd { flex: 0 0 auto; margin: 0; }
.ai-keys kbd { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); color: var(--muted); font: 600 var(--fs-small)/1.5 var(--font-ui); white-space: nowrap; }
.ai-keys form { display: flex; justify-content: flex-end; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
  .ai-msg, .ai-src, .ai-intro, .ai-toast, .ai-rail.is-open .ai-rail-body { animation: none; }
  .ai-status span:last-child { color: var(--muted); background: none; }
  .ai-rail { transition: none; }
}
@media (max-width: 899px) {
  .search-main[data-tab="ai"] { padding: 0 var(--gutter-r) 0 var(--gutter); }
  .pane-ai { grid-template-columns: minmax(0, 1fr); }
  .ai-rail, .ai-rail.is-open { position: sticky; top: 0; z-index: 30; width: auto; height: auto; max-height: none; padding: 8px 0; border: 0; background: var(--bg); overflow: visible; }
  .ai-rail-head, .ai-rail.is-open .ai-rail-head { flex-direction: row; justify-content: space-between; }
  .ai-rail.is-open .ai-rail-new { flex: none; padding: 0 11px; }
  .ai-rail.is-open .ai-rail-new span { display: none; }
  .ai-rail-body, .ai-rail.is-open .ai-rail-body { display: flex; position: fixed; top: 0; bottom: 0; left: 0; z-index: 2; width: min(86vw, 320px); margin: 0;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); background: var(--surface); box-shadow: 0 0 40px rgba(0, 0, 0, .25);
    transform: translateX(-105%); transition: transform .24s cubic-bezier(.2,.7,.2,1); visibility: hidden; animation: none; }
  .ai-rail.is-open .ai-rail-body { transform: none; visibility: visible; }
  .ai-rail.is-open { z-index: 60; }
  .ai-rail.is-open::after { content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(5, 12, 28, .45); animation: s-fade .2s ease-out both; }
  .ai-rail-top { display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px 10px; }
  .ai-conv-act { display: flex; }
  .ai-chat { padding: 4px 0 0; min-height: calc(100dvh - 190px); }
  .ai-intro { padding-top: 4vh; }
}
.cloud-results ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; }
.cloud-results li a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: var(--r-ctl); color: var(--ink); text-decoration: none; }
.cloud-results li a:hover, .cloud-results li a:focus-visible { background: var(--surface-2); }
.cloud-expand { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 40px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: var(--fs-small); cursor: pointer; }
.cloud-expand:hover { background: var(--surface-2); }
.cr-text { min-width: 0; }
.cr-text b, .cr-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-text b { font-weight: 500; }
.cr-text small { color: var(--muted); font-size: var(--fs-small); }
.cloud-more { display: inline-flex; align-items: center; gap: 6px; margin: 6px 6px 0; font-size: var(--fs-small); font-weight: 600; text-decoration: none; }
.search-side .infobox { padding: 20px; gap: 12px; }
.infobox img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-ctl); background: var(--surface-2); }
.infobox h2 { font-size: 1.5rem; }
.infobox p { color: var(--ink); font-size: .9375rem; }
.infobox dl { display: grid; gap: 6px; margin: 0; font-size: var(--fs-small); }
.infobox dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; }
.infobox dt { color: var(--muted); }
.infobox dd { margin: 0; }
.infobox-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-small); }
.search-prefs { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 36px var(--gutter-r) 48px var(--gutter); display: grid; gap: 18px; align-content: start; }
.search-prefs h1 { font-size: 1.875rem; font-weight: 800; }
.search-prefs h2 { font-size: 1.1875rem; }
.search-prefs fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 2px; }
.search-prefs legend, .pref-field > span { font-weight: 600; margin-bottom: 6px; }
.pref-field { display: grid; }
.search-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 14px var(--gutter-r) calc(14px + env(safe-area-inset-bottom, 0px)) var(--gutter); background: var(--surface-2); color: var(--muted); font-size: var(--fs-small); }
.search-foot p { display: flex; align-items: center; gap: 8px; }
.search-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.search-foot a { color: var(--muted); }
.search-screen { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; scroll-snap-align: start; }
.search-app:has(.search-more) { scroll-snap-type: y proximity; }
.search-app.is-scrolling-more { scroll-snap-type: none !important; }
.search-more-cue { position: absolute; left: 50%; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2;
  display: grid; justify-items: center; gap: 4px; margin: 0; padding: 8px 16px; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); font: 600 var(--fs-small)/1.2 var(--font-ui);
  backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line), 0 10px 28px -18px rgba(15, 36, 64, .4); cursor: pointer;
  transition: opacity .35s ease, transform .35s ease, color var(--t-fast), background var(--t-fast); }
.search-more-cue:hover { color: var(--ink); background: var(--surface); }
.search-more-cue.is-away { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(8px); }
.search-more-cue-chev { width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
  animation: more-cue-bob 1.6s ease-in-out infinite; }
.search-top-btn {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--line);
  border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink);
  box-shadow: 0 12px 28px -16px rgba(15, 36, 64, .55); backdrop-filter: blur(10px); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .28s ease, transform .28s ease, background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.search-top-btn:hover, .search-top-btn:focus-visible {
  background: var(--surface); border-color: color-mix(in srgb, var(--action) 35%, var(--line)); color: var(--action);
}
.search-top-btn-chev {
  width: 10px; height: 10px; margin-top: 3px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(-45deg);
}
html:has(.news-reader.is-open) .search-top-btn { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .search-top-btn { transition: none; }
}
.search-more { scroll-snap-align: start; padding: 44px var(--gutter-r) calc(56px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background:
    radial-gradient(120% 80% at 10% -10%, color-mix(in srgb, var(--action) 8%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, var(--bg)), var(--bg));
  border-top: 1px solid var(--line); }
.search-more-inner { display: grid; gap: 44px; width: min(1120px, 100%); margin: 0 auto; }
.more-block { display: grid; gap: 18px; min-width: 0; }
.more-head { display: flex; align-items: center; gap: 12px; }
.more-head h2 { flex: 1; margin: 0; font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.more-open { font-size: var(--fs-small); font-weight: 600; color: var(--action); text-decoration: none; }
.more-open:hover { text-decoration: underline; }
.more-bookmarks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 12px; margin: 0; padding: 4px 2px 10px; list-style: none;
  overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.more-bookmarks a { display: grid; justify-items: center; gap: 10px; min-height: 124px; padding: 18px 12px 14px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); text-decoration: none; text-align: center; scroll-snap-align: start;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), background var(--t-fast); }
.more-bookmarks a:hover, .more-bookmarks a:focus-visible { border-color: color-mix(in srgb, var(--action) 35%, var(--line));
  box-shadow: 0 18px 36px -24px rgba(15, 36, 64, .55); transform: translateY(-3px); }
.more-bm-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.more-bm-ico img { width: 28px; height: 28px; object-fit: contain; }
.more-bm-ico + .fav { display: none; }
.more-bookmarks .fav { width: 48px; height: 48px; border-radius: 14px; font-size: 1.05rem; font-weight: 750; }
.more-bookmarks b, .more-bookmarks small { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-bookmarks b { font-weight: 650; font-size: .8125rem; letter-spacing: -.01em; }
.more-bookmarks small { color: var(--muted); font-size: .6875rem; }
.more-news-stage { display: grid; gap: 28px; }
.more-day { display: grid; gap: 14px; min-width: 0; }
.more-day-title { margin: 0; padding: 0 2px; color: var(--muted); font-size: .8125rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; }
.more-news-hero, .more-news-card { display: grid; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  color: var(--ink); text-decoration: none; overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.more-news-hero:hover, .more-news-hero:focus-visible,
.more-news-card:hover, .more-news-card:focus-visible { border-color: color-mix(in srgb, var(--action) 32%, var(--line));
  box-shadow: 0 22px 40px -28px rgba(15, 36, 64, .55); transform: translateY(-2px); }
.more-news-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 280px; }
.more-news-hero .more-news-media { min-height: 280px; }
.more-news-card { grid-template-rows: auto 1fr; }
.more-news-media { position: relative; display: block; background:
  linear-gradient(145deg, color-mix(in srgb, var(--action) 14%, var(--surface-2)), var(--surface-2) 55%, color-mix(in srgb, #2F7D6D 12%, var(--surface-2)));
  overflow: hidden; }
.more-news-card .more-news-media { aspect-ratio: 16 / 10; }
.more-news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.more-news-hero:hover .more-news-media img, .more-news-card:hover .more-news-media img { transform: scale(1.04); }
.more-news-media-fallback { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  font-size: 1.25rem; font-weight: 750; box-shadow: 0 10px 24px -12px rgba(15, 36, 64, .45); }
.more-news-hero.has-media .more-news-media-fallback,
.more-news-card.has-media .more-news-media-fallback { display: none; }
.more-news-copy { display: grid; align-content: start; gap: 10px; padding: 22px 22px 20px; min-width: 0; }
.more-news-card .more-news-copy { padding: 14px 16px 16px; gap: 8px; }
.more-news-badge { justify-self: start; padding: 3px 9px; border-radius: 999px; background: var(--action); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.more-news-hero b, .more-news-card b { margin: 0; font-weight: 750; letter-spacing: -.02em; line-height: 1.25;
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.more-news-hero b { font-size: clamp(1.35rem, 2.4vw, 1.85rem); -webkit-line-clamp: 3; }
.more-news-card b { font-size: 1rem; -webkit-line-clamp: 3; }
.more-news-excerpt { color: var(--muted); font-size: .9375rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-news-card .more-news-excerpt { font-size: var(--fs-small); -webkit-line-clamp: 2; }
.more-news-meta { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--muted); font-size: .75rem; font-weight: 550; min-width: 0; }
.more-news-meta .more-src-ico, .more-news-meta .fav { width: 18px; height: 18px; flex: none; border-radius: 5px; font-size: .5625rem; font-weight: 700; }
.more-src-ico { display: grid; place-items: center; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.more-src-ico img { width: 14px; height: 14px; object-fit: contain; }
.more-src-ico + .fav { display: none; }
.more-news-hero.is-unread .more-news-copy, .more-news-card.is-unread .more-news-copy { box-shadow: inset 3px 0 0 var(--action); }
.more-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.more-news > li { min-width: 0; display: flex; }
.more-news > li > .more-news-item { position: relative; flex: 1; width: 100%; display: flex; min-width: 0; }
.more-news > li > .more-news-item > a { flex: 1; width: 100%; }
.more-news > li.is-feature { grid-column: 1 / -1; }
.more-starred { display: grid; gap: 14px; min-width: 0; }
.more-news-pins { grid-auto-flow: column; grid-auto-columns: minmax(220px, 280px); grid-template-columns: none;
  overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; padding-bottom: 6px; }
.more-news-pins > li { scroll-snap-align: start; }
.more-star {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center; border: 1px solid transparent; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted);
  box-shadow: 0 6px 18px -10px rgba(15, 36, 64, .55), inset 0 0 0 1px var(--line);
  cursor: pointer; transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.more-star:hover, .more-star:focus-visible { color: var(--action); background: var(--surface); border-color: color-mix(in srgb, var(--action) 28%, var(--line)); }
.more-star[aria-pressed="true"], .more-news-item.is-starred .more-star {
  color: #fff; background: var(--action); border-color: var(--action); box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--action) 80%, transparent);
}
.more-star:active { transform: scale(.94); }
.more-star[disabled] { opacity: .55; cursor: wait; }
.news-reader {
  position: fixed; inset: 0; z-index: 240; display: grid; pointer-events: none;
}
.news-reader[hidden] { display: none; }
.news-reader.is-open { pointer-events: auto; }
.nr-backdrop {
  position: absolute; inset: 0; background: rgba(10, 20, 36, .48);
  opacity: 0; transition: opacity .32s cubic-bezier(.2, .7, .2, 1);
}
.news-reader.is-open .nr-backdrop { opacity: 1; }
.nr-panel {
  /* grab + bar + scroll + foot */
  position: absolute; inset: auto 0 0; height: min(94dvh, 100%); max-height: min(94dvh, 100%);
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: var(--surface); color: var(--ink); overflow: hidden;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 48px -20px rgba(10, 20, 36, .55);
  transform: translateY(108%);
  transition: transform .38s cubic-bezier(.2, .7, .2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.news-reader.is-open .nr-panel { transform: none; }
.nr-grab {
  display: grid; place-items: center; padding: 10px 0 2px; cursor: grab; touch-action: none;
}
.nr-grab i {
  width: 40px; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 55%, transparent);
}
.nr-bar {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px;
  border-bottom: 1px solid var(--line);
}
.nr-source {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1;
  color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 600;
}
.nr-source .fav, .nr-source .more-src-ico { width: 22px; height: 22px; flex: none; border-radius: 6px; font-size: .625rem; }
.nr-source b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-x, .nr-bar .more-star {
  position: static; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: none;
}
.nr-x:hover, .nr-bar .more-star:hover { background: var(--surface-2); }
.nr-scroll {
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  touch-action: pan-y; padding: 18px 20px 28px; min-height: 0;
}
.nr-hero { margin: 0 0 18px; border-radius: 16px; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.nr-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nr-title { margin: 0 0 8px; font-size: clamp(1.35rem, 4.5vw, 1.85rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.25; overflow-wrap: anywhere; }
.nr-meta { margin: 0 0 18px; color: var(--muted); font-size: .8125rem; font-weight: 550; }
.nr-body { font-size: 1.0625rem; line-height: 1.65; overflow-wrap: anywhere; }
.nr-body > *:first-child { margin-top: 0; }
.nr-body > *:last-child { margin-bottom: 0; }
.nr-body p, .nr-body ul, .nr-body ol, .nr-body blockquote, .nr-body pre, .nr-body table { margin: 0 0 1em; }
.nr-body h1, .nr-body h2, .nr-body h3, .nr-body h4 { margin: 1.25em 0 .5em; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.nr-body h1 { font-size: 1.35em; }
.nr-body h2 { font-size: 1.2em; }
.nr-body h3 { font-size: 1.08em; }
.nr-body a { color: var(--action); }
.nr-body img { max-width: 100%; height: auto; border-radius: 12px; margin: .4em 0; }
.nr-body blockquote { padding: .2em 0 .2em 1em; border-left: 3px solid color-mix(in srgb, var(--action) 45%, var(--line)); color: var(--muted); }
.nr-body pre, .nr-body code { font-family: var(--font-data); font-size: .875em; }
.nr-body pre { padding: 12px 14px; overflow-x: auto; border-radius: 12px; background: var(--surface-2); }
.nr-body table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.nr-body th, .nr-body td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.nr-hint {
  margin: 22px 0 0; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--action) 8%, var(--surface-2));
  color: var(--muted); font-size: .875rem; line-height: 1.45;
}
.nr-hint[hidden], .nr-hero[hidden] { display: none; }
.nr-empty {
  display: grid; gap: 10px; justify-items: start; padding: 28px 8px 12px; color: var(--muted);
}
.nr-empty b { color: var(--ink); font-size: 1.05rem; }
.nr-foot {
  display: grid; gap: 8px; padding: 12px 16px 14px;
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
}
.nr-cta { width: 100%; min-height: 48px; }
.nr-loading { display: grid; gap: 12px; padding: 8px 0 20px; }
.nr-loading i {
  display: block; height: 12px; border-radius: 6px; background: var(--surface-2);
  animation: widget-pulse 1.2s ease-in-out infinite alternate;
}
.nr-loading i:nth-child(1) { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 16px; }
.nr-loading i:nth-child(2) { width: 88%; height: 22px; }
.nr-loading i:nth-child(3) { width: 42%; height: 10px; }
.nr-loading i:nth-child(4), .nr-loading i:nth-child(5), .nr-loading i:nth-child(6) { width: 100%; height: 10px; }
.nr-loading i:nth-child(6) { width: 72%; }
@media (min-width: 800px) {
  .nr-grab { display: none; }
  .nr-panel {
    /* grab is gone → 3 rows: bar + scroll + foot (not the 4-row mobile template) */
    inset: 0 0 0 auto; width: min(560px, 100%); max-height: none; height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 20px 0 0 20px;
    transform: translateX(104%);
    box-shadow: -24px 0 64px -28px rgba(10, 20, 36, .55);
    padding-bottom: 0;
  }
  .nr-bar { padding: 14px 16px; }
  .nr-scroll { padding: 24px 28px 36px; }
  .nr-foot { padding: 14px 20px 18px; align-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  .nr-backdrop, .nr-panel { transition: none; }
}
.more-news-sentinel { display: grid; place-items: center; min-height: 48px; color: var(--muted); font-size: var(--fs-small); }
.more-news-loading { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.more-news-empty { display: grid; justify-items: start; gap: 14px; padding: 22px 24px; border: 1px dashed var(--line); border-radius: 20px; background: var(--surface); }
.more-news-empty p { margin: 0; color: var(--muted); max-width: 36rem; line-height: 1.45; }
.search-more:not([aria-busy]) .more-block { animation: s-rise .5s cubic-bezier(.2,.7,.2,1) both; }
.search-more:not([aria-busy]) .more-news-block { animation-delay: 80ms; }
@media (max-width: 999px) {
  .more-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 799px) {
  .more-news-hero { grid-template-columns: 1fr; min-height: 0; }
  .more-news-hero .more-news-media { min-height: 0; aspect-ratio: 16 / 9; }
  .more-news-stage { gap: 24px; }
}
@media (max-width: 699px) {
  .search-more-cue-label { display: none; }
  .more-news-hero b { font-size: 1.25rem; }
  .more-news-card .more-news-excerpt { display: none; }
}
@media (max-width: 519px) {
  .more-news { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .search-app:has(.search-more) { scroll-snap-type: none; }
  .search-more-cue-chev, .search-more:not([aria-busy]) .more-block { animation: none; }
  .more-bookmarks a:hover, .more-news-hero:hover, .more-news-card:hover { transform: none; }
  .more-news-hero:hover .more-news-media img, .more-news-card:hover .more-news-media img { transform: none; }
}
@media (prefers-color-scheme: dark) {
  .more-bm-ico, .more-src-ico { background: color-mix(in srgb, #fff 6%, var(--surface-2)); }
  .more-news-media { background: linear-gradient(145deg, #1a2a52, #1c2e3a 55%, #1a332c); }
}
@media (max-width: 899px) {
  .search-side { position: static; order: -1; margin-bottom: 4px; }
  .search-side .infobox { padding: 16px; }
  .search-side .infobox img { max-height: 140px; }
  .search-side .infobox p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .search-side .infobox dl { display: none; }
}
@media (max-width: 640px) {
  .search-top { position: relative; z-index: 40; flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .search-mini-logo { width: auto; }
  .search-nav, .search-actions .search-mail-link { display: none; }
  .search-top .sbox { order: 3; flex-basis: 100%; max-width: none; }
  .search-tabs-in { flex: 1; padding-right: 0; }
  .time-menu { margin-left: 0; padding-inline-end: max(8px, env(safe-area-inset-right, 0px)); }
  .search-related ul { grid-template-columns: minmax(0, 1fr); }
  .image-grid { --row: 120px; gap: 12px 8px; }
  .search-foot { justify-content: center; text-align: center; }
}
.search-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.search-promo > div:first-child { display: grid; gap: 18px; justify-items: start; }
.search-promo h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.search-promo > div:first-child > p { color: var(--muted); font-size: 1.0625rem; max-width: 52ch; }
@media (max-width: 899px) {
  .search-promo { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Kept in style.css too, repeated here: they must come after the rules above (reduced motion, dark shadow) */
@media (prefers-reduced-motion: reduce) {
  .search-app:has(.search-home)::before { animation: none; }
  .search-greet { animation: none; }
  .search-logo .search-mark { animation: none; }
  .search-logo-word { animation: none; }
  .search-logo span { animation: none; }
  .search-home > .sbox-lg { animation: none; }
  .search-event { animation: none; }
  .ai-status span:last-child { animation: none; }
  .ai-related { animation: none; }
  .search-more-cue-chev { animation: none; }
  .more-bookmarks a:hover { transform: none; }
  .more-news-hero:hover { transform: none; }
  .more-news-card:hover { transform: none; }
  .search-more:not([aria-busy]) .more-block { animation: none; }
}
@media (prefers-color-scheme: dark) {
  .ai-box { box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .8); }
}
