/* Journal submit (SPA) — same author portal look inside public journal chrome */
.journal-submit-portal {
    font-family: 'Cairo', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.journal-submit-portal .submission-form {
    max-width: none;
}

/* Author portal — design system */
.author-shell {
    --accent: #1e3a8a;
    --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
    --accent-line: color-mix(in srgb, var(--accent) 28%, white);
}

.author-shell,
.author-shell body,
.author-shell button,
.author-shell input,
.author-shell select,
.author-shell textarea {
    font-family: 'Cairo', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.author-shell nav[role="navigation"] a,
.author-shell .pagination {
    font-family: 'Cairo', system-ui, sans-serif;
}

.author-input,
.author-select,
.author-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e5e4;
    background: #fff;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.author-input:focus,
.author-select:focus,
.author-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.author-input:disabled {
    background: #f5f5f4;
    color: #737373;
    cursor: not-allowed;
}

.author-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: 0.375rem;
}
.submission-form .author-label-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.375rem;
}
.submission-form .author-label-row .author-label {
    margin-bottom: 0;
}

.author-card {
    background: #fff;
    border: 1px solid #e5e5e4;
    border-radius: 1rem;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #e5e5e4;
    background: #fff;
    color: #737373;
}

.author-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 0.625rem;
    border: 1px solid transparent;
    transition: opacity 0.15s, background 0.15s;
    white-space: nowrap;
}
.author-btn:hover:not(:disabled) { filter: brightness(1.05); }
.author-btn:active:not(:disabled) { transform: translateY(1px); }
.author-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.author-btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 32%, transparent);
}
.author-btn-secondary {
    background: #fff;
    border-color: #d4d4d4;
    color: #0a0a0a;
}
.author-btn-secondary:hover:not(:disabled) {
    background: #fafafa;
    border-color: #a3a3a3;
}
.author-btn-ghost {
    background: transparent;
    border-color: #e5e5e4;
    color: #404040;
}
.author-btn-ghost:hover:not(:disabled) {
    background: #fafafa;
    border-color: #d4d4d4;
}
.sf-draft-banner {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(90deg, #f8fafc, #fff);
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.5;
}
.author-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}
.author-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* Journal / author submission form */
.submission-form .author-field {
    width: 100%;
}
.submission-form .sf-ethics {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #f8fafc;
}
.submission-form .sf-ethics-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}
.submission-form .sf-ethics-help {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.9rem;
    line-height: 1.55;
}
.submission-form .sf-ethics-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--accent, #1e3a8a);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.submission-form .sf-ethics-link.is-opened {
    color: #15803d;
}
.submission-form .sf-ethics-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
}
.submission-form .sf-ethics-check input {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    flex-shrink: 0;
    accent-color: var(--accent, #1e3a8a);
}
.submission-form .sf-ethics-check.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.submission-form .sf-section-head {
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: #fff;
}
.submission-form .sf-section-head h2 {
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.submission-form .sf-section-head p {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    opacity: 0.9;
}
.submission-form .sf-body {
    padding: 1.5rem;
}
@media (min-width: 640px) {
    .submission-form .sf-body { padding: 2rem; }
}
.submission-form .sf-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 1rem 1rem;
}
.submission-form .sf-progress-track {
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.submission-form .sf-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.25s ease;
}
.submission-form .sf-stepper {
    display: flex;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.submission-form .sf-step {
    flex: 1;
    position: relative;
    min-width: 0;
}
.submission-form .sf-step-line {
    position: absolute;
    top: 1.125rem;
    inset-inline-start: calc(50% + 1.15rem);
    inset-inline-end: calc(-50% + 1.15rem);
    height: 2px;
    background: #e5e7eb;
    pointer-events: none;
}
.submission-form .sf-step-line.is-done {
    background: var(--accent);
}
.submission-form .sf-step-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;
    position: relative;
    z-index: 2;
}
.submission-form .sf-step-btn:disabled {
    cursor: default;
}
.submission-form .sf-step.is-clickable .sf-step-btn:hover .sf-step-num {
    filter: brightness(1.08);
}
.submission-form .sf-step.is-clickable .sf-step-btn:hover .sf-step-label {
    text-decoration: underline;
}
.submission-form .sf-step-num {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid #d4d4d4;
    background: #fff;
    color: #737373;
    position: relative;
    z-index: 1;
}
.submission-form .sf-step.is-current .sf-step-num,
.submission-form .sf-step.is-done .sf-step-num {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.submission-form .sf-step-label {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: #737373;
    line-height: 1.3;
}
.submission-form .sf-step.is-current .sf-step-label {
    color: var(--accent);
}
.submission-form .sf-step.is-done .sf-step-label {
    color: #171717;
}
.submission-form .sf-review-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    background: #fafafa;
}
.submission-form .sf-review-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: 0.2rem;
}
.submission-form .sf-review-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #171717;
    word-break: break-word;
}
.submission-form label[for="file-upload"] {
    cursor: pointer;
}
.submission-form .sf-dropzone {
    position: relative;
    border: 2px dashed #d4d4d4;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.submission-form .sf-dropzone:hover,
.submission-form .sf-dropzone.is-dragging {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, white);
}

