:root {
    --bg: #f7f9fc;
    --card: #ffffff;
    --primary: #1e88e5;
    --muted: #6b7280;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 12px;
    --max-width: 920px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial;
    background: linear-gradient(180deg, var(--bg), #ffffff);
    color: #111
}

.container {
    max-width: var(--max-width);
    margin: 28px auto;
    padding: 20px
}

.topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 18px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand .material-icons {
    font-size: 36px;
    color: var(--primary)
}

.brand h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 500
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.field-row label {
    font-size: 13px;
    color: var(--muted)
}

.field-row input[type="text"],
.field-row input[type="tel"],
.field-row textarea {
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px
}

.field-row textarea {
    resize: vertical
}

.upload-area input[type="file"] {
    display: block
}

.preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px
}

.preview .thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.06)
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.preview .remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.actions {
    display: flex;
    justify-content: flex-end
}

.btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    cursor: pointer
}

.btn.primary {
    background: var(--primary);
    color: #fff
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed
}

.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    min-width: 240px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    display: none
}

.toast.show {
    display: block
}

.toast.success {
    background: var(--success)
}

.toast.error {
    background: var(--danger)
}

@media (max-width:720px) {
    .grid-2 {
        grid-template-columns: 1fr
    }

    .container {
        margin: 12px;
        padding: 12px
    }
}