:root {
  --ink: #10211e;
  --green: #0f4c45;
  --green-deep: #082824;
  --gold: #c6a15b;
  --gold-soft: #f6edd8;
  --line: #e6e1d8;
  --paper: #f6f4ef;
  --card: #ffffff;
  --muted: #6b7280;
  --new: #b45309;
  --read: #1d4ed8;
  --replied: #047857;
  --danger: #b42318;
  --shadow: 0 16px 40px rgba(16, 33, 30, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", sans-serif;
  background: #f3f5f9;
  color: #0f172a;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(198, 161, 91, 0.22), transparent 32%),
    linear-gradient(160deg, #071614 0%, #0f4c45 55%, #16312c 100%);
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.login-logo img { height: 64px; width: auto; max-width: 240px; object-fit: contain; }
.login-card h1 { margin: 0 0 6px; font-size: 26px; text-align: center; }
.login-card p { margin: 0 0 22px; text-align: center; color: var(--muted); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfaf7;
  border-radius: 12px;
  padding: 12px 14px;
}
.btn-gold {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #e2c27a, #b8911f);
  color: #1b1406;
  font-weight: 800;
  cursor: pointer;
}
.alert {
  background: #fef2f2;
  color: var(--danger);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 276px;
  background: #0c1424;
  color: #f8fafc;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 0;
}
.side-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.side-brand img {
  height: 54px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 7px 12px;
}
.side-scroll { overflow: auto; padding: 14px 12px 18px; flex: 1; }
.side-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 14px 10px 8px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.side-link i { width: 18px; text-align: center; color: #fbbf24; }
.side-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-link.active {
  background: #c9a227;
  color: #1c1404;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(201, 162, 39, 0.28);
}
.side-link.active i { color: #1c1404; }
.side-link.active .badge { background: #f4d068; color: #1c1917; }
.badge {
  margin-left: auto;
  background: #0f4c45;
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
}
.main { flex: 1; min-width: 0; }
.topbar {
  min-height: 78px;
  background: #0c1424;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h2 { margin: 0; font-size: 18px; color: #fff; }
.topbar p { margin: 2px 0 0; color: #94a3b8; font-size: 12px; }
.top-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.btn-line, .btn-solid, .btn-tiny {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.btn-solid { background: var(--green); color: #fff; border-color: var(--green); }
.btn-tiny { padding: 6px 10px; font-size: 12px; }
.btn-tiny.danger { color: var(--danger); border-color: #fecaca; background: #fff5f5; }
.content { padding: 26px 28px 48px; }
.theme-switch {
  display: inline-flex;
  background: #efeae2;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.theme-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #4b5563;
}
.theme-switch button.active {
  background: #fff;
  color: #10211e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  display: block;
  border: 0;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 28px rgba(16, 33, 30, 0.12);
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(16, 33, 30, 0.18); }
.stat span { color: rgba(255, 255, 255, 0.88); font-size: 13px; font-weight: 700; }
.stat strong { display: block; margin-top: 8px; font-size: 32px; color: #fff; }
.stat small { display: block; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.stat-teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.stat-amber { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.stat-green { background: linear-gradient(135deg, #047857, #34d399); }
.stat-blue { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(16, 33, 30, 0.1);
}
.shortcut:hover { transform: translateY(-2px); }
.shortcut i { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.2); }
.sc-1 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.sc-2 { background: linear-gradient(135deg, #be185d, #fb7185); }
.sc-3 { background: linear-gradient(135deg, #b45309, #fbbf24); }
.sc-4 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.sc-5 { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.sc-6 { background: linear-gradient(135deg, #9a3412, #fb923c); }
.sc-7 { background: linear-gradient(135deg, #4338ca, #818cf8); }
.sc-8 { background: linear-gradient(135deg, #166534, #4ade80); }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid #f1eee8; vertical-align: top; font-size: 14px; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #fbfaf7; }
tr:hover td { background: #fcfbf8; }
.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}
.status.new { background: #fff7ed; color: var(--new); }
.status.read { background: #eff6ff; color: var(--read); }
.status.replied { background: #ecfdf5; color: var(--replied); }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img { width: 100%; height: 150px; object-fit: cover; display: block; background: #efeae2; }
.card div { padding: 14px 14px 16px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.detail {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}
.kv { display: grid; gap: 8px; color: #374151; font-size: 14px; }
.kv b { color: var(--ink); }
.message-box {
  background: #fbfaf7;
  border-radius: 14px;
  padding: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.menu-btn { display: none; }
html.theme-dark {
  --ink: #e7eefc;
  --line: #2c3d5c;
  --paper: #0b1220;
  --card: #162033;
  --muted: #a9b8d0;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
html.theme-dark body { background: #0b1220; color: var(--ink); }
html.theme-dark .topbar { background: #121a2b; border-bottom-color: #2c3d5c; }
html.theme-dark .panel,
html.theme-dark .card,
html.theme-dark .btn-line,
html.theme-dark .btn-tiny,
html.theme-dark .chip,
html.theme-dark .quick-bar,
html.theme-dark .img-card { background: #162033; color: var(--ink); border-color: #2c3d5c; }
html.theme-dark th { background: #121a2b; color: #a9b8d0; }
html.theme-dark td,
html.theme-dark th { border-bottom-color: #2c3d5c; }
html.theme-dark tr:hover td { background: #1c2c48; }
html.theme-dark .message-box { background: #121a2b; color: #e7eefc; }
html.theme-dark .kv,
html.theme-dark .card p,
html.theme-dark .img-add p { color: #c5d2e8; }
html.theme-dark .theme-switch { background: #1c2c48; }
html.theme-dark .theme-switch button { color: #c5d2e8; }
html.theme-dark .theme-switch button.active { background: #3b82f6; color: #fff; }
html.theme-dark .sidebar { background: #10192b; color: #e7eefc; }
html.theme-dark .side-brand { border-bottom-color: #2c3d5c; }
html.theme-dark .side-label { color: #8ea0bd; }
html.theme-dark .side-link { color: #e7eefc; }
html.theme-dark .side-link i { color: #93c5fd; }
html.theme-dark .side-link:hover { background: #1c2c48; color: #fff; }
html.theme-dark .side-link.active { background: #c9a227; color: #1c1404; }
html.theme-dark .side-link.active i { color: #1c1404; }
html.theme-dark .topbar { background: #0c1424; }
html.theme-dark .file-pick-btn { background: #2563eb; }
html.theme-dark .btn-solid { background: #2563eb; border-color: #2563eb; }
html.theme-dark .img-card img { background: #0f172a; }
.product-add {
  display: grid;
  grid-template-columns: 1.3fr 150px 1.5fr auto;
  gap: 10px;
  align-items: end;
  padding: 16px 18px;
}
.product-add label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.product-add input, .price-row input[name="price"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
}
.price-row { display: flex; gap: 8px; align-items: center; }
.price-row input[name="price"] { width: 120px; }
.saved-note,
.save-toast {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(4, 120, 87, 0.12);
}
.save-toast.is-bad { background: #fef2f2; color: #b42318; border-color: #fecaca; }
.save-toast i { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #16a34a; color: #fff; flex: 0 0 auto; }
.save-toast.is-bad i { background: #dc2626; }
.back-link {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1d4ed8;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}
.back-link:hover { background: #1e40af; }
.file-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e3a8a;
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.file-pick-name { color: var(--muted); font-size: 13px; font-weight: 600; }
html.theme-dark .product-add input,
html.theme-dark .product-add textarea,
html.theme-dark .blog-form input,
html.theme-dark .blog-form select,
html.theme-dark .blog-form textarea,
html.theme-dark .price-row input[name="price"] { background: #14201c; color: var(--ink); }
.work-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-hello {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: linear-gradient(110deg, #0f172a, #1e293b 68%, #334155);
  color: #fff;
  border-radius: 18px;
  padding: 26px 28px;
  margin-bottom: 16px;
}
.dash-hello h3 { margin: 0 0 6px; font-size: 28px; }
.dash-hello p { margin: 0; color: #cbd5e1; }
.dash-date { background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px 14px; font-weight: 700; white-space: nowrap; }
.quick-bar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.quick-bar strong { display: block; }
.quick-bar p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.quick-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.qbtn { border-radius: 10px; padding: 10px 14px; font-weight: 800; font-size: 13px; color: #fff; }
.q-green { background: #16a34a; }
.q-purple { background: #7c3aed; }
.q-orange { background: #f97316; }
.q-blue { background: #2563eb; }
.q-dark { background: #111827; }
.dash-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-stat {
  border-radius: 16px;
  color: #fff;
  min-height: 132px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.dash-stat span { font-weight: 700; opacity: .95; }
.dash-stat b { font-size: 36px; margin-top: 10px; line-height: 1; }
.dash-stat em { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 700; }
.s-green { background: #22c55e; }
.s-orange { background: #f97316; }
.s-blue { background: #3b82f6; }
.s-purple { background: #8b5cf6; }
.s-pink { background: #f43f5e; }
.img-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.img-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.img-card img { width: 100%; height: 180px; object-fit: contain; background: #f8fafc; display: block; }
.img-actions { display: flex; gap: 8px; align-items: center; padding: 10px; }
.img-actions label.btn-tiny { position: relative; overflow: hidden; cursor: pointer; }
.img-actions input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-add form { padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.img-add input[type="file"] { position: static; opacity: 1; }
.img-add p { margin: 0; color: #64748b; font-size: 13px; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.rings { display: flex; gap: 22px; flex-wrap: wrap; margin: 6px 0 14px; }
.donut {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
}
.donut-hole {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.donut-hole strong { font-size: 28px; line-height: 1; }
.donut-hole small { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ring-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13px; font-weight: 700; color: #57534e; }
.ring-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.full-field { grid-column: 1 / -1; }
.product-add textarea,
.blog-form input,
.blog-form select,
.blog-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
}
.blog-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 12px;
  padding: 16px 18px;
}
.blog-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.mode-pill, .live-pill, .icon-btn, .avatar {
  border: 0;
  cursor: pointer;
  color: #fff;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 13px;
}
.mode-pill i { color: #fbbf24; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 13px;
}
.top-search {
  position: relative;
  display: flex;
  align-items: center;
}
.top-search i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 13px;
}
.top-search input {
  width: 280px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px 10px 36px;
  outline: none;
}
.top-search input::placeholder { color: #94a3b8; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bell-wrap { position: relative; }
.bell-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.bell-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  width: 280px;
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 12px;
  z-index: 20;
}
.bell-menu.open { display: block; }
.bell-menu strong { display: block; margin-bottom: 8px; }
.bell-menu a {
  display: block;
  padding: 8px 4px;
  border-top: 1px solid #eef2f7;
}
.bell-menu a b, .bell-menu a span { display: block; }
.bell-menu a span, .bell-menu p { color: #64748b; font-size: 12.5px; margin: 2px 0 0; }
.bell-all { font-weight: 800; color: #1d4ed8 !important; }
.avatar, .avatar-fallback, .side-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar { display: inline-flex; border: 2px solid #334155; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-user img,
.side-user .avatar-fallback {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  flex: 0 0 40px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c9a227;
  color: #1c1404;
  font-weight: 800;
}
.avatar-fallback.lg { width: 84px; height: 84px; font-size: 28px; }
.side-user {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 8px 12px 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #162033;
  border: 1px solid #2c3d5c;
  color: #fff;
}
.side-user b, .side-user small { display: block; line-height: 1.25; }
.side-user b { font-size: 14px; font-weight: 800; }
.side-user small { color: #94a3b8; font-size: 12px; font-weight: 600; }
.side-user.active { border-color: #c9a227; }
.signout {
  margin: 4px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
  border-radius: 12px;
  padding: 10px;
  font-weight: 800;
}
.signout:hover { background: rgba(239, 68, 68, 0.12); }
.prod-list { display: flex; flex-direction: column; }
.prod-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}
.prod-row:last-child { border-bottom: 0; }
.prod-thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #f8fafc;
  border: 1px solid #e7e5e4;
  flex: 0 0 auto;
}
.prod-main { flex: 1; min-width: 0; }
.prod-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prod-title b { font-size: 16px; }
.pill-live {
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}
.prod-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.prod-meta span {
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12.5px;
}
.prod-acts, .photo-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.prod-acts form, .photo-acts form { margin: 0; }
.act-edit, .act-live, .act-del, .btn-edit-solid, .btn-del-solid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
}
.act-edit { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.act-live { color: #059669; background: #ecfdf5; border-color: #a7f3d0; }
.act-del { color: #e11d48; background: #fff1f2; border-color: #fecdd3; }
.btn-edit-solid, .btn-del-solid { border-radius: 10px; color: #fff; position: relative; overflow: hidden; }
.btn-edit-solid { background: #2563eb; }
.btn-del-solid { background: #ef4444; }
.btn-edit-solid input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.editor-card { margin-bottom: 16px; }
.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 0;
}
.editor-head h3 { margin: 0; font-size: 18px; }
.photo-editor {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  padding: 16px 18px 20px;
}
.photo-frame {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
}
.photo-frame img { width: 100%; height: 210px; object-fit: contain; display: block; }
.photo-acts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.photo-acts-line { flex-wrap: nowrap; }
.desk-form > .btn-save { margin-top: 4px; }
.enquiry-message { white-space: normal; max-width: 420px; line-height: 1.45; }
.content-boxes, .profile-form, .add-photo-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 18px 22px;
}
.content-boxes > label, .profile-form > label, .add-form > label { width: 100%; }
.btn-save {
  width: auto;
  align-self: flex-start;
  border: 0;
  background: #1d4ed8;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.btn-save:hover { background: #1e40af; }
.shot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 18px 20px;
}
.shot {
  width: 210px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px;
}
.shot img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 10px;
}
.shot-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 214px;
  border-style: dashed;
  background: transparent;
}
.shot-add form { margin: 0; }
.shot-grid.inline { padding: 0; }
.add-image-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: #1d4ed8;
  color: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.add-image-btn input { display: none; }
.add-image-btn:hover { background: #1e40af; }
.photo-block { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
.field-kicker { display: block; font-size: 13px; font-weight: 800; color: #334155; margin-bottom: 8px; }
.cat-manage { padding: 8px 18px 0; }
.cat-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-select {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #1e293b;
  font-weight: 700;
  padding: 0 12px;
  color-scheme: light;
}
.pill-add, .pill-edit, .pill-del {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.pill-add { background: #fff7ed; color: #ea580c; border: 1px solid #fdba74; }
.pill-edit { background: #eff6ff; color: #2563eb; border: 1px solid #93c5fd; }
.pill-del { background: #fff1f2; color: #e11d48; border: 1px solid #fda4af; }
.cat-editor {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 0;
}
.cat-editor[hidden] { display: none; }
.cat-editor input {
  width: 280px;
  max-width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
}
html.theme-dark .shot { background: #121a2b; border-color: #2c3d5c; }
html.theme-dark .shot-add { background: transparent; }
html.theme-dark .shot img { background: #0f172a; }
html.theme-dark .field-kicker { color: #dbe4f5; }
.content-boxes label, .profile-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}
label.add-image-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: #1d4ed8;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
label.add-image-btn i { font-size: 14px; }
label.add-image-btn:hover { background: #1e40af; }
.photo-block {
  box-sizing: border-box;
  border: 1px dashed #94a3b8;
  border-radius: 16px;
  padding: 16px;
  background: #f8fafc;
}
html.theme-dark .photo-block {
  border-color: #4b6084;
  background: #0e1728;
}
.content-boxes input, .content-boxes textarea, .content-boxes select, .profile-form input {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}
.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.catalog-head h3 { margin: 0 0 4px; font-size: 28px; }
.catalog-head p, .lead { margin: 0; color: #64748b; }
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e08a1e;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(224, 138, 30, 0.28);
}
.btn-add:hover { background: #c87410; }
.add-form { padding-top: 16px; }
.photo-well {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px;
}
.photo-well p, .pick-list { margin: 6px 0 0; color: #64748b; font-size: 13px; }
.photo-frame.slim { max-width: 220px; }
.desk-form { display: flex; flex-direction: column; gap: 16px; }
.desk-card {
  background: linear-gradient(180deg, #152038, #0e1728);
  color: #e7eefc;
  border: 1px solid #2a3b5a;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 36px rgba(8, 15, 30, 0.16);
}
.desk-title { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid #2a3b5a; }
.desk-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  font-size: 16px;
}
.desk-ico.green { background: #12352c; color: #4ade80; }
.desk-ico.amber { background: #3a2a12; color: #fdba74; }
.desk-ico.blue { background: #172554; color: #93c5fd; }
.desk-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: #86efac;
  background: #12352c;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.desk-kicker.green { color: #4ade80; background: #12352c; }
.desk-kicker.amber { color: #fdba74; background: #3a2a12; }
.desk-kicker.blue { color: #93c5fd; background: #172554; }
.desk-title h3 { margin: 8px 0 4px; }
.desk-title p { margin: 0; }
.desk-card small { color: #8ea0bd; font-weight: 600; font-size: 12px; }
.btn-choose, .btn-remove {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.btn-choose { background: #f97316; }
.btn-choose:hover { background: #ea580c; }
.btn-remove { background: #9f1239; }
.btn-remove:hover { background: #881337; }
.btn-remove:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-choose input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-hint {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}
.avatar-shot { position: relative; }
.status-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #10192d;
}
.desk-card h3 { margin: 10px 0 6px; color: #fff; font-size: 24px; }
.desk-card p { margin: 0 0 14px; color: #b7c5dc; }
.desk-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  margin-top: 12px;
  color: #dbe4f5;
}
.desk-card label.btn-choose,
.desk-card .btn-remove {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 168px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.desk-card em {
  display: inline-flex;
  width: fit-content;
  margin-left: 8px;
  background: #fb7185;
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.04em;
}
.desk-card input, .desk-card textarea {
  width: 100%;
  background: #0b1220;
  color: #fff;
  border: 1px solid #31415f;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}
.desk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avatar-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #10192d;
  border: 1px solid #31415f;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 8px;
}
.avatar-shot img, .avatar-panel .avatar-fallback.lg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.role-pills { display: flex; gap: 8px; margin-bottom: 8px; }
.role-pills span {
  background: #c9a227;
  color: #1c1404;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
.role-pills .on { background: #059669; color: #fff; }
.avatar-panel strong { display: block; color: #fff; }
.avatar-panel p { margin: 4px 0 10px; }
.add-photo-form, .profile-form { padding: 16px 18px 20px; }
.profile-photo { display: flex; align-items: center; gap: 16px; }
.profile-photo img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.role-note { margin: 0; color: #64748b; font-weight: 700; }
.search-block { padding: 8px 18px 16px; }
.search-hit {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}
.search-hit span, .empty-note { color: #64748b; }
.empty-note { padding: 18px; margin: 0; }
html.theme-dark .prod-row,
html.theme-dark .photo-frame,
html.theme-dark .profile-form input,
html.theme-dark .bell-menu { background: #162033; color: #e7eefc; border-color: #2c3d5c; }
html.theme-dark .content-boxes input,
html.theme-dark .content-boxes textarea,
html.theme-dark .content-boxes select,
html.theme-dark .cat-editor input {
  background: #0b1220;
  color: #f8fafc;
  border: 1px solid #6b82a8;
  color-scheme: dark;
}
html.theme-dark .prod-meta span { background: #1c2c48; color: #dbe4f5; }
html.theme-dark .content-boxes label { color: #dbe4f5; }
html.theme-dark .bell-menu a { border-top-color: #2c3d5c; }
.icon-btn.menu-btn { display: none; }
@media (max-width: 1180px) {
  .top-search input { width: 180px; }
  .mode-pill span { display: none; }
  .photo-editor, .desk-grid { grid-template-columns: 1fr; }
  .prod-row, .catalog-head, .avatar-panel { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .icon-btn.menu-btn { display: inline-flex; }
}
@media (max-width: 980px) {
  .stats, .shortcuts, .grid-cards, .detail, .product-add, .dash-stats, .img-grid { grid-template-columns: 1fr; }
  .dash-hello, .quick-bar { align-items: flex-start; flex-direction: column; }
  .sidebar { position: fixed; z-index: 20; transform: translateX(-105%); transition: 0.2s ease; }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}
