﻿/* Writer article form: 1120px design canvas, scaled from width only. */

body.writer-page .writer-campaign-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(251, 191, 36, 0.46);
    border-radius: 8px;
    background: linear-gradient(100deg, rgba(251, 191, 36, 0.11), rgba(15, 23, 42, 0.9) 55%);
    color: #f8fafc;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.writer-page .writer-campaign-banner:hover,
body.writer-page .writer-campaign-banner:focus-visible {
    border-color: rgba(251, 191, 36, 0.78);
    background: linear-gradient(100deg, rgba(251, 191, 36, 0.17), rgba(15, 23, 42, 0.96) 55%);
    outline: none;
}

body.writer-page .writer-campaign-banner-onboarding {
    margin: 18px 0;
}

body.writer-page .writer-campaign-banner-form {
    margin: 14px 0 4px;
}

body.writer-page .writer-campaign-gift {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(251, 191, 36, 0.52);
    border-radius: 8px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

body.writer-page .writer-campaign-gift svg {
    width: 20px;
    height: 20px;
}

body.writer-page .writer-campaign-copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

body.writer-page .writer-campaign-copy strong,
body.writer-page .writer-campaign-copy span {
    display: block;
}

body.writer-page .writer-campaign-copy strong {
    color: #fbbf24;
    font-size: 15px;
    line-height: 1.35;
}

body.writer-page .writer-campaign-copy span {
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.45;
}

body.writer-page .writer-campaign-link {
    flex: 0 0 auto;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    body.writer-page .writer-campaign-banner {
        align-items: flex-start;
        padding: 12px;
    }

    body.writer-page .writer-campaign-link {
        display: none;
    }
}

body.writer-page .writer-upload-section {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.wf-scale-stage {
    --wf-scale: 1;
    position: relative;
    top: 0;
    left: 0;
    width: 1232px;
    margin: 0;
    padding-top: 26px;
    padding-bottom: 18px;
    box-sizing: border-box;
    transform: scale(var(--wf-scale));
    transform-origin: top left;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    .wf-scale-stage {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        transform-origin: top left !important;
    }

    .wf-card {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .wf-header {
        gap: 12px !important;
    }

    .wf-header-icon {
        width: 44px !important;
        height: 44px !important;
        flex-basis: 44px !important;
    }

    .wf-header-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .wf-header-title {
        font-size: 24px !important;
    }

    .wf-header-desc {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .wf-editor-toolbar,
    #desc-custom-toolbar {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
    }

    .wf-input-method-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .wf-input-method-card {
        min-width: 0 !important;
        padding: 8px !important;
    }

    .wf-category-tabs,
    .strategy-category-row,
    .wf-strategy-chip-wrap,
    .strategy-chip-wrap,
    .wf-price-options {
        flex-wrap: wrap !important;
    }

    .wf-footer-actions {
        align-items: stretch !important;
        gap: 10px !important;
    }

    .wf-footer-left,
    .wf-footer-right {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
}

/* Description editor display zoom. This changes only the writing view, not saved HTML. */
html body.writer-page #upload-desc-editor .tiptap-editor,
html body.writer-page #upload-desc-editor .ProseMirror,
#desc-fullscreen-overlay #upload-desc-editor .tiptap-editor,
#desc-fullscreen-overlay #upload-desc-editor .ProseMirror {
    font-size: var(--desc-editor-font-size, 17px) !important;
}

/* Native file-label control keeps the image picker reliable on iOS/iPadOS. */
html body.writer-page #upload-desc-editor .desc-image-input,
#desc-fullscreen-overlay #upload-desc-editor .desc-image-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

html body.writer-page #upload-desc-editor .desc-image-button,
#desc-fullscreen-overlay #upload-desc-editor .desc-image-button {
    display: inline-flex !important;
    flex: 0 0 40px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 35px !important;
    min-height: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.92), rgba(15, 23, 42, 0.88)) !important;
    color: #dbeafe !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.22) !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    box-sizing: border-box !important;
}

html body.writer-page #upload-desc-editor .desc-image-button::before,
#desc-fullscreen-overlay #upload-desc-editor .desc-image-button::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

html body.writer-page #upload-desc-editor .desc-image-button:hover,
html body.writer-page #upload-desc-editor .desc-image-button:focus-visible,
#desc-fullscreen-overlay #upload-desc-editor .desc-image-button:hover,
#desc-fullscreen-overlay #upload-desc-editor .desc-image-button:focus-visible {
    border-color: rgba(203, 213, 225, 0.42) !important;
    color: #fff !important;
    outline: none !important;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    #desc-fullscreen-overlay #upload-desc-editor .desc-image-button {
        flex-basis: 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
    }
}

html body.writer-page .desc-image-caption-panel,
#desc-fullscreen-overlay .desc-image-caption-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    padding: 9px 12px;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.92);
    color: #cbd5e1;
}

html body.writer-page .desc-image-caption-panel.is-active,
#desc-fullscreen-overlay .desc-image-caption-panel.is-active {
    border-color: rgba(251, 191, 36, 0.58);
}

html body.writer-page .desc-image-caption-label,
#desc-fullscreen-overlay .desc-image-caption-label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

html body.writer-page .desc-image-caption-label svg,
#desc-fullscreen-overlay .desc-image-caption-label svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html body.writer-page .desc-image-caption-input,
#desc-fullscreen-overlay .desc-image-caption-input {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.30);
    border-radius: 7px;
    outline: none;
    background: rgba(2, 6, 23, 0.72);
    color: #f8fafc;
    font: inherit;
    font-size: 14px;
}

html body.writer-page .desc-image-caption-input:focus,
#desc-fullscreen-overlay .desc-image-caption-input:focus {
    border-color: rgba(251, 191, 36, 0.78);
}

html body.writer-page .desc-image-caption-input:disabled,
#desc-fullscreen-overlay .desc-image-caption-input:disabled {
    cursor: default;
    opacity: 0.68;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    html body.writer-page .desc-image-caption-panel,
    #desc-fullscreen-overlay .desc-image-caption-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        padding: 8px 10px;
    }

    html body.writer-page .desc-image-caption-input,
    #desc-fullscreen-overlay .desc-image-caption-input {
        height: 40px;
        min-height: 40px;
        font-size: 16px;
    }
}

html body.writer-page #upload-desc-editor .tiptap-editor h1,
#desc-fullscreen-overlay #upload-desc-editor .tiptap-editor h1 {
    margin: 26px 0 12px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-size: 1.24em !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
}

html body.writer-page #upload-desc-editor .tiptap-editor h2,
#desc-fullscreen-overlay #upload-desc-editor .tiptap-editor h2 {
    margin: 18px 0 10px 24px !important;
    padding: 0 0 9px !important;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-size: 1.1em !important;
    font-weight: 550 !important;
    line-height: 1.45 !important;
}

