/** ================= Member Single ================= */

.t64cr-certificate {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e8ebf0
}

.t64cr-certificate-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: #2656A0;
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

.t64cr-certificate-button:hover {
    filter: brightness(1.1)
}

.t64cr-certificate-button:focus-visible {
    outline: 3px solid #6495ed;
    outline-offset: 3px
}

.t64cr-certificate-button:disabled {
    opacity: .55;
    cursor: default
}

.t64cr-certificate-status {
    margin: 10px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5
}

.t64cr-certificate-status[hidden] {
    display: none
}

.t64cr-certificate-button[aria-busy=true] {
    opacity: .65;
    cursor: wait
}

.t64cr-icon {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px
}

.t64cr-certificate-button {
    gap: 10px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    box-shadow: 0 1px 2px #17203312;
    transition: background-color .15s, box-shadow .15s
}

.t64cr-certificate-button:enabled:hover {
    filter: none;
    background: #1E4786;
    box-shadow: 0 3px 8px #1720331a;
}

.t64cr-certificate-button:disabled,
.t64cr-certificate-button:disabled:hover {
    opacity: 1;
    filter: none;
    background: #f0f3f8;
    color: #8791a2;
    border-color: #e1e6ee;
    box-shadow: none
}

.t64cr-certificate-admin {
    --editor-accent: #254bc0;
    --editor-line: #dfe4ed;
    --editor-muted: #697386;
    max-width: 1560px;
    color: #1d2939
}

.t64cr-certificate-admin * {
    box-sizing: border-box
}

.t64cr-certificate-admin [hidden] {
    display: none !important
}

.t64cr-editor-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 28px 0 22px
}

.t64cr-editor-heading h1 {
    padding: 0;
    margin: 5px 0 8px;
    font-size: 30px;
    font-weight: 650;
    line-height: 1.2
}

.t64cr-editor-heading p {
    margin: 0;
    color: var(--editor-muted);
    font-size: 14px
}

.t64cr-editor-kicker {
    color: var(--editor-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.t64cr-editor-badge {
    padding: 9px 13px;
    border: 1px solid #d5def5;
    border-radius: 30px;
    background: #eef3ff;
    color: #2656A0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap
}

.t64cr-editor-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 18px;
    border: 1px solid var(--editor-line);
    border-radius: 12px;
    background: #FFFFFF
}

.t64cr-editor-actions>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px
}

.t64cr-enable {
    font-weight: 600
}

#t64cr-save-status {
    margin-right: 8px;
    color: var(--editor-muted);
    font-size: 12px
}

#t64cr-save-status.is-dirty {
    color: #9a650b
}

.t64cr-certificate-admin .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    margin: 0;
    border: 1px solid #d1d9e5;
    border-radius: 7px;
    background: #FFFFFF;
    color: #344054;
    box-shadow: 0 1px 2px #10182808;
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    vertical-align: middle;
    white-space: nowrap;
    cursor: pointer
}

.t64cr-certificate-admin .button:not(:disabled):hover {
    border-color: #a8b7d1;
    background: #f7f9fc;
    color: #1d3e9a
}

.t64cr-certificate-admin .button:focus-visible {
    outline: 3px solid #b9ccff;
    outline-offset: 2px;
    box-shadow: none
}

.t64cr-certificate-admin .button-primary {
    background: var(--editor-accent);
    border-color: var(--editor-accent);
    color: #FFFFFF
}

.t64cr-certificate-admin .button-primary:not(:disabled):hover {
    background: #1b3ca1;
    border-color: #1b3ca1;
    color: #FFFFFF
}

.t64cr-certificate-admin .button:disabled {
    background: #f8f9fb;
    border-color: #e6eaf1;
    color: #a3acba;
    box-shadow: none;
    cursor: default
}

.t64cr-certificate-admin .t64cr-icon-button {
    width: 38px;
    min-width: 38px;
    padding: 8px
}

.t64cr-certificate-admin .button .t64cr-icon {
    width: 16px;
    height: 16px
}

.t64cr-certificate-admin .t64cr-button-subtle {
    color: #667085;
    background: #fafbfc
}

.t64cr-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start
}

.t64cr-editor-main {
    min-width: 0;
    border: 1px solid var(--editor-line);
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden
}

.t64cr-editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--editor-line)
}

.t64cr-editor-toolbar>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px
}

#t64cr-template-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--editor-muted);
    font-size: 12px
}

.t64cr-editor-tools label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--editor-muted);
    font-size: 12px
}

.t64cr-editor-viewport {
    position: relative;
    min-height: 420px;
    max-height: 78vh;
    padding: 30px 24px;
    overflow: auto;
    background-color: #e9edf3;
    background-image: radial-gradient(#ccd3df .75px, transparent .75px);
    background-size: 14px 14px
}

.t64cr-editor-stage {
    position: relative;
    margin: auto;
    flex: none;
    background: #FFFFFF;
    box-shadow: 0 5px 28px #1d293929
}

#t64cr-certificate-preview {
    display: block;
    width: 100%;
    height: auto
}

