* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f3f5fa;
    color: #172033;
    font-family: Arial, sans-serif
}

header {
    background: #07132f;
    color: white;
    min-height: 84px;
    padding: 14px 5%;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border-bottom: 3px solid #c9a43d
}

.tenx-logo{
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75)
}
.logo {
    min-height: 56px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    font-weight: bold
}

.main-title{
    color: white;
    margin: 0;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.15;
    letter-spacing: 0.7px;
    white-space: nowrap
}

main {
    max-width: 1400px;
    margin: 28px auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    align-items: start
}

.form,
.preview {
    background: white;
    border: 1px solid #e1e6ef;
    border-radius: 16px;
    padding: 23px;
    box-shadow: 0 8px 24px #1b315010
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: bold;
    color: #8a6d20
}

.form h1,
.preview h2 {
    font-size: 21px;
    margin: 8px 0
}

.form p {
    font-size: 13px;
    color: #687386;
    line-height: 1.5
}

label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin: 15px 0
}

label small {
    font-weight: normal;
    color: #8992a3
}

input {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 11px;
    border: 1px solid #d5dbe7;
    border-radius: 8px;
    font: inherit
}

input:focus {
    outline: 2px solid #10275a;
    outline-offset: 1px;
    border-color: #10275a
}

input[type="file"] {
    padding: 8px
}

label small {
    display: block;
    margin-top: 6px
}

button {
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin: 6px 5px 0 0
}

.primary {
    background: #10275a;
    color: white
}

.secondary {
    background: #edf0f5;
    color: #344054
}

button:disabled {
    opacity: .45;
    cursor: not-allowed
}

#message {
    background: #f1f5fb;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.5;
    color: #526078
}

.downloads {
    display: flex;
    gap: 8px
}

.downloads button {
    background: #e8f5ed;
    color: #17683a;
    flex: 1
}


.canvasbox {
    background: #e8ebf2;
    padding: 12px;
    border-radius: 10px
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    background: white;
    box-shadow: 0 4px 18px #0002
}

.note {
    font-size: 11px;
    color: #8992a3;
    text-align: center
}

@media(max-width:850px) {
    header {
        min-height: 72px;
        padding: 10px 16px
    }

    .logo {
        min-height: 52px;
        gap: 10px
    }

    .tenx-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px
    }

    .main-title {
        max-width: calc(100vw - 94px);
        font-size: clamp(13px, 4.2vw, 18px);
        letter-spacing: 0.35px;
        white-space: normal
    }

    main {
        grid-template-columns: 1fr;
        margin-top: 15px
    }

    .form,
    .preview {
        padding: 17px
    }
}