@media (max-width: 768px) {
    html body.writer-page #upload-desc-editor .tiptap-editor h2,
    #desc-fullscreen-overlay #upload-desc-editor .tiptap-editor h2 {
        margin-left: 14px !important;
    }
}

html body.writer-page #upload-desc-editor .desc-editor-zoom-controls,
#desc-fullscreen-overlay #upload-desc-editor .desc-editor-zoom-controls {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 3px !important;
    height: 38px !important;
    padding: 2px 4px !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 9px !important;
    background: rgba(2, 6, 23, 0.38) !important;
    box-sizing: border-box !important;
}

html body.writer-page #upload-desc-editor .desc-editor-zoom-controls .desc-editor-zoom-btn,
#desc-fullscreen-overlay #upload-desc-editor .desc-editor-zoom-controls .desc-editor-zoom-btn {
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

html body.writer-page #upload-desc-editor .desc-editor-zoom-controls .desc-editor-zoom-btn:hover,
html body.writer-page #upload-desc-editor .desc-editor-zoom-controls .desc-editor-zoom-btn:focus-visible,
#desc-fullscreen-overlay #upload-desc-editor .desc-editor-zoom-controls .desc-editor-zoom-btn:hover,
#desc-fullscreen-overlay #upload-desc-editor .desc-editor-zoom-controls .desc-editor-zoom-btn:focus-visible {
    background: rgba(71, 85, 105, 0.62) !important;
    color: #fff !important;
    outline: 1px solid rgba(148, 163, 184, 0.42) !important;
}

html body.writer-page #upload-desc-editor .desc-editor-zoom-controls .desc-editor-zoom-btn:disabled,
#desc-fullscreen-overlay #upload-desc-editor .desc-editor-zoom-controls .desc-editor-zoom-btn:disabled {
    color: #64748b !important;
    opacity: 0.55 !important;
    cursor: default !important;
}

html body.writer-page #upload-desc-editor .desc-editor-zoom-controls svg,
#desc-fullscreen-overlay #upload-desc-editor .desc-editor-zoom-controls svg {
    width: 16px !important;
    height: 16px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
}

html body.writer-page #upload-desc-editor .desc-editor-zoom-value,
#desc-fullscreen-overlay #upload-desc-editor .desc-editor-zoom-value {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 43px !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    font-variant-numeric: tabular-nums;
}

html body.writer-page #upload-desc-editor > .desc-editor-zoom-controls {
    margin: 8px 10px !important;
}

/* =========================================================
   In-form KIF workspace
   The home board/tree engine is embedded without leaving the writer form.
   ========================================================= */
body.writer-page .wf-kif-workspace {
    width: 100%;
    min-width: 0;
    margin: 16px 0 22px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.38);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(8, 13, 29, 0.96), rgba(2, 6, 23, 0.94));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

body.writer-page .wf-kif-workspace.hidden {
    display: none !important;
}

body.writer-page .wf-kif-workspace-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.17);
    background: rgba(15, 23, 42, 0.62);
    box-sizing: border-box;
}

body.writer-page .wf-kif-workspace-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

body.writer-page .wf-kif-workspace-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 7px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

body.writer-page .wf-kif-workspace-icon svg {
    width: 19px;
    height: 19px;
}

body.writer-page .wf-kif-workspace-title {
    margin: 0;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

body.writer-page .wf-kif-workspace-current {
    max-width: 250px;
    margin: 3px 0 0;
    overflow: hidden;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.writer-page .wf-kif-workspace-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

body.writer-page .wf-kif-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 7px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
}

body.writer-page .wf-kif-tool-button:hover:not(:disabled),
body.writer-page .wf-kif-tool-button:focus-visible {
    border-color: rgba(167, 139, 250, 0.68);
    color: #fff;
    background: rgba(49, 46, 129, 0.62);
    outline: none;
}

body.writer-page .wf-kif-tool-button:disabled {
    opacity: 0.38;
    cursor: default;
}

body.writer-page .wf-kif-tool-button.hidden {
    display: none !important;
}

body.writer-page .wf-kif-tool-button svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.writer-page .wf-kif-tool-link {
    border-color: rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
    background: rgba(30, 64, 175, 0.18);
}

body.writer-page .wf-kif-tool-danger {
    border-color: rgba(248, 113, 113, 0.42);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.24);
}

body.writer-page .wf-kif-workspace-frame-wrap {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    background: #030712;
}

body.writer-page .wf-kif-workspace-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.18s ease;
}

body.writer-page .wf-kif-workspace-frame.is-ready {
    opacity: 1;
}

body.writer-page .wf-kif-workspace-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #030712;
    font-size: 13px;
}

body.writer-page .wf-kif-workspace-loading.hidden {
    display: none !important;
}

body.writer-page .wf-kif-workspace-help {
    margin: 0;
    padding: 9px 14px 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.52);
    font-size: 12px;
    line-height: 1.55;
}

body.writer-page #upload-edit-btn.active {
    border: 1px solid rgba(74, 222, 128, 0.58) !important;
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.10) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.writer-page #upload-edit-btn.active:hover,
body.writer-page #upload-edit-btn.active:active {
    border-color: rgba(134, 239, 172, 0.76) !important;
    color: #dcfce7 !important;
    background: rgba(34, 197, 94, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    body.writer-page .wf-kif-workspace {
        margin: 12px 0 18px;
        border-radius: 8px;
    }

    body.writer-page .wf-kif-workspace-head {
        display: block;
        min-height: 0;
        padding: 10px;
    }

    body.writer-page .wf-kif-workspace-title-wrap {
        min-width: 0;
        margin-bottom: 9px;
    }

    body.writer-page .wf-kif-workspace-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    body.writer-page .wf-kif-workspace-title {
        font-size: 15px;
    }

    body.writer-page .wf-kif-workspace-current {
        max-width: 280px;
        font-size: 11px;
    }

    body.writer-page .wf-kif-workspace-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    body.writer-page .wf-kif-tool-button {
        width: 100%;
        height: 32px;
        padding: 0 5px;
        font-size: 10px;
    }

    body.writer-page .wf-kif-tool-link {
        grid-column: 1 / -1;
    }

    body.writer-page .wf-kif-workspace-frame-wrap {
        height: 780px;
    }

    body.writer-page .wf-kif-workspace-help {
        padding: 8px 10px;
        font-size: 10px;
    }
}

/* KIF source actions: local file or the user's Box. */
.wf-file-source-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 11px;
}

html body.writer-page .writer-upload-section #upload-form .wf-file-source-actions .wf-file-select-button {
    margin-top: 0 !important;
}

