:root {
    --doi-blue: #1778c8;
    --doi-accent-red: #e44854;
    --doi-blue-dark: #0b3768;
    --doi-navy: #09243f;
    --doi-sky: #eaf6ff;
    --doi-ink: #182335;
    --doi-muted: #738195;
    --doi-line: #e4ebf3;
    --doi-card: #ffffff;
    --doi-shadow: 0 18px 45px rgba(15, 50, 85, 0.12);
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--doi-ink);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

.doi-auth-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.9), transparent 28%),
        linear-gradient(135deg, #dff4ff 0%, #eff9ff 42%, #c8eaff 100%);
    min-height: 100vh;
}

.doi-auth-wrap {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 54px);
    padding: 36px 18px 20px;
}

.doi-login-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    box-shadow: var(--doi-shadow);
    max-width: 460px;
    padding: 34px;
    width: 100%;
}

.doi-login-brand {
    text-align: center;
}

.doi-login-logo {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 120px;
    max-width: 420px;
    object-fit: contain;
    width: 100%;
}

.doi-login-brand strong {
    color: var(--doi-blue-dark);
    display: block;
    font-size: 15px;
    margin-top: 12px;
}

.doi-version-pill {
    background: #eaf4ff;
    border: 1px solid #c9e4fb;
    border-radius: 999px;
    color: var(--doi-blue-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    padding: 5px 12px;
}

.doi-login-card .form-control {
    background: #f7fbff;
    border: 1px solid #dbe9f6;
    border-radius: 10px;
    color: var(--doi-ink);
    min-height: 46px;
    padding-left: 14px;
}

.doi-login-turnstile {
    background: #f4f9ff;
    border: 1px solid #dbe9f6;
    border-radius: 10px;
    padding: 12px;
}

.doi-login-turnstile label {
    color: var(--doi-blue-dark);
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.doi-primary-btn {
    background: linear-gradient(135deg, #1b88d5, #0c4d8e);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(23, 120, 200, 0.28);
    color: #fff;
    font-weight: 700;
    min-height: 46px;
}

.doi-login-links,
.doi-login-lang {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.doi-logo-strip {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    margin-top: 24px;
    max-width: 820px;
    width: 100%;
}

.doi-logo-tile {
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 50, 85, 0.08);
    display: flex;
    justify-content: center;
    min-height: 78px;
    padding: 12px;
}

.doi-logo-tile img {
    max-height: 42px;
    max-width: 150px;
    object-fit: contain;
}

.doi-app-frame {
    background: #f3f6fa;
    display: flex;
    min-height: 100vh;
}

.doi-sidebar {
    background: linear-gradient(180deg, #111a27 0%, #08111d 100%);
    box-shadow: 10px 0 30px rgba(3, 10, 18, 0.22);
    color: #dcecff;
    flex: 0 0 272px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 272px;
    z-index: 20;
}

.doi-sidebar-brand {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 12px;
    min-height: 84px;
    padding: 16px 20px;
}

.doi-sidebar-logo {
    background: #fff;
    border-radius: 10px;
    display: block;
    height: auto;
    max-height: 52px;
    max-width: 150px;
    object-fit: contain;
    padding: 6px;
    width: auto;
}

.doi-sidebar-brand span {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.doi-logo-fallback {
    color: #fff;
    display: inline-flex;
    font-weight: 800;
}

.doi-sidebar-nav {
    padding: 14px 12px 24px;
}

.doi-nav-link,
.doi-nav-children a {
    align-items: center;
    border-left: 3px solid transparent;
    border-radius: 10px;
    color: #d6deea;
    display: flex;
    gap: 12px;
    padding: 11px 12px;
}

.doi-nav-link i {
    font-size: 20px;
    width: 22px;
}

.doi-nav-group.is-active .doi-nav-link,
.doi-nav-link:hover,
.doi-nav-children a:hover {
    background: rgba(23,120,200,0.18);
    border-left-color: var(--doi-accent-red);
    color: #fff;
}

.doi-nav-children {
    margin: 2px 0 8px 42px;
}

.doi-nav-children a {
    align-items: center;
    color: #b9d5f2;
    display: flex;
    gap: 8px;
    font-size: 13px;
    padding: 7px 10px;
}

.doi-nav-children i {
    font-size: 15px;
    width: 18px;
}

.doi-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-left: 272px;
    min-width: 0;
}

.doi-topbar {
    align-items: center;
    background: linear-gradient(135deg, #1277c5, #0a3b6f);
    box-shadow: 0 12px 32px rgba(7, 48, 90, 0.16);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 28px;
}

.doi-header-brand {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 10px;
    min-width: 180px;
}

.doi-header-logo {
    background: rgba(255,255,255,0.96);
    border-radius: 8px;
    display: block;
    height: auto;
    max-height: 34px;
    max-width: 110px;
    object-fit: contain;
    padding: 4px 6px;
    width: auto;
}

.doi-header-brand span {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.doi-tenant strong,
.doi-tenant span {
    display: block;
}

.doi-tenant span {
    color: #cde8ff;
    font-size: 13px;
    margin-top: 3px;
}

.doi-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.doi-credit-badge,
.doi-lang,
.doi-profile-link {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: #fff;
    padding: 7px 12px;
}

.doi-lang.active {
    background: #fff;
    color: var(--doi-blue-dark);
    font-weight: 700;
}

.doi-mobile-menu {
    background: rgba(255,255,255,0.16);
    border: 0;
    border-radius: 10px;
    color: #fff;
    display: none;
    height: 42px;
    width: 42px;
}

.doi-content {
    flex: 1;
    padding: 30px;
}

.doi-content > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    width: 100%;
}

.doi-page-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.doi-page-title span {
    color: var(--doi-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doi-page-title h1 {
    color: var(--doi-ink);
    font-size: 28px;
    margin: 4px 0 0;
}

.panel,
.doi-panel,
.doi-card {
    background: var(--doi-card);
    border: 1px solid var(--doi-line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 50, 85, 0.07);
    margin-bottom: 20px;
    padding: 20px;
}

.doi-form-section {
    background: #fff;
    border: 1px solid var(--doi-line);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 50, 85, 0.07);
    margin: 26px 0;
    padding: 24px;
}

.doi-form-section legend {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #d9eafb;
    border-radius: 999px;
    color: var(--doi-blue-dark);
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    width: auto;
}

.doi-form-section legend i {
    color: var(--doi-blue);
    font-size: 20px;
}

.doi-form-section .form-group label {
    color: #344256;
    font-weight: 700;
}

.doi-stats-grid,
.stats {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 22px;
}

.doi-stat-card,
.stat {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--doi-line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 50, 85, 0.08);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.doi-stat-card::after {
    background: linear-gradient(135deg, rgba(23,120,200,0.12), rgba(23,120,200,0));
    border-radius: 999px;
    content: "";
    height: 120px;
    position: absolute;
    right: -42px;
    top: -42px;
    width: 120px;
}

.doi-stat-icon {
    align-items: center;
    background: #eaf4ff;
    border-radius: 12px;
    color: var(--doi-blue);
    display: flex;
    font-size: 24px;
    height: 48px;
    justify-content: center;
    margin-bottom: 14px;
    width: 48px;
}

.doi-stat-card strong,
.stat strong {
    color: var(--doi-navy);
    display: block;
    font-size: 32px;
    line-height: 1;
}

.doi-stat-card span,
.stat span {
    color: var(--doi-muted);
    display: block;
    font-size: 13px;
    margin-top: 8px;
}

.doi-two-col {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.doi-table {
    width: 100%;
}

.doi-table th {
    border-top: 0;
    color: #526174;
    font-size: 12px;
    text-transform: uppercase;
}

.doi-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
}

.doi-status-draft,
.doi-status-imported {
    background: #eef3f8;
    color: #516173;
}

.doi-status-ready,
.doi-status-update_ready {
    background: #fff6df;
    color: #936000;
}

.doi-status-submitted {
    background: #e8f3ff;
    color: #1264aa;
}

.doi-status-registered,
.doi-status-updated {
    background: #e7f8ee;
    color: #14743a;
}

.doi-status-failed {
    background: #ffe9e7;
    color: #b33125;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doi-panel .form-control,
.doi-entry-form input.form-control,
.doi-entry-form textarea.form-control,
.doi-entry-form select.form-control {
    background-color: #fff;
    border: 1px solid #d8e3ee;
    border-radius: 9px;
    color: #111827;
    line-height: 1.45;
    min-height: 44px;
    opacity: 1;
    -webkit-text-fill-color: #111827;
}

.doi-panel textarea.form-control,
.doi-entry-form textarea.form-control {
    min-height: 120px;
    padding-top: 12px;
}

.doi-panel .form-control:focus,
.doi-entry-form input.form-control:focus,
.doi-entry-form textarea.form-control:focus,
.doi-entry-form select.form-control:focus {
    background-color: #fff;
    border-color: var(--doi-blue);
    box-shadow: 0 0 0 3px rgba(23, 120, 200, 0.12);
    color: #111827;
    outline: 0;
    -webkit-text-fill-color: #111827;
}

.doi-panel .form-control::placeholder,
.doi-entry-form input.form-control::placeholder,
.doi-entry-form textarea.form-control::placeholder {
    color: #9aa3af;
    opacity: 1;
    -webkit-text-fill-color: #9aa3af;
}

.doi-panel .form-control::-webkit-input-placeholder,
.doi-entry-form input.form-control::-webkit-input-placeholder,
.doi-entry-form textarea.form-control::-webkit-input-placeholder {
    color: #9aa3af;
}

.doi-panel .form-control::-moz-placeholder,
.doi-entry-form input.form-control::-moz-placeholder,
.doi-entry-form textarea.form-control::-moz-placeholder {
    color: #9aa3af;
    opacity: 1;
}

.doi-panel .form-control:-ms-input-placeholder,
.doi-entry-form input.form-control:-ms-input-placeholder,
.doi-entry-form textarea.form-control:-ms-input-placeholder {
    color: #9aa3af;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.title-input-wrap .form-control {
    font-size: 18px;
    font-weight: 700;
    min-height: 54px;
}

.journal-summary {
    background: #f7fbff;
    border: 1px solid #d8e8f7;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0 0 18px;
    padding: 14px;
}

.journal-summary label {
    color: var(--doi-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.journal-summary .form-control[readonly] {
    background: #fff;
    color: var(--doi-ink);
    cursor: default;
}

.doi-contributor-row.is-hidden {
    display: none;
}

.btn-icon {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.doi-suggestion {
    align-items: center;
    background: linear-gradient(135deg, #eef7ff, #ffffff);
    border: 1px solid #cce4f8;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.doi-suggestion span {
    color: var(--doi-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.doi-suggestion button {
    border-radius: 9px;
    font-weight: 800;
}

.doi-suggestion strong {
    color: var(--doi-blue-dark);
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.section-help {
    color: var(--doi-muted);
    margin: 0 0 12px;
}

.reference-example {
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 13px;
    padding: 12px 14px;
}

.reference-example summary,
.doi-advanced-fields summary {
    color: var(--doi-blue-dark);
    cursor: pointer;
    font-weight: 800;
}

.reference-example p {
    margin: 7px 0 0;
}

.section-title {
    align-items: center;
    color: var(--doi-blue-dark);
    display: flex;
    font-size: 18px;
    gap: 8px;
    margin: 0 0 16px;
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    margin-top: 8px;
}

.required-mark {
    background: transparent;
    border-radius: 0;
    color: #b42330;
    display: inline;
    font-size: 16px;
    font-weight: 700;
    margin-left: 4px;
    padding: 0;
}

.field-error {
    color: #c9303c;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

.form-control.is-invalid {
    border-color: #e44854;
    box-shadow: 0 0 0 3px rgba(228, 72, 84, 0.1);
}

.doi-tabs {
    border-bottom: 1px solid var(--doi-line);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.doi-tabs a {
    border-radius: 10px 10px 0 0;
    color: var(--doi-muted);
    font-weight: 700;
    padding: 11px 14px;
}

.doi-tabs a.active {
    background: #eaf4ff;
    color: var(--doi-blue-dark);
}

.doi-workspace {
    padding-bottom: 88px;
}

.doi-steps {
    background: #fff;
    border: 1px solid var(--doi-line);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 50, 85, 0.06);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 24px;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 8;
}

.doi-steps a {
    align-items: center;
    border-radius: 10px;
    color: #526174;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
}

.doi-steps a span {
    align-items: center;
    background: #eef3f8;
    border-radius: 999px;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.doi-steps a.active,
.doi-steps a:hover {
    background: #eaf4ff;
    color: var(--doi-blue-dark);
}

.doi-steps a.active span,
.doi-steps a:hover span {
    background: var(--doi-blue);
    color: #fff;
}

.doi-section-heading {
    align-items: flex-start;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    gap: 12px;
    margin: -2px 0 20px;
    padding-bottom: 16px;
}

/* Make each step of the new DOI form unmistakable, including in dark mode. */
.doi-entry-form .doi-form-section {
    border: 2px solid #b9d2ee;
    border-left: 7px solid #2474bd;
    margin: 28px 0;
    padding: 24px;
}

.doi-entry-form .doi-form-section:nth-of-type(even) {
    border-color: #b9dfd4;
    border-left-color: #17876b;
}

.doi-entry-form .doi-section-heading {
    background: #eaf4ff;
    border: 0;
    border-radius: 8px;
    margin: -6px -6px 22px;
    padding: 16px;
}

.doi-entry-form .doi-form-section:nth-of-type(even) .doi-section-heading {
    background: #e7f6f0;
}

html[data-doi-theme="dark"] .doi-entry-form .doi-form-section {
    border-color: #416b96;
    border-left-color: #79b9f3;
}

html[data-doi-theme="dark"] .doi-entry-form .doi-form-section:nth-of-type(even) {
    border-color: #3b7769;
    border-left-color: #6bd4ae;
}

html[data-doi-theme="dark"] .doi-entry-form .doi-section-heading {
    background: #233e5b;
}

html[data-doi-theme="dark"] .doi-entry-form .doi-form-section:nth-of-type(even) .doi-section-heading {
    background: #21473f;
}

.doi-section-heading h2 {
    color: var(--doi-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.doi-section-heading p {
    color: var(--doi-muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.doi-section-heading-actions {
    align-items: center;
}

.doi-section-heading-actions > div:nth-child(2) {
    flex: 1;
}

.doi-section-icon {
    align-items: center;
    background: #eaf4ff;
    border-radius: 12px;
    color: var(--doi-blue);
    display: flex;
    flex: 0 0 42px;
    font-size: 22px;
    height: 42px;
    justify-content: center;
}

.doi-small-control {
    max-width: 190px;
}

.doi-author-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doi-choice-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 18px;
}

.doi-choice-card {
    background: #fbfdff;
    border: 1px solid #dfeaf5;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    min-height: 96px;
    padding: 16px;
}

.doi-choice-card input {
    margin-right: 8px;
}

.doi-choice-card strong {
    color: var(--doi-navy);
    display: inline-block;
    font-size: 15px;
}

.doi-choice-card span {
    color: var(--doi-muted);
    display: block;
    font-size: 13px;
    margin: 8px 0 0 25px;
}

.doi-import-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doi-inline-check {
    align-items: center;
    color: var(--doi-muted);
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    margin-top: 8px;
}

.doi-author-card {
    background: #fbfdff;
    border: 1px solid #e2ecf5;
    border-radius: 12px;
    padding: 16px;
}

.doi-author-card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.doi-author-card-head strong {
    color: var(--doi-navy);
    font-size: 15px;
}

.doi-author-card-head span,
.orcid-status,
.doi-availability {
    background: #eef3f8;
    border-radius: 999px;
    color: #526174;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.orcid-status {
    margin-left: 6px;
    padding: 3px 8px;
}

.orcid-status.is-ok,
.doi-availability.is-ok {
    background: #e7f8ee;
    color: #14743a;
}

.orcid-status.is-bad,
.doi-availability.is-bad {
    background: #ffe9e7;
    color: #b33125;
}

.doi-availability {
    align-self: end;
    justify-self: start;
    min-height: 28px;
}

.doi-advanced-fields {
    border-top: 1px dashed #dce7f2;
    margin-top: 12px;
    padding-top: 10px;
}

.doi-advanced-fields .form-group {
    margin-top: 12px;
}

.doi-advanced-url {
    opacity: 0.88;
}

.doi-action-bar {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--doi-line);
    border-radius: 14px;
    bottom: 18px;
    box-shadow: 0 16px 40px rgba(15, 50, 85, 0.16);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 28px auto 0;
    max-width: 1400px;
    padding: 12px;
    position: sticky;
    z-index: 12;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.doi-footer {
    align-items: center;
    color: #738195;
    display: flex;
    gap: 8px;
    justify-content: center;
    min-height: 54px;
    padding: 0 18px;
}

@media (max-width: 980px) {
    .doi-sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .doi-sidebar-open .doi-sidebar {
        transform: translateX(0);
    }
    .doi-main {
        margin-left: 0;
    }
    .doi-mobile-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .doi-two-col,
    .doi-logo-strip {
        grid-template-columns: 1fr;
    }
    .doi-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .doi-login-logo {
        max-width: 280px;
    }
    .doi-header-brand {
        min-width: 0;
    }
    .doi-header-logo {
        max-width: 90px;
    }
    .doi-content {
        padding: 18px;
    }
    .doi-steps,
    .doi-author-grid,
    .form-grid-two {
        grid-template-columns: 1fr;
    }
    .doi-steps {
        position: static;
    }
    .doi-section-heading-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .doi-action-bar {
        bottom: 10px;
        justify-content: stretch;
    }
    .doi-action-bar .btn {
        flex: 1 1 100%;
    }
}

/* Corporate navigation refresh */
:root {
    --doi-shell-bg: #f5f7fb;
    --doi-sidebar-bg: #101827;
    --doi-sidebar-bg-2: #0b1220;
    --doi-sidebar-text: #c8d2df;
    --doi-sidebar-muted: #8996aa;
    --doi-admin-accent: #d1485f;
    --doi-customer-accent: #2aa6a1;
    --doi-focus-ring: rgba(42, 166, 161, 0.18);
}

.doi-app-frame {
    background:
        linear-gradient(180deg, #f8fafc 0%, var(--doi-shell-bg) 100%);
}

.doi-sidebar {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), transparent 26%),
        linear-gradient(180deg, var(--doi-sidebar-bg) 0%, var(--doi-sidebar-bg-2) 100%);
    box-shadow: 14px 0 42px rgba(10, 18, 32, 0.18);
}

.doi-sidebar::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    content: "";
    inset: 0 0 auto;
    height: 1px;
    position: absolute;
}

.doi-sidebar-brand {
    border-bottom-color: rgba(255,255,255,0.09);
    min-height: 92px;
}

.doi-sidebar-logo {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.doi-sidebar-brand span {
    display: grid;
    gap: 5px;
    line-height: 1.1;
}

.doi-sidebar-brand small {
    align-items: center;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    color: var(--doi-sidebar-muted);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    padding: 4px 9px;
    text-transform: uppercase;
}

.doi-sidebar-admin .doi-sidebar-brand small {
    background: rgba(209, 72, 95, 0.15);
    color: #ffd5dd;
}

.doi-sidebar-customer .doi-sidebar-brand small {
    background: rgba(42, 166, 161, 0.14);
    color: #c8fffb;
}

.doi-nav-link,
.doi-nav-children a {
    border-left: 0;
    border-radius: 8px;
    color: var(--doi-sidebar-text);
    position: relative;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.doi-nav-link::before {
    background: var(--doi-customer-accent);
    border-radius: 999px;
    content: "";
    height: 24px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translate(-8px, -50%);
    width: 4px;
}

.doi-sidebar-admin .doi-nav-link::before {
    background: var(--doi-admin-accent);
}

.doi-nav-link i {
    color: #91a1b8;
    transition: color .18s ease;
}

.doi-nav-link:hover,
.doi-nav-children a:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    transform: translateX(2px);
}

.doi-nav-link:hover i,
.doi-nav-group.is-active .doi-nav-link i {
    color: #fff;
}

.doi-nav-group.is-active .doi-nav-link {
    background: rgba(42, 166, 161, 0.18);
    box-shadow: inset 0 0 0 1px rgba(42, 166, 161, 0.20);
    color: #fff;
}

.doi-sidebar-admin .doi-nav-group.is-active .doi-nav-link {
    background: rgba(209, 72, 95, 0.18);
    box-shadow: inset 0 0 0 1px rgba(209, 72, 95, 0.22);
}

.doi-nav-group.is-active .doi-nav-link::before {
    opacity: 1;
}

.doi-nav-children {
    border-left: 1px solid rgba(255,255,255,0.08);
    margin-left: 24px;
    padding-left: 16px;
}

.doi-nav-children a {
    color: #aeb9ca;
}

.doi-topbar {
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid #e3e9f2;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    color: #142033;
}

.doi-header-brand,
.doi-header-brand span {
    color: #142033;
}

.doi-header-logo {
    border: 1px solid #e1e8f1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.doi-tenant strong {
    color: #111827;
}

.doi-tenant span {
    color: #667085;
}

.doi-credit-badge,
.doi-lang,
.doi-profile-link {
    background: #f7fafc;
    border-color: #e1e8f1;
    color: #2f3b4c;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.doi-credit-badge i {
    margin-right: 6px;
}

.doi-lang:hover,
.doi-profile-link:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    color: #101827;
}

.doi-lang.active {
    background: var(--doi-customer-accent);
    border-color: var(--doi-customer-accent);
    color: #fff;
}

.doi-role-admin .doi-lang.active {
    background: var(--doi-admin-accent);
    border-color: var(--doi-admin-accent);
}

.doi-mobile-menu {
    background: #eef3f7;
    color: #142033;
}

.doi-page-title span {
    color: var(--doi-customer-accent);
}

.doi-role-admin .doi-page-title span {
    color: var(--doi-admin-accent);
}

.panel,
.doi-panel,
.doi-card,
.doi-form-section {
    border-color: #e4e9f1;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.doi-stat-card,
.stat {
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.btn,
.doi-primary-btn {
    border-radius: 8px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.btn:hover,
.doi-primary-btn:hover {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

.doi-primary-btn,
.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.doi-role-admin .doi-primary-btn,
.doi-role-admin .btn-primary {
    background: #be4055;
    border-color: #be4055;
}

.doi-role-customer .doi-primary-btn,
.doi-role-customer .btn-primary {
    background: #168f8a;
    border-color: #168f8a;
}

.form-control:focus,
.doi-panel .form-control:focus,
.doi-entry-form input.form-control:focus,
.doi-entry-form textarea.form-control:focus,
.doi-entry-form select.form-control:focus {
    border-color: var(--doi-customer-accent);
    box-shadow: 0 0 0 3px var(--doi-focus-ring);
}

.doi-role-admin .form-control:focus,
.doi-role-admin .doi-panel .form-control:focus,
.doi-role-admin .doi-entry-form input.form-control:focus,
.doi-role-admin .doi-entry-form textarea.form-control:focus,
.doi-role-admin .doi-entry-form select.form-control:focus {
    border-color: var(--doi-admin-accent);
    box-shadow: 0 0 0 3px rgba(209, 72, 95, 0.16);
}

.doi-credit-amount-input,
.doi-credit-amount-input:focus,
.modal .doi-credit-amount-input,
.modal .doi-credit-amount-input:focus {
    background-color: #fff !important;
    color: #111827 !important;
    caret-color: #111827;
    opacity: 1;
    -webkit-text-fill-color: #111827 !important;
}

.doi-credit-textbox,
.doi-credit-textbox:hover,
.doi-credit-textbox:focus,
.doi-credit-textbox:active {
    appearance: auto;
    -webkit-appearance: auto;
    background: #fff !important;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    box-shadow: none;
    color: #111827 !important;
    caret-color: #111827;
    display: block;
    font: 16px Arial, Helvetica, sans-serif;
    line-height: 1.4;
    min-height: 40px;
    outline: none;
    padding: 8px 10px;
    width: 100%;
    -webkit-text-fill-color: #111827 !important;
}

.doi-credit-textbox:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

@media (max-width: 980px) {
    .doi-topbar {
        background: #fff;
    }
    .doi-sidebar {
        box-shadow: 18px 0 44px rgba(10, 18, 32, 0.26);
    }
}

/* Papirus-style navigation and form polish */
.doi-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.06);
    color: #111827;
}

.doi-sidebar-brand {
    border-bottom: 1px solid #eef2f7;
    color: #111827;
    min-height: 88px;
}

.doi-sidebar-brand span {
    color: #111827;
}

.doi-sidebar-brand small {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

.doi-sidebar-logo {
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.doi-sidebar-nav {
    padding: 14px 12px 24px;
}

.doi-nav-link,
.doi-nav-children a {
    border-radius: 8px;
    color: #4b5563;
    min-height: 42px;
    padding: 10px 12px;
}

.doi-nav-link i,
.doi-nav-children i {
    color: #6b7280;
}

.doi-nav-link span,
.doi-nav-children span {
    flex: 1;
}

.doi-nav-chevron {
    font-size: 18px;
    margin-left: auto;
    pointer-events: none;
    transition: transform .18s ease;
}

.doi-nav-group.has-children.is-open .doi-nav-chevron {
    transform: rotate(180deg);
}

.doi-nav-link::before {
    display: none;
}

.doi-nav-link:hover,
.doi-nav-children a:hover,
.doi-nav-group.is-active > .doi-nav-link {
    background: #eef2ff;
    box-shadow: none;
    color: #1f2937;
    transform: none;
}

.doi-nav-link:hover i,
.doi-nav-children a:hover i,
.doi-nav-group.is-active > .doi-nav-link i {
    color: #2563eb;
}

.doi-sidebar-admin .doi-nav-link:hover,
.doi-sidebar-admin .doi-nav-children a:hover,
.doi-sidebar-admin .doi-nav-group.is-active > .doi-nav-link {
    background: #fff1f2;
}

.doi-sidebar-admin .doi-nav-link:hover i,
.doi-sidebar-admin .doi-nav-children a:hover i,
.doi-sidebar-admin .doi-nav-group.is-active > .doi-nav-link i {
    color: #be4055;
}

.doi-nav-children {
    border-left: 1px solid #e5e7eb;
    display: none;
    margin: 4px 0 8px 21px;
    padding-left: 10px;
}

.doi-nav-group.is-open > .doi-nav-children {
    display: grid;
    gap: 2px;
}

.doi-nav-children a {
    font-size: 13px;
    min-height: 36px;
    padding: 8px 10px;
}

.form-control,
.form-control:focus,
.custom-file-control:focus,
.doi-panel .form-control,
.doi-panel .form-control:focus,
.doi-entry-form input.form-control,
.doi-entry-form input.form-control:focus,
.doi-entry-form textarea.form-control,
.doi-entry-form textarea.form-control:focus,
.doi-entry-form select.form-control,
.doi-entry-form select.form-control:focus,
.is-focused .form-control {
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: none;
    color: #111827 !important;
    opacity: 1;
    -webkit-text-fill-color: #111827 !important;
}

.form-control:focus,
.doi-panel .form-control:focus,
.doi-entry-form input.form-control:focus,
.doi-entry-form textarea.form-control:focus,
.doi-entry-form select.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: 0;
}

.doi-role-admin .form-control:focus,
.doi-role-admin .doi-panel .form-control:focus,
.doi-role-admin .doi-entry-form input.form-control:focus,
.doi-role-admin .doi-entry-form textarea.form-control:focus,
.doi-role-admin .doi-entry-form select.form-control:focus {
    border-color: #be4055;
    box-shadow: 0 0 0 3px rgba(190, 64, 85, 0.12);
}

html[data-doi-theme="dark"] .doi-app-frame {
    background: #111827;
}

html[data-doi-theme="dark"] .doi-sidebar {
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
    border-right-color: rgba(148, 163, 184, 0.16);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.22);
    color: #e5e7eb;
}

html[data-doi-theme="dark"] .doi-sidebar-brand {
    border-bottom-color: rgba(148, 163, 184, 0.16);
    color: #f9fafb;
}

html[data-doi-theme="dark"] .doi-sidebar-brand span {
    color: #f9fafb;
}

html[data-doi-theme="dark"] .doi-sidebar-brand small {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

html[data-doi-theme="dark"] .doi-sidebar-logo {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-doi-theme="dark"] .doi-nav-link,
html[data-doi-theme="dark"] .doi-nav-children a {
    color: #cbd5e1;
}

html[data-doi-theme="dark"] .doi-nav-link i,
html[data-doi-theme="dark"] .doi-nav-children i {
    color: #94a3b8;
}

html[data-doi-theme="dark"] .doi-nav-link:hover,
html[data-doi-theme="dark"] .doi-nav-children a:hover,
html[data-doi-theme="dark"] .doi-nav-group.is-active > .doi-nav-link {
    background: rgba(37, 99, 235, 0.16);
    color: #ffffff;
}

html[data-doi-theme="dark"] .doi-sidebar-admin .doi-nav-link:hover,
html[data-doi-theme="dark"] .doi-sidebar-admin .doi-nav-children a:hover,
html[data-doi-theme="dark"] .doi-sidebar-admin .doi-nav-group.is-active > .doi-nav-link {
    background: rgba(190, 64, 85, 0.18);
}

html[data-doi-theme="dark"] .doi-nav-children {
    border-left-color: rgba(148, 163, 184, 0.20);
}

html[data-doi-theme="dark"] .doi-topbar {
    background: #ffffff;
}

html[data-doi-theme="dark"] .doi-content {
    background: #111827;
}

html[data-doi-theme="dark"] .doi-page-title h1 {
    color: #f9fafb;
}

html[data-doi-theme="dark"] .doi-page-title span {
    color: #93c5fd;
}

html[data-doi-theme="dark"] .panel,
html[data-doi-theme="dark"] .doi-panel,
html[data-doi-theme="dark"] .doi-card,
html[data-doi-theme="dark"] .doi-form-section,
html[data-doi-theme="dark"] .stat,
html[data-doi-theme="dark"] .doi-stat-card {
    background: #1f2937;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
    color: #e5e7eb;
}

html[data-doi-theme="dark"] .doi-panel h2,
html[data-doi-theme="dark"] .doi-form-section legend,
html[data-doi-theme="dark"] .doi-section-heading h2,
html[data-doi-theme="dark"] .section-title,
html[data-doi-theme="dark"] .stat strong,
html[data-doi-theme="dark"] .doi-stat-card strong {
    color: #f9fafb;
}

html[data-doi-theme="dark"] .section-help,
html[data-doi-theme="dark"] .doi-section-heading p,
html[data-doi-theme="dark"] .stat span,
html[data-doi-theme="dark"] .doi-stat-card span,
html[data-doi-theme="dark"] .doi-choice-card span,
html[data-doi-theme="dark"] .journal-summary label,
html[data-doi-theme="dark"] .doi-form-section .form-group label {
    color: #cbd5e1;
}

html[data-doi-theme="dark"] .table {
    color: #e5e7eb;
}

html[data-doi-theme="dark"] .table th,
html[data-doi-theme="dark"] .table td {
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-doi-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(15, 23, 42, 0.34);
}

html[data-doi-theme="dark"] .table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(31, 41, 55, 0.62);
}

.doi-theme-toggle {
    align-items: center;
    background: #f7fafc;
    border: 1px solid #e1e8f1;
    border-radius: 999px;
    color: #2f3b4c;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    min-height: 36px;
    padding: 7px 12px;
}

.doi-theme-toggle:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.doi-workflow-guide {
    border-color: rgba(23, 120, 200, 0.35);
    box-shadow: 0 18px 40px rgba(15, 50, 85, 0.13);
}

.doi-workflow-heading {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.doi-workflow-heading h2 {
    margin: 4px 0 8px;
}

.doi-workflow-heading p,
.doi-workflow-step p {
    color: var(--doi-muted);
    margin: 0;
}

.doi-workflow-eyebrow {
    color: var(--doi-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.doi-workflow-steps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doi-workflow-step {
    background: #f4f8fc;
    border: 1px solid #dce8f5;
    border-radius: 14px;
    min-height: 170px;
    padding: 20px;
    position: relative;
}

.doi-workflow-step:not(:last-child)::after {
    color: var(--doi-blue);
    content: '→';
    font-size: 25px;
    font-weight: 800;
    position: absolute;
    right: -22px;
    top: 48%;
    z-index: 1;
}

.doi-workflow-step > i {
    color: var(--doi-blue);
    font-size: 28px;
}

.doi-workflow-step strong {
    color: var(--doi-navy);
    display: block;
    font-size: 32px;
    line-height: 1.2;
    margin-top: 8px;
}

.doi-workflow-step h3 {
    color: var(--doi-ink);
    font-size: 16px;
    font-weight: 800;
    margin: 3px 0 8px;
}

.doi-workflow-number {
    background: var(--doi-blue);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    height: 25px;
    line-height: 25px;
    position: absolute;
    right: 16px;
    text-align: center;
    top: 16px;
    width: 25px;
}

.doi-workflow-alert {
    align-items: center;
    background: #fff4d9;
    border-radius: 10px;
    color: #735000;
    display: flex;
    gap: 9px;
    margin-top: 16px;
    padding: 12px 14px;
}

html[data-doi-theme="dark"] .doi-workflow-step {
    background: #172334;
    border-color: rgba(148, 163, 184, .25);
}

html[data-doi-theme="dark"] .doi-workflow-step strong,
html[data-doi-theme="dark"] .doi-workflow-step h3 {
    color: #f9fafb;
}

html[data-doi-theme="dark"] .doi-workflow-heading p,
html[data-doi-theme="dark"] .doi-workflow-step p {
    color: #cbd5e1;
}

@media (max-width: 800px) {
    .doi-workflow-heading { align-items: flex-start; flex-direction: column; }
    .doi-workflow-steps { grid-template-columns: 1fr; }
    .doi-workflow-step { min-height: 0; }
    .doi-workflow-step:not(:last-child)::after { bottom: -22px; left: 48%; right: auto; top: auto; transform: rotate(90deg); }
}

.doi-workflow-guide { background: linear-gradient(145deg, #f8fbff, #fff 56%, #f3f9ff); border: 1px solid #cbdff1; box-shadow: 0 16px 36px rgba(15, 50, 85, .1); overflow: hidden; }
.doi-workflow-heading { align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.doi-workflow-heading h2 { color: #102d4a; font-size: clamp(23px, 2vw, 30px); letter-spacing: -.025em; line-height: 1.18; margin: 6px 0 7px; }
.doi-workflow-heading p { color: #52657c; font-size: 15px; font-weight: 600; }
.doi-workflow-eyebrow { color: #1169b2; font-size: 11px; letter-spacing: .15em; }
.doi-workflow-action { align-items: center; background: #126fbc; border-radius: 11px; box-shadow: 0 8px 18px rgba(18, 111, 188, .2); color: #fff; display: inline-flex; flex-shrink: 0; font-size: 14px; font-weight: 800; gap: 14px; padding: 12px 16px; text-decoration: none; }
.doi-workflow-action:hover { background: #0c568f; color: #fff; text-decoration: none; }
.doi-workflow-action i { font-size: 18px; }
.doi-workflow-steps { gap: 20px; }
.doi-workflow-step { background: #fff; border: 1px solid #d8e4ef; border-radius: 16px; box-shadow: 0 8px 20px rgba(22, 61, 100, .055); min-height: 181px; padding: 18px 20px; }
.doi-workflow-step:not(:last-child)::after { align-items: center; background: #fff; border: 1px solid #cbdff1; border-radius: 50%; box-shadow: 0 4px 12px rgba(15, 50, 85, .1); color: #126fbc; content: '\2192'; display: flex; font-size: 20px; height: 30px; justify-content: center; right: -26px; top: calc(50% - 15px); width: 30px; z-index: 2; }
.doi-workflow-step-top { align-items: center; display: flex; justify-content: space-between; }
.doi-workflow-icon { align-items: center; border-radius: 12px; display: flex; font-size: 25px; height: 43px; justify-content: center; width: 43px; }
.doi-workflow-step strong { color: #102d4a; font-size: 37px; letter-spacing: -.04em; line-height: 1; margin-top: 10px; }
.doi-workflow-step strong small { color: #71849a; font-size: 12px; font-weight: 800; letter-spacing: .06em; margin-left: 8px; text-transform: uppercase; }
.doi-workflow-step h3 { color: #18324e; font-size: 17px; margin: 9px 0 2px; }
.doi-workflow-step p { color: #52657c; font-size: 13px; }
.doi-workflow-number { background: none; border-radius: 0; color: #71849a; font-size: 12px; height: auto; letter-spacing: .08em; line-height: normal; position: static; text-align: left; width: auto; }
.doi-workflow-step-saved { border-top: 4px solid #2b82d0; }
.doi-workflow-step-saved .doi-workflow-icon { background: #e8f3ff; color: #136bb5; }
.doi-workflow-step-sent { border-top: 4px solid #e9a635; }
.doi-workflow-step-sent .doi-workflow-icon { background: #fff4df; color: #a66708; }
.doi-workflow-step-done { border-top: 4px solid #29a47c; }
.doi-workflow-step-done .doi-workflow-icon { background: #e3f8f0; color: #178263; }
.doi-workflow-alert { border-radius: 11px; font-size: 13px; font-weight: 700; gap: 10px; margin-top: 20px; padding: 13px 16px; }
.doi-workflow-alert i { font-size: 20px; }
.doi-workflow-alert b { margin-left: auto; white-space: nowrap; }
.doi-workflow-alert-wait { background: #fff3db; color: #76500b; }
.doi-workflow-alert-processing { background: #e7f2ff; color: #135788; }
.doi-workflow-alert-error { background: #fff0ed; color: #a23d28; }
.doi-workflow-tip { align-items: center; color: #4b6279; display: flex; font-size: 13px; gap: 8px; margin-top: 18px; }
.doi-workflow-tip i { color: #d39222; font-size: 19px; }
html[data-doi-theme="dark"] .doi-workflow-guide { background: linear-gradient(145deg, #16263b, #122033); border-color: #324e6a; }
html[data-doi-theme="dark"] .doi-workflow-heading h2 { color: #f8fafc; }
html[data-doi-theme="dark"] .doi-workflow-step { background: #1d3047; border-left-color: #344e69; border-right-color: #344e69; border-bottom-color: #344e69; }
html[data-doi-theme="dark"] .doi-workflow-step:not(:last-child)::after { background: #1d3047; border-color: #344e69; color: #87c5f6; }
html[data-doi-theme="dark"] .doi-workflow-step strong small { color: #a9bed1; }
html[data-doi-theme="dark"] .doi-workflow-tip { color: #cbd5e1; }
@media (max-width: 800px) {
    .doi-workflow-heading { align-items: flex-start; }
    .doi-workflow-action { justify-content: center; width: 100%; }
    .doi-workflow-step:not(:last-child)::after { bottom: -27px; left: calc(50% - 15px); right: auto; top: auto; }
    .doi-workflow-alert { align-items: flex-start; }
}

.doi-instruction {
    background: linear-gradient(140deg, #f7fbff 0%, #fff 62%);
    border: 1px solid #c9dff2;
    box-shadow: 0 16px 36px rgba(15, 50, 85, .11);
    overflow: hidden;
}

.doi-instruction-header { margin-bottom: 20px; }
.doi-instruction-eyebrow { color: #126fbc; display: block; font-size: 11px; font-weight: 900; letter-spacing: .14em; margin-bottom: 7px; }
.doi-instruction-header h2 { color: #102d4a; font-size: clamp(22px, 2.3vw, 31px); font-weight: 900; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 8px; }
.doi-instruction-header p { color: #5e7187; font-size: 15px; margin: 0; }

.doi-instruction-example {
    align-items: center;
    background: #123c62;
    border-radius: 13px;
    color: #fff;
    display: flex;
    gap: 13px;
    margin-bottom: 22px;
    padding: 14px 17px;
}
.doi-instruction-example-icon { align-items: center; background: rgba(255, 255, 255, .13); border-radius: 10px; display: flex; flex: 0 0 34px; font-size: 20px; height: 34px; justify-content: center; }
.doi-instruction-example > span:nth-child(2) { font-size: 14px; font-weight: 600; }
.doi-instruction-example strong { background: #e3f4ff; border-radius: 8px; color: #0d4c7f; font-size: 14px; margin-left: auto; padding: 7px 11px; white-space: nowrap; }

.doi-instruction-steps { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doi-instruction-step { background: #fff; border: 1px solid #dce7f0; border-radius: 14px; min-height: 194px; padding: 17px; position: relative; }
.doi-instruction-step:not(:last-child)::after { align-items: center; background: #fff; border: 1px solid #c9dff2; border-radius: 50%; color: #126fbc; content: '\2192'; display: flex; font-size: 19px; font-weight: 800; height: 28px; justify-content: center; position: absolute; right: -23px; top: calc(50% - 14px); width: 28px; z-index: 1; }
.doi-instruction-step-head { align-items: center; display: flex; justify-content: space-between; }
.doi-instruction-step-head b { align-items: center; background: #e4f1fc; border-radius: 50%; color: #126fbc; display: flex; font-size: 15px; height: 30px; justify-content: center; width: 30px; }
.doi-instruction-step-head i { color: #126fbc; font-size: 26px; }
.doi-instruction-step h3 { color: #173653; font-size: 16px; font-weight: 900; line-height: 1.25; margin: 20px 0 7px; }
.doi-instruction-step p { color: #596e82; font-size: 13px; line-height: 1.5; margin: 0; }
.doi-instruction-step:nth-child(3) { border-color: #9bc7e9; box-shadow: 0 7px 18px rgba(18, 111, 188, .1); }
.doi-instruction-step:nth-child(3) .doi-instruction-step-head b { background: #126fbc; color: #fff; }
.doi-instruction-step:nth-child(4) .doi-instruction-step-head b { background: #e2f7ed; color: #168263; }
.doi-instruction-step:nth-child(4) .doi-instruction-step-head i { color: #168263; }

.doi-instruction-footer { align-items: center; border-top: 1px solid #dce7f0; display: flex; gap: 20px; justify-content: space-between; margin-top: 22px; padding-top: 18px; }
.doi-instruction-counts { display: flex; flex-wrap: wrap; gap: 9px; }
.doi-instruction-counts span { align-items: center; background: #eff5fa; border-radius: 999px; color: #426079; display: inline-flex; font-size: 12px; gap: 6px; padding: 7px 10px; }
.doi-instruction-counts span:first-child { background: #e8f3ff; color: #165e9b; }
.doi-instruction-counts span:last-child { background: #e5f7ef; color: #187052; }
.doi-instruction-counts i { font-size: 17px; }
.doi-instruction-counts b { color: inherit; font-size: 15px; }
.doi-instruction-actions { align-items: center; display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 13px; }
.doi-instruction-link { color: #126fbc; font-size: 13px; font-weight: 800; }
.doi-instruction-button { align-items: center; background: #126fbc; border-radius: 10px; color: #fff; display: inline-flex; font-size: 13px; font-weight: 800; gap: 8px; padding: 11px 14px; text-decoration: none; }
.doi-instruction-button:hover { background: #0c568f; color: #fff; text-decoration: none; }
.doi-instruction-status { align-items: center; border-radius: 10px; display: flex; font-size: 13px; font-weight: 700; gap: 9px; margin-top: 16px; padding: 12px 14px; }
.doi-instruction-status i { font-size: 19px; }
.doi-instruction-status b { margin-left: auto; }
.doi-instruction-status-admin { background: #fff2d6; color: #79530d; }
.doi-instruction-status-crossref { background: #e7f2ff; color: #155c90; }
.doi-instruction-status-error { background: #ffefeb; color: #a34230; }

html[data-doi-theme="dark"] .doi-instruction { background: #16283c; border-color: #335270; }
html[data-doi-theme="dark"] .doi-instruction-header h2 { color: #f8fafc; }
html[data-doi-theme="dark"] .doi-instruction-header p { color: #cbd5e1; }
html[data-doi-theme="dark"] .doi-instruction-step { background: #1e344b; border-color: #38536c; }
html[data-doi-theme="dark"] .doi-instruction-step h3 { color: #f8fafc; }
html[data-doi-theme="dark"] .doi-instruction-step p { color: #cbd5e1; }
html[data-doi-theme="dark"] .doi-instruction-step:not(:last-child)::after { background: #1e344b; border-color: #38536c; color: #87c5f6; }
html[data-doi-theme="dark"] .doi-instruction-footer { border-color: #38536c; }

@media (max-width: 1100px) {
    .doi-instruction-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doi-instruction-step:nth-child(2)::after { display: none; }
    .doi-instruction-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .doi-instruction-example { align-items: flex-start; flex-wrap: wrap; }
    .doi-instruction-example strong { margin-left: 47px; }
    .doi-instruction-steps { grid-template-columns: 1fr; }
    .doi-instruction-step { min-height: 0; }
    .doi-instruction-step:not(:last-child)::after { bottom: -23px; left: calc(50% - 14px); right: auto; top: auto; transform: rotate(90deg); }
    .doi-instruction-step:nth-child(2)::after { display: flex; }
    .doi-instruction-actions { justify-content: space-between; width: 100%; }
}
/* Illustrated DOI training guide */
.doi-guide { max-width: 1440px; margin: 0 auto 36px; color: var(--doi-ink); }
.doi-guide-hero, .doi-guide-overview, .doi-guide-contents, .doi-guide-section { background: var(--doi-card); border: 1px solid var(--doi-line); border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 50, 85, .06); margin-bottom: 20px; padding: 24px; }
.doi-guide-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(125deg, #eaf5ff, #eaf9f3); }
.doi-guide-eyebrow { color: #176da7; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.doi-guide-hero h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0; font-weight: 800; }
.doi-guide-hero p, .doi-guide-section-head p { margin: 0; line-height: 1.6; }
.doi-guide-language { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 230px; }
.doi-guide-language span { flex-basis: 100%; font-size: 13px; font-weight: 700; }
.doi-guide-overview h3, .doi-guide-section h3 { margin: 0 0 16px; font-size: 21px; font-weight: 800; }
.doi-guide-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: guide-step; }
.doi-guide-flow li { background: #f0f7ff; border: 1px solid #d5e8f9; border-radius: 9px; padding: 38px 12px 14px; font-weight: 700; position: relative; font-size: 13px; line-height: 1.4; }
.doi-guide-flow li::before { counter-increment: guide-step; content: counter(guide-step); position: absolute; left: 12px; top: 10px; background: #2073b5; color: white; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.doi-guide-important { display: flex; gap: 10px; align-items: flex-start; background: #fff5df; border-left: 4px solid #d58a15; padding: 14px; border-radius: 6px; color: #68470d; }
.doi-guide-important p { margin: 0; line-height: 1.55; }
.doi-guide-screenshot-note { margin: 12px 0 0; color: var(--doi-muted); font-size: 12px; }
.doi-guide-contents strong { display: block; margin-bottom: 12px; }
.doi-guide-contents > div { display: flex; flex-wrap: wrap; gap: 8px; }
.doi-guide-contents a { background: #edf6ff; color: #185d92; border-radius: 7px; padding: 8px 10px; font-size: 13px; font-weight: 700; }
.doi-guide-section { scroll-margin-top: 20px; }
.doi-guide-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--doi-line); padding-bottom: 16px; margin-bottom: 18px; }
.doi-guide-section-head h3 { margin-bottom: 5px; }
.doi-guide-section-head .btn { flex: none; }
.doi-guide-section-body { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.doi-guide-section-body-text { display: block; }
.doi-guide-section-body ol { margin: 0; padding-left: 23px; }
.doi-guide-section-body li { padding: 0 0 12px 4px; line-height: 1.6; }
.doi-guide-section-body li::marker { color: #1b75b4; font-weight: 800; }
.doi-guide-section figure { margin: 0; }
.doi-guide-section img { display: block; width: 100%; height: auto; border: 1px solid #cddbe8; border-radius: 8px; }
.doi-guide-section figcaption { font-size: 12px; color: var(--doi-muted); margin-top: 7px; line-height: 1.45; }
html[data-doi-theme="dark"] .doi-guide { color: #f1f5f9; }
html[data-doi-theme="dark"] .doi-guide-hero, html[data-doi-theme="dark"] .doi-guide-overview, html[data-doi-theme="dark"] .doi-guide-contents, html[data-doi-theme="dark"] .doi-guide-section { background: #1f2937; border-color: #475569; }
html[data-doi-theme="dark"] .doi-guide-hero { background: linear-gradient(125deg, #203e5b, #20483d); }
html[data-doi-theme="dark"] .doi-guide-eyebrow { color: #93c5fd; }
html[data-doi-theme="dark"] .doi-guide-flow li, html[data-doi-theme="dark"] .doi-guide-contents a { background: #233e5b; border-color: #42658a; color: #e2f0ff; }
html[data-doi-theme="dark"] .doi-guide-important { background: #493c24; color: #fff0c7; }
@media (max-width: 1000px) { .doi-guide-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .doi-guide-section-body { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .doi-guide-hero, .doi-guide-section-head { flex-direction: column; } .doi-guide-flow { grid-template-columns: 1fr; } .doi-guide-hero, .doi-guide-overview, .doi-guide-contents, .doi-guide-section { padding: 16px; } }

/* Keep the training guide visible in the sidebar until visitors explore it. */
.doi-sidebar .doi-nav-guide > .doi-nav-link,
.doi-sidebar-admin .doi-nav-guide > .doi-nav-link,
html[data-doi-theme="dark"] .doi-sidebar .doi-nav-guide > .doi-nav-link {
    background: #fff2cf;
    box-shadow: inset 0 0 0 1px #e7bd58;
    color: #684410;
    font-weight: 800;
}
.doi-sidebar .doi-nav-guide > .doi-nav-link:hover,
.doi-sidebar .doi-nav-guide.is-active > .doi-nav-link,
html[data-doi-theme="dark"] .doi-sidebar .doi-nav-guide > .doi-nav-link:hover,
html[data-doi-theme="dark"] .doi-sidebar .doi-nav-guide.is-active > .doi-nav-link {
    background: #ffe5a8;
    color: #503207;
}
.doi-sidebar .doi-nav-guide > .doi-nav-link > i,
.doi-sidebar-admin .doi-nav-guide > .doi-nav-link > i,
html[data-doi-theme="dark"] .doi-sidebar .doi-nav-guide > .doi-nav-link > i {
    color: #a35e09;
}
.doi-nav-guide-badge {
    background: #a35e09;
    border-radius: 999px;
    color: #fff;
    flex: none;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    text-transform: uppercase;
}
.doi-whatsapp-support { align-items: flex-start; background: #eefbf2; border: 1px solid #bfe7ca; border-radius: 12px; display: flex; gap: 16px; margin-top: 20px; padding: 22px; }
.doi-whatsapp-support-icon { align-items: center; background: #25d366; border-radius: 12px; color: #fff; display: flex; flex: none; font-size: 30px; height: 54px; justify-content: center; width: 54px; }
.doi-whatsapp-support h3 { color: #14532d; font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.doi-whatsapp-support p { color: #284c35; line-height: 1.6; margin-bottom: 14px; }
.doi-whatsapp-support-button, .doi-whatsapp-support-button:hover, .doi-whatsapp-support-button:focus { background: #128c4b; color: #fff; font-weight: 800; }
.doi-whatsapp-support-button i { font-size: 19px; margin-right: 5px; vertical-align: middle; }
.doi-whatsapp-support small { color: #42664e; display: block; margin-top: 10px; }
html[data-doi-theme="dark"] .doi-whatsapp-support { background: #173a2a; border-color: #367c50; }
html[data-doi-theme="dark"] .doi-whatsapp-support h3, html[data-doi-theme="dark"] .doi-whatsapp-support p, html[data-doi-theme="dark"] .doi-whatsapp-support small { color: #ddf9e5; }
@media (max-width: 620px) { .doi-whatsapp-support { flex-direction: column; padding: 16px; } .doi-whatsapp-support-button { white-space: normal; } }
