html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.atlas-page-container {
    width: calc(100% - 3rem);
    max-width: 1760px;
    margin-inline: auto;
}

.atlas-page-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .atlas-page-container {
        width: calc(100% - 1.5rem);
    }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

#cmsContentNav, .cmsManagerOptions i {
    font-size: 20px;
    margin-right: 10px;
}

#cmsContentNav li{
    padding: 0;
}

.overlayScreen{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 32px 16px;
    background: rgba(0, 0, 0, 0.8);
}

.dialogBody{
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: white;
    width: min(760px, 100%);
    max-height: calc(100vh - 64px);
    margin: 0;
    padding: 20px;
    overflow: hidden;
    border-radius: 4px;
}

.dialogBody header, .dialogBody footer{
    margin: 0;
}

.dialogBody header{
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.dialogBody header h2{
    margin: 0;
    overflow-wrap: anywhere;
}

.dialogContent{
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 4px;
}

.dialogBody footer{
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.dialogBody input + label{
    margin-top: 20px;
}

.user-admin-detail dl{
    margin-bottom: 0;
}

.user-admin-detail .row{
    margin-left: 0;
    margin-right: 0;
}

.user-admin-detail .form-check{
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-left: 0;
}

.user-admin-detail .form-check-input{
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 0;
}

.user-admin-detail .form-check-label{
    margin: 0;
}

.role-checkbox-list{
    display: grid;
    gap: .35rem;
}

.role-checkbox-list .form-check{
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-left: 0;
}

.role-checkbox-list .form-check-input{
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 0;
}

@media (max-width: 640px) {
    .overlayScreen{
        padding: 12px;
    }

    .dialogBody{
        max-height: calc(100vh - 24px);
        padding: 16px;
    }
}

.btn {
    margin: .25rem;
}

.row .btn{
    margin: 0;
}

.user-badge-list{
    display: grid;
    gap: 1rem;
}

.user-badge-card{
    border: 1px solid rgba(15, 23, 42, .14);
    border-radius: 6px;
    padding: 1rem;
    background: #fff;
}

.user-badge-card-header{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.user-badge-card-header h2{
    font-size: 1.1rem;
    margin: 0;
}

.user-badge-current{
    display: grid;
    gap: .5rem;
    margin-bottom: 1rem;
}

.user-badge-current h3{
    margin: 0;
    color: #334155;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.user-badge-drawers{
    display: grid;
    gap: .8rem;
}

.user-badge-drawer{
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
}

.user-badge-drawer summary{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
    padding: .75rem .9rem;
    color: #0f172a;
    font-weight: 700;
    list-style: none;
}

.user-badge-drawer summary::-webkit-details-marker{
    display: none;
}

.user-badge-drawer summary::before{
    content: "+";
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    margin-right: .2rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 800;
}

.user-badge-drawer[open] summary::before{
    content: "-";
}

.user-badge-drawer summary span{
    margin-right: auto;
}

.user-badge-drawer summary small{
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.user-badge-drawer-body{
    display: grid;
    gap: .85rem;
    padding: .9rem;
    border-top: 1px solid rgba(15, 23, 42, .1);
    background: #fff;
}

.user-badge-assignment{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.admin-badge-token{
    --badge-accent: #64748b;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    width: 100%;
    min-height: 5rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-left: 5px solid var(--badge-accent);
    border-radius: 8px;
    padding: .8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.admin-badge-token[data-tone="gold"]{ --badge-accent: #ca8a04; }
.admin-badge-token[data-tone="blue"]{ --badge-accent: #2563eb; }
.admin-badge-token[data-tone="amber"]{ --badge-accent: #ea580c; }
.admin-badge-token[data-tone="red"]{ --badge-accent: #dc2626; }
.admin-badge-token[data-tone="cyan"]{ --badge-accent: #0891b2; }
.admin-badge-token[data-tone="green"]{ --badge-accent: #16a34a; }
.admin-badge-token[data-tone="indigo"]{ --badge-accent: #4f46e5; }
.admin-badge-token[data-tone="violet"]{ --badge-accent: #7c3aed; }
.admin-badge-token[data-tone="slate"]{ --badge-accent: #475569; }
.admin-badge-token[data-tone="rose"]{ --badge-accent: #e11d48; }

.admin-badge-icon{
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--badge-accent) 12%, white);
    color: var(--badge-accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--badge-accent) 28%, white);
}

.admin-badge-copy,
.admin-badge-copy strong,
.admin-badge-copy small,
.admin-badge-copy em{
    display: block;
}

.admin-badge-copy strong{
    color: #0f172a;
    line-height: 1.2;
}

.admin-badge-copy small{
    margin-top: .15rem;
    color: var(--badge-accent);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-badge-copy em{
    margin-top: .35rem;
    color: #64748b;
    font-size: .875rem;
    font-style: normal;
    line-height: 1.35;
}

.user-badge-available{
    display: grid;
    gap: .65rem;
}

.user-badge-available h3{
    margin: 0;
    color: #334155;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.user-badge-catalog{
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.user-badge-catalog-item{
    display: grid;
    gap: .5rem;
    align-content: start;
}


.early-access-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.early-access-flow > li {
    position: relative;
    display: grid;
    justify-items: start;
    align-content: start;
    gap: .25rem;
    padding: .85rem;
    border: 1px solid var(--bs-border-color, #ced4da);
    border-radius: .5rem;
}

.early-access-flow > li > .bi {
    color: var(--bs-primary);
    font-size: 1.15rem;
}

.early-access-flow > li > strong {
    font-size: 1.65rem;
    line-height: 1.2;
}

.early-access-flow:not(.early-access-flow-independent) > li:not(:last-child)::after {
    content: "→";
    position: absolute;
    inset-inline-start: calc(100% + .25rem);
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color, #6c757d);
}

@media (max-width: 850px) {
    .early-access-flow {
        grid-template-columns: 1fr;
    }

    .early-access-flow:not(.early-access-flow-independent) > li:not(:last-child)::after {
        content: "↓";
        inset-inline-start: 1rem;
        top: calc(100% + .1rem);
        transform: none;
    }
}