html body.writer-page .writer-upload-section #upload-form #kif-box-select-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 18px !important;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px !important;
    background: rgba(30, 41, 59, 0.75);
    color: #dbeafe;
    font-size: 15px !important;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    .wf-file-source-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-file-source-actions .wf-file-select-button {
        width: 100% !important;
        padding: 0 8px !important;
        font-size: 13px !important;
    }
}

.wf-card {
    width: 1109px;
    min-height: 1452px;
    margin: 0;
    padding: 31px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 15px;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.84),
            rgba(8, 13, 29, 0.74)
        );
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.wf-card #upload-form {
    display: block !important;
    width: 100%;
    margin: 0;
}

.wf-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wf-header-icon {
    display: flex;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.75);
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 25%,
        rgba(255, 255, 255, 0.16),
        rgba(234, 179, 8, 0.14) 45%,
        rgba(15, 23, 42, 0.92) 100%
    );
    box-shadow: 0 0 24px rgba(234, 179, 8, 0.15);
}

.wf-header-icon svg {
    width: 29px;
    height: 29px;
}

.wf-header-title {
    color: #f8fafc;
    font-size: 33px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
}

.wf-header-desc {
    margin-top: 9px;
    color: #9ca3af;
    font-size: 17px;
    font-weight: 600;
}

.wf-divider {
    height: 1px;
    margin-top: 26px;
    background: rgba(148, 163, 184, 0.14);
}

.wf-label {
    display: block !important;
    margin: 26px 0 0 !important;
    color: #f8fafc !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.wf-divider + .wf-label {
    margin-top: 20px !important;
}

.wf-required {
    color: #fb7185;
}

.wf-label-sub {
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.wf-title-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    margin-top: 13px;
    padding: 0 15px;
    box-sizing: border-box;
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.66);
}

html body.writer-page .writer-upload-section #upload-form #upload-title {
    flex: 1;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #f8fafc !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 17px !important;
    font-weight: 600 !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-title::placeholder {
    color: #64748b !important;
    font-size: 17px !important;
    opacity: 1;
}

.wf-title-counter {
    margin-left: 13px;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.wf-editor {
    position: relative;
    height: 196px;
    margin-top: 13px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.52);
}

#upload-desc-editor {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar {
    display: flex !important;
    flex: 0 0 59px;
    align-items: center;
    gap: 7px !important;
    width: 100%;
    min-height: 59px !important;
    height: 59px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.72);
    scrollbar-width: thin;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button {
    display: inline-flex !important;
    flex: 0 0 40px !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    min-width: 40px !important;
    height: 35px !important;
    min-height: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    border-radius: 7px !important;
    background: #bfdbf8 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button.is-active {
    border-color: rgba(250, 204, 21, 0.85) !important;
    background: #facc15 !important;
    color: #111827 !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button:hover {
    border-color: rgba(250, 204, 21, 0.45) !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .desc-toolbar-sep {
    display: inline-block;
    flex: 0 0 1px;
    width: 1px;
    height: 20px;
    margin: 0 4px;
    background: #334155;
}

.tiptap-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content {
    background: #ffffff !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content .ProseMirror {
    min-height: 220px;
    white-space: pre-wrap !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    outline: none;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-editor {
    width: 100%;
    height: 136px !important;
    min-height: 136px !important;
    margin: 0;
    padding: 20px 77px 20px 20px !important;
    overflow-y: auto;
    box-sizing: border-box;
    color: #111827 !important;
    caret-color: #2563eb !important;
    outline: 0;
    background: #ffffff !important;
    font-size: 17px !important;
    font-weight: 400;
    line-height: 1.65;
}

.tiptap-editor:empty::before {
    content: attr(data-placeholder);
    color: #64748b;
    pointer-events: none;
}

.wf-editor-count {
    position: absolute;
    right: 20px;
    bottom: 15px;
    z-index: 2;
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}

.wf-paragraph-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.wf-paragraph-count {
    color: #cbd5e1;
    font-size: 17px;
    font-weight: 800;
}

html body.writer-page .writer-upload-section #upload-form #insert-toc-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 20px !important;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px !important;
    background: rgba(30, 41, 59, 0.72);
    font-size: 17px !important;
    font-weight: 800;
}

.wf-input-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 13px;
}

html body.writer-page .writer-upload-section #upload-form .wf-input-method-card {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    height: 77px !important;
    min-height: 77px !important;
    padding: 0 20px !important;
    box-sizing: border-box;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 9px !important;
    background: rgba(15, 23, 42, 0.68);
}

html body.writer-page .writer-upload-section #upload-form .wf-input-method-card.active {
    border-color: rgba(234, 179, 8, 0.72);
    box-shadow: 0 0 24px rgba(234, 179, 8, 0.10);
}

.wf-input-method-card svg {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    color: #94a3b8;
}

.wf-input-method-card.active svg {
    color: #facc15;
}

.wf-input-method-text {
    text-align: left;
}

.wf-input-method-title {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 900;
}

.wf-input-method-sub {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.wf-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 160px;
    margin-top: 15px;
    box-sizing: border-box;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.42);
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.28);
}

.wf-dropzone.drag-over {
    border-color: rgba(234, 179, 8, 0.65);
    background: rgba(234, 179, 8, 0.06);
}

.wf-dropzone-icon {
    margin-bottom: 8px;
    color: #facc15;
}

.wf-dropzone-icon svg {
    width: 31px;
    height: 31px;
}

.wf-dropzone-main {
    color: #94a3b8;
    font-size: 17px;
    font-weight: 700;
}

html body.writer-page .writer-upload-section #upload-form #kif-select-btn {
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    margin-top: 11px;
    padding: 0 22px !important;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px !important;
    background: rgba(30, 41, 59, 0.75);
    font-size: 15px !important;
    font-weight: 800;
}

.wf-kif-selected {
    margin-top: 9px;
    color: #4ade80;
    font-size: 15px;
    font-weight: 700;
}

.wf-kif-summary {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.wf-kif-summary.has-kif {
    display: flex;
}

.wf-kif-summary .wf-kif-selected {
    min-width: 0;
    margin-top: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body.writer-page .writer-upload-section #upload-form #upload-edit-btn.hidden {
    display: none !important;
}

#upload-desc-blur {
    display: none !important;
}

.wf-mosaic-section {
    display: none;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
}

.wf-mosaic-section.has-kif {
    display: flex;
}

.wf-mosaic-section.hidden {
    display: none !important;
}

.wf-strategy-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 0;
    margin-top: 13px;
}

.wf-strategy-selected:empty {
    display: none;
}

.wf-strategy-selected-pill,
.wf-strategy-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    height: 38px;
    padding: 0 15px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    font-size: 14px;
    font-weight: 700;
}

