/* Tool page layout (scoped) */
body {
    background: #f6f7fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.tool-page {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 22px auto 0;
    padding: 0 18px 28px;
    box-sizing: border-box;
}

.tool-hero {
    padding: 16px 2px 18px;
}

.tool-title {
    margin: 0 0 10px;
    font-size: 1.9rem;
    line-height: 1.2;
    font-weight: 750;
    color: #121826;
    letter-spacing: -0.02em;
    text-align: center;
}

.tool-subtitle {
    margin: 0;
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.8;
    max-width: 72ch;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 6px 0 0;
}

.tool-row {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.tool-row-title {
    margin: 0;
    padding: 16px 18px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.03));
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.tool-grid {
    display: grid;
    grid-template-columns: 140px 1fr 190px;
    gap: 14px;
    align-items: center;
    padding: 16px 18px 18px;
}

.tool-col {
    min-width: 0;
}

.tool-col-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    padding: 0;
    box-sizing: border-box;
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tool-desc {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    font-size: 1.02rem;
    word-break: normal;
    overflow-wrap: break-word;
}

.tool-col-action {
    display: flex;
    justify-content: flex-end;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(23, 162, 184, 0.38);
    background: #17a2b8;
    color: #fff;
    text-decoration: none;
    font-weight: 650;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
}

.tool-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(23, 162, 184, 0.26);
    filter: saturate(1.05);
}

.tool-btn:active {
    transform: translateY(0);
}

@media (max-width: 860px) {
    .tool-grid {
        grid-template-columns: 96px 1fr;
        grid-template-areas:
            "media desc"
            "action action";
    }

    .tool-col-media { grid-area: media; }
    .tool-col-desc { grid-area: desc; }
    .tool-col-action {
        grid-area: action;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .tool-page {
        padding: 0 14px 24px;
    }
    .tool-title {
        font-size: 1.6rem;
    }
    .tool-row-title {
        padding: 14px 14px;
    }
    .tool-grid {
        padding: 14px 14px 16px;
        gap: 12px;
    }
    .tool-icon {
        width: 72px;
        height: 72px;
        padding: 12px;
        border-radius: 16px;
    }
}
