@import url(../fonts/fonts.css);

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    src: url(../icon/syl7-zNym6YjUruM-QrEh7-nyTnjDwKNJ_190FjpZIvLgyidOK7BDB_Qb9vUdV6_gjDK-P3JuF_Zs-obHph2-jOcOzKPqw.woff2) format('woff2');
}

:root {
    --flear-accent: #2196f3;
    --flear-bg: #ffffff;
    --flear-fg: #000000;
    --flear-font: 'Noto Sans SC', 'Segoe UI', sans-serif;
    --flear-radius: 14px;
    --flear-bg-transparent: color-mix(in srgb, var(--flear-bg) 80%, transparent);
    --flear-muted: color-mix(in srgb, var(--flear-fg) 60%, transparent);
    --flear-border: color-mix(in srgb, rgb(0, 0, 0) 10%, transparent);
    --flear-surface: color-mix(in srgb, rgb(0, 0, 0) 5%, transparent);
    --flear-accent-contrast: #ffffff;
    --flear-text: var(--flear-fg);
    --flear-progress: 0;
    --flear-progress-pct: 0%;
    --flear-page-padding-top: 10px;
    --flear-page-padding-right: 10px;
    --flear-page-padding-bottom: 10px;
    --flear-page-padding-left: 10px;
    color-scheme: light;
}

.dark {
    --flear-bg: #000000;
    --flear-fg: #f3f3f3;
    --flear-muted: color-mix(in srgb, var(--flear-fg) 60%, transparent);
    --flear-border: color-mix(in srgb, transparent, rgb(255, 255, 255) 20%);
    --flear-surface: color-mix(in srgb, transparent, rgb(255, 255, 255) 10%);
    --flear-accent-contrast: #ffffff;
    color-scheme: light;
}

.flear-has-bg-image * {
    text-shadow: 0 2px 2px color-mix(in srgb, var(--flear-bg) 30%, transparent) !important;
}

:host-context(.flear-has-bg-image) * {
    text-shadow: 0 2px 2px color-mix(in srgb, var(--flear-bg) 30%, transparent) !important;
}

* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    scrollbar-width: thin;
    scrollbar-color: var(--flear-border) transparent;
    font-size: 16px;
    font-family: var(--flear-font);
    line-height: 1.5;
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: inherit;
    border: none;
}

input[type="range"] {
    --flear-range-thumb: 16px;
    --flear-range-track: 5px;
    --flear-range-progress-pos: calc((var(--flear-range-thumb) / 2) + (100% - var(--flear-range-thumb)) * var(--flear-progress, 0));
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: var(--flear-range-track);
    border-radius: 999px;
    background: linear-gradient(90deg,
            var(--flear-accent) 0 var(--flear-range-progress-pos),
            var(--flear-border) var(--flear-range-progress-pos) 100%);
    cursor: pointer;
    position: relative;
    padding: 5px 0;
    margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--flear-range-thumb);
    height: var(--flear-range-thumb);
    border-radius: 999px;
    background: var(--flear-accent);
    transition: transform 0.2s ease;
    position: relative;
    z-index: 50;
}

.frames-workspace__action {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}

.frames-workspace__action:hover {
    background: var(--flear-surface);
}

::selection {
    background: var(--flear-surface);
}

::placeholder {
    color: var(--flear-muted);
    opacity: 1;
}

::-webkit-input-placeholder {
    color: var(--flear-muted);
    opacity: 1;
}

body {
    margin: 0;
    background: transparent;
    color: var(--flear-fg);
    height: 100%;
    overflow: auto;
    transition: background 0.3s, color 0.3s;
}


body:not(.index-page) {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

[data-favorite].active .material-symbols-outlined {
    font-variation-settings: "FILL" 1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: normal;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--flear-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline solid var(--flear-accent);
}

/* Components */
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: none;
    background: var(--flear-accent);
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    gap: 5px;
    border: 1px solid var(--flear-border);
}

.action-button:hover {
    opacity: 0.9;
}

.action-button:active {
    opacity: 0.8;
}

.action-button.secondary {
    background: transparent;
    color: var(--flear-fg);
}

