:root { --ink: #182b26; --muted: #718078; --paper: #f4f6f3; --white: #fff; --green: #23844c; --line: #e1e7e2; --blue: #1769aa; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; color: var(--ink); }
a { color: inherit; text-decoration: none; }
.admin-body { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: var(--paper); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.6rem 1rem; background: #17352e; color: white; }
.admin-logo { padding: .5rem .8rem 2rem; font-size: 1.05rem; font-weight: 900; letter-spacing: .11em; }
.admin-logo small { display: block; margin-top: .3rem; color: #a9c5b5; font-size: .67rem; letter-spacing: .2em; }
.sidebar nav { display: grid; gap: .4rem; }
.sidebar nav a, .logout-form button { padding: .8rem .9rem; border: 0; border-radius: .55rem; background: transparent; color: #dce7e0; font: inherit; text-align: left; cursor: pointer; }
.sidebar nav a:hover, .sidebar nav a.active { background: #ffffff1c; color: white; }
.logout-form { margin-top: auto; }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; padding: 1.1rem 2.5rem; border-bottom: 1px solid var(--line); background: white; color: var(--muted); }
.admin-topbar a { color: var(--blue); }
.admin-content { width: min(100% - 3rem, 1100px); margin: 2.3rem auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.eyebrow { margin: 0 0 .3rem; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .65rem 1rem; border: 0; border-radius: .55rem; background: var(--green); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: #176c3b; }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.stat-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .2rem 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.stat-icon { grid-row: span 2; display: grid; width: 52px; height: 52px; place-items: center; border-radius: .8rem; background: #e9f3ed; color: var(--green); font-size: 1.6rem; }
.stat-label { color: var(--muted); }
.stat-card strong { font-size: 2rem; line-height: 1.1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
th { background: #f9faf8; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; align-items: center; gap: 1rem; }
.actions a { color: var(--blue); font-weight: 700; }
.actions form { margin: 0; }
.delete-link { padding: 0; border: 0; background: none; color: #b33a33; font: inherit; font-weight: 700; cursor: pointer; }
.empty-cell { padding-block: 2rem; color: var(--muted); text-align: center; }
.admin-form { display: grid; gap: .55rem; }
.form-card { max-width: 760px; padding: 1.5rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.admin-form > label, fieldset label { margin-top: .5rem; font-weight: 700; }
.admin-form input:not([type=checkbox]), .admin-form select, .admin-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid #cfd8d1; border-radius: .5rem; background: white; color: var(--ink); font: inherit; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: 2px solid #23844c40; border-color: var(--green); }
fieldset { display: grid; gap: .55rem; margin: .7rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; }
legend { padding-inline: .4rem; font-weight: 800; }
.checkbox-label { display: flex; align-items: center; gap: .6rem; }
.form-actions { display: flex; gap: .7rem; margin-top: .7rem; }
.flash-list { margin-bottom: 1rem; }
.flash { padding: .8rem 1rem; border-radius: .5rem; }
.flash.error { background: #fcebea; color: #9f2823; }
.flash.success { background: #e8f5ec; color: #176c3b; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; background: linear-gradient(135deg, #eaf0eb, #f7f6f2); }
.login-card { width: min(100%, 430px); padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 20px 70px #17352e12; }
.login-logo { display: inline-block; margin-bottom: 2.4rem; font-weight: 900; letter-spacing: .14em; }
.login-card h1 { font-size: 2rem; }
.login-intro { margin: .5rem 0 1.4rem; color: var(--muted); }
.login-card .primary-button { margin-top: 1rem; }
.back-link { display: block; margin-top: 1.2rem; color: var(--blue); text-align: center; }
@media (max-width: 720px) { .admin-body { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; padding: .7rem; } .admin-logo { padding: .4rem .5rem; } .admin-logo small { display: inline; margin-left: .4rem; } .sidebar nav { grid-template-columns: repeat(3, 1fr); } .sidebar nav a, .logout-form button { padding: .55rem; text-align: center; } .logout-form { margin-top: .4rem; } .admin-topbar { padding: .8rem 1rem; } .admin-content { width: min(100% - 1.5rem, 1100px); margin-block: 1.3rem; } .stats-grid { grid-template-columns: 1fr; } }
.field-help { color: var(--muted); }
.current-images { display: flex; flex-wrap: wrap; gap: .8rem; }
.current-image { display: grid; gap: .4rem; width: 125px; font-weight: 500 !important; }
.current-image img { width: 125px; height: 95px; object-fit: cover; border-radius: .5rem; background: #edf1ed; }
.current-image span { display: flex; align-items: center; gap: .4rem; }
.current-brand-image { margin: 0; color: var(--muted); }
.current-image img { object-fit: contain; background: #fff; }
.sortable-images { display: flex; flex-wrap: wrap; gap: .8rem; min-height: 30px; margin-top: .8rem; }
.image-sort-item { cursor: grab; padding: .4rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.image-sort-item.dragging { opacity: .4; cursor: grabbing; }
.image-sort-item img { display: block; }
.drag-hint { color: var(--muted); font-size: .78rem; user-select: none; }
.remove-image { display: flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600 !important; }
.pending-image { width: 145px; }
.pending-image img { width: 135px; height: 95px; object-fit: contain; background: #f4f6f3; }
.pending-filename { overflow-wrap: anywhere; color: var(--muted); font-size: .72rem; }
.kit-current-image { display: grid; justify-items: start; gap: .5rem; }
.kit-current-image img { width: min(100%, 320px); max-height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: .6rem; background: #f4f6f3; }
@media (max-width: 720px) { .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sidebar nav a { padding-inline: .25rem; font-size: .82rem; } }
.status-active { display: inline-block; padding: .2rem .55rem; border-radius: 999px; background: #e5f5e9; color: #176c3b; font-size: .8rem; font-weight: 800; }
.testimonial-current-image { display: grid; justify-items: start; gap: .5rem; }
.testimonial-current-image img { width: min(100%, 360px); max-height: 240px; object-fit: contain; border: 1px solid var(--line); border-radius: .6rem; background: #f4f6f3; }

