:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #6366f1;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f97316;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.10);
    --soft-shadow: 0 8px 24px rgba(31, 41, 55, 0.07);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body,
button,
input,
textarea,
select {
    font-size: 15px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 32px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 26px rgba(31, 41, 55, 0.05);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.28);
}

.site-logo {
    display: block;
    width: auto;
    max-width: 210px;
    height: 42px;
    object-fit: contain;
}

.site-logo.compact {
    max-width: 150px;
    height: 38px;
}

.admin-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.top-nav,
.side-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav a,
.side-nav a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #475569;
    font-weight: 600;
    transition: all 0.18s ease;
}

.top-nav a:hover,
.side-nav a:hover,
.nav-pill {
    background: #eef4ff;
    color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    width: 40px;
    min-height: 40px;
    padding: 0;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 34px auto 70px;
    animation: fade-in 0.22s ease both;
}

.site-footer {
    padding: 26px 16px 36px;
    color: var(--muted);
    text-align: center;
}

.page-head,
.detail-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 34px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(99, 102, 241, 0.08)),
        #fff;
    box-shadow: var(--shadow);
}

h1,
h2 {
    margin: 0 0 12px;
    line-height: 1.25;
}

h1 {
    font-size: 32px;
}

h2 {
    margin-top: 28px;
    font-size: 19px;
}

.hero-panel h1 {
    font-size: 40px;
}

.hero-panel p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.eyebrow,
.hint,
.subtle {
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
button:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.08);
}

.button:active,
button:active {
    transform: translateY(0);
}

.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.danger {
    border-color: transparent;
    background: linear-gradient(135deg, #f87171, var(--danger));
    color: #fff;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
    transform: none;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.batch-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

.batch-delete-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--danger);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 30px;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.status-chart,
.rank-list {
    display: grid;
    gap: 12px;
}

.chart-row {
    display: grid;
    grid-template-columns: 86px 1fr 76px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.bar {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
}

.bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
}

.rank-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.ticket-list,
.my-ticket-grid {
    display: grid;
    gap: 16px;
}

.ticket-card,
.my-ticket-card,
.form-panel,
.detail,
.table-wrap,
.empty,
.alert,
.auth-card {
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--soft-shadow);
}

.ticket-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ticket-card-main {
    min-width: 0;
}

.ticket-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ticket-card:hover,
.my-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.ticket-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: #dcfce7;
    color: #15803d;
    font-weight: 900;
}