.author-alert-success {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.875rem;
    font-weight: 500;
}

.author-nav-drawer {
    top: 3.5rem;
    height: calc(100vh - 3.5rem);
    height: calc(100dvh - 3.5rem);
}

.author-notification-unread {
    background: color-mix(in srgb, var(--accent) 6%, white);
    border-inline-start: 3px solid var(--accent);
}

.author-step-line {
    flex: 1;
    height: 2px;
    border-radius: 1px;
    margin: 0 0.75rem;
}

.author-alert-warning {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-complete-card {
    background: #fff;
    border: 1px solid #e5e5e4;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}
.profile-complete-card--alert {
    border-color: #fecaca;
    background: #fef2f2;
}
.profile-complete-card--warn {
    border-color: #fde68a;
    background: #fffbeb;
}
.profile-complete-card--complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.profile-ring {
    --pct: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--accent) calc(var(--pct) * 1%), #e5e5e4 0);
    position: relative;
}
.profile-ring::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    background: #fff;
}
.profile-ring span {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0a0a0a;
}
.profile-ring--sm {
    width: 3rem;
    height: 3rem;
}
.profile-ring--sm span {
    font-size: 0.65rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.author-shell .ts-wrapper.single .ts-control {
    padding: 0.65rem 1rem;
    border-radius: 0.625rem;
    border: 1px solid #e5e5e4;
    background: #fff;
    font-size: 0.875rem;
    min-height: 2.75rem;
    box-shadow: none;
}
.author-shell .ts-wrapper.single.input-active .ts-control,
.author-shell .ts-wrapper.focus .ts-control {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.author-shell .ts-dropdown {
    z-index: 80;
    border: 1px solid #e5e5e4;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    font-family: 'Cairo', system-ui, sans-serif;
}
.author-shell .ts-dropdown .optgroup-header {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #737373;
    background: #fafafa;
    padding: 0.5rem 0.75rem;
}
.author-shell .ts-dropdown .option {
    padding: 0.55rem 0.75rem;
}
.author-shell .ts-dropdown .option.active,
.author-shell .ts-dropdown .option.selected {
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: #0a0a0a;
}
.author-shell .ts-dropdown .dropdown-input-wrap {
    padding: 0.5rem;
    border-bottom: 1px solid #e5e5e4;
}
.author-shell .ts-dropdown .dropdown-input {
    width: 100%;
    border: 1px solid #e5e5e4;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
}
.author-shell .ts-wrapper.plugin-dropdown_input .dropdown-input {
    font-size: 0.875rem;
}

.submission-form .sf-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 1.5px solid color-mix(in srgb, var(--accent) 45%, #d4d4d4);
    background: color-mix(in srgb, var(--accent) 10%, #fff);
    color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.submission-form .sf-help-btn:hover,
.submission-form .sf-help-btn:focus-visible {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
    outline: none;
}
.submission-form .sf-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
}
.submission-form .sf-help-modal {
    width: min(100%, 32rem);
    max-height: min(88vh, 40rem);
    overflow: auto;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    border: 1px solid #e5e7eb;
}
.submission-form .sf-help-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, #0f172a) 100%);
    color: #fff;
}
.submission-form .sf-help-modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: rgba(255,255,255,.16);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.submission-form .sf-help-modal-body {
    padding: 1.15rem 1.25rem 1.35rem;
}
.submission-form .sf-help-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.consent-actions {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .consent-actions {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    .consent-or {
        display: none;
    }
}
.consent-or {
    margin: 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #737373;
}
.consent-choice {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 1.15rem;
    border: 2px solid #e5e7eb;
    padding: 1.15rem 1.2rem 1.25rem;
    background: #fff;
}
.consent-choice--approve {
    border-color: color-mix(in srgb, var(--accent, #1e3a8a) 35%, #e5e7eb);
    background: color-mix(in srgb, var(--accent, #1e3a8a) 6%, #fff);
}
.consent-choice--decline {
    border-color: #fecaca;
    background: #fef2f2;
}
.consent-choice-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.consent-choice-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    flex-shrink: 0;
}
.consent-choice--approve .consent-choice-icon {
    background: var(--accent, #1e3a8a);
}
.consent-choice--decline .consent-choice-icon {
    background: #dc2626;
}
.consent-choice-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0a0a0a;
    line-height: 1.3;
}
.consent-choice--decline .consent-choice-title {
    color: #991b1b;
}
.consent-choice-help {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #525252;
}
.consent-choice--decline .consent-choice-help {
    color: #b91c1c;
}
.consent-confirm {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #404040;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 0.85rem 0.95rem;
}
.consent-decline-fields {
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 0.85rem;
    padding: 0.95rem;
}
.consent-decline-note {
    width: 100%;
    border: 2px solid #fecaca;
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0a0a0a;
    min-height: 7.5rem;
    resize: vertical;
}
.consent-decline-note:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.consent-choice-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0.8rem 1.25rem;
    border: 0;
    border-radius: 0.8rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}
.consent-choice-submit--decline {
    background: #dc2626;
}
.consent-choice-submit--decline:hover {
    background: #b91c1c;
}

@media (max-width: 1023px) {
    .author-main-pad {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
}
