:root {
  --ink: #102033;
  --muted: #647084;
  --line: #dfe5ee;
  --soft: #f5f7fa;
  --brand: #0f766e;
  --danger: #b42318;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: var(--soft);
}

a {
  color: inherit;
  text-decoration: none;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(15, 118, 110, .12), transparent 34%),
    linear-gradient(135deg, #eef3f7 0%, #f8fafc 48%, #e9eff4 100%);
}

.login-card {
  width: min(440px, 100%);
  padding: 42px 44px 32px;
  background: var(--white);
  border: 1px solid rgba(203, 213, 225, .85);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(16, 32, 51, .14);
}

.login-brand {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #0f766e, #0a5b56);
  box-shadow: 0 8px 20px rgba(15, 118, 110, .24);
  font-size: 27px;
  font-weight: 800;
}

.login-heading > span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.login-heading h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.4px;
}

.login-heading p {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-fields {
  display: grid;
  gap: 18px;
}

.login-card input {
  min-height: 46px;
  border-radius: 5px;
  transition: border-color .2s, box-shadow .2s;
}

.login-card input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.login-card input::placeholder {
  color: #a3adba;
}

.login-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  border-radius: 5px;
  transition: background .2s, transform .2s;
}

.login-submit:hover {
  background: #0b625b;
}

.login-submit:active {
  transform: translateY(1px);
}

.login-footer {
  margin: 22px 0 0;
  color: #8a96a5;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  background: var(--white);
}

input[type="checkbox"] {
  width: auto;
}

