.edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.edit-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    margin: 0 0 0.35rem;
    color: var(--copy-quiet);
}

.edit-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.edit-meta {
    margin: 0;
    color: var(--copy-soft);
    font-size: 0.95rem;
    font-style: italic;
}

.edit-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 0.75rem;
}

.edit-form {
    display: grid;
    gap: 1.25rem;
}

.edit-card {
    background: var(--editor-bg);
    border: 1px solid var(--support-frame-soft);
    border-radius: 20px;
    padding: 1.25rem 1.25rem;
    box-shadow: 0 18px 38px var(--shadow-low);
}

.edit-card__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.edit-label {
    display: block;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.35rem;
    color: var(--copy-max);
}

.edit-help {
    margin: 0;
    font-size: 0.9rem;
    color: var(--editor-help-tone);
}

.edit-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--support-frame-soft);
    background: var(--editor-field-surface);
    color: var(--copy-max);
    padding: 0.8rem 0.95rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.edit-input:focus {
    border-color: var(--support-frame);
    box-shadow: 0 0 0 4px var(--support-halo);
}

.edit-textarea {
    width: 100%;
    min-height: 52vh;
    border-radius: 16px;
    border: 1px solid var(--support-frame-soft);
    background: var(--editor-field-surface);
    color: var(--copy-max);
    padding: 1rem 1.05rem;
    font-size: 1rem;
    line-height: 1.65;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.edit-textarea:focus {
    border-color: var(--support-frame);
    box-shadow: 0 0 0 4px var(--support-halo);
}

.edit-footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    justify-content: flex-end;
}

.publish-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.publish-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.publish-toggle__ui {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-press);
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex: 0 0 auto;
}

.publish-toggle__ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--copy-strong);
    box-shadow: 0 10px 18px var(--shadow-mid);
    transition: transform 0.15s ease, background 0.15s ease;
}

.publish-toggle input:checked + .publish-toggle__ui {
    background: var(--accent-wash-hot);
    border-color: var(--accent-shadow-strong);
}

.publish-toggle input:checked + .publish-toggle__ui::after {
    transform: translateX(18px);
    background: var(--editor-note-surface);
}

.publish-toggle__label {
    color: var(--copy-peak);
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .edit-header {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-actions {
        justify-content: flex-start;
    }

    .edit-card__row {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-footer {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }
}