.wf-strategy-selected-pill,
.wf-strategy-chip.selected {
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.75);
    background: rgba(234, 179, 8, 0.18);
}

.wf-strategy-remove {
    margin-left: 7px;
    font-size: 18px;
    opacity: 0.75;
}

.wf-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 13px;
}

.wf-category-tab {
    min-height: 38px;
    height: 38px;
    padding: 0 15px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.wf-category-tab.active {
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.72);
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.22), rgba(120, 53, 15, 0.16));
    box-shadow: 0 0 18px rgba(234, 179, 8, 0.10);
}

.wf-strategy-panel {
    margin-top: 15px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 11px;
    background: rgba(2, 6, 23, 0.24);
}

.wf-strategy-main-title {
    margin-bottom: 15px;
    color: #facc15;
    font-size: 19px;
    font-weight: 900;
}

.wf-strategy-group-title {
    margin: 15px 0 9px;
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 900;
}

.wf-strategy-group-title:first-of-type {
    margin-top: 0;
}

.wf-strategy-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.wf-custom-strategy-row {
    display: flex;
    gap: 11px;
    margin-top: 15px;
}

html body.writer-page .writer-upload-section #upload-form #writer-custom-strategy {
    flex: 1;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    box-sizing: border-box;
    color: #f8fafc !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 9px !important;
    background: rgba(2, 6, 23, 0.55) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

html body.writer-page .writer-upload-section #upload-form #writer-custom-strategy::placeholder {
    color: #64748b !important;
    font-size: 15px !important;
}

html body.writer-page .writer-upload-section #upload-form #writer-add-custom-strategy {
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 20px !important;
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.45);
    border-radius: 9px !important;
    background: rgba(234, 179, 8, 0.14);
    font-size: 15px !important;
    font-weight: 900;
}

.wf-price-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6.5px;
}

.wf-price-input {
    width: 116px;
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
    font-size: 16px;
    font-weight: 800;
    text-align: right;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wf-price-input::-webkit-outer-spin-button,
.wf-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wf-price-input:focus {
    outline: none;
    border-color: rgba(234, 179, 8, 0.72);
    background: rgba(234, 179, 8, 0.08);
}

.wf-price-unit {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
}

.wf-price-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.wf-price-option {
    height: 36px;
    padding: 0 14px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.wf-price-option.active {
    color: #facc15;
    border-color: rgba(234, 179, 8, 0.72);
    background: rgba(234, 179, 8, 0.16);
}

#price-fee-label {
    display: none !important;
}

.wf-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 33px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.wf-footer-left,
.wf-footer-right {
    display: flex;
    gap: 11px;
}

html body.writer-page .writer-upload-section #upload-form .wf-action-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.wf-action-button.secondary {
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(30, 41, 59, 0.72);
}