textarea {
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.button.muted {
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
}

button.danger {
  background: var(--danger);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 15px 24px;
  background: var(--ink);
  color: var(--white);
}

.admin-header strong,
.admin-header span {
  display: block;
}

.admin-header span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.admin-header nav {
  display: flex;
  gap: 12px;
}

.admin-shell {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  color: #d7e0ea;
  background: #172334;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.tree-nav {
  padding: 16px 10px 28px;
}

.tree-item,
.tree-toggle,
.tree-children a {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.tree-item,
.tree-toggle {
  padding: 0 13px;
}

.tree-toggle {
  justify-content: space-between;
}

.tree-toggle > span:first-child {
  display: flex;
  align-items: center;
}

.tree-icon {
  width: 25px;
  display: inline-flex;
  justify-content: center;
  margin-right: 7px;
  color: #9fb1c4;
  font-size: 16px;
}

.tree-arrow {
  color: #8fa1b5;
  transition: transform .2s;
}

.tree-group.is-open .tree-arrow {
  transform: rotate(180deg);
}

.tree-children {
  display: none;
  padding: 2px 0 8px 45px;
}

.tree-group.is-open .tree-children {
  display: block;
}

.tree-children a {
  position: relative;
  min-height: 36px;
  padding: 0 10px 0 17px;
  color: #aebccc;
  font-size: 13px;
  font-weight: 500;
}

.tree-children a::before {
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  content: '';
  border: 1px solid #66788d;
  border-radius: 50%;
}

.tree-item:hover,
.tree-toggle:hover,
.tree-children a:hover,
.tree-item.is-active,
.tree-children a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
}

.tree-item.is-active,
.tree-children a.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.tree-children a.is-active::before {
  border-color: #33b5aa;
  background: #33b5aa;
}

.admin-layout {
  width: 100%;
  min-width: 0;
  padding: 26px 30px 60px;
  background: #f3f6f9;
}

.panel {
  display: none;
  margin: 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 3px 14px rgba(16, 32, 51, .045);
  scroll-margin-top: 96px;
}

.panel.admin-view.is-active {
  display: block;
}

.dashboard-welcome {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 40px;
  color: #fff;
  background: linear-gradient(120deg, #102033, #173e4b 72%, #0f766e);
  border-radius: 7px;
}

.dashboard-welcome span {
  color: #73d5cd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.dashboard-welcome h1 {
  margin: 10px 0 8px;
  font-size: 30px;
}

.dashboard-welcome p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
}

.dashboard-welcome .button {
  flex: 0 0 auto;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.dashboard-stats article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.dashboard-stats strong,
.dashboard-stats span {
  display: block;
}

.dashboard-stats strong {
  color: var(--brand);
  font-size: 29px;
}

.dashboard-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.panel-note,
.empty-state {
  color: var(--muted);
  font-size: 13px;
}

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

.full-row {
  grid-column: 1 / -1;
}

.language-column-heading {
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.language-column-heading.english {
  color: #175cd3;
  background: #eff8ff;
  border-left: 4px solid #2e90fa;
}

.language-column-heading.chinese {
  color: #067647;
  background: #ecfdf3;
  border-left: 4px solid #12b76a;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.form-note {
  align-self: end;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.checkbox-label {
  align-content: start;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding-top: 28px;
}

.checkbox-label.compact {
  margin-top: 10px;
  padding-top: 0;
  font-size: 13px;
  font-weight: 700;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  font-weight: 700;
}

.alert.success {
  color: #05603a;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.alert.error {
  color: var(--danger);
  background: #fff1f3;
  border: 1px solid #fecdca;
}

.product-table {
  display: grid;
  gap: 12px;
}

.panel-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-product-tree {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.admin-tree-root {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  color: #fff;
  background: #172f3e;
}

.admin-tree-root-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #172f3e;
  background: #fff;
}

.admin-tree-root span:last-child,
.admin-tree-label {
  display: grid;
  gap: 2px;
}

.admin-tree-root small,
.admin-tree-label small {
  color: #9eb1bd;
  font-size: 12px;
}

.admin-tree-category + .admin-tree-category {
  border-top: 1px solid var(--line);
}

.admin-tree-category > summary,
.admin-tree-type > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  list-style: none;
  cursor: pointer;
}

.admin-tree-category > summary::-webkit-details-marker,
.admin-tree-type > summary::-webkit-details-marker {
  display: none;
}

.admin-tree-category > summary {
  min-height: 68px;
  padding: 12px 16px;
  background: #edf6f5;
}

.admin-tree-category > summary:hover,
.admin-tree-type > summary:hover {
  background: #e4f1ef;
}

.admin-tree-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #91aaa7;
  background: #fff;
}

.admin-tree-toggle::before,
.admin-tree-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  content: '';
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.admin-tree-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

details[open] > summary .admin-tree-toggle::after {
  display: none;
}

.admin-tree-folder {
  position: relative;
  width: 25px;
  height: 17px;
  flex: 0 0 25px;
  border-radius: 2px;
  background: #d7a43f;
}

.admin-tree-folder::before {
  position: absolute;
  top: -5px;
  left: 2px;
  width: 11px;
  height: 6px;
  content: '';
  border-radius: 2px 2px 0 0;
  background: inherit;
}

.admin-tree-folder.type {
  background: #719f99;
}

.admin-tree-label {
  min-width: 0;
  flex: 1;
}

.admin-tree-label strong {
  font-size: 17px;
}

.admin-tree-status,
.admin-tree-count {
  padding: 4px 9px;
  border-radius: 99px;
  color: #667085;
  background: #fff;
  border: 1px solid #d0d5dd;
  font-size: 11px;
  font-weight: 800;
}

.admin-tree-status.active {
  color: #067647;
  border-color: #abefc6;
  background: #ecfdf3;
}

.button.compact {
  padding: 7px 10px;
  font-size: 12px;
}

.admin-tree-types {
  position: relative;
  padding: 10px 16px 18px 58px;
}

.admin-tree-types::before,
.admin-tree-products::before {
  position: absolute;
  top: 0;
  bottom: 18px;
  left: 34px;
  width: 1px;
  content: '';
  background: #b8cac7;
}

.admin-tree-type > summary {
  position: relative;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid #edf0ef;
}

.admin-tree-type > summary::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 25px;
  height: 1px;
  content: '';
  background: #b8cac7;
}

.admin-tree-type > summary strong {
  flex: 1;
}

.admin-tree-products {
  position: relative;
  padding: 10px 0 15px 40px;
}

.admin-tree-products::before {
  left: 18px;
}

.admin-tree-products.product-table article {
  position: relative;
  grid-template-columns: 72px 1fr auto;
  padding: 10px;
  background: #fff;
}

.admin-tree-products.product-table img {
  width: 72px;
  height: 58px;
}

.admin-tree-leaf-dot {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 23px;
  height: 1px;
  background: #b8cac7;
}

.admin-tree-leaf-dot::after {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 7px;
  height: 7px;
  content: '';
  border-radius: 50%;
  background: var(--brand);
}

.admin-tree-empty {
  margin: 8px 0;
  padding: 12px;
  color: var(--muted);
  background: #f8fafb;
}

.user-table,
.category-table,
.inquiry-table {
  display: grid;
  gap: 12px;
}

.user-table article,
.category-table article,
.inquiry-table article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
}

