/* Leonardo Find -- the one search box (Story 2321 build).
   Phone-first: big rows, real touch targets, no hover-only affordances.
   Pinned chrome -- .find-main is the ONLY scroller, so the icon band, the
   black header, the search box, the chips, and the status line never scroll
   off. Shell height is 100dvh (with a 100vh fallback first) because on a phone
   100vh is the URL-bar-expanded height. */

body { background: #F2F2F4; margin: 0; }

.find-shell {
    display: flex; flex-direction: column;
    height: 100vh; height: 100dvh;
    overflow: hidden;
}

#lwIconBand, .ct-header, .find-box, .find-chips, .find-status { flex: 0 0 auto; }
.find-main { flex: 1; overflow: auto; }

/* ---- header (shared .ct-header convention) ---- */
.ct-header {
    background: #3C3C3C; color: #fff;
    padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
}
.ct-header h1 { margin: 0; font-size: 14pt; font-weight: 600; flex: 1; }
.ct-header a, .ct-header button {
    background: transparent; color: #fff;
    border: 1px solid #6A6A6A; border-radius: 3px;
    padding: 4px 12px; cursor: pointer;
    font: inherit; text-decoration: none;
}
.ct-header button:hover { background: #5A5A5A; }

/* ---- the box ---- */
.find-box {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: #fff; border-bottom: 1px solid #DDDDE0;
}
.find-input {
    flex: 1 1 auto; width: 100%;
    padding: 12px 14px;
    font-size: 13pt;
    border: 1px solid #C4C4CC; border-radius: 6px;
    background: #FBFBFD;
}
.find-input:focus { outline: none; border-color: #3C3C3C; background: #fff; }
.find-clear {
    flex: 0 0 auto;
    padding: 10px 14px; font-size: 10pt;
    background: #fff; color: #3C3C3C;
    border: 1px solid #C4C4CC; border-radius: 6px; cursor: pointer;
}
.find-clear:hover { background: #F0F0F4; }

/* ---- type chips ---- */
.find-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 8px 16px;
    background: #fff; border-bottom: 1px solid #DDDDE0;
}
.find-chips:empty { display: none; }
.find-chip {
    padding: 6px 12px; font-size: 10pt;
    background: #F2F2F4; color: #3C3C3C;
    border: 1px solid #D6D6DC; border-radius: 999px; cursor: pointer;
}
.find-chip.on { background: #3C3C3C; color: #fff; border-color: #3C3C3C; }

/* ---- results ---- */
.find-main { padding: 8px 0 24px 0; }

.find-note, .find-empty {
    padding: 18px 16px;
    color: #5A5A5A; font-size: 11pt; line-height: 1.5;
}

.find-section-title {
    padding: 12px 16px 4px 16px;
    font-size: 9pt; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: #8A8A92;
}

.find-row {
    display: block; text-decoration: none; color: inherit;
    padding: 12px 16px;
    border-bottom: 1px solid #E6E6EA;
    background: #fff;
}
.find-row:active { background: #EFEFF3; }

.find-row-top { display: flex; align-items: baseline; gap: 8px; }
.find-badge {
    flex: 0 0 auto;
    font-size: 8.5pt; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff; background: #6A6A72;
    padding: 2px 7px; border-radius: 3px;
}
.find-title {
    flex: 1 1 auto;
    font-size: 12pt; font-weight: 600; color: #1A1A1A;
    overflow-wrap: anywhere;
}
.find-title mark { background: #FFEFA8; color: inherit; padding: 0 1px; }

.find-subtitle { margin-top: 2px; font-size: 10pt; color: #5A5A5A; }
.find-snippet {
    margin-top: 4px; font-size: 10pt; color: #4A4A52; line-height: 1.45;
    overflow-wrap: anywhere;
}
.find-snippet mark { background: #FFEFA8; color: inherit; padding: 0 1px; }
.find-why { margin-top: 4px; font-size: 9pt; color: #8A8A92; }

.find-row-verbs { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.find-verb {
    padding: 6px 10px; font-size: 9.5pt;
    background: #F6F6F9; color: #3C3C3C;
    border: 1px solid #D6D6DC; border-radius: 4px; cursor: pointer;
}
.find-verb:hover { background: #ECECF2; }

/* ---- status line ---- */
.find-status {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: #EDEDF1; border-top: 1px solid #DDDDE0;
    font-size: 9.5pt; color: #5A5A5A;
}
.find-status span { flex: 1 1 auto; }
.find-reindex {
    flex: 0 0 auto;
    padding: 6px 12px; font-size: 9.5pt;
    background: #fff; color: #3C3C3C;
    border: 1px solid #C4C4CC; border-radius: 4px; cursor: pointer;
}
.find-reindex:hover { background: #F5F5F8; }
