.td-service-account-menu {
    position: relative;
    z-index: 220;
    display: inline-flex;
    flex: none;
}
.td-service-login-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #bd4a78;
    border-radius: 8px;
    background: #bd4a78;
    color: #fff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(189, 74, 120, .16);
}
.td-service-account-create {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: 12px;
    min-width: 0;
    min-height: 0;
}
.td-service-account-create .td-service-login-button {
    min-height: 40px;
    max-height: 44px;
    white-space: nowrap;
    background: #fff;
    color: #bd4a78;
    box-shadow: none;
}
.td-service-account-create .td-service-login-button:hover,
.td-service-account-create .td-service-login-button:focus {
    border-color: #9f315b;
    background: #fdf3f7;
    color: #9f315b;
}
.td-service-account-create .td-service-account-menu summary {
    width: 40px;
    height: 40px;
    min-height: 40px;
}
.td-service-login-button:hover,
.td-service-login-button:focus {
    border-color: #9f315b;
    background: #9f315b;
    color: #fff;
    outline: none;
    text-decoration: none;
}
.td-service-login-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(189, 74, 120, .18);
}
.td-service-account-menu summary {
    display: inline-flex;
    width: 40px;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dfe6;
    border-radius: 999px;
    background: #fff;
    color: #34404c;
    cursor: pointer;
    list-style: none;
    padding: 0;
    line-height: 1;
    outline: none;
    box-shadow: 0 6px 16px rgba(31, 41, 51, .08);
}
.td-service-account-menu summary::-webkit-details-marker {
    display: none;
}
.td-service-account-menu summary:hover,
.td-service-account-menu summary:focus-visible,
.td-service-account-menu[open] summary {
    border-color: #bd4a78;
    background: #fff6fa;
    color: #9f315b;
}
.td-service-account-menu summary:focus-visible {
    box-shadow: 0 0 0 3px rgba(189, 74, 120, .18);
}
.td-service-account-avatar,
.td-service-account-avatar-fallback {
    display: grid;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    place-items: center;
}
.td-service-account-avatar {
    display: block;
    object-fit: cover;
}
.td-service-account-avatar-fallback {
    border: 1px solid #ece6e9;
    background: #f8fafc;
    color: #bd4a78;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 900;
}
.td-service-account-menu.is-signed-in .td-service-account-avatar-fallback::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 25%, currentColor 0 26%, transparent 28%),
        radial-gradient(ellipse at 50% 100%, currentColor 0 44%, transparent 46%);
}
.td-service-account-menu nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 320;
    display: grid;
    min-width: 220px;
    overflow: hidden;
    border: 1px solid #e3dce0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(36, 31, 32, .16);
    padding: 8px;
}
.td-service-account-menu nav a {
    display: flex;
    min-height: 40px;
    align-items: center;
    border-radius: 6px;
    color: #332d2f;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.td-service-account-menu nav a:hover,
.td-service-account-menu nav a:focus {
    background: #fff6fa;
    color: #9f315b;
    text-decoration: none;
}
.td-service-account-logout {
    margin-top: 6px;
    border-top: 1px solid #f0eaee;
    color: #7b4b5c !important;
}
.navbar .container {
    position: relative;
}
.td-service-account-navbar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 15px;
    display: flex;
    align-items: center;
    z-index: 5;
}
.td-service-account-user {
    display: block;
    max-width: 204px;
    overflow: hidden;
    border-bottom: 1px solid #f0eaee;
    color: #697684;
    margin: 0 0 6px;
    padding: 8px 12px 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.td-service-login-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(40, 34, 38, .42);
}
.td-service-login-backdrop[hidden] {
    display: none;
}
.td-service-login-dialog {
    position: relative;
    display: grid;
    width: min(430px, calc(100vw - 40px));
    min-height: 420px;
    overflow: hidden;
    border: 1px solid #eadbe1;
    border-radius: 10px;
    background: #fff;
    padding: 0;
    box-shadow: 0 22px 48px rgba(36, 31, 32, .22);
}
.td-service-login-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3d9de;
    border-radius: 50%;
    background: #fff;
    color: #6c5d64;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(36, 31, 32, .12);
}
.td-service-login-close .glyphicon {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
}
.td-service-login-close:hover,
.td-service-login-close:focus {
    border-color: #bd4a78;
    color: #9f315b;
    outline: none;
}
.td-service-login-hero {
    display: grid;
    justify-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3b2130 0%, #672c4a 100%);
    color: #fff;
    padding: 34px 34px 30px;
    text-align: center;
}
.td-service-login-brand {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}
.td-service-login-brand img {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(22, 12, 18, .24);
}
.td-service-login-brand strong {
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.3;
}
.td-service-login-hero h2 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}
.td-service-login-content {
    display: grid;
    gap: 14px;
    padding: 28px 34px 30px;
}
.td-service-google-host {
    display: flex;
    min-height: 56px;
    justify-content: center;
}
.td-service-google-host [role="button"] {
    height: 56px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    line-height: 20px !important;
}
.td-service-google-host [role="button"] span {
    font-size: 15px !important;
    line-height: 20px !important;
}
.td-service-dev-login {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    background: #fff;
    color: #2d6680;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}
.td-service-dev-login:hover,
.td-service-dev-login:focus {
    background: #f2f9fc;
    color: #2d6680;
    text-decoration: none;
}
.td-service-login-legal {
    margin: 0;
    color: #8a8085;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
    text-align: left;
}
.td-service-login-legal a {
    color: #8f315d;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.td-service-login-note {
    color: #8b5c24 !important;
}
.td-service-login-back {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #eadbe1;
    border-radius: 8px;
    background: #fff;
    color: #5e5157;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.td-service-login-back:hover,
.td-service-login-back:focus {
    background: #fff6fa;
    outline: none;
}
.td-service-login-back[hidden] {
    display: none;
}
@media (max-width: 1180px) {
    .create-editor-header-space {
        gap: 8px;
    }
}
@media (max-width: 767px) {
    .td-service-account-navbar {
        top: 0;
        bottom: auto;
        right: 68px;
        height: 80px;
    }
    .td-service-account-menu nav {
        min-width: 210px;
    }
    .td-service-login-button {
        min-height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
    .td-service-account-create {
        margin-left: 8px;
    }
    .td-service-account-create .td-service-login-button {
        max-width: 82px;
        padding: 0 10px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (max-width: 560px) {
    .td-service-login-backdrop {
        align-items: start;
        padding: 12px;
    }
    .td-service-login-dialog {
        width: calc(100vw - 24px);
    }
    .td-service-login-hero {
        padding: 30px 24px 26px;
    }
    .td-service-login-content {
        padding: 24px;
    }
}
@media (max-width: 560px) {
    .create-editor-header-space .td-compact-download {
        left: calc(100vw - 118px) !important;
    }
}