.user-table strong,
.user-table span,
.user-table small,
.category-table strong,
.category-table span,
.category-table small,
.inquiry-table strong,
.inquiry-table span,
.inquiry-table small {
  display: block;
}

.user-table span,
.user-table small,
.category-table span,
.category-table small,
.inquiry-table span,
.inquiry-table small {
  margin-top: 5px;
  color: var(--muted);
}

.inquiry-table small {
  max-width: 680px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.inquiry-manager-panel { padding: 0; overflow: hidden; }
.inquiry-manager { min-height: 610px; display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.inquiry-folders { padding: 18px 12px; background: #f4f6f8; border-right: 1px solid var(--line); }
.inquiry-folder-title { display: flex; justify-content: space-between; padding: 4px 10px 15px; color: #344054; }
.inquiry-folder-title span, .inquiry-folders p { color: var(--muted); font-size: 12px; }
.inquiry-folders button { width: 100%; min-height: 38px; justify-content: space-between; padding: 0 10px; color: #475467; background: transparent; font-size: 13px; font-weight: 600; }
.inquiry-folders button.is-active { color: #175cd3; background: #dceafa; }
.inquiry-folders p { padding: 10px; line-height: 1.6; }
.inquiry-toolbar { min-height: 54px; display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.inquiry-toolbar > label:first-child { display: flex; grid-template-columns: auto auto; align-items: center; gap: 7px; padding: 0 8px; font-size: 12px; }
.inquiry-toolbar button { min-height: 34px; padding: 0 10px; color: #475467; background: transparent; border-left: 1px solid #eef1f4; font-size: 12px; }
.inquiry-toolbar button:hover { color: #175cd3; background: #f5f8fc; }
.inquiry-toolbar button.danger-text { color: var(--danger); }
.inquiry-search { min-width: 210px; max-width: 320px; margin-left: auto; position: relative; display: block; }
.inquiry-search span { position: absolute; left: 10px; top: 8px; color: #98a2b3; }
.inquiry-search input { height: 34px; padding: 7px 10px 7px 30px; border-radius: 4px; font-size: 12px; }
.inquiry-date-group h3 { margin: 0; padding: 9px 14px; color: #475467; background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.inquiry-date-group h3 span { color: #98a2b3; font-weight: 400; }
.inquiry-row { border-bottom: 1px solid var(--line); background: #fff; }
.inquiry-row:hover { background: #f8fbff; }
.inquiry-row-main { min-height: 46px; display: grid; grid-template-columns: 18px 22px minmax(110px, 150px) minmax(220px, 1fr) 82px 26px; align-items: center; gap: 9px; padding: 7px 10px; }
.inquiry-row-main { cursor: default; user-select: none; }
.inquiry-row-main input { margin: 0; }
.inquiry-state-icon { color: #d49b00; text-align: center; font-size: 13px; }
.status-contacted .inquiry-state-icon { color: #079455; }
.status-closed .inquiry-state-icon { color: #98a2b3; }
.inquiry-row-main > strong { overflow: hidden; color: #344054; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.inquiry-row.status-new .inquiry-row-main strong, .inquiry-row.status-new .inquiry-subject b { color: #101828; font-weight: 800; }
.inquiry-subject { min-width: 0; display: flex; gap: 5px; overflow: hidden; color: #98a2b3; font-size: 13px; white-space: nowrap; }
.inquiry-subject b { flex: 0 0 auto; color: #475467; }
.inquiry-subject span { overflow: hidden; text-overflow: ellipsis; }
.inquiry-row-main time { color: #667085; font-size: 11px; text-align: right; white-space: nowrap; }
.inquiry-expand { min-height: 28px; padding: 0; color: #667085; background: transparent; font-size: 16px; }
.inquiry-expand[aria-expanded="true"] { transform: rotate(180deg); }
.inquiry-detail { margin: 0 12px 12px 59px; padding: 16px; background: #f8fafc; border: 1px solid #e4e7ec; }
.inquiry-detail > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.inquiry-detail a { color: #175cd3; }
.inquiry-detail .inquiry-message p { margin: 0; line-height: 1.7; }
.inquiry-detail .inquiry-translation { margin: 14px 0 6px; padding: 14px; grid-template-columns: 80px 1fr; color: #155eef; background: #eff8ff; border-left: 3px solid #2e90fa; }
.inquiry-detail .inquiry-translation:not([hidden]) { display: grid; }
.inquiry-translation p { margin: 0; color: #1d2939; line-height: 1.75; white-space: pre-wrap; }
.inquiry-detail .inquiry-detail-actions { display: flex; justify-content: flex-end; margin: 12px 0 0; }
.inquiry-detail-actions .translate-button { min-height: 34px; display: inline-flex; align-items: center; margin-right: auto; padding: 0 12px; color: #175cd3; background: #eff8ff; border: 1px solid #b2ddff; font-size: 12px; font-weight: 800; }
.inquiry-detail-actions .translate-button:disabled { cursor: wait; opacity: .7; }
.inquiry-detail-actions .reply-button { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; color: #fff; background: #175cd3; font-size: 12px; font-weight: 800; }
.inquiry-detail-actions .reply-button.is-disabled { color: #98a2b3; background: #f2f4f7; cursor: not-allowed; }
.inquiry-detail-actions form { display: flex; gap: 8px; }
.inquiry-detail-actions select { width: 110px; padding: 7px; }
.inquiry-detail-actions button { min-height: 34px; font-size: 12px; }
.inquiry-filter-empty { padding: 36px; text-align: center; }

.product-table article {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
}

.product-table img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  background: var(--soft);
}

.product-table strong,
.product-table span,
.product-table small {
  display: block;
}

.product-table span,
.product-table small {
  margin-top: 5px;
  color: var(--muted);
}

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

.product-form {
  display: grid;
  gap: 20px;
}

.media-fields,
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.preview {
  display: block;
  width: 180px;
  height: 130px;
  margin-bottom: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.gallery-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

@media (max-width: 760px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .tree-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-layout {
    padding: 18px 14px 40px;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-form,
  .media-fields,
  .two-columns,
  .user-table article,
  .category-table article,
  .inquiry-table article,
  .product-table article {
    grid-template-columns: 1fr;
  }

  .language-column-heading {
    display: none;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .admin-tree-category > summary {
    flex-wrap: wrap;
    padding: 12px;
  }

  .admin-tree-label {
    flex-basis: calc(100% - 70px);
  }

  .admin-tree-category > summary .button.compact {
    margin-left: 58px;
  }

  .admin-tree-types {
    padding: 8px 8px 14px 30px;
  }

  .admin-tree-types::before {
    left: 16px;
  }

  .admin-tree-products {
    padding-left: 20px;
  }

  .admin-tree-products::before {
    left: 9px;
  }

  .admin-tree-products.product-table article {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-tree-products.product-table img {
    width: 64px;
    height: 54px;
  }

  .admin-tree-products .row-actions {
    grid-column: 2;
  }
  .inquiry-manager { grid-template-columns: 1fr; }
  .inquiry-folders { display: grid; grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .inquiry-folder-title, .inquiry-folders p { grid-column: 1 / -1; }
  .inquiry-toolbar { flex-wrap: wrap; }
  .inquiry-search { min-width: 100%; order: 2; }
  .inquiry-row-main { grid-template-columns: 18px 22px minmax(90px, 1fr) 68px 24px; }
  .inquiry-subject { grid-column: 3 / -1; }
  .inquiry-detail { margin-left: 12px; }
}
.poster-detail-editor{margin-top:28px;padding:24px;border:1px solid #dbe3e8;background:#f7fafc;border-radius:12px}.poster-detail-editor .panel-head{margin-bottom:18px}.poster-detail-editor h3{margin:0;font-size:22px}.poster-detail-editor .checkbox-label{margin-bottom:20px}
.detail-image-manager{margin-top:8px;border:1px solid #d8dee5;background:#fff;border-radius:8px;padding:16px}.detail-image-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px;color:#6c7580;font-size:13px}.detail-image-list{display:flex;flex-wrap:wrap;gap:12px;min-height:122px}.detail-image-item,.detail-image-add{position:relative;width:112px;height:112px;border:1px solid #cfd7df;background:#f5f7f9;border-radius:5px;overflow:hidden}.detail-image-item{cursor:grab}.detail-image-item.is-dragging{opacity:.45;border-color:#1976d2}.detail-image-item img{width:100%;height:100%;object-fit:cover}.detail-image-order{position:absolute;left:5px;top:5px;width:22px;height:22px;display:grid;place-items:center;background:#15283dcc;color:#fff;border-radius:50%;font-size:12px;font-weight:800}.detail-image-actions{position:absolute;left:0;right:0;bottom:0;display:flex;opacity:0;transition:.2s}.detail-image-item:hover .detail-image-actions{opacity:1}.detail-image-actions button{flex:1;border:0;border-radius:0;padding:7px 2px;background:#172b3dcc;color:#fff;font-size:12px}.detail-image-actions button.danger{background:#c62828dd}.detail-image-add{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#77838e;cursor:pointer;border-style:dashed}.detail-image-add:hover{border-color:#1976d2;color:#1976d2}.detail-image-add b{font-size:30px;font-weight:300}.detail-image-add span{font-size:12px}.gallery-count{margin-left:8px;color:#1976d2;font-size:13px;font-weight:700}
.chart-legend{display:flex;align-items:center;gap:8px;color:#687683;font-size:13px}.chart-legend i{width:10px;height:10px;border-radius:3px}.chart-legend .views,.trend-bars .views{background:#1677ff}.chart-legend .visitors,.trend-bars .visitors{background:#27b69a}.visitor-trend-chart{display:flex;align-items:stretch;gap:12px;height:250px;margin:0 0 28px;padding:24px 22px 12px;border:1px solid #dce5ec;border-radius:12px;background:linear-gradient(to top,#edf2f6 1px,transparent 1px);background-size:100% 25%}.trend-column{flex:1;min-width:38px;display:flex;flex-direction:column;align-items:center}.trend-bars{height:185px;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:5px}.trend-bars i{display:block;width:min(24px,38%);min-height:5px;border-radius:5px 5px 0 0}.trend-column strong{margin-top:7px;font-size:12px}.trend-column small{color:#72808c;font-size:11px}.country-chart{display:grid;gap:14px;margin:0 0 28px;padding:22px;border:1px solid #dce5ec;border-radius:12px;background:#fbfcfd}.country-row{display:grid;grid-template-columns:minmax(120px,190px) minmax(160px,1fr) 110px;align-items:center;gap:14px}.country-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.country-row span{font-size:12px;color:#66737f;text-align:right}.country-track{height:14px;border-radius:8px;background:#e8eef3;overflow:hidden}.country-track i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#1677ff,#43a5ff)}
@media(max-width:700px){.visitor-trend-chart{gap:6px;padding-left:10px;padding-right:10px;overflow-x:auto}.trend-column{min-width:46px}.country-row{grid-template-columns:90px 1fr}.country-row span{grid-column:2;text-align:left}.chart-legend{flex-wrap:wrap}}
