.sds-wrap {
    box-sizing: border-box;
    color: #1f2933;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 860px;
    overflow-x: hidden;
    width: 100%;
}

.sds-wrap *,
.sds-wrap *::before,
.sds-wrap *::after {
    box-sizing: border-box;
}

.sds-form,
.sds-panel,
.sds-document {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    margin: 0 0 24px;
    padding: 24px;
}

.sds-form p {
    margin: 0 0 18px;
}

.sds-form label,
.sds-signature-field > label {
    color: #243b53;
    display: block;
    font-weight: 700;
    margin: 0 0 7px;
}

.sds-form input,
.sds-form select,
.sds-form textarea,
.sds-form .wp-editor-area {
    border: 1px solid #bcccdc;
    border-radius: 6px;
    color: #102a43;
    display: block;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    max-width: 100%;
    padding: 10px 12px;
    width: 100%;
}

.sds-form button {
    font-size: 16px;
}

.sds-form textarea {
    min-height: 240px;
    resize: vertical;
}

.sds-editor-field {
    margin: 0 0 18px;
}

.sds-editor-field .wp-editor-wrap,
.sds-editor-field .wp-editor-container,
.sds-editor-field .mce-tinymce,
.sds-editor-field iframe,
.sds-editor-field textarea {
    max-width: 100%;
}

.sds-editor-field .wp-editor-container {
    border: 1px solid #bcccdc;
}

.sds-editor-field .wp-editor-tabs,
.sds-editor-field .wp-switch-editor {
    display: none !important;
}

.sds-editor-field .mce-toolbar-grp,
.sds-editor-field .quicktags-toolbar {
    max-width: 100%;
    overflow-x: auto;
}

.sds-editor-field .mce-toolbar .mce-btn button,
.sds-editor-field .mce-toolbar .mce-btn button:hover,
.sds-editor-field .mce-toolbar .mce-btn button:focus {
    box-shadow: none;
    min-height: 32px;
    width: auto;
}

.sds-help {
    color: #627d98;
    display: block;
    font-size: 14px;
    margin-top: 6px;
}

.sds-button {
    align-items: center;
    background: #0f766e;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    text-decoration: none;
}

.sds-button:hover,
.sds-button:focus {
    background: #115e59;
    color: #fff;
}

.sds-button-secondary {
    background: #52616f;
}

.sds-button-secondary:hover,
.sds-button-secondary:focus {
    background: #334e68;
}

.sds-button-danger {
    background: #b42318;
}

.sds-button-danger:hover,
.sds-button-danger:focus {
    background: #8f1d14;
}

.sds-notice {
    border-radius: 6px;
    margin: 0 0 20px;
    padding: 12px 14px;
}

.sds-notice-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.sds-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.sds-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sds-link-list li {
    border-top: 1px solid #e6edf5;
    display: grid;
    gap: 4px;
    padding: 12px 0;
}

.sds-link-list li:first-child {
    border-top: 0;
}

.sds-link-list a {
    overflow-wrap: anywhere;
}

.sds-document h1 {
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 18px;
}

.sds-document-text {
    overflow-wrap: anywhere;
}

.sds-signature-field {
    margin: 0 0 20px;
}

.sds-signature-pad {
    background: #fff;
    border: 2px solid #9fb3c8;
    border-radius: 8px;
    display: block;
    height: 220px;
    touch-action: none;
    max-width: 100%;
    width: 100%;
}

.sds-signature-actions {
    margin-top: 10px;
}

.sds-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sds-account-note {
    color: #52616f;
    text-align: center;
}

.sds-dashboard-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 20px;
}

.sds-dashboard-header h2 {
    margin: 0;
}

.sds-dashboard-list {
    display: grid;
    gap: 16px;
}

.sds-dashboard-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 20px;
}

.sds-dashboard-card h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

.sds-dashboard-card p {
    color: #52616f;
    margin: 0 0 4px;
}

.sds-dashboard-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sds-dashboard-actions form {
    margin: 0;
}

@media (max-width: 640px) {
    .sds-form input,
    .sds-form textarea,
    .sds-form select,
    .sds-form button,
    .sds-form .wp-editor-area {
        font-size: 16px !important;
    }

    .sds-form,
    .sds-panel,
    .sds-document {
        border-radius: 6px;
        padding: 16px;
    }

    .sds-document h1 {
        font-size: 24px;
    }

    .sds-button {
        width: 100%;
    }

    .sds-account-actions,
    .sds-dashboard-header,
    .sds-dashboard-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sds-dashboard-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .sds-signature-pad {
        height: 170px;
    }
}