#t64cr-editor-overlays {
    position: absolute;
    inset: 0;
    pointer-events: none
}

#t64cr-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, #254bc052 1px, transparent 1px), linear-gradient(to bottom, #254bc052 1px, transparent 1px)
}

.t64cr-grid-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--editor-line);
    background: #fcfdff;
    font-size: 12px;
    color: #475467
}

.t64cr-grid-toolbar label {
    display: flex;
    align-items: center;
    gap: 6px
}

.t64cr-grid-toolbar span {
    color: var(--editor-muted);
    font-size: 11px;
    margin-left: auto
}

.t64cr-grid-toolbar input {
    margin: 0
}

.t64cr-align-controls {
    margin-top: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--editor-line);
    border-bottom: 1px solid var(--editor-line)
}

.t64cr-align-controls>span {
    display: block;
    font-size: 11px;
    color: #667085;
    margin-bottom: 8px
}

.t64cr-align-controls>div {
    display: flex;
    gap: 4px;
    margin-top: 5px
}

.t64cr-certificate-admin .t64cr-align-controls .button {
    min-width: 0;
    flex: 1;
    padding: 5px 3px;
    min-height: 32px;
    font-size: 10px;
    font-weight: 500
}

.t64cr-editor-block {
    position: absolute;
    display: block;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px dashed #4468af99;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: move;
    touch-action: none;
    pointer-events: auto;
    outline: none
}

.t64cr-editor-block:hover {
    border-color: #254bc0;
    background: #254bc009
}

.t64cr-editor-block.is-selected {
    border: 1.5px solid var(--editor-accent);
    background: #254bc008;
    z-index: 2
}

.t64cr-editor-block:focus-visible {
    outline: 2px solid #7a9df4;
    outline-offset: 3px
}

.t64cr-editor-block.is-dragging {
    cursor: grabbing
}

.t64cr-block-label {
    position: absolute;
    top: -24px;
    left: -1px;
    max-width: 220px;
    padding: 4px 7px;
    background: #536786;
    color: #FFFFFF;
    border-radius: 4px 4px 0 0;
    font: 500 11px/15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: nowrap;
    pointer-events: none
}

.is-selected .t64cr-block-label {
    background: var(--editor-accent)
}

.t64cr-block-resize {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--editor-accent);
    border-radius: 2px;
    background: #FFFFFF;
    cursor: nwse-resize
}

.t64cr-editor-block:not(.is-selected) .t64cr-block-resize {
    opacity: 0
}

.t64cr-editor-empty {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--editor-muted)
}

.t64cr-editor-empty>span {
    font-size: 52px;
    line-height: 1.3;
    color: #a5b2ca
}

.t64cr-editor-empty h2 {
    margin: 16px 0 0;
    font-size: 20px;
    color: #344054
}

.t64cr-editor-empty p {
    line-height: 1.7;
    margin: 12px 0 22px
}

.t64cr-editor-caption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    color: var(--editor-muted);
    font-size: 11px;
    border-top: 1px solid var(--editor-line)
}

#t64cr-preview-status {
    margin: 0;
    padding: 0 16px 14px;
    color: var(--editor-muted);
    font-size: 12px
}

#t64cr-preview-status.is-error {
    color: #b42318
}

.t64cr-preview-member {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--editor-line);
    background: #fcfdff
}

.t64cr-preview-member>label {
    width: 100%;
    font-weight: 600;
    font-size: 12px
}

#t64cr-preview-member {
    max-width: 100%;
    min-width: 180px
}

#t64cr-member-link {
    font-size: 12px;
    color: #344054
}

#t64cr-preview-member {
    min-height: 38px;
    padding: 4px 30px 4px 10px;
    border-color: #d1d9e5;
    border-radius: 7px;
    font-size: 12px
}

#t64cr-member-status {
    width: 100%;
    margin: 0;
    color: var(--editor-muted);
    font-size: 12px;
    line-height: 1.6
}

.t64cr-editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0
}

.t64cr-editor-panel {
    padding: 18px;
    border: 1px solid var(--editor-line);
    border-radius: 12px;
    background: #FFFFFF
}

.t64cr-editor-panel h2 {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650
}

.t64cr-panel-description {
    margin: 8px 0 0;
    color: var(--editor-muted);
    font-size: 11px;
    line-height: 1.65
}

.t64cr-layer-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px
}

.t64cr-layer-row {
    display: flex;
    align-items: center;
    gap: 6px
}

.t64cr-layer-select {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    min-width: 0;
    padding: 10px 8px;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    color: #344054
}

.t64cr-layer-select:hover {
    background: #f7f9fd
}

.t64cr-layer-select.is-selected {
    border-color: #c7d5fb;
    background: #eff4ff;
    color: #254bc0
}