.action-button.secondary:hover {
    background: var(--flear-border);
}

.action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.folder-selector {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 320px;
    max-height: 60dvh;
}

.folder-selector__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.folder-selector__path {
    font-size: 14px;
    color: var(--flear-fg);
}

.folder-selector__controls {
    display: flex;
    gap: 5px;
}

.folder-selector__breadcrumbs {
    display: flex;
    align-items: center;
    overflow: auto;
    white-space: nowrap;
    scrollbar-width: none;
    min-height: 30px;
}

.folder-selector__breadcrumbs::-webkit-scrollbar {
    display: none;
}

.folder-selector__breadcrumbs button {
    background: transparent;
    border: none;
    padding: 0 10px;
    border-radius: 99px;
    cursor: pointer;
    height: 30px;
    font-size: 14px;
}

.folder-selector__breadcrumbs button:hover {
    background: var(--flear-surface);
    color: var(--flear-fg);
}

.folder-selector__breadcrumbs .material-symbols-outlined {
    font-size: 16px;
}

.folder-selector__status {
    font-size: 13px;
    color: var(--flear-muted);
}

.folder-selector__list {
    flex: 1;
    overflow: auto;
}

.folder-selector__breadcrumbs {
    flex: inherit !important;
    width: 100%;
}

.folder-selector .item-list__row {
    padding: 10px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid var(--flear-border);
}

.folder-selector .item-list__row__content {
    display: flex;
    flex-direction: column;
}

.folder-selector .item-empty {
    padding: 20px;
    text-align: center;
    color: var(--flear-muted);
}

.folder-selector .item-list__row__name {
    font-size: 16px;
    color: var(--flear-fg);
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.folder-selector .item-list__row__metadata {
    font-size: 14px;
    color: var(--flear-muted);
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.folder-selector__footer {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.flear-search-results .item-list__row {
    padding: 10px 15px;
    border-bottom: 1px solid var(--flear-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s ease;
}

.flear-search-results .item-list__row:hover {
    background: var(--flear-surface);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid var(--flear-border);
    background: none;
    color: var(--flear-fg);
    transition: border-color 0.2s;
    height: 40px;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--flear-accent);
}

textarea.form-input {
    border-radius: 12px;
    min-height: 200px;
    resize: none;
    padding: 10px 15px;
}

[type="range"].form-input {
    border: none;
}

input[type="radio"],
input[type="checkbox"]:not(.toggle-switch) {
    accent-color: var(--flear-accent);
    cursor: pointer;
    margin: 0;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

input[type="radio"]:focus-visible,
input[type="checkbox"]:not(.toggle-switch):focus-visible {
    outline: 2px solid color-mix(in srgb, var(--flear-accent) 55%, transparent);
    outline-offset: 2px;
}

.panel-divider {
    height: 1px;
    background: var(--flear-border);
    margin: 16px 0;
}

.chip-toggle-group {
    display: inline-flex;
    gap: 5px;
}

.chip-toggle {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--flear-border);
    font-size: 14px;
    cursor: pointer;
    transition: border background 0.2s;
}

.chip-toggle:hover {
    background: var(--flear-border);
    color: var(--flear-fg);
}

.chip-toggle.active {
    background: var(--flear-accent);
    color: #fff;
    box-shadow: inset 0 0 0 1.6px var(--flear-accent);
}

.flear-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    transition: opacity 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
    opacity: 1;
}

.index-page .flear-loading-overlay {
    background: var(--flear-bg) !important;
}

.flear-loading-overlay[aria-hidden="true"] {
    opacity: 0;
    pointer-events: none;
}

.flear-loading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.flear-loading-overlay__content {
    padding: 20px;
    min-width: 200px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.flear-loading-overlay__spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid var(--flear-border);
    border-top-color: var(--flear-accent);
    animation: flear-spin 1s linear infinite;
}

.flear-loading-overlay__message {
    font-size: 14px;
}

.flear-loading-overlay__progress {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: var(--flear-border);
    overflow: hidden;
}

.flear-loading-overlay__progress-bar {
    width: 0%;
    height: 100%;
    background: var(--flear-accent);
    transition: width 0.2s ease;
    border-radius: 0 999px 999px 0;
}

.flear-loading-overlay__text {
    font-size: 14px;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.flear-loading-overlay__progress-label {
    font-size: 14px;
}

@keyframes flear-spin {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* Lock Screen */
.flear-lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--flear-bg);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.flear-lock-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

.flear-lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 250px;
    padding: 10px;
}

.flear-lock-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flear-accent);
}

