.hig-s {
    --hig-s-red: #c40000;
    --hig-s-text: #1a1a1a;
    --hig-s-muted: #8a8a8a;
    --hig-s-border: #ececec;
    color: var(--hig-s-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.hig-s *,
.hig-s *::before,
.hig-s *::after {
    box-sizing: border-box;
}

body.hig-s-open {
    overflow: hidden;
}

button.hig-s-fab {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fe0000 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(254, 0, 0, 0.28) !important;
    cursor: grab;
    touch-action: none;
    user-select: none;
    line-height: 0 !important;
    font-size: 0 !important;
    text-indent: 0 !important;
    overflow: visible !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

button.hig-s-fab:hover,
button.hig-s-fab:focus {
    background: #e00000 !important;
    color: #fff !important;
}

button.hig-s-fab.is-dragging {
    cursor: grabbing;
}

button.hig-s-fab:focus-visible {
    outline: 3px solid rgba(254, 0, 0, 0.35);
    outline-offset: 3px;
}

.hig-s-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 1.25rem 2rem;
}

.hig-s-modal[hidden] {
    display: none;
}

.hig-s-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.48);
}

.hig-s-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin-top: 12vh;
    max-height: calc(100vh - 16vh);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    padding: 1.1rem 1.15rem 0.85rem;
}

.hig-s-dialog-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.hig-s h2.hig-s-label {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--hig-s-text) !important;
}

button.hig-s-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f3f3f3 !important;
    background-image: none !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    cursor: pointer;
    line-height: 0 !important;
    font-size: 0 !important;
    text-indent: 0 !important;
    overflow: visible !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

button.hig-s-close:hover,
button.hig-s-close:focus,
button.hig-s-close:focus-visible {
    background: #fff0f0 !important;
    color: #1a1a1a !important;
}

.hig-s button.hig-s-fab svg,
.hig-s button.hig-s-close svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    position: static !important;
}

.hig-s button.hig-s-close svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
}

.hig-s button.hig-s-fab svg *,
.hig-s button.hig-s-close svg * {
    fill: none !important;
    stroke: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hig-s-search {
    margin: 0;
}

.hig-s-search input,
.hig-s input.hig-s-search-input {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--hig-s-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    font-family: inherit;
    color: var(--hig-s-text) !important;
    outline: none;
    background: #fff;
    height: auto !important;
    -webkit-appearance: none;
    appearance: none;
}

.hig-s-search input[type="search"]::-webkit-search-decoration,
.hig-s-search input[type="search"]::-webkit-search-cancel-button,
.hig-s-search input[type="search"]::-webkit-search-results-button,
.hig-s-search input[type="search"]::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

.hig-s-search input::placeholder {
    color: var(--hig-s-muted);
}

.hig-s-search input:focus {
    border-color: var(--hig-s-red);
    box-shadow: 0 0 0 3px rgba(196, 0, 0, 0.08);
}

.hig-s-results {
    margin-top: 0.65rem;
}

.hig-s-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hig-s-item[hidden] {
    display: none;
}

.hig-s a.hig-s-link {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0.45rem;
    text-decoration: none !important;
    color: var(--hig-s-text) !important;
    background: none !important;
    border-radius: 8px;
}

.hig-s a.hig-s-link:hover,
.hig-s a.hig-s-link:focus {
    background: #fff7f7 !important;
}

.hig-s-badge {
    flex-shrink: 0;
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #fff0f0;
    color: var(--hig-s-red);
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.3 !important;
}

.hig-s-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hig-s .hig-s-title {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--hig-s-text) !important;
}

.hig-s .hig-s-summary {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: #555 !important;
}

.hig-s-empty {
    display: none;
    margin: 0;
    padding: 0.85rem 0.45rem 0.4rem;
    color: var(--hig-s-muted);
    font-size: 14px;
}

.hig-s-empty.is-visible {
    display: block;
}

@media (max-width: 720px) {
    button.hig-s-fab {
        top: 0.85rem;
        right: 0.85rem;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }

    .hig-s-modal {
        padding: 0 0.85rem 1.25rem;
    }

    .hig-s-dialog {
        max-height: calc(100vh - 16vh);
        padding: 1rem 0.9rem 0.7rem;
    }
}