.t64cr-layer-select:focus-visible {
    outline: 2px solid #7a9df4
}

.t64cr-layer-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    background: #edf0f5;
    border-radius: 6px;
    font-size: 16px
}

.is-selected .t64cr-layer-icon {
    background: #dee8ff
}

.t64cr-layer-select strong {
    display: block;
    font-size: 12px;
    font-weight: 600
}

.t64cr-layer-select small {
    display: block;
    margin-top: 4px;
    color: var(--editor-muted);
    font-size: 10px
}

.t64cr-layer-visibility {
    padding: 6px 0 6px 6px
}

.t64cr-layer-visibility input {
    margin: 0
}

.t64cr-inspector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.t64cr-inspector label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 500
}

.t64cr-inspector .t64cr-inspector-label {
    margin-top: 14px
}

.t64cr-inspector input[type=number],
.t64cr-inspector input[type=text],
.t64cr-inspector select {
    width: 100%;
    min-width: 0;
    min-height: 35px;
    margin: 0;
    border-color: #d1d9e5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 400
}

.t64cr-inspector small {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--editor-muted)
}

.t64cr-color-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border: 1px solid #d1d9e5;
    border-radius: 6px
}

.t64cr-color-control input {
    width: 36px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer
}

.t64cr-color-control code {
    background: transparent;
    font-size: 12px
}

.t64cr-certificate-admin .t64cr-font-weight {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 39px;
    padding: 9px 10px;
    margin-top: 12px;
    border: 1px solid #d1d9e5;
    border-radius: 7px;
    background: #FFFFFF;
    cursor: pointer
}

.t64cr-font-weight input {
    margin: 0
}

.t64cr-font-weight strong {
    font: 700 17px/20px Georgia, serif;
    color: #344054
}

.t64cr-certificate-admin .t64cr-font-weight:has(input:checked) {
    background: #eef3ff;
    border-color: #b3c7f7;
    color: #254bc0
}

.t64cr-empty-image .t64cr-icon {
    width: 44px;
    height: 44px;
    color: #a5b2ca
}

#t64cr-reset-block {
    margin-top: 16px;
    width: 100%
}

#t64cr-qr-info {
    font-size: 12px;
    line-height: 1.7;
    color: var(--editor-muted)
}

.t64cr-font-current {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 17px;
    overflow-wrap: anywhere
}

.t64cr-font-upload {
    display: block;
    font-size: 12px;
    font-weight: 600
}

.t64cr-font-upload input {
    display: block;
    max-width: 100%;
    margin-top: 9px;
    font-size: 11px
}

.t64cr-editor-panel>label:last-child {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6
}

.t64cr-editor-sync {
    margin-top: 20px;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 1px solid var(--editor-line);
    border-radius: 12px;
    font-size: 12px
}

.t64cr-editor-sync summary {
    cursor: pointer;
    font-weight: 600
}

.t64cr-editor-sync h2 {
    margin: 0 0 12px;
    font-size: 14px
}

#t64cr-sync-status {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 14px
}

#t64cr-sync-status.is-error {
    color: #b42318
}

#t64cr-sync-status.is-warning {
    color: #9a650b
}

@media(max-width:1200px) {
    .t64cr-editor-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 14px
    }

    .t64cr-editor-panel {
        padding: 14px
    }

    .t64cr-editor-caption {
        display: block
    }

    .t64cr-editor-caption span {
        display: block;
        line-height: 1.7
    }
}

@media(max-width:960px) {
    .t64cr-editor-grid {
        grid-template-columns: 1fr
    }

    .t64cr-editor-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start
    }

    .t64cr-inspector {
        grid-column: 2;
        grid-row: 1/3
    }

    .t64cr-editor-actions {
        align-items: flex-start
    }

    .t64cr-editor-actions>div {
        justify-content: flex-start
    }

    .t64cr-editor-viewport {
        min-height: 300px
    }
}

@media(max-width:600px) {
    .t64cr-certificate-button {
        width: 100%
    }

    .t64cr-editor-heading {
        margin-top: 18px
    }

    .t64cr-editor-heading h1 {
        font-size: 26px
    }

    .t64cr-editor-badge {
        display: none
    }

    .t64cr-editor-sidebar {
        display: flex
    }

    .t64cr-editor-actions {
        padding: 14px
    }

    .t64cr-editor-actions>div {
        gap: 8px
    }

    .t64cr-editor-actions #t64cr-save-status {
        width: 100%
    }

    .t64cr-editor-toolbar {
        padding: 12px
    }

    .t64cr-editor-tools {
        width: 100%
    }

    #t64cr-template-name {
        max-width: 120px
    }

    .t64cr-editor-viewport {
        padding: 28px 24px;
        min-height: 240px
    }

    .t64cr-editor-caption span:last-child {
        display: none
    }
}

