.dyc-policy-tools {
    margin: 10px 0 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 143, 210, 0.34);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
    box-shadow: 0 10px 20px rgba(110, 139, 255, 0.12);
}

.dyc-policy-search-title,
.dyc-policy-contact-title {
    display: block;
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
}

.dyc-policy-search-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dyc-policy-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(182, 196, 255, 0.95);
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, 0.98);
    color: #1f2937;
    font-size: 16px;
}

.dyc-policy-search-input:focus {
    border-color: rgba(255, 79, 168, 0.76);
    box-shadow: 0 0 0 3px rgba(255, 122, 194, 0.14);
}

.dyc-policy-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 143, 210, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #ff4fa8;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.dyc-policy-icon-btn:hover {
    border-color: rgba(255, 79, 168, 0.76);
    background: #fff;
    transform: translateY(-1px);
}

.dyc-policy-icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.dyc-policy-search-meta {
    min-height: 18px;
    margin-top: 6px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.6;
}

.dyc-search-hit {
    padding: 0 2px;
    border-radius: 4px;
    background: #fff2a8;
    color: inherit;
}

.dyc-search-hit.is-current {
    background: #ff7ac2;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 122, 194, 0.18);
}

.dyc-policy-contact-mini {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed rgba(200, 205, 255, 0.85);
}

.dyc-policy-contact-grid {
    display: grid;
    gap: 6px;
}

.dyc-policy-contact-link,
.dyc-policy-contact-action,
.dyc-contact-link {
    color: #6e5cff;
    text-decoration: none;
}

.dyc-policy-contact-link,
.dyc-policy-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(182, 196, 255, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.dyc-policy-contact-link:hover,
.dyc-policy-contact-action:hover,
.dyc-contact-link:hover {
    color: #ff4fa8;
    text-decoration: underline;
}

.dyc-policy-contact-link:hover,
.dyc-policy-contact-action:hover {
    border-color: rgba(255, 143, 210, 0.68);
    background: #fff;
    transform: translateY(-1px);
}

.dyc-policy-contact-action {
    font-family: inherit;
}

.dyc-policy-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 0;
}

.dyc-policy-copy-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1000;
    max-width: min(320px, calc(100vw - 32px));
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.92);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.dyc-policy-copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 921px) {
    .toc-card {
        height: calc(100vh - 96px);
        max-height: calc(100vh - 96px);
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
    }

    .toc-card .toc-title,
    .toc-card .toc-desc,
    .toc-card .dyc-policy-tools,
    .toc-card .toc-hint {
        flex: 0 0 auto;
    }

    .toc-card .toc-list {
        flex: 1 1 auto;
        min-height: 120px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-right: 6px;
    }

    .toc-card .toc-list::-webkit-scrollbar {
        width: 8px;
    }

    .toc-card .toc-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.42);
        border-radius: 999px;
    }

    .toc-card .toc-list::-webkit-scrollbar-thumb {
        background: rgba(255, 122, 194, 0.38);
        border-radius: 999px;
    }

    .toc-card .toc-list::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 79, 168, 0.56);
    }
}

@media (max-width: 760px) {
    .dyc-policy-tools {
        margin-top: 12px;
    }

    .dyc-policy-search-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 34px 34px 34px;
    }

    .dyc-policy-contact-actions {
        gap: 6px;
    }
}

@media (max-width: 920px) {
    .toc-card {
        display: block;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .toc-card .toc-list {
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 420px) {
    .dyc-policy-search-row {
        grid-template-columns: minmax(0, 1fr) 32px 32px 32px;
    }

    .dyc-policy-icon-btn {
        width: 32px;
        height: 32px;
    }

    .dyc-policy-contact-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dyc-policy-icon-btn,
    .dyc-policy-contact-link,
    .dyc-policy-contact-action,
    .dyc-policy-copy-toast {
        transition: none;
    }
}