.wf-action-button.gold {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wf-action-button.gold:hover,
.wf-action-button.gold:active {
    color: #fef3c7;
    border-color: rgba(251, 191, 36, 0.72);
    background: rgba(251, 191, 36, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html body.writer-page .writer-upload-section #upload-form .wf-action-button svg {
    width: 18px !important;
    height: 18px !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-publish-btn {
    min-width: 132px !important;
    height: 48px !important;
    min-height: 48px !important;
    font-size: 16px !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-draft-btn,
html body.writer-page .writer-upload-section #upload-form #upload-preview-btn {
    min-width: 120px !important;
}

.wf-upload-msg {
    margin-top: 11px;
    font-size: 15px;
    font-weight: 700;
}

.wf-card button {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wf-card button:hover {
    transform: translateY(-1px);
}

.wf-card button:focus-visible,
.wf-card input:focus-visible,
#upload-desc-editor:focus-within {
    outline: 2px solid rgba(96, 165, 250, 0.95);
    outline-offset: 2px;
}

.tiptap-editor h1 {
    margin: 12px 0 8px;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 800;
}

.tiptap-editor h2 {
    margin: 10px 0 6px;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
}

.tiptap-editor p {
    margin: 6px 0;
}

.tiptap-editor a {
    color: #2563eb;
    text-decoration: underline;
}

.tiptap-editor img {
    max-width: 100%;
    margin: 8px 0;
    border-radius: 6px;
}

.tiptap-editor ul,
.tiptap-editor ol {
    margin: 6px 0;
    padding-left: 24px;
}

.tiptap-editor blockquote {
    margin: 8px 0;
    padding-left: 14px;
    color: #475569;
    border-left: 3px solid rgba(37, 99, 235, 0.4);
}

.tiptap-editor hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.tiptap-editor strong,
.tiptap-editor b,
.tiptap-content strong,
.tiptap-content b {
    font-weight: 800 !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content .ProseMirror strong,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content .ProseMirror b {
    font-weight: 800 !important;
}

.tiptap-editor em,
.tiptap-editor i,
.tiptap-content em,
.tiptap-content i {
    font-style: italic !important;
}
/* Mobile writer form containment fixes v31 */
@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    html body.writer-page .writer-upload-section .wf-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-label {
        font-size: 18px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-title-wrap {
        height: 50px !important;
        padding: 0 12px !important;
        overflow: hidden !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-title,
    html body.writer-page .writer-upload-section #upload-form #upload-title::placeholder {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-title-counter {
        flex: 0 0 auto !important;
        margin-left: 8px !important;
        font-size: 14px !important;
        line-height: 1 !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-editor {
        height: 210px !important;
        overflow: hidden !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor {
        overflow: hidden !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar {
        display: flex !important;
        flex: 0 0 58px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 7px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button {
        display: inline-flex !important;
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 35px !important;
        min-height: 35px !important;
        max-height: 35px !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .desc-toolbar-sep {
        display: inline-block !important;
        flex: 0 0 1px !important;
        width: 1px !important;
        min-width: 1px !important;
        height: 20px !important;
        margin: 0 3px !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: auto !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-editor {
        height: 151px !important;
        min-height: 151px !important;
        padding: 16px 58px 16px 16px !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-paragraph-row {
        gap: 10px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-paragraph-count {
        flex: 0 0 auto !important;
        font-size: 17px !important;
        white-space: nowrap !important;
    }

    html body.writer-page .writer-upload-section #upload-form #insert-toc-btn {
        flex: 0 0 auto !important;
        height: 44px !important;
        padding: 0 14px !important;
        font-size: 17px !important;
        white-space: nowrap !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-card {
        min-width: 0 !important;
        height: 92px !important;
        min-height: 92px !important;
        padding: 8px 8px !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-card svg {
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-text {
        min-width: 0 !important;
        text-align: left !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-title {
        font-size: 14px !important;
        line-height: 1.18 !important;
        overflow-wrap: anywhere !important;
        word-break: keep-all !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-sub {
        margin-top: 5px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        overflow-wrap: anywhere !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-dropzone {
        height: 150px !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-dropzone-main {
        font-size: 17px !important;
        line-height: 1.35 !important;
    }

    html body.writer-page .writer-upload-section #upload-form #kif-select-btn {
        max-width: 100% !important;
        white-space: nowrap !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-kif-summary {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 9px !important;
        padding: 11px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-kif-summary .wf-kif-selected {
        font-size: 13px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

}
/* Desktop BIU toolbar stability fixes v32 */
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button.is-active,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[aria-pressed="true"] {
    border-color: rgba(250, 204, 21, 0.85) !important;
    background: #facc15 !important;
    color: #111827 !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button b,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button strong {
    font-weight: 900 !important;
}
/* Stylish description editor skin v34 */
html body.writer-page .writer-upload-section #upload-form .wf-editor {
    border: 1px solid rgba(129, 140, 248, 0.34) !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(129, 140, 248, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.82)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 30px rgba(99, 102, 241, 0.16),
        0 18px 48px rgba(0, 0, 0, 0.32) !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(15, 23, 42, 0.88) !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button {
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 9px !important;
    background:
        linear-gradient(180deg, rgba(51, 65, 85, 0.92), rgba(15, 23, 42, 0.88)) !important;
    color: #e5e7eb !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 18px rgba(0, 0, 0, 0.22) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button:hover {
    border-color: rgba(203, 213, 225, 0.42) !important;
    background:
        linear-gradient(180deg, rgba(71, 85, 105, 0.94), rgba(15, 23, 42, 0.92)) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 18px rgba(0, 0, 0, 0.26) !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button.is-active,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[aria-pressed="true"] {
    border-color: rgba(196, 181, 253, 0.86) !important;
    background:
        linear-gradient(135deg, #312e81 0%, #4f46e5 52%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0 22px rgba(124, 58, 237, 0.46),
        0 10px 24px rgba(0, 0, 0, 0.32) !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[title="リンク"],
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[title="画像"] {
    font-size: 0 !important;
    color: #dbeafe !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[title="リンク"]::before,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[title="画像"]::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[title="リンク"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[title="画像"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .desc-toolbar-sep {
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.56), transparent) !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content {
    border: 1px solid rgba(226, 232, 240, 0.82) !important;
    border-radius: 0 0 12px 12px !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 28px rgba(15, 23, 42, 0.18) !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-editor {
    background: transparent !important;
    color: #0f172a !important;
}

html body.writer-page .writer-upload-section #upload-form .wf-editor-count {
    color: #64748b !important;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.82);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}

html body.writer-page .writer-upload-section #upload-form #insert-toc-btn {
    border: 1px solid rgba(167, 139, 250, 0.62) !important;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 54%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 0 20px rgba(124, 58, 237, 0.30),
        0 10px 26px rgba(0, 0, 0, 0.24) !important;
}

html body.writer-page .writer-upload-section #upload-form #insert-toc-btn:hover {
    border-color: rgba(196, 181, 253, 0.88) !important;
    filter: brightness(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 0 28px rgba(124, 58, 237, 0.42),
        0 12px 30px rgba(0, 0, 0, 0.30) !important;
}
/* Stronger bold weight v35 */
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content .ProseMirror strong,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content .ProseMirror b,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-editor strong,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-editor b {
    font-weight: 950 !important;
    text-shadow: 0 0 0.01px currentColor;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[title="太字"] b,
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button[title="太字"].is-active b {
    font-weight: 950 !important;
}

/* Article description KIF move links and fullscreen editing */
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .kif-move-link,
.kif-move-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    cursor: pointer;
    border-radius: 3px;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .kif-move-link-broken {
    color: #dc2626 !important;
    background: rgba(254, 226, 226, 0.9);
    outline: 1px solid rgba(220, 38, 38, 0.35);
}

html.desc-writing-fullscreen-open,
body.desc-writing-fullscreen-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

#desc-fullscreen-overlay {
    display: none;
}

#desc-fullscreen-overlay.is-open {
    position: fixed;
    inset: auto;
    top: var(--desc-fullscreen-top, 0px);
    left: var(--desc-fullscreen-left, 0px);
    z-index: 100000;
    display: flex;
    width: var(--desc-fullscreen-width, 100vw);
    height: var(--desc-fullscreen-height, 100dvh);
    min-width: 0;
    min-height: 0;
    background: #020617;
    overflow: hidden;
}

#desc-fullscreen-overlay #upload-desc-editor.is-writing-fullscreen {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    transform: none !important;
    border: 0;
    border-radius: 0;
    background: #020617;
    box-shadow: none;
    overflow: hidden;
}

#desc-fullscreen-overlay #upload-desc-editor #desc-custom-toolbar,
#desc-fullscreen-overlay #desc-custom-toolbar {
    position: relative;
    top: 0;
    z-index: 3;
    flex: 0 0 auto;
    flex-shrink: 0 !important;
    width: 100%;
    height: auto !important;
    min-height: 64px !important;
    padding: 10px 16px !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Keep writer workspace navigation in the same smartphone order as Home. */
@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    body.writer-page .wf-kif-workspace-actions,
    body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-workspace-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.writer-page #writer-kif-first-btn {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.writer-page #writer-kif-back-btn {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.writer-page #writer-kif-forward-btn {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    body.writer-page #writer-kif-flip-btn {
        grid-column: 4 !important;
        grid-row: 1 !important;
    }
}

#desc-fullscreen-overlay #upload-desc-editor .desc-editor-content,
#desc-fullscreen-overlay .desc-editor-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto !important;
    overflow-y: auto;
    overflow-x: hidden;
    border: 0 !important;
    border-radius: 0 !important;
}

#desc-fullscreen-overlay #upload-desc-editor .tiptap-editor,
#desc-fullscreen-overlay #upload-desc-editor .ProseMirror,
#desc-fullscreen-overlay .tiptap-editor,
#desc-fullscreen-overlay .ProseMirror {
    flex: 1 0 auto;
    width: 100% !important;
    max-width: 900px !important;
    height: auto !important;
    min-height: 100% !important;
    margin: 0 auto !important;
    padding: 36px 42px 140px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
}

#desc-fullscreen-overlay .ProseMirror img {
    max-width: 100% !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar .desc-fullscreen-btn {
    gap: 8px !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 146px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar .desc-fullscreen-btn svg {
    width: 18px !important;
    height: 18px !important;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    #desc-fullscreen-overlay #upload-desc-editor #desc-custom-toolbar,
    #desc-fullscreen-overlay #desc-custom-toolbar {
        min-height: 60px !important;
        padding: 8px 10px !important;
    }

    #desc-fullscreen-overlay #upload-desc-editor .tiptap-editor,
    #desc-fullscreen-overlay #upload-desc-editor .ProseMirror,
    #desc-fullscreen-overlay .tiptap-editor,
    #desc-fullscreen-overlay .ProseMirror {
        max-width: none !important;
        padding: 24px 16px 120px !important;
        font-size: 17px !important;
        line-height: 1.75 !important;
    }
}

/* =========================================================
   Writer form card surface final unification
   新しい記事を公開カードの背景をライター内カード基準へ統一
   ========================================================= */
html body.writer-page .writer-upload-section .wf-card,
html body.writer-page #writer-dashboard-section .writer-upload-section .wf-card {
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.84),
            rgba(8, 13, 29, 0.74)
        ) !important;
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Fullscreen editor is moved under body, outside the normal form selectors. */
#desc-fullscreen-overlay #desc-custom-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

#desc-fullscreen-overlay #desc-custom-toolbar button {
    display: inline-flex !important;
    flex: 0 0 40px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 9px !important;
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.96), rgba(15, 23, 42, 0.94)) !important;
    color: #e5e7eb !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.22) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

#desc-fullscreen-overlay #desc-custom-toolbar button:hover,
#desc-fullscreen-overlay #desc-custom-toolbar button:focus-visible {
    border-color: rgba(203, 213, 225, 0.42) !important;
    background: linear-gradient(180deg, rgba(71, 85, 105, 0.96), rgba(15, 23, 42, 0.94)) !important;
    color: #fff !important;
    outline: 2px solid rgba(203, 213, 225, 0.32) !important;
    outline-offset: 1px !important;
}

#desc-fullscreen-overlay #desc-custom-toolbar button.is-active,
#desc-fullscreen-overlay #desc-custom-toolbar button[aria-pressed="true"] {
    border-color: rgba(196, 181, 253, 0.86) !important;
    background: linear-gradient(135deg, #312e81, #4f46e5 52%, #7c3aed) !important;
    color: #fff !important;
}

#desc-fullscreen-overlay #desc-custom-toolbar svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
}

#desc-fullscreen-overlay #desc-custom-toolbar .desc-toolbar-sep {
    display: inline-block !important;
    flex: 0 0 1px !important;
    width: 1px !important;
    height: 22px !important;
    margin: 0 4px !important;
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.56), transparent) !important;
}

#desc-fullscreen-overlay #upload-desc-editor .desc-editor-content,
#desc-fullscreen-overlay #upload-desc-editor .tiptap-editor,
#desc-fullscreen-overlay #upload-desc-editor .ProseMirror {
    background: #fff !important;
}

#desc-fullscreen-overlay #upload-desc-editor .tiptap-editor,
#desc-fullscreen-overlay #upload-desc-editor .ProseMirror {
    color: #0f172a !important;
    caret-color: #2563eb !important;
    outline: 0 !important;
}

#desc-fullscreen-overlay #desc-custom-toolbar .desc-fullscreen-btn {
    gap: 8px !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 146px !important;
    padding: 0 14px !important;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    #desc-fullscreen-overlay #desc-custom-toolbar {
        padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left)) !important;
    }

    #desc-fullscreen-overlay #desc-custom-toolbar button {
        flex-basis: 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
    }

    #desc-fullscreen-overlay #desc-custom-toolbar .desc-fullscreen-btn {
        min-width: 124px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }
}

