#favorite-launcher-app {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #1e293b;
    line-height: 1.7;
}

#favorite-launcher-app *,
#favorite-launcher-app *::before,
#favorite-launcher-app *::after {
    box-sizing: border-box;
}

#favorite-launcher-app h2,
#favorite-launcher-app h3 {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

#favorite-launcher-app h2::before,
#favorite-launcher-app h2::after,
#favorite-launcher-app h3::before,
#favorite-launcher-app h3::after {
    content: none;
    display: none;
}

#favorite-launcher-app .fl-hidden {
    display: none !important;
}

#favorite-launcher-app .fl-head {
    text-align: center;
    margin-bottom: 16px;
}

#favorite-launcher-app .fl-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 auto 12px;
    max-width: 600px;
}

#favorite-launcher-app .fl-account-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    max-width: 600px;
}

#favorite-launcher-app .fl-account-status {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
}

#favorite-launcher-app .fl-intro-box {
    margin: 0 0 24px;
}

#favorite-launcher-app .fl-intro {
    font-size: 0.84rem;
    color: #475569;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 13px 18px;
    margin: 0;
}

#favorite-launcher-app .fl-intro strong {
    color: #4338ca;
}

#favorite-launcher-app .fl-intro-closed {
    display: none;
}

#favorite-launcher-app .fl-intro-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

#favorite-launcher-app .fl-intro-toggle:hover {
    background: #eef2ff;
    color: #4338ca;
}

#favorite-launcher-app .fl-intro-arrow {
    font-size: 0.6rem;
    display: inline-block;
    transition: transform 0.2s;
}

#favorite-launcher-app .fl-intro-toggle.fl-intro-open .fl-intro-arrow {
    transform: rotate(180deg);
}

#favorite-launcher-app .fl-intro-toggle.fl-intro-open + .fl-intro {
    margin-top: 8px;
}

#favorite-launcher-app .fl-fav-section {
    margin-bottom: 32px;
}

#favorite-launcher-app .fl-sec-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

#favorite-launcher-app .fl-section-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
}

#favorite-launcher-app .fl-num {
    display: inline-block;
    margin-left: 8px;
    min-width: 24px;
    padding: 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: #6366f1;
    border-radius: 999px;
    text-align: center;
}

#favorite-launcher-app .fl-data-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#favorite-launcher-app .fl-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

#favorite-launcher-app .fl-mini-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #94a3b8;
}

#favorite-launcher-app .fl-mini-btn:disabled {
    color: #cbd5e1;
    border-color: #e2e8f0;
    background: #f8fafc;
    cursor: default;
}

#favorite-launcher-app .fl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

#favorite-launcher-app .fl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    overflow: hidden;
}

#favorite-launcher-app .fl-card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
    border-color: #c7d2fe;
}

#favorite-launcher-app .fl-card.fl-dragging {
    opacity: 0.45;
}

#favorite-launcher-app .fl-card.fl-drag-over {
    border-color: #6366f1;
    border-style: dashed;
}

#favorite-launcher-app .fl-card-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

#favorite-launcher-app .fl-card-badge {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

#favorite-launcher-app .fl-card-main {
    flex: 1 1 auto;
    min-width: 0;
}

#favorite-launcher-app .fl-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    word-break: break-word;
}

#favorite-launcher-app .fl-card-url {
    font-size: 0.74rem;
    color: #94a3b8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#favorite-launcher-app .fl-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 14px 12px;
}

#favorite-launcher-app .fl-card-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    border-radius: 999px;
    padding: 2px 10px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#favorite-launcher-app .fl-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

#favorite-launcher-app .fl-icon-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

#favorite-launcher-app .fl-icon-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

#favorite-launcher-app .fl-move-btn {
    width: 30px;
    height: 26px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #6366f1;
    border-radius: 8px;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

#favorite-launcher-app .fl-move-btn:hover:not(:disabled) {
    background: #eef2ff;
    border-color: #c7d2fe;
}

#favorite-launcher-app .fl-move-btn:disabled {
    color: #e2e8f0;
    cursor: default;
}

#favorite-launcher-app .fl-drag-handle {
    cursor: grab;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1;
    padding: 2px 4px;
    user-select: none;
}

#favorite-launcher-app .fl-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.86rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 18px;
    margin: 12px 0 0;
}

#favorite-launcher-app .fl-star-sample {
    color: #f59e0b;
    font-weight: 700;
}

#favorite-launcher-app .fl-form-msg {
    font-size: 0.82rem;
    margin: 12px 0 0;
    padding: 8px 12px;
    border-radius: 8px;
}

#favorite-launcher-app .fl-form-msg.fl-msg-ok {
    background: #ecfdf5;
    color: #047857;
}

#favorite-launcher-app .fl-form-msg.fl-msg-err {
    background: #fef2f2;
    color: #dc2626;
}

#favorite-launcher-app .fl-browse-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    margin-bottom: 28px;
}

#favorite-launcher-app .fl-search-wrap {
    margin: 14px 0;
}

#favorite-launcher-app .fl-search-wrap input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #fff;
    color: #1e293b;
}

#favorite-launcher-app .fl-search-wrap input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

#favorite-launcher-app .fl-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

#favorite-launcher-app .fl-filter-tab {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

#favorite-launcher-app .fl-filter-tab:hover {
    background: #eef2ff;
    color: #4338ca;
}

#favorite-launcher-app .fl-filter-tab.fl-active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

#favorite-launcher-app .fl-filter-tab.fl-new-tab {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

#favorite-launcher-app .fl-filter-tab.fl-new-tab:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

#favorite-launcher-app .fl-filter-tab.fl-new-tab.fl-active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

#favorite-launcher-app .fl-tool-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

#favorite-launcher-app .fl-tool-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 8px 12px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

#favorite-launcher-app .fl-tool-row:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

#favorite-launcher-app .fl-star-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
}

#favorite-launcher-app .fl-star-btn:hover {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #f59e0b;
}

#favorite-launcher-app .fl-star-btn.fl-on {
    color: #f59e0b;
    border-color: #fcd34d;
    background: #fffbeb;
}

#favorite-launcher-app .fl-tool-meta {
    flex: 1 1 auto;
    min-width: 0;
}

#favorite-launcher-app .fl-tool-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    word-break: break-word;
}

#favorite-launcher-app .fl-tool-name:hover {
    color: #4338ca;
    text-decoration: underline;
}

#favorite-launcher-app .fl-tool-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
}

#favorite-launcher-app .fl-new-badge {
    flex: 0 0 auto;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0 7px;
    line-height: 1.5;
}

#favorite-launcher-app .fl-guide {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 18px 20px;
}

#favorite-launcher-app .fl-guide-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

#favorite-launcher-app .fl-guide-body p {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 10px;
}

#favorite-launcher-app .fl-guide-body p:last-child {
    margin-bottom: 0;
}

#favorite-launcher-app .fl-guide-caution {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 14px;
    color: #92400e !important;
}

@media (min-width: 720px) {
    #favorite-launcher-app .fl-grid {
        grid-template-columns: 1fr 1fr;
    }

    #favorite-launcher-app .fl-tool-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1040px) {
    #favorite-launcher-app .fl-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