.flear-lock-icon span {
    font-size: 24px;
}

.flear-lock-title {
    font-size: 24px;
}

.flear-pin-display {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.flear-pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--flear-border);
    transition: background 0.2s ease;
}

.flear-pin-dot.active {
    background: var(--flear-accent);
}

.flear-pin-display.shake {
    animation: flear-shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}


@keyframes flear-spin {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* Lock Screen */
.flear-lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--flear-bg);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

/* Lock security: suppress app content while locked/boot-locking. */
html.flear-is-locked,
html.flear-is-locked body {
    overflow: hidden !important;
}

html.flear-is-locked body> :not(.flear-lock-screen) {
    display: none !important;
}

.flear-lock-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

.flear-lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 250px;
    padding: 10px;
}

.flear-lock-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flear-accent);
}

.flear-lock-icon span {
    font-size: 24px;
}

.flear-lock-title {
    font-size: 24px;
}

.flear-pin-display {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.flear-pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--flear-border);
    transition: background 0.2s ease;
}

.flear-pin-dot.active {
    background: var(--flear-accent);
}

.flear-pin-display.shake {
    animation: flear-shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

.flear-keypad {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px;
}

.flear-key {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--flear-surface);
    color: var(--flear-fg);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    -webkit-user-select: none;
    user-select: none;
    margin: 0;
    padding: 0;
}

.flear-key:hover {
    background: var(--flear-border);
}

@keyframes flear-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.flear-toast-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    -webkit-user-select: none;
    user-select: none;
    margin-left: 10px;
}

.flear-toast {
    padding: 10px 10px;
    border-radius: 999px;
    background: var(--flear-bg-transparent);
    backdrop-filter: blur(5px);
    font-size: 14px;
    border: 1px solid var(--flear-border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
    cursor: pointer;
}

@keyframes flear-toast-out {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Custom Select */
.flear-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.flear-select-trigger {
    width: 100%;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--flear-border);
    color: var(--flear-fg);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: border-color 0.2s;
    gap: 5px;
}

.flear-select-trigger:hover,
.flear-select-trigger.active {
    border-color: var(--flear-accent);
}

.flear-select-trigger .flear-select-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    line-height: 30px !important;
}

.flear-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    overflow-y: auto;
    background: var(--flear-bg);
    border: 1px solid var(--flear-border);
    border-radius: 12px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s ease;
    padding: 5px;
    -webkit-user-select: none;
    user-select: none;
    max-height: 200px;
}

.flear-select-options.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.flear-select-option {
    width: 100%;
    padding: 0 5px;
    height: 30px;
    cursor: pointer;
    transition: background 0.2s;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    line-height: 30px !important;
}

.flear-select-option:hover {
    background: var(--flear-surface);
}

.flear-select-option.selected {
    background: var(--flear-accent);
    color: #fff;
}

/* Custom Modal/Prompt */
.flear-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.flear-modal-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    z-index: 5000;
}

.flear-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.flear-modal {
    background: var(--flear-bg);
    border-radius: 12px;
    padding: 20px;
    width: calc(100dvw - 20px);
    max-width: 500px;
    transition: transform 0.2s;
    border: 1px solid var(--flear-border);
    -webkit-user-select: none;
    user-select: none;
    z-index: 5001;

}

.flear-modal-overlay.visible .flear-modal {
    transform: scale(1);
}

.flear-modal-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.flear-modal-message {
    font-size: 14px;
    color: var(--flear-muted);
    margin-bottom: 10px;
    word-break: break-all;
}

.flear-modal-content {
    margin-top: 10px;
    width: 100%;
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
}

.flear-modal-content:empty {
    display: none;
}

