.zen-font-adjust {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 9997;
}

.zen-font-trigger {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--zen-bg-card, #fff);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--zen-shadow, rgba(0, 0, 0, 0.08));
    opacity: 0.45;
    transition: all var(--zen-transition-base, 0.2s ease);
}

.zen-font-trigger:hover,
.zen-font-trigger:focus,
.zen-font-adjust.expanded .zen-font-trigger {
    opacity: 1;
}

body.dark-mode .zen-font-trigger {
    background: var(--zen-bg-card, #1e1e1e);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zen-font-trigger-icon {
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.zen-font-trigger-icon .font-small {
    font-size: 12px;
    font-weight: 600;
    color: var(--zen-text-muted, #999);
}

.zen-font-trigger-icon .font-large {
    font-size: 16px;
    font-weight: 700;
    color: var(--zen-text, #333);
}

body.dark-mode .zen-font-trigger-icon .font-small {
    color: #777;
}

body.dark-mode .zen-font-trigger-icon .font-large {
    color: #bbb;
}

.zen-font-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: var(--zen-bg-card, #fff);
    border: 1px solid var(--zen-border, #e9e9e9);
    border-radius: var(--zen-radius-lg, 8px);
    padding: 10px 8px;
    box-shadow: 0 2px 10px var(--zen-shadow, rgba(0, 0, 0, 0.08));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--zen-transition-base, 0.2s ease);
}

.zen-font-adjust.expanded .zen-font-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.dark-mode .zen-font-panel {
    background: var(--zen-bg-card, #1e1e1e);
    border-color: var(--zen-border, #333);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zen-font-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--zen-text, #333);
    border-radius: var(--zen-radius-md, 4px);
    transition: all var(--zen-transition-fast, 0.15s ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zen-font-btn:hover {
    background: var(--zen-bg-hover, #f9f9f9);
    color: var(--zen-primary, #d4af37);
}

.zen-font-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

body.dark-mode .zen-font-btn {
    color: var(--zen-text, #bbb);
}

body.dark-mode .zen-font-btn:hover {
    background: var(--zen-bg-hover, #252525);
    color: var(--zen-primary, #c5a059);
}

.zen-font-decrease sup {
    font-size: 10px;
}

.zen-font-increase {
    font-size: 18px;
}

.zen-font-increase sup {
    font-size: 11px;
}

.zen-font-current {
    font-size: 11px;
    color: var(--zen-text-muted, #999);
    padding: 2px 0;
}

.entry-content {
    font-size: var(--zen-font-size-base, 16px);
    transition: font-size var(--zen-transition-base, 0.2s ease);
}

.entry-content p,
.entry-content li,
.entry-content span,
.entry-content div,
.entry-content td,
.entry-content th {
    font-size: inherit;
    line-height: var(--zen-line-height-article, 1.8);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    line-height: 1.35;
}

@media (max-width: 768px) {
    .zen-font-adjust {
        bottom: calc(180px + env(safe-area-inset-bottom)) !important;
        right: 15px !important;
    }

    .zen-font-trigger {
        width: 32px;
        height: 32px;
    }
}
