.settings-page {
    max-width: 970px;
    margin: 0 auto;
    padding: 11px 0 40px;
    color: #191919;
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: normal;
}

.settings-page :where(div) {
    line-height: normal;
}

.settings-page :where(p) {
    margin: 0;
}

.settings-page :where(button, input, textarea) {
    font-family: inherit;
}

.settings-page h1,
.settings-page h3 {
    margin: 0;
    padding: 5px 0;
    color: #191919;
    line-height: 1em;
}

.settings-page h1 {
    font-size: 36px;
    font-weight: 400;
}

.settings-page h3 {
    font-size: 24px;
    font-weight: 300;
}

.settings-tabs {
    display: flex;
    width: 100%;
    margin: 1px 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.settings-tab {
    flex: 1 1 0;
    min-width: 0;
}

.settings-tab button {
    display: block;
    width: 100%;
    height: 40px;
    padding: 12px 2%;
    border: 0;
    border-radius: 0;
    color: #191919;
    background-color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 16px;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.settings-tab button:hover {
    background-color: #F2F2F2;
}

.settings-tab button:hover,
.settings-tab button:focus-visible,
.settings-tab.active button {
    box-shadow: 0 -4px 0 0 #7B2CBF inset;
    outline: 0;
}

.settings-content {
    margin-top: 5px;
}

.settings-card {
    display: block;
    margin: 0 0 18px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 1px 4px 0 rgba(25, 25, 25, 0.3);
}

.settings-card p {
    line-height: 1.5em;
}

.settings-label {
    color: #B8B8B8;
    font-weight: 400;
}

.settings-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 30px;
}

.settings-row.empty,
.settings-past {
    height: 32px;
}

.settings-row p {
    min-width: 0;
    overflow: hidden;
    line-height: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.settings-edit {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: url("/img/generic-icons.svg") 0 -84px no-repeat;
    cursor: pointer;
}

.settings-edit:hover {
    background-position: -28px -84px;
}

.settings-warning {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background: url("/img/games/negative.svg") 0 -60px / 200% auto no-repeat;
}

.settings-error {
    color: #D86868;
    font-size: 12px;
    font-weight: 400;
}

.settings-link {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    color: #7B2CBF;
    background: none;
    font-size: 16px;
    font-weight: 300;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
}

a.settings-link {
    line-height: inherit;
}

.settings-link:hover,
.settings-link:focus {
    color: #7B2CBF;
    text-decoration: underline;
}

.settings-success {
    color: #02b757;
}

.settings-input {
    display: block;
    width: 100%;
    height: 38px;
    padding: 5px 12px;
    border: 1px solid #B8B8B8;
    border-radius: 3px;
    color: #191919;
    background-color: #fff;
    font-size: 16px;
    font-weight: 300;
    line-height: 100%;
}

.settings-input::placeholder {
    color: #B8B8B8;
    font-weight: 300;
    opacity: 1;
}

.settings-input:focus {
    border-color: #7B2CBF;
    outline: 0;
    box-shadow: none;
}

.settings-bio {
    height: 76px;
    resize: vertical;
}

.settings-hint {
    font-size: 14px;
    font-weight: 400;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.settings-personal,
.settings-social {
    padding-bottom: 24px;
}

.settings-social {
    padding-top: 16px;
}

.settings-field {
    display: block;
    margin: 0;
}

.settings-field + .settings-field {
    margin-top: 12px;
}

.settings-field .settings-label {
    display: block;
    line-height: 18px;
}

.settings-btn {
    display: inline-block;
    padding: 7px;
    border: 1px solid #B8B8B8;
    border-radius: 3px;
    color: #191919;
    background-color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;
    user-select: none;
}

.settings-btn:hover:not(:disabled),
.settings-btn:focus-visible {
    box-shadow: 0 1px 3px rgba(150, 150, 150, 0.74);
    outline: 0;
}

.settings-btn:disabled {
    color: #B8B8B8;
    cursor: default;
}

.settings-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
}

.settings-split p {
    line-height: 24px;
}

.settings-split .settings-btn {
    flex: 0 0 auto;
}

.settings-invite {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.settings-invite .settings-input {
    width: min(100%, 380px);
}

.settings-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.settings-alert {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1029;
    max-width: 970px;
    height: 48px;
    margin: 0 auto;
    padding: 15px;
    overflow: hidden;
    color: #fff;
    background-color: #02b757;
    font-size: 18px;
    font-weight: 300;
    line-height: 1em;
    text-align: center;
}

.settings-alert.error {
    background-color: #D86868;
}

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
}

.settings-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.settings-modal-dialog {
    position: relative;
    width: 400px;
    margin: 15% auto;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #191919;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 300;
    outline: 0;
}

.settings-modal-dialog :where(p) {
    margin: 0;
    line-height: 1.5em;
}

.settings-modal-dialog :where(button, input) {
    font-family: inherit;
}

.settings-modal-header {
    padding: 12px 15px;
    border-bottom: 1px solid #B8B8B8;
}

.settings-modal-header h4 {
    margin: 0;
    padding: 5px 0;
    color: #191919;
    font-size: 21px;
    font-weight: 400;
    line-height: 1em;
}

.settings-modal-close {
    float: right;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: url("/img/generic-icons.svg") 0 -420px / 40px auto no-repeat;
    opacity: 0.2;
    cursor: pointer;
}

.settings-modal-close:hover,
.settings-modal-close:focus-visible {
    opacity: 0.5;
    outline: 0;
}

.settings-modal-body {
    padding: 15px;
}

.settings-modal-body .settings-input + .settings-input {
    margin-top: 10px;
}

.settings-modal-btns {
    margin-top: 26px;
    text-align: center;
}

.settings-password .settings-modal-btns {
    margin-top: 40px;
}

.settings-modal-btns .settings-btn {
    padding: 9px;
    font-size: 18px;
}

.settings-modal-error {
    margin-top: 10px;
    color: #D86868;
    font-size: 12px;
    font-weight: 400;
}

.settings-modal-note {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
}

.settings-currency {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
}

.settings-btn-primary .settings-currency {
    margin: 0 2px 0 4px;
}

.settings-btn-primary,
a.settings-btn-primary {
    display: inline-block;
    padding: 9px;
    border: 1px solid #02b757;
    border-radius: 3px;
    color: #fff;
    background-color: #02b757;
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;
    user-select: none;
}

.settings-btn-primary:hover:not(:disabled),
a.settings-btn-primary:hover {
    color: #fff;
    background-color: #3FC679;
    border-color: #3FC679;
    box-shadow: 0 1px 3px rgba(150, 150, 150, 0.74);
}

.settings-btn-primary:disabled {
    background-color: #A3E2BD;
    border-color: #A3E2BD;
    cursor: default;
}

.settings-theme {
    padding-bottom: 20px;
}

.settings-theme-select {
    width: auto;
    min-width: 300px;
    max-width: 100%;
    cursor: pointer;
}

.settings-theme-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #E3E3E3;
}

.settings-theme-meta p + p {
    margin-top: 4px;
}

.settings-theme-meta .settings-hint {
    color: #757575;
}

.settings-theme-credits-title {
    margin-top: 10px !important;
    font-weight: 600;
}

.settings-theme-credits {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: 14px;
    font-weight: 400;
}

.settings-theme-credits .settings-link {
    font-size: 14px;
    font-weight: 400;
}

.settings-theme-error {
    margin-top: 8px;
    color: #C0392B;
    font-size: 14px;
    font-weight: 400;
}

.settings-dev-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-top: 8px;
}

