.web-safe-fonts-container {
    background: #f8fafc;
    padding: 20px 0 70px;
}
.web-safe-fonts-container .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}
.web-safe-fonts-header {
    text-align: center;
}
.web-safe-fonts-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
}
.web-safe-fonts-header p {
    color: #64748b;
    font-size: 18px;
    margin: 0 auto;
    max-width: 820px;
}
.library-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 380px minmax(0, 1fr);
}
.library-card,
.preview-card,
.seo-content-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.control-panel {
    padding: 24px;
}
.control-panel h3 {
    font-size: 24px;
    margin-bottom: 18px;
}
.search-label {
    color: #334155;
    display: block;
    font-weight: 700;
    margin-bottom: 18px;
}
.search-label input {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    height: 46px;
    margin-top: 10px;
    padding: 0 14px;
    width: 100%;
}
.font-list {
    display: grid;
    gap: 12px;
    max-height: 720px;
    overflow: auto;
    padding-right: 4px;
}
.font-card {
    cursor: pointer;
    padding: 16px;
    transition: .2s ease;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}
.font-card:hover,
.font-card.active {
    border-color: #2563eb;
    box-shadow: 0 14px 40px rgba(37, 99, 235, .1);
    transform: translateY(-1px);
}
.font-card-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
}
.font-card-family {
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    margin-top: 8px;
    word-break: break-word;
}
.preview-card {
    padding: 24px;
}
.preview-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}
.preview-title {
    align-items: center;
    display: flex;
    font-size: 18px;
    font-weight: 700;
    gap: 10px;
}
.badge-preview {
    background: #eff6ff;
    border-radius: 999px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}
.font-preview {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}
.preview-text {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    padding: 32px;
}
.preview-text .eyebrow {
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.preview-text h2 {
    color: #0f172a;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    margin-bottom: 16px;
}
.preview-text p {
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
    max-width: 700px;
}
.preview-sample {
    padding: 26px 24px 22px;
}
.sample-copy {
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 16px;
}
.sample-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #475569;
}
.sample-meta span {
    display: inline-flex;
}
.css-label {
    color: #334155;
    display: block;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 10px;
}
.css-output {
    background: #0f172a;
    border: 0;
    border-radius: 12px;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    min-height: 120px;
    padding: 16px;
    resize: vertical;
    width: 100%;
}
.btn-preview-action {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 14px;
    padding: 12px 18px;
}
.btn-preview-action-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.seo-content-section {
    margin-top: 30px;
    padding: 26px;
}
@media (max-width: 991px) {
    .library-layout {
        grid-template-columns: 1fr;
    }
}