.ticket-title {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.ticket-card p {
    margin: 4px 0;
}

.solution-preview {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-meta {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 150px;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--soft-shadow);
}

.search-panel input {
    min-height: 46px;
    border-radius: 999px;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 8px;
    padding: 4px 11px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.game-badge.compact {
    margin: 0;
    padding: 3px 9px;
    font-size: 12px;
}

.ticket-subline {
    margin-bottom: 6px;
}

.similar-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
}

.similar-panel[hidden] {
    display: none;
}

.similar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.similar-head strong {
    color: #92400e;
}

.similar-list {
    display: grid;
    gap: 10px;
}

.similar-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(253, 230, 138, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.similar-card h3 {
    margin: 6px 0;
    font-size: 16px;
}

.similar-card p {
    margin: 0;
    color: var(--muted);
}

.similar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.form-panel,
.detail {
    padding: 28px;
}

.submit-panel {
    width: min(840px, 100%);
    margin-inline: auto;
}

.narrow {
    width: min(460px, 100%);
    margin-inline: auto;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
    overflow: hidden;
    width: min(980px, 100%);
    margin: 24px auto;
}

.auth-art {
    display: grid;
    align-content: center;
    gap: 14px;
    min-height: 460px;
    padding: 42px;
    background:
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.35), transparent 22%),
        linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.auth-art h1 {
    max-width: 360px;
    font-size: 34px;
}

.auth-art p {
    max-width: 380px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
}

.art-badge {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.auth-form {
    display: grid;
    align-content: center;
    padding: 42px;
}

.stack {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.check-row input {
    width: 16px;
    min-height: 16px;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

textarea {
    resize: vertical;
}

.toast-stack {
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 50;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100% - 32px));
}

.alert {
    padding: 13px 15px;
    box-shadow: var(--soft-shadow);
    animation: slide-in 0.22s ease both;
}

.alert.success {
    border-color: #86efac;
    color: #166534;
    background: #f0fdf4;
}

.alert.danger {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.alert.warning {
    border-color: #fed7aa;
    color: #9a3412;
    background: #fff7ed;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

tbody tr:nth-child(even) {
    background: #fbfdff;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.status.pending {
    color: #c2410c;
    background: #ffedd5;
}

.status.processing {
    color: #1d4ed8;
    background: #dbeafe;
}

.status.waiting-confirm {
    color: #7c2d12;
    background: #ffedd5;
}

.status.resolved {
    color: #15803d;
    background: #dcfce7;
}

.status.user-closed {
    color: #4b5563;
    background: #f3f4f6;
}

.status.admin-closed {
    color: #b91c1c;
    background: #fee2e2;
}

.upload-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border: 2px dashed #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.upload-zone p {
    margin: 4px 0 0;
    color: var(--muted);
}

.upload-zone.is-dragover {
    border-color: var(--primary);
    background: #eaf3ff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.submit-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ticket-no {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.thumbs,
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.thumb img,
.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb button {
    position: absolute;
    top: 8px;
    right: 8px;
    min-height: 30px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
}

.image-grid a {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.image-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    margin-top: 12px;
}

.conversation {
    display: grid;
    gap: 14px;
}

.message {
    max-width: min(760px, 100%);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}

.message.admin {
    margin-left: auto;
    border-color: #bbf7d0;
    border-left: 5px solid #22c55e;
    background: #f0fdf4;
}

.message.user {
    border-color: #e5e7eb;
    border-left: 5px solid #94a3b8;
    background: #f8fafc;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.message .rich-text {
    padding: 0;
    border: 0;
    background: transparent;
}

.reply-form input[type="file"] {
    padding: 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: #fff;
}

.rich-text,
.reply-box {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}

.reply-box {
    border-color: #bbf7d0;
    border-left: 5px solid #22c55e;
    background: #f0fdf4;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.info-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdff;
}

.info-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.timeline {
    margin: 0;
    padding-left: 20px;
}

.timeline li {
    margin: 7px 0;
}

.action-row,
.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.filter-form {
    min-width: 190px;
}

.empty {
    display: grid;
    place-items: center;
    gap: 7px;
    padding: 34px;
    color: var(--muted);
    text-align: center;
}

.empty span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    background: #eef4ff;
    color: var(--primary);
    font-size: 24px;
}

.empty strong {
    color: var(--text);
    font-size: 18px;
}

.empty p {
    margin: 0;
}

.dev-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    word-break: break-all;
}

.back {
    display: inline-flex;
    margin-bottom: 18px;
    font-weight: 700;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(8px);
    animation: fade-in 0.16s ease both;
}

.confirm-modal.is-leaving {
    opacity: 0;
    transition: opacity 0.16s ease;
}

.confirm-card {
    width: min(420px, 100%);
    padding: 26px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.confirm-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: #fee2e2;
    color: var(--danger);
    font-size: 22px;
    font-weight: 900;
}

.confirm-card p {
    color: var(--muted);
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.my-ticket-card {
    padding: 20px;
}

.my-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ticket-number {
    color: var(--muted);
    font-weight: 800;
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    height: 100vh;
    padding: 22px;
    border-right: 1px solid var(--line);
    background: #fff;
    box-shadow: 8px 0 28px rgba(31, 41, 55, 0.04);
}

.admin-brand {
    margin-bottom: 8px;
}

.side-nav {
    align-items: stretch;
    flex-direction: column;
}

.side-nav a {
    border-radius: 14px;
}

.admin-exit {
    margin-top: auto;
}

.admin-exit button {
    width: 100%;
}

.admin-content {
    min-width: 0;
}

.admin-topbar {
    justify-content: flex-start;
}

.admin-shell .container {
    margin-top: 24px;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-art {
        min-height: 260px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        width: 260px;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    body.nav-open .admin-sidebar {
        transform: translateX(0);
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .topbar {
        align-items: center;
        padding: 12px 16px;
    }

    .top-nav {
        position: fixed;
        inset: 64px 12px auto;
        z-index: 30;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    body.nav-open .top-nav {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .container {
        width: min(100% - 24px, 1200px);
        margin-top: 20px;
    }

    .hero-panel,
    .page-head,
    .detail-title,
    .ticket-card,
    .upload-zone {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .ticket-card-head {
        flex-direction: column;
        gap: 8px;
    }

    .hero-panel {
        padding: 24px;
    }

    .hero-panel h1 {
        font-size: 32px;
    }

    .ticket-meta {
        min-width: 0;
        text-align: left;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid,
    .dashboard-panels,
    .chart-row {
        grid-template-columns: 1fr;
    }

    input,
    select,
    textarea,
    button,
    .button {
        min-height: 44px;
    }

    .submit-actions {
        position: sticky;
        bottom: 0;
        z-index: 15;
        margin: 0 -22px -22px;
        padding: 12px 22px;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
    }

    .submit-actions .primary {
        flex: 1;
    }

    .auth-form,
    .auth-art,
    .form-panel,
    .detail {
        padding: 22px;
    }

    .toast-stack {
        top: 70px;
        right: 12px;
    }
}


.settings-form h2,
.mail-log-panel h2 {
    margin-top: 4px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mail-log-panel {
    margin-top: 18px;
}

.mail-log-panel td:last-child {
    max-width: 320px;
    color: var(--muted);
    word-break: break-word;
}

.admin-secret-hint {
    padding: 10px 12px;
    border: 1px solid rgba(191, 219, 254, 0.7);
    border-radius: 12px;
    background: rgba(239, 246, 255, 0.9);
    color: #1d4ed8;
    font-size: 12px;
    word-break: break-all;
}

.wide-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.template-block {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}

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

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

.asset-upload {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}

.asset-preview {
    display: grid;
    min-height: 92px;
    place-items: center;
    padding: 12px;
    border: 1px dashed #bfdbfe;
    border-radius: 14px;
    background: #fff;
    color: var(--muted);
}

.asset-preview.small {
    min-height: 72px;
}

.asset-preview img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.asset-preview.small img {
    max-height: 42px;
}

.support-strip {
    margin: 10px 0 16px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.detail-contact {
    margin: 22px 0 0;
    text-align: center;
}

@media (max-width: 760px) {
    .search-panel,
    .similar-card {
        grid-template-columns: 1fr;
    }

    .similar-head,
    .similar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .similar-actions .button {
        justify-content: center;
        width: 100%;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .asset-grid {
        grid-template-columns: 1fr;
    }
}


.inline-alert {
    position: static;
    width: auto;
    margin: 16px 0 0;
}