/* Description editor height and fullscreen writing surface - final. */
html body.writer-page .writer-upload-section #upload-form .wf-editor {
    height: auto !important;
    min-height: 588px !important;
}

/* Paid description boundary is a form action, separate from text formatting. */
body.writer-page .wf-paid-line-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 10px 0 0;
}

/* Editing-only paid boundary. This class is applied to the editor DOM, not saved article HTML. */
body.writer-page #upload-desc-editor .tiptap-editor > .desc-paid-line-anchor {
    position: relative;
    padding-bottom: 30px !important;
    margin-bottom: 20px !important;
    border-bottom: 4px solid #fbbf24 !important;
    animation: wf-paid-line-set 0.65s ease-out;
}

@keyframes wf-paid-line-set {
    0% { box-shadow: 0 8px 0 rgba(251, 191, 36, 0); }
    45% { box-shadow: 0 8px 20px rgba(251, 191, 36, 0.42); }
    100% { box-shadow: 0 8px 0 rgba(251, 191, 36, 0); }
}

body.writer-page #upload-desc-editor .tiptap-editor > .desc-paid-line-anchor::after {
    content: "ここより下が有料部分";
    position: absolute;
    left: 50%;
    bottom: -14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: calc(100% - 24px);
    min-height: 26px;
    padding: 2px 12px;
    transform: translateX(-50%);
    border: 1px solid #f59e0b;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.16);
    pointer-events: none;
}

body.writer-page .wf-paid-settings-dialog-box {
    max-width: 430px;
    padding: 26px;
    text-align: center;
}

body.writer-page .wf-paid-settings-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border: 1px solid rgba(251, 191, 36, 0.55);
    border-radius: 50%;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.10);
}

body.writer-page .wf-paid-settings-dialog-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.writer-page .wf-paid-settings-dialog-box h3 {
    margin: 0 0 10px;
    color: #f8fafc;
    font-size: 20px;
}

body.writer-page .wf-paid-settings-dialog-box p {
    margin: 0 0 20px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

body.writer-page .wf-paid-settings-dialog-box .wf-action-button {
    width: 100%;
}

body.writer-page .wf-paid-line-button,
body.writer-page .wf-paid-line-clear-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(100, 116, 139, 0.5);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    color: #e2e8f0;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

body.writer-page .wf-paid-line-button svg,
body.writer-page .wf-paid-line-clear-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.writer-page .wf-paid-line-button.is-active,
body.writer-page .wf-paid-line-button.has-value:not(.is-active) {
    border-color: rgba(251, 191, 36, 0.68);
    color: #fde68a;
    background: linear-gradient(180deg, rgba(120, 83, 15, 0.5), rgba(69, 45, 8, 0.56));
}

body.writer-page .wf-paid-line-clear-button {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.42);
}

body.writer-page .wf-paid-line-clear-button.hidden {
    display: none !important;
}

body.writer-page .wf-paid-line-help {
    min-width: 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

body.writer-page #upload-desc-editor.is-paid-line-selecting .ProseMirror > *,
#desc-fullscreen-overlay #upload-desc-editor.is-paid-line-selecting .ProseMirror > * {
    cursor: pointer !important;
}

body.writer-page #upload-desc-editor.is-paid-line-selecting .ProseMirror > *:hover,
#desc-fullscreen-overlay #upload-desc-editor.is-paid-line-selecting .ProseMirror > *:hover {
    outline: 2px solid rgba(251, 191, 36, 0.82) !important;
    outline-offset: 3px !important;
    background-color: rgba(251, 191, 36, 0.10) !important;
}

