@property --home-quick-comet-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
@keyframes home-quick-comet {
    to { --home-quick-comet-angle: 360deg; }
}
.home-quick-filter {
    position: relative;
    scroll-margin-top: calc(env(safe-area-inset-top) + 12px);
    margin: 12px 12px 0;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .05);
}
.mobile-header .home-quick-filter { margin: 0; }
.home-quick-filter::before,
.home-quick-sticky::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 1;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--home-quick-comet-angle),
        transparent 0deg 310deg,
        rgba(56, 189, 248, .16) 323deg,
        rgba(14, 165, 233, .62) 339deg,
        #2563eb 352deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: home-quick-comet 4.5s linear infinite;
}
.home-quick-filter.is-filter-open::before,
.home-quick-sticky.is-filter-open::before {
    animation-play-state: paused;
    opacity: .18;
}
.home-quick-filter.is-compact::before { animation-play-state: paused; }
.home-quick-filter-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.home-quick-filter-title { flex: 0 0 auto; color: #0f172a; font-size: 15px; font-weight: 900; white-space: nowrap; }
.home-quick-filter-meta { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.home-quick-filter-count { color: #64748b; font-size: 11px; font-weight: 700; white-space: nowrap; }
.home-quick-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-quick-filter-choice--method { grid-column: 1 / -1; }
.home-quick-filter-choice {
    min-width: 0; min-height: 44px; padding: 0 10px;
    border: 1px solid #dbeafe; border-radius: 12px; background: #f8fbff;
    color: #334155; display: flex; align-items: center; justify-content: space-between;
    gap: 6px; font-size: 13px; font-weight: 700;
}
.home-quick-filter-choice strong { color: #1d4ed8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-quick-filter-choice i { color: #64748b; font-size: 10px; }
.home-quick-search { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 10px; }
.home-quick-search-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; color: #334155; font-size: 11px; font-weight: 800; white-space: nowrap; }
.home-quick-search-label i { color: #2563eb; font-size: 11px; }
.home-quick-search-field { flex: 1 1 auto; min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 5px; padding: 4px 5px 4px 10px; border: 1px solid #dbeafe; border-radius: 999px; background: #f8fbff; }
.home-quick-search-field:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(37,99,235,.10); }
.home-quick-search-field input { flex: 1 1 auto; min-width: 0; color: #0f172a; background: transparent; border: 0; outline: 0; font-size: 13px; font-weight: 700; }
.home-quick-search-field input::placeholder { color: #94a3b8; opacity: 1; }
.home-quick-search-field button { flex: 0 0 auto; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #2563eb; color: white; }
.home-quick-filter-reset { min-height: 36px; padding: 0 3px; color: #2563eb; font-size: 12px; font-weight: 800; white-space: nowrap; }
.home-quick-filter-reset.is-idle { opacity: .48; }
.home-quick-sticky {
    position: fixed; top: var(--home-quick-sticky-top, 0px); left: 82px; right: 10px; z-index: 39;
    min-height: 48px; padding: 2px 10px;
    border: 1px solid #dbeafe; border-radius: 0 0 12px 12px; background: rgba(255,255,255,.97);
    box-shadow: 0 5px 15px rgba(15,23,42,.08);
    display: flex; align-items: center; gap: 6px; overflow: hidden;
}
.home-quick-sticky::before { inset: 0; padding: 1px; opacity: .65; animation-duration: 5.5s; }
.home-quick-sticky[hidden], .home-quick-sheet[hidden] { display: none !important; }
.home-quick-sticky button { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; width: 100%; min-height: 44px; min-width: 0; text-align: left; }
.home-quick-sticky-label { flex: 0 0 auto; color: #1d4ed8; font-size: 13px; font-weight: 900; }
.home-quick-sticky-values { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569; font-size: 12px; }
.home-quick-sticky-count { flex: 0 0 auto; color: #64748b; font-size: 11px; font-weight: 600; white-space: nowrap; }
.home-quick-sheet { position: fixed; inset: 0; z-index: 80; display: flex; align-items: end; background: rgba(15,23,42,.38); }
.home-quick-sheet-panel { display: flex; flex-direction: column; width: 100%; max-height: min(78vh, 640px); max-height: min(78dvh, 640px); overflow: hidden; border-radius: 20px 20px 0 0; background: white; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); animation: home-quick-sheet-enter .18s ease-out both; }
@keyframes home-quick-sheet-enter { from { transform: translateY(12px); opacity: .85; } to { transform: translateY(0); opacity: 1; } }
.home-quick-sheet-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #0f172a; font-size: 16px; font-weight: 900; }
.home-quick-sheet-close { min-width: 44px; min-height: 44px; border-radius: 12px; color: #64748b; font-size: 20px; }
.home-quick-sheet-close:active { background: #f1f5f9; }
.home-quick-sheet-tabs { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 13px; background: #f1f5f9; }
.home-quick-sheet-tabs button { min-width: 0; min-height: 42px; border-radius: 10px; background: transparent; color: #475569; font-size: 12px; font-weight: 800; }
.home-quick-sheet-tabs button.is-active { background: #dbeafe; color: #1d4ed8; box-shadow: 0 1px 3px rgba(37,99,235,.10); }
.home-quick-sheet-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 1px 4px; }
.home-quick-sheet-options[data-quick-field="service_fee"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-quick-sheet-options[data-quick-field="activation_method"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-quick-sheet-options button { min-width: 0; min-height: 44px; border-radius: 11px; border: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: 13px; font-weight: 700; text-align: center; }
.home-quick-sheet-options button:active { background: #f8fafc; }
.home-quick-sheet-options button.is-active { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.home-quick-sheet-tabs button:focus-visible,
.home-quick-sheet-options button:focus-visible,
.home-quick-sheet-close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
body.home-quick-sheet-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .home-quick-filter::before, .home-quick-sticky::before { display: none; }
    .home-quick-sheet-panel { animation: none; }
}
