:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1c293b;
    background: #f5f7fb;
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button,
input,
select {
    font: inherit
}

button {
    cursor: pointer
}

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

.shell {
    min-height: 100vh;
    display: flex
}

.sidebar {
    width: 244px;
    flex-shrink: 0;
    background: #0e1729;
    color: #e6efff;
    min-height: 100vh;
    padding: 30px 19px;
    display: flex;
    flex-direction: column
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 46px
}

.brand-icon {
    background: #2d75ef;
    border-radius: 13px;
    padding: 12px;
    font-size: 24px
}

.brand strong {
    display: block;
    letter-spacing: .8px
}

.brand small {
    display: block;
    color: #9aa9bf;
    margin-top: 4px
}

.navtag,
.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #8b9ab8
}

.navtag {
    padding: 0 12px 15px
}

.navitem {
    padding: 14px;
    border-radius: 11px;
    color: #b4c2d7;
    text-decoration: none;
    margin-bottom: 5px;
    font-weight: 650;
    font-size: 13px
}

.navactive {
    background: #273556;
    border-radius: 10px;
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #dfe6ff
}

.sidebottom {
    margin-top: auto;
    border-top: 1px solid #2a364e;
    padding: 25px 10px 5px
}

.privacy {
    font-size: 13px;
    font-weight: 700
}

.sidebottom p {
    font-size: 12px;
    color: #9aa9c2;
    line-height: 1.8
}

.pill {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #7ce0b5
}

.main {
    flex: 1;
    min-width: 0;
    padding: 38px clamp(20px, 3.5vw, 65px) 16px;
    max-width: 1750px;
    margin: 0 auto
}

.top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin-bottom: 33px
}

.top .eyebrow {
    color: #7a66ed
}

h1 {
    font-size: clamp(30px, 3vw, 43px);
    letter-spacing: -1.7px;
    margin: 8px 0 7px
}

h1 em {
    color: #6559e8;
    font-style: normal
}

.subtitle {
    margin: 0;
    color: #8190a5;
    font-size: 14px
}

.secure {
    border: 1px solid #dce9e6;
    border-radius: 30px;
    background: #f1faf7;
    padding: 10px 15px;
    color: #278b69;
    font-size: 12px;
    font-weight: 700
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start
}

.editor,
.settings {
    min-width: 0
}

.dropzone {
    background: #fff;
    border: 2px dashed #c9c7f4;
    border-radius: 19px;
    min-height: 278px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    transition: .2s
}

.dropzone.dragover {
    background: #f0efff;
    border-color: #685ce9;
    transform: scale(1.005)
}

.upload-icon {
    font-size: 34px;
    font-weight: 800;
    color: #7669ee;
    background: #f0edff;
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 14px
}

.dropzone h2 {
    font-size: 19px;
    margin: 0 0 8px
}

.dropzone p {
    font-size: 13px;
    color: #8794a7;
    margin: 0 0 19px
}

.dropzone small {
    font-size: 10px;
    color: #9aa5b7;
    margin-top: 16px
}

.primary,
.generate {
    border: 0;
    color: white;
    background: linear-gradient(110deg, #6d60ed, #514ad9);
    border-radius: 10px;
    padding: 12px 21px;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 7px 16px #6258e22e
}

.sectionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 30px 0 17px
}

.sectionbar h2 {
    font-size: 17px;
    margin: 0 0 6px
}

.sectionbar h2 span {
    display: inline-grid;
    place-items: center;
    background: #e8e6fd;
    color: #675ae2;
    border-radius: 7px;
    padding: 3px 8px;
    font-size: 12px;
    margin-left: 6px
}

.sectionbar p {
    margin: 0;
    font-size: 12px;
    color: #8b96a6
}

.barbuttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.outline {
    border: 1px solid #dce2ed;
    background: white;
    color: #48566c;
    border-radius: 9px;
    padding: 9px 12px;
    font-weight: 700;
    font-size: 12px
}

.danger {
    color: #c85064
}

.empty {
    border: 1px solid #e6eaf1;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    color: #9aa5b4;
    font-size: 13px;
    padding: 40px 20px
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px
}

.imagecard {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 9px;
    min-width: 0;
    box-shadow: 0 5px 15px #1e335005;
    position: relative;
    touch-action: pan-y
}

.imagecard.dragging {
    opacity: .35
}

.imagecard.over {
    outline: 2px solid #7064ed
}