/* Keep every workspace tool, including Edit, on the same compact height. */
html body.writer-page .writer-upload-section #upload-form #upload-edit-btn.wf-kif-tool-button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}

body.writer-page #writer-kif-mosaic-btn.active {
    border-color: rgba(251, 191, 36, 0.70) !important;
    color: #fde68a !important;
    background: rgba(146, 64, 14, 0.34) !important;
}

body.writer-page #writer-kif-mosaic-all-btn {
    border-color: rgba(251, 191, 36, 0.42) !important;
    color: #fde68a !important;
}

body.writer-page #writer-kif-fullscreen-btn.active {
    border-color: rgba(96, 165, 250, 0.68) !important;
    color: #dbeafe !important;
    background: rgba(30, 64, 175, 0.34) !important;
}

html.writer-kif-workspace-fullscreen-open,
body.writer-page.writer-kif-workspace-fullscreen-open {
    overflow: hidden !important;
}

body.writer-page > .wf-kif-fullscreen-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: block !important;
    width: 100vw !important;
    height: 100dvh !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #030712 !important;
}

body.writer-page > .wf-kif-fullscreen-overlay.hidden {
    display: none !important;
}

body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-fullscreen-slot {
    width: 100% !important;
    height: 100% !important;
}

body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-fullscreen-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.38) !important;
    border-radius: 7px !important;
    background: rgba(15, 23, 42, 0.94) !important;
    color: #e2e8f0 !important;
    cursor: pointer !important;
}

body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-fullscreen-close svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-workspace.is-workspace-fullscreen {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #030712 !important;
    box-shadow: none !important;
}

body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-workspace-head {
    flex: 0 0 auto !important;
    padding-right: 52px !important;
}

body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-workspace-frame-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-workspace-help {
    display: none !important;
}

@media (max-width: 1180px) and (orientation: portrait) {
    body.writer-page > .wf-kif-fullscreen-overlay.is-landscape-fallback {
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: 100vw !important;
        width: 100dvh !important;
        height: 100vw !important;
        transform: rotate(90deg) !important;
        transform-origin: top left !important;
    }
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    html body.writer-page .writer-upload-section #upload-form #upload-edit-btn.wf-kif-tool-button {
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 5px !important;
        font-size: 10px !important;
    }

    body.writer-page .wf-paid-line-row {
        align-items: stretch;
        flex-wrap: wrap;
    }

    body.writer-page .wf-paid-line-button,
    body.writer-page .wf-paid-line-clear-button {
        min-height: 40px;
        padding: 0 10px;
        font-size: 12px;
    }

    body.writer-page .wf-paid-line-help {
        flex: 1 0 100%;
    }

    body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-workspace-head {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 6px 52px 6px 8px !important;
    }

    body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-workspace-title-wrap {
        flex: 0 1 180px !important;
        margin: 0 !important;
    }

    body.writer-page > .wf-kif-fullscreen-overlay .wf-kif-workspace-actions {
        flex: 1 1 auto !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Description toolbar: wrap controls instead of horizontal scrolling. */
html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar,
#desc-fullscreen-overlay #upload-desc-editor #desc-custom-toolbar,
#desc-fullscreen-overlay #desc-custom-toolbar {
    flex: 0 0 auto !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-content: center !important;
    height: auto !important;
    min-height: 59px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    white-space: normal !important;
    scrollbar-width: none !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar::-webkit-scrollbar,
#desc-fullscreen-overlay #desc-custom-toolbar::-webkit-scrollbar {
    display: none !important;
}

html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-editor {
    height: 528px !important;
    min-height: 528px !important;
}

#desc-fullscreen-overlay #upload-desc-editor .desc-editor-content {
    display: block !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    background: #030712 !important;
    scrollbar-color: rgba(100, 116, 139, 0.78) #030712;
}

#desc-fullscreen-overlay #upload-desc-editor .tiptap-editor,
#desc-fullscreen-overlay #upload-desc-editor .ProseMirror {
    display: block !important;
    width: calc(100% - 48px) !important;
    max-width: 900px !important;
    min-height: calc(100% - 48px) !important;
    margin: 0 auto 24px !important;
    padding: 44px 52px 140px !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

@media (max-width: 768px), (orientation: portrait) and (min-width: 769px) and (max-width: 1180px) {
    html body.writer-page .writer-upload-section #upload-form .wf-editor {
        height: auto !important;
        min-height: 630px !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-editor {
        height: 571px !important;
        min-height: 571px !important;
    }

    #desc-fullscreen-overlay #upload-desc-editor .desc-editor-content {
        padding: 10px 8px max(10px, env(safe-area-inset-bottom)) !important;
    }

    #desc-fullscreen-overlay #upload-desc-editor .tiptap-editor,
    #desc-fullscreen-overlay #upload-desc-editor .ProseMirror {
        width: 100% !important;
        max-width: none !important;
        min-height: calc(100% - 10px) !important;
        margin: 0 auto 10px !important;
        padding: 28px 18px 120px !important;
        border-radius: 8px !important;
    }
}

/* Keep the selected description zoom above earlier desktop/mobile font-size rules. */
html body.writer-page #upload-desc-editor .tiptap-editor,
html body.writer-page #upload-desc-editor .ProseMirror,
#desc-fullscreen-overlay #upload-desc-editor .tiptap-editor,
#desc-fullscreen-overlay #upload-desc-editor .ProseMirror {
    font-size: var(--desc-editor-font-size, 17px) !important;
}

