/* Shared portal search uses the existing brand and surface tokens. The preview
   exposed cramped rows in the phone fixture: spacing belongs here, not views. */
.gs-field { position: relative; width: 100%; min-width: 0; font-family: var(--f-body); color: var(--ink); }
.gs-label { display: block; margin-bottom: 8px; font-size: var(--fs-label); font-weight: 600; }
.gs-input { display: block; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--hair-strong, var(--hair)); border-radius: var(--r-sm); background: var(--surface, var(--card)); color: var(--ink); font: inherit; font-size: var(--fs-field, 17px); }
.gs-input::placeholder { color: var(--steel); opacity: 1; }
.gs-preview { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: absolute; z-index: 60; inset: calc(100% + 8px) 0 auto; max-height: min(620px, var(--gs-available-height, 65dvh)); overflow: hidden; overscroll-behavior: contain; padding: 14px; background: var(--surface, var(--card)); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: var(--elev-raised, var(--shadow-pop)); }
.gs-field [hidden], .gs-field[hidden], .gs-results [hidden], .gs-results[hidden] { display: none !important; }
.gs-status { margin: 0; color: var(--steel); font-size: var(--fs-label, 15px); line-height: 1.45; overflow-wrap: anywhere; }
.gs-list { display: grid; grid-auto-rows: max-content; gap: 14px; min-height: 0; overflow: auto; overscroll-behavior: contain; margin-top: 14px; padding: 2px; }
.gs-group { display: grid; gap: 8px; }
.gs-group-label { margin: 0; color: var(--steel); font-size: var(--fs-badge, 14px); font-weight: 600; text-transform: capitalize; }
/* "More arriving…" while the full search fills in below the suggestions: a direct child of .gs-list, so the list's
   14px gap spaces it like a group. Same type as a group label; it pulses unless motion is reduced. */