.thumb {
    height: 142px;
    border-radius: 8px;
    background: repeating-conic-gradient(#f2f4f8 0% 25%, #fff 0% 50%) 50%/16px 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative
}

.thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.number {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #18243ccf;
    color: white;
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 6px
}

.filename {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 12px;
    font-weight: 750;
    margin: 10px 0 4px
}

.filesize {
    color: #97a2b0;
    font-size: 10px;
    margin-bottom: 10px
}

.cardactions {
    display: flex;
    gap: 5px;
    justify-content: space-between
}

.cardactions button {
    border: 1px solid #e7eaf1;
    background: #f9faff;
    color: #637087;
    border-radius: 6px;
    min-width: 25px;
    height: 27px;
    font-size: 13px
}

.cardactions button:hover {
    color: #5549dc;
    background: #f0edff
}

.settings {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 17px;
    box-shadow: 0 10px 30px #182b4b08;
    overflow: hidden
}

.settingshead {
    padding: 24px 24px 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf0f5
}

.settingshead .eyebrow {
    color: #7769e7
}

.settingshead h2 {
    margin: 6px 0 0;
    font-size: 19px;
    letter-spacing: -.4px
}

.gear {
    color: #7e72e5;
    font-size: 25px
}

.settingsbody {
    padding: 21px 24px 25px
}

.field {
    display: block;
    margin-bottom: 19px
}

.field>span,
.fieldtitle>span {
    display: block;
    font-size: 12px;
    font-weight: 750;
    color: #46546a;
    margin-bottom: 9px
}

.field input[type=text],
.field input[type=number],
select {
    width: 100%;
    height: 41px;
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    font-size: 12px;
    color: #37465b;
    outline-color: #7569e7
}

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

.segments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px
}

.segments label input {
    position: absolute;
    opacity: 0
}

.segments label span {
    display: block;
    border: 1px solid #e0e5ee;
    padding: 12px 5px;
    text-align: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #778398;
    cursor: pointer
}

.segments input:checked+span {
    border-color: #7467ea;
    background: #f3f1ff;
    color: #5c50d4
}

.fieldtitle {
    display: flex;
    justify-content: space-between
}

.fieldtitle strong {
    font-size: 12px;
    color: #685be1
}

.field input[type=range] {
    width: 100%;
    accent-color: #675ae6
}

.checkfield label {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 12px;
    color: #4e5c70;
    cursor: pointer
}

.checkfield input {
    accent-color: #675ae6
}

.divider {
    height: 1px;
    background: #edf0f4;
    margin: 22px 0
}

.summary {
    background: #f8f9fd;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px
}

.summary div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px
}

.summary span {
    color: #8996a8
}

.summary strong {
    font-weight: 800
}

.generate {
    width: 100%;
    height: 47px
}

.footerhint {
    text-align: center;
    color: #96a2b0;
    font-size: 11px;
    margin: 14px 0 0
}

.progresswrap {
    margin-top: 15px
}

.progresshead {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #66738a;
    margin-bottom: 7px
}

.track {
    height: 7px;
    border-radius: 10px;
    background: #e8eafa;
    overflow: hidden
}

.track>div {
    width: 0;
    height: 100%;
    background: #695ce8;
    transition: width .2s
}

.notice {
    margin-top: 14px;
    color: #bc4657;
    font-size: 12px;
    white-space: pre-line
}

.hidden {
    display: none !important
}

footer {
    font-size: 11px;
    text-align: center;
    color: #a3adbb;
    padding: 35px 0 5px
}

@media(max-width:1100px) {
    .sidebar {
        width: 205px
    }

    .workspace {
        grid-template-columns: minmax(0, 1fr) 300px
    }

    .settingsbody {
        padding: 20px 17px
    }

    .settingshead {
        padding: 21px 17px
    }
}

@media(max-width:900px) {
    .sidebar {
        display: none
    }

    .main {
        padding: 25px 20px
    }

    .workspace {
        grid-template-columns: 1fr
    }

    .settings {
        grid-row: 2
    }

    .topright {
        display: none
    }

    .sectionbar {
        flex-wrap: wrap
    }
}

@media(max-width:480px) {
    .main {
        padding: 22px 13px
    }

    .dropzone {
        min-height: 250px;
        padding: 20px 12px
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px
    }

    .thumb {
        height: 120px
    }

    .barbuttons {
        width: 100%
    }

    .outline {
        flex: 1
    }

    .sectionbar {
        margin-top: 25px
    }
}