/* Mobile writer form: expose the content directly and give the KIF tree the full canvas width. */
@media (max-width: 768px) {
    html body.writer-page .writer-upload-section .wf-scale-stage {
        padding: 0 !important;
    }

    /* Let only the article body editor use the full 390px mobile canvas. */
    html body.writer-page .writer-upload-section #upload-form .wf-editor {
        width: calc(100% + 20px) !important;
        max-width: none !important;
        margin-right: -10px !important;
        margin-left: -10px !important;
        box-sizing: border-box !important;
    }

    html body.writer-page .writer-upload-section .wf-card,
    html body.writer-page #writer-dashboard-section .writer-upload-section .wf-card {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body.writer-page .wf-kif-workspace {
        width: calc(100% + 20px) !important;
        max-width: none !important;
        margin: 12px -10px 18px !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body.writer-page .wf-kif-workspace-head {
        padding-right: 10px !important;
        padding-left: 10px !important;
        border-bottom: 0 !important;
        background: transparent !important;
    }

    html body.writer-page .wf-kif-workspace-frame-wrap {
        width: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    html body.writer-page .wf-kif-workspace-help {
        padding-right: 10px !important;
        padding-left: 10px !important;
        background: transparent !important;
    }

    html body.writer-page #edit-cancel-btn {
        display: none !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-footer-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
        align-items: stretch !important;
        gap: 6px !important;
        width: 100% !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-footer-left {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        min-width: 0 !important;
        gap: 0 !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-footer-right {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        min-width: 0 !important;
        gap: 6px !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-preview-btn,
    html body.writer-page .writer-upload-section #upload-form #upload-draft-btn,
    html body.writer-page .writer-upload-section #upload-form #upload-publish-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 4px !important;
        font-size: 13px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-preview-btn svg {
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;
    }
}

/* iPad portrait: use the native viewport width and keep the article form compact. */
@media (orientation: portrait) and (min-width: 700px) and (max-width: 1180px) {
    html body.writer-page {
        overflow-x: hidden !important;
    }

    html body.writer-page .app-shell > .writer-content-stage {
        width: 100% !important;
        height: var(--writer-content-height, auto) !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    html body.writer-page .writer-content-stage > .ok-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 14px 18px 36px !important;
        box-sizing: border-box !important;
        transform: none !important;
        transform-origin: top left !important;
    }

    html body.writer-page #writer-dashboard-section:not(.hidden) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        row-gap: 0 !important;
    }

    html body.writer-page #writer-dashboard-section > .writer-page-head {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 12px !important;
    }

    html body.writer-page #writer-dashboard-section > .writer-side-nav {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 0 12px !important;
        padding: 4px !important;
        box-sizing: border-box !important;
    }

    html body.writer-page #writer-dashboard-section .writer-side-item {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 6px !important;
        gap: 5px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }

    html body.writer-page #writer-dashboard-section .writer-side-item > span:last-child {
        display: block !important;
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body.writer-page #writer-dashboard-section .writer-side-icon,
    html body.writer-page #writer-dashboard-section .writer-side-icon svg,
    html body.writer-page #writer-dashboard-section .writer-side-item .lucide {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        flex: 0 0 16px !important;
    }

    html body.writer-page #writer-dashboard-section > .writer-dashboard-main {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 28px !important;
        box-sizing: border-box !important;
    }

    html body.writer-page #writer-dashboard-section .writer-upload-section,
    html body.writer-page #writer-dashboard-section .writer-upload-section .wf-scale-stage,
    html body.writer-page #writer-dashboard-section .writer-upload-section .wf-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    html body.writer-page #writer-dashboard-section .writer-upload-section {
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body.writer-page #writer-dashboard-section .writer-upload-section .wf-scale-stage {
        padding: 0 0 20px !important;
    }

    html body.writer-page #writer-dashboard-section .writer-upload-section .wf-card {
        min-height: 0 !important;
        padding: 22px 24px 24px !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-header {
        gap: 12px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-header-icon {
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-header-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-header-title {
        font-size: 25px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-header-desc {
        margin-top: 4px !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-divider {
        margin-top: 18px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-label {
        margin-top: 18px !important;
        font-size: 15px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-divider + .wf-label {
        margin-top: 16px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-title-wrap {
        height: 44px !important;
        margin-top: 8px !important;
        padding: 0 12px !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-title,
    html body.writer-page .writer-upload-section #upload-form #upload-title::placeholder {
        height: 42px !important;
        font-size: 15px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-title-counter {
        font-size: 12px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-editor {
        width: 100% !important;
        height: 360px !important;
        min-height: 360px !important;
        margin: 8px 0 0 !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar {
        flex: 0 0 auto !important;
        min-height: 52px !important;
        height: auto !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor #desc-custom-toolbar button,
    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .desc-image-button {
        flex: 0 0 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-content {
        min-height: 0 !important;
        overflow: auto !important;
    }

    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .tiptap-editor,
    html body.writer-page .writer-upload-section #upload-form #upload-desc-editor .ProseMirror {
        width: 100% !important;
        height: 300px !important;
        min-height: 300px !important;
        padding: 18px 64px 18px 18px !important;
        box-sizing: border-box !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-paragraph-row {
        margin-top: 10px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-paragraph-count {
        font-size: 14px !important;
    }

    html body.writer-page .writer-upload-section #upload-form #insert-toc-btn,
    html body.writer-page .writer-upload-section #upload-form .wf-paid-line-button,
    html body.writer-page .writer-upload-section #upload-form .wf-paid-line-clear-button {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-paid-line-row {
        margin-top: 10px !important;
        gap: 8px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-paid-line-help {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-grid {
        gap: 10px !important;
        margin-top: 8px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-card {
        min-height: 64px !important;
        height: 64px !important;
        padding: 0 12px !important;
        gap: 10px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-card svg {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-title {
        font-size: 15px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-input-method-sub {
        margin-top: 3px !important;
        font-size: 11px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-dropzone {
        height: 124px !important;
        margin-top: 10px !important;
        padding: 8px 12px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-dropzone-icon {
        margin-bottom: 4px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-dropzone-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-dropzone-main {
        font-size: 14px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-file-source-actions {
        gap: 8px !important;
        margin-top: 4px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-file-source-actions .wf-file-select-button {
        width: auto !important;
        min-height: 34px !important;
        height: 34px !important;
        margin-top: 0 !important;
        padding: 0 14px !important;
        font-size: 12px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-category-tabs {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-top: 9px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-category-tab {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-strategy-selected {
        gap: 6px !important;
        margin-top: 9px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-strategy-selected-pill,
    html body.writer-page .writer-upload-section #upload-form .wf-strategy-chip {
        min-height: 30px !important;
        height: 30px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-strategy-remove {
        margin-left: 5px !important;
        font-size: 15px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-strategy-panel {
        max-height: 260px !important;
        margin-top: 8px !important;
        padding: 12px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        border-radius: 8px !important;
        scrollbar-width: thin;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-strategy-main-title {
        margin-bottom: 9px !important;
        font-size: 16px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-strategy-group-title {
        margin: 10px 0 6px !important;
        font-size: 13px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-strategy-chip-wrap {
        gap: 6px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-custom-strategy-row {
        gap: 8px !important;
        margin-top: 9px !important;
    }

    html body.writer-page .writer-upload-section #upload-form #writer-custom-strategy,
    html body.writer-page .writer-upload-section #upload-form #writer-add-custom-strategy {
        min-height: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
    }

    html body.writer-page .writer-upload-section #upload-form #writer-add-custom-strategy {
        padding: 0 16px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-price-input {
        min-height: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-footer-actions {
        width: 100% !important;
        margin-top: 20px !important;
        gap: 8px !important;
    }

    html body.writer-page .writer-upload-section #upload-form .wf-action-button {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 14px !important;
        font-size: 13px !important;
    }
}