.gs-arriving { margin: 0; color: var(--steel); font-size: var(--fs-badge, 14px); font-weight: 600; line-height: 1.45; animation: gs-arriving 1.4s ease-in-out infinite; }
@keyframes gs-arriving { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .gs-arriving { animation: none; } }
.gs-option, .gs-result { display: grid; gap: 6px; width: 100%; min-width: 0; min-height: 44px; padding: 12px 14px; text-align: left; border: 1px solid var(--hair-soft, var(--hair)); border-radius: var(--r-sm); background: var(--surface, var(--card)); color: var(--ink); font-family: var(--f-body); cursor: pointer; overflow-wrap: anywhere; }
.gs-option:hover, .gs-result:hover { background: var(--band, var(--paper)); border-color: var(--hair); }
.gs-option[aria-selected="true"] { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--pill-on-bg, var(--accent-tint)); }
.gs-result-title { display: block; font-size: var(--fs-body, 17px); font-weight: 650; line-height: 1.35; }
.gs-result-context, .gs-result-snippet { display: block; font-size: var(--fs-label, 15px); line-height: 1.4; color: var(--steel); }
.gs-result-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-result-status { justify-self: start; display: inline-block; max-width: 100%; padding: 3px 8px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--band, var(--paper)); font-size: var(--fs-badge, 14px); line-height: 1.35; }
.gs-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--hair); }
.gs-button, .gs-filter { min-height: 44px; padding: 10px 14px; border: 1px solid var(--hair-strong, var(--hair)); border-radius: var(--r-sm); background: var(--surface, var(--card)); color: var(--ink); font: inherit; font-size: var(--fs-label, 15px); line-height: 1.3; cursor: pointer; }
.gs-button:hover, .gs-filter:hover { background: var(--band, var(--paper)); }
.gs-button:disabled, .gs-filter:disabled, .gs-result:disabled { cursor: default; opacity: .6; }
.gs-input:focus-visible, .gs-button:focus-visible, .gs-filter:focus-visible, .gs-result:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gs-results { display: grid; gap: 20px; min-width: 0; padding: 20px; border: 1px solid var(--hair); border-radius: var(--r-surface, var(--r)); background: var(--surface, var(--card)); color: var(--ink); font-family: var(--f-body); }
.gs-results-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.gs-heading { margin: 0; font-family: var(--f-display); font-size: 28px; line-height: 1.2; letter-spacing: -.02em; }
.gs-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.gs-filter[aria-pressed="true"] { background: var(--pill-on-bg, var(--accent-tint)); border-color: var(--accent); color: var(--ink); }
.gs-notice { padding: 14px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--band, var(--paper)); color: var(--ink); font-size: var(--fs-label, 15px); line-height: 1.45; }
/* "Search inside words" row: same notice surface, text left and the action right; gap 10px matches .gs-actions and .gs-filters. */
.gs-inside { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.gs-inside-text { min-width: 0; overflow-wrap: anywhere; }
/* Full-results cards must retain their text height inside the scrolling list. */
.gs-results-list { display: grid; grid-auto-rows: max-content; align-content: start; gap: 14px; min-width: 0; max-height: 60dvh; overflow: auto; overscroll-behavior: contain; padding: 4px; scroll-padding: 4px; }
/* An empty list still took 4px of padding and a grid gap, leaving a 44px hole in the no-results state (found with the Search inside words row). */
.gs-results-list:empty { display: none; }
.gs-paging { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gs-page-label { font-size: var(--fs-label, 15px); color: var(--steel); }
@media (max-width: 600px) {
  .gs-preview { max-height: min(560px, var(--gs-available-height, 58dvh)); padding: 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .gs-results { padding: 14px; gap: 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .gs-results-list { max-height: 52dvh; }
  .gs-actions > .gs-button { flex: 1; }
}
@media (forced-colors: active) {
  .gs-option[aria-selected="true"], .gs-filter[aria-pressed="true"] { outline: 2px solid Highlight; }
}
/* Shell hosts keep the field mounted independently of page-local filtering. */
.gs-desktop-host { width: clamp(240px, 28vw, 560px); min-width: 0; }
.gs-desktop-host .gs-label, .gs-native-chrome .gs-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gs-native-chrome { position: fixed; z-index: 65; top: 0; left: 0; right: 0; padding: calc(var(--top-inset) + 10px) var(--gutter) 10px; background: var(--surface); border-bottom: 1px solid var(--hair); --f-body: var(--serif); --f-display: var(--serif); }
.gs-native-chrome[hidden] { display: none; }
body.gs-native-search #app { padding-top: calc(var(--top-inset) + 65px); }
body.gs-native-search #app .m-screen { padding-top: 14px; }
.gs-native-results { --f-body: var(--serif); --f-display: var(--serif); padding: 14px var(--gutter); }
@media(max-width: 760px) { .gs-desktop-host { width: 100%; } }
.gs-detail { color:var(--ink,#101820);background:var(--surface,#fff);border:1px solid var(--line,#d0d8df);border-radius:14px;padding:20px;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 40px);font-family:var(--f-body,system-ui,sans-serif);box-sizing:border-box; }
.gs-detail::backdrop { background:rgb(16 24 32 / .48); }
.gs-detail-head { display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:20px; }
.gs-detail-head h2 { font-size:22px;line-height:1.3;margin:0;overflow-wrap:anywhere; }
.gs-detail-fields { display:grid;gap:16px;margin:0; }
.gs-detail-pair { display:grid;gap:6px; }
.gs-detail-pair dt { font-size:12px;font-weight:600;text-transform:capitalize;color:var(--ink-2,#535e68); }
.gs-detail-pair dd { font-size:16px;line-height:1.5;margin:0;white-space:pre-wrap;overflow-wrap:anywhere; }
.gs-detail-actions { display:flex;flex-wrap:wrap;gap:10px;margin-top:20px; }
.gs-detail-content { display:grid;gap:16px; }
.gs-detail-choice { display:grid;gap:6px;font-size:15px; }
/* Native signing keeps the existing flow and page coordinates inside a native
   frame. Only this explicit flow opts into the desktop component vocabulary. */
.gs-native-signing { --card:var(--surface);--paper:var(--surface);--ink-2:var(--ink);--steel-lt:var(--steel);--r:12px;--r-sm:8px;--blue-lt:var(--blue-tint,#eaf1f8);--green-lt:var(--green-tint);--amber-lt:var(--amber-tint);--f-body:var(--serif,system-ui); }
.gs-native-signing .scrim { position:fixed;inset:0;background:rgb(16 24 32 / .48); }
.gs-native-signing .modal { position:fixed;inset:calc(env(safe-area-inset-top,0px) + 16px) 16px auto;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 32px);width:min(760px,calc(100vw - 32px));margin:auto;overflow:auto;border:1px solid var(--hair);border-radius:14px;background:var(--surface);color:var(--ink);font-family:var(--serif,system-ui);box-sizing:border-box; }
.gs-native-signing .modal__head { padding:20px;border-bottom:1px solid var(--hair); }
.gs-native-signing .modal__body { padding:20px; }
.gs-native-signing .modal :is(h2,h4,p) { margin:0; }
.gs-native-signing .modal h2 { font-size:24px;line-height:1.25; }
.gs-native-signing .modal :is(.row,.btnrow) { display:flex;align-items:center;flex-wrap:wrap;gap:10px; }
.gs-native-signing .modal .col { display:flex;flex-direction:column; }
.gs-native-signing .modal .grow { flex:1;min-width:0; }
.gs-native-signing .modal .gap-6 { gap:6px; }
.gs-native-signing .modal .gap-8 { gap:8px; }
.gs-native-signing .modal .gap-12 { gap:12px; }
.gs-native-signing .modal .gap-16 { gap:16px; }
.gs-native-signing .modal .field { display:grid;gap:8px;min-width:0; }
.gs-native-signing .modal .field > label { font-size:15px;font-weight:600; }
.gs-native-signing .modal :is(.input,.select,.textarea) { width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--hair);border-radius:8px;font:inherit;font-size:17px;line-height:1.4;background-color:var(--surface);color:var(--ink);box-sizing:border-box; }
.gs-native-signing .modal .btn { min-height:44px;padding:10px 14px;border:1px solid var(--hair);border-radius:8px;font:inherit;font-size:15px;font-weight:600;background:var(--surface);color:var(--ink); }
.gs-native-signing .modal .btn--primary { background:var(--accent);border-color:var(--accent);color:#fff; }
.gs-native-signing .modal .btn--icon { min-width:44px;padding:10px; }
.gs-native-signing .modal :is(.tiny,.small,.eyebrow) { font-size:13px;line-height:1.45; }
.gs-native-signing .modal :is(.muted,.muted-2,.eyebrow) { color:var(--steel); }
.gs-native-signing .modal .eyebrow { display:block;margin-bottom:8px; }
.gs-native-signing .modal .grid2 { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px; }
.gs-native-signing .modal .panel { padding:14px;border:1px solid var(--hair);border-radius:10px; }
.gs-native-signing .modal .steps { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.gs-native-signing .modal .steps__s + .steps__s::before { display:none; }
.gs-native-signing .modal .fieldbar__k { min-height:44px; }
.gs-native-signing .modal .filerow { display:flex;gap:10px;align-items:center; }

.gs-native-signing .modal .check { display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;line-height:1.45; }
.gs-native-signing .modal .check input { width:18px;height:18px;flex:none;margin:0;accent-color:var(--accent); }
/* Native Analytics keeps the actual report layout and its own scrolling table
   inside the native dialog; desktop CSS must not alter the shell around it. */
.gs-native-report-dialog { width:min(1100px,calc(100vw - 32px));max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 32px);margin-top:max(16px,env(safe-area-inset-top,0px));margin-bottom:max(16px,env(safe-area-inset-bottom,0px)); }
.gs-native-report-dialog > .gs-detail-head { flex-wrap:wrap;position:sticky;top:0;z-index:3;background:var(--surface,var(--card));padding-block:10px; }
.gs-native-report { display:block;min-width:0;font-family:var(--serif,system-ui);font-size:14px;line-height:1.55; }
.gs-native-report-controls { display:flex;flex-wrap:wrap;align-items:center;gap:10px; }

.gs-native-report-dialog > .gs-detail-head h2 { flex-shrink:0; }
/* Search entry acknowledges the click immediately. Ordinary mobile loaders keep
   their 120 ms anti-flash delay; only this destination skeleton skips it. */
.gs-destination-pending .m-sk-wrap { opacity: 1; animation: none; }

/* Search account recovery has two actions; wrapping retains their shared gap. */
.gs-destination-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
