#site-search-dialog {
    box-sizing: border-box;
    width: min(720px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 26px 30px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #fff9e9;
    border-radius: 8px;
    color: #282c2b;
    background: #f0f1ee var(--material-mineral);
    background-size: 640px 640px;
    background-blend-mode: soft-light;
    box-shadow: inset 0 1px 0 #fff, -4px -4px 22px #fff4ce70, 12px 20px 60px #1a1c1b66;
}
#site-search-dialog:not([open]), #site-search-dialog [hidden] { display: none !important; }
#site-search-dialog::backdrop { background: #222624a8; backdrop-filter: blur(3px); }
#note-search-page { min-width: 0; color: #282c2b; background: #e2e4e1 var(--material-mineral); background-size: 640px 640px; background-blend-mode: soft-light; }
.note-search-intro h1 { letter-spacing: 0; overflow-wrap: anywhere; }
.note-search-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
#site-search-dialog h2 { font-size: 25px; line-height: 1.3; margin: 6px 0 0; }
:is(#site-search-dialog, #note-search-page) .section-index { margin: 0; }
:is(#site-search-dialog, #note-search-page) .ns-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 9px 16px; margin: 0;
    border: 1px solid #b7bdb8; border-radius: 4px;
    color: #282c2b; background: linear-gradient(135deg, #fff, #e9ece8);
    box-shadow: inset 0 1px 0 #fff, -2px -2px 8px #fff4ce70, 3px 5px 8px #22262414;
    font: 600 13px/1.5 var(--font-ui); text-decoration: none; cursor: pointer;
    transform: none; filter: none; white-space: nowrap; text-transform: none;
}
:is(#site-search-dialog, #note-search-page) .ns-button:hover { background: #fff; border-color: #87918a; }
:is(#site-search-dialog, #note-search-page) .ns-primary { background: #e34c35; color: #fff; border-color: #bb3724; }
:is(#site-search-dialog, #note-search-page) .ns-primary:hover { background: #be3a27; }
:is(#site-search-dialog, #note-search-page) .ns-button:disabled { opacity: .6; cursor: wait; }
:is(#site-search-dialog, #note-search-page) .ns-button i { font-size: 20px; }
#site-search-dialog .ns-icon { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
:is(#site-search-dialog, #note-search-page) label { display: block; margin: 0; font: 500 12px/1.6 var(--font-ui); text-transform: none; color: #535c56; }
:is(#site-search-dialog, #note-search-page) :is(input, select) {
    box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 44px; min-height: 44px;
    border: 1px solid #b7bdb8; border-radius: 4px; background: #fff; color: #282c2b;
    padding: 10px 12px; margin: 6px 0 0; box-shadow: inset 0 1px 0 #fff;
    font: 14px/1.5 var(--font-ui);
}
:is(#site-search-dialog, #note-search-page) :is(input, select, button, a):focus-visible { outline: 2px solid #aa3020; outline-offset: 3px; }
.note-search-query-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.note-search-advanced-link { display: inline-block; font-size: 13px; margin-top: 12px; color: #a83222; text-decoration: underline; text-underline-offset: 3px; }
.note-search-status { font-size: 13px; line-height: 1.6; margin: 20px 0 0; min-height: 22px; color: #535c56; }
.note-search-status[data-state="error"], .note-search-error { color: #a32d20; }
:is(#site-search-dialog, #note-search-page) .note-search-results { list-style: none; padding: 0; margin: 0; }
.note-search-results li { padding: 18px 0; border-bottom: 1px solid #c5cac5; min-width: 0; }
#site-search-dialog .note-search-results li { padding: 12px 0; }
.note-search-meta { display: flex; gap: 5px 16px; flex-wrap: wrap; color: #59605c; font-size: 11px; line-height: 1.6; }
.note-search-meta i { font-size: 15px; vertical-align: middle; }
:is(#site-search-dialog, #note-search-page) .note-search-results h3 { margin: 6px 0; font-size: 16px; line-height: 1.5; }
:is(#site-search-dialog, #note-search-page) .note-search-results h3 a { color: #282c2b; text-decoration: none; }
:is(#site-search-dialog, #note-search-page) .note-search-results h3 a:hover { color: #aa3020; text-decoration: underline; text-underline-offset: 3px; }
:is(#site-search-dialog, #note-search-page) .note-search-results p { margin: 0; color: #515954; font-size: 13px; line-height: 1.7; }
:is(#site-search-dialog, #note-search-page) .note-search-match {
    padding: 0; margin: 0; color: inherit; background: transparent; font: inherit;
    text-decoration: underline; text-decoration-color: #e34c35;
    text-decoration-thickness: 2px; text-underline-offset: 3px;
}
:is(#site-search-dialog, #note-search-page) :is(h1, h2, h3, p, a, span) { overflow-wrap: anywhere; letter-spacing: 0; }
#site-search-dialog .note-search-results p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.note-search-all { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 600; color: #a83222; text-decoration: underline; text-underline-offset: 3px; }
.note-search-options { padding: 26px 36px; background: #f4f5f1b8; border-bottom: 1px solid #c2c7c1; }
.note-search-option-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.note-search-form-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 12px; color: #59605c; }
.note-search-form-footer a { color: #a83222; text-decoration: underline; }
.note-search-page-results { padding: 30px 36px; }
#note-search-page .note-search-page-results h2 { font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.note-search-empty, .note-search-error { font-size: 14px; margin: 16px 0; }
.note-search-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: 13px; }
@media (max-width: 1000px) { .note-search-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    #site-search-dialog { padding: 20px; width: calc(100% - 20px); max-height: calc(100dvh - 24px); }
    .note-search-options, .note-search-page-results { padding: 24px 20px; }
    .note-search-query-row { gap: 8px; }
    :is(#site-search-dialog, #note-search-page) .ns-button { padding: 9px 12px; }
    :is(#site-search-dialog, #note-search-page) :is(input, select) { font-size: 16px; }
    .note-search-option-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print { #site-search-dialog { display: none !important; } }