.flear-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 10px;
}

.flear-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flear-modal-content form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Detail Panel */
.flear-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flear-detail__header {
    display: flex;
    gap: 5px;
    align-items: center;
}

.flear-detail__cover {
    display: flex;
    border-radius: 8px;
    background: var(--flear-surface);
    position: relative;
    overflow: hidden;
}

.flear-detail__cover.is-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: none;
    border-radius: 0;
    align-items: center;
    justify-content: center;
}

.flear-detail__cover.has-image {
    min-width: 0;
    min-height: 0;
}

.flear-detail__cover img {
    display: block;
    max-width: 150px;
    max-height: 80px;
    object-fit: cover;
}

.flear-detail__cover .material-symbols-outlined {
    font-size: 24px;
}

.flear-detail__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.flear-detail__title {
    font-size: 16px;
    color: var(--flear-fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flear-detail__meta {
    font-size: 14px;
    color: var(--flear-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flear-detail__meta:empty {
    display: none;
}

.flear-detail__grid {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 5px 5px;
    align-items: start;
}

.flear-detail__label {
    font-size: 14px;
    color: var(--flear-muted);
}

.flear-detail__value {
    font-size: 14px;
    color: var(--flear-fg);
    word-break: break-word;
    white-space: pre-wrap;
}

/* Context Menu */
.flear-context-menu {
    position: fixed;
    background: var(--flear-bg-transparent);
    border: 1px solid var(--flear-border);
    border-radius: 12px;
    padding: 5px;
    min-width: 100px;
    max-width: 250px;
    z-index: 6000;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.1s, transform 0.1s;
    transform-origin: top left;
    -webkit-user-select: none;
    user-select: none;
    max-height: calc(100% - 20px);
    overflow: auto;
    backdrop-filter: blur(5px);
}

.flear-context-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5999;
}

.flear-context-menu.visible {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.flear-context-item {
    padding: 0 5px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 5px;
    transition: background 0.2s;
    height: 30px;
    align-items: center;
}

.flear-context-item * {
    font-size: 14px;
}

.flear-context-item span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flear-context-item .material-symbols-outlined {
    font-size: 20px;
}

.flear-context-item .material-symbols-outlined.is-filled {
    font-variation-settings: "FILL" 1;
}

.flear-context-item:hover {
    background: var(--flear-surface);
}

.flear-context-item.danger {
    color: #ef4444;
}

.flear-context-separator {
    height: 1px;
    background: var(--flear-border);
    margin: 5px 0;
}

/* Search Overlay */
.flear-search-overlay {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.flear-search-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.flear-search-header {
    padding: 10px;
    border-bottom: 1px solid var(--flear-border);
    display: flex;
    align-items: center;
    gap: 5px;
}

.flear-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--flear-fg);
    padding: 0;
    min-width: 0;
}

.flear-search-results {
    flex: 1;
    overflow-y: auto;
}

.flear-search-results-text {
    text-align: center;
    padding: 20px;
    color: var(--flear-muted);
}

.flear-search-progress {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--flear-muted);
}

.flear-search-progress__track {
    height: 5px;
    background: var(--flear-surface);
    overflow: hidden;
}

.flear-search-progress__bar {
    border-radius: 0 999px 999px 0;
    height: 100%;
    width: 0%;
    background: var(--flear-accent);
    transition: width 0.2s ease;
}

.flear-search-progress__label {
    text-align: center;
    font-size: 14px;
}

.flear-search-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.flear-search-item .material-symbols-outlined {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flear-search-item:hover {
    background: var(--flear-surface);
}

.flear-search-info {
    flex: 1;
    min-width: 0;
}

.flear-search-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flear-search-path {
    font-size: 12px;
    color: var(--flear-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-switch {
    -webkit-appearance: none;
    appearance: none;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--flear-border);
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.toggle-switch:checked {
    background: var(--flear-accent);
}

.toggle-switch:checked::after {
    transform: translateX(20px);
}

.toggle-switch:focus-visible {
    outline: 2px solid var(--flear-accent);
    outline-offset: 2px;
    border-color: var(--flear-accent);
}

.toggle-switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}