:root {
    --ink: #202027;
    --muted: #686873;
    --accent: #6736bc;
    --line: #e4e3e9;
    --paper: #f5f4f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

header {
    background: #202027;
    color: white;
    padding: 19px 0;
}

.wrap {
    max-width: 1180px;
    margin: auto;
    padding: 0 24px;
}

.brand {
    font-weight: 900;
    font-size: 23px;
    letter-spacing: 1px;
}

    .brand span {
        font-size: 11px;
        color: #d1c8e4;
        margin-left: 18px;
        letter-spacing: 2px;
    }

.intro {
    padding: 52px 0 28px;
    max-width: 820px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--accent);
}

h1 {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 15px 0 20px;
}

h2 {
    font-size: 21px;
    margin: 0 0 16px;
}

p {
    margin: 10px 0 18px;
}

.intro p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-size: 13px;
    margin-top: 24px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    margin: 0 0 24px;
    box-shadow: 0 8px 28px #26213905;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 650;
    margin: 0 0 8px;
}

input:not([type=submit]):not([type=checkbox]),
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ceccd7;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid #9063d6;
        outline-offset: 2px;
    }

.upload {
    padding: 20px;
    background: #f8f6fc;
    border: 1px dashed #b5a2d2;
    border-radius: 12px;
    margin-bottom: 20px;
}

    .upload input {
        margin-bottom: 14px;
    }

    .upload small,
    .fine {
        font-size: 12px;
        color: var(--muted);
    }

.button {
    display: inline-block;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: white;
    padding: 13px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

    .button:hover {
        filter: brightness(0.92);
    }

.secondary {
    background: #efebf6;
    color: #4f2b88;
}

aside .button {
    width: 100%;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

.saved-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.saved-item p {
    font-size: 14px;
    margin: 5px 0;
}

.remove {
    float: right;
    color: #93434a;
    font-size: 13px;
}

.notice {
    display: block;
    background: #fff3d6;
    border: 1px solid #edd293;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
}

.success {
    border-top: 4px solid #388b67;
}

.photos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 20px;
}

    .photos > div {
        position: relative;
    }

    .photos img {
        width: 108px;
        height: 108px;
        object-fit: cover;
        border-radius: 9px;
        border: 1px solid var(--line);
    }

    .photos button {
        position: absolute;
        right: 3px;
        top: 3px;
        border: 0;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        background: #202027;
        color: white;
        cursor: pointer;
    }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

    .toolbar > div {
        flex: 1;
        min-width: 180px;
    }

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    /*padding: 12px;*/
/*    text-align: left;*/
/*    border-bottom: 1px solid var(--line);*/
    vertical-align: top;
}

th {
    background: #f8f6fc;
}

.admin-item {
    border-top: 4px solid #d5c5ed;
}

    .admin-item .fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

.fine {
    margin-top: 16px;
}

footer {
    padding: 24px 0 40px;
    color: var(--muted);
    font-size: 13px;
}

.pager {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
}

.admin-title {
    padding: 36px 0 24px;
}

a {
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .fields,
    .admin-item .fields {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .wrap {
        padding: 0 16px;
    }

    .brand span {
        display: block;
        margin: 2px 0 0;
    }

    .intro {
        padding-top: 32px;
    }

    .steps {
        font-size: 12px;
    }

    .button {
        width: 100%;
    }
}