.settings-dev-links .settings-link {
    font-size: 14px;
    font-weight: 400;
}

.settings-dev-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #E3E3E3;
}

.settings-custom-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.settings-dev-state {
    padding: 2px 10px;
    border-radius: 10px;
    color: #757575;
    background-color: #EBEBEB;
    font-size: 13px;
    font-weight: 400;
}

.settings-dev-state.on {
    color: #fff;
    background-color: #02b757;
}

.settings-dev-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.settings-dev-hint {
    margin-top: 8px;
    color: #757575;
}

.settings-page .settings-css-editor {
    height: 260px;
    min-height: 160px;
    padding: 10px 12px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    tab-size: 4;
    white-space: pre;
    resize: vertical;
}

.settings-dev-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.settings-dev-size {
    flex: 0 0 auto;
    color: #757575;
    font-size: 13px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.settings-dev-size.over {
    color: #D86868;
}

.settings-css-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E3E3E3;
}

.settings-css-gap {
    flex: 1;
}

.settings-css-actions .settings-btn,
.settings-css-actions .settings-btn-primary {
    min-width: 76px;
    padding: 7px 14px;
    font-size: 16px;
}

.settings-url-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
}

.settings-css-message {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
}

@media (min-width: 1688px) {
    .settings-alert {
        left: 175px;
    }
}

@media (max-width: 991px) {
    .settings-alert {
        top: 80px;
    }
}

@media (max-width: 767px) {
    .settings-page {
        padding: 10px 16px 40px;
    }

    .settings-card {
        margin-bottom: 12px;
        padding: 12px;
    }

    .settings-tabs {
        overflow-x: auto;
    }

    .settings-tab {
        flex: 1 0 auto;
    }

    .settings-tab button {
        padding: 12px 10px;
        font-size: 16px;
    }

    .settings-modal-dialog {
        width: auto;
        min-width: 296px;
        margin: 10% 12px;
    }
}
