dialog.account-details-modal { width: min(1240px,calc(100vw - 40px)); }
.account-detail-body { padding: 24px 28px 28px; max-height: calc(100dvh - 210px); background: #f7f9fd; }
.account-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.account-detail-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-detail-avatar { width: 66px; height: 66px; flex: 0 0 66px; object-fit: cover; border-radius: 18px; border: 1px solid #dce5f3; background: #eaf1ff; }
.account-detail-initial { display: grid; place-items: center; font-size: 25px; font-weight: 650; color: #5379bd; }
.account-detail-profile { min-width: 0; }
.account-detail-profile h3 { font-size: 20px; font-weight: 650; color: #233851; overflow-wrap: anywhere; }
.account-detail-profile > p { color: #6e829f; font-size: 14px; margin-top: 1px; overflow-wrap: anywhere; }
.account-detail-profile-meta { display: flex; gap: 7px 14px; flex-wrap: wrap; margin-top: 5px; color: #8896ad; font-size: 13px; }
.account-detail-profile-meta span { overflow-wrap: anywhere; }
.account-detail-remark { display: block; font-size: 13px; color: #8190a6; margin-top: 3px; overflow-wrap: anywhere; }
.account-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.account-detail-statistics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.account-detail-stat { min-width: 0; background: #fff; border: 1px solid #e1e7f1; border-radius: 11px; padding: 15px 14px 12px; }
.account-detail-stat > span { display: block; font-size: 14px; color: #6f7e94; }
.account-detail-stat > strong { display: block; font-size: 25px; font-weight: 650; line-height: 1.4; margin-top: 6px; color: #243d61; overflow-wrap: anywhere; }
.account-detail-stat > small { display: block; font-size: 11px; line-height: 1.6; color: #9aa6b7; margin-top: 4px; }
.account-detail-stat.stat-products strong { color: #27897d; }
.account-detail-stat.stat-posts strong { color: #3466e9; }
.account-detail-sync { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 15px; border: 1px solid #e2e8f2; background: #fff; border-radius: 9px; margin-bottom: 18px; }
.account-detail-sync.running { border-color: #d4e1ff; background: #f0f5ff; }
.account-detail-sync.warning { background: #fffbf1; border-color: #f1e4c7; }
.account-detail-sync-line { display: flex; gap: 11px; align-items: center; }
.account-detail-sync-line strong { font-size: 14px; font-weight: 600; color: #4e6687; }
.account-detail-sync-line p { font-size: 12px; color: #8795ab; margin-top: 2px; line-height: 1.7; }
.account-detail-sync-line .processing-spinner { width: 17px; height: 17px; flex: 0 0 17px; }
.account-detail-sync-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eff4fb; color: #7a90b0; font-size: 20px; flex-shrink: 0; }
.account-detail-sync-time { font-size: 12px; color: #8a98ad; white-space: nowrap; }
.account-detail-error { padding: 12px 14px; border: 1px solid #f0d3d8; border-radius: 8px; color: #ae4b58; background: #fff5f6; font-size: 14px; margin: -5px 0 17px; }
.account-detail-tabs { display: flex; gap: 5px; border-bottom: 1px solid #dde5f1; margin-bottom: 18px; }
.account-detail-tabs .button { border: 0; border-radius: 7px 7px 0 0; background: transparent; box-shadow: none; padding: 12px 18px; font-size: 15px; color: #7d8da4; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.account-detail-tabs .button[aria-selected=true] { background: #eaf1ff; color: #3466e9; border-bottom-color: #3466e9; font-weight: 600; }
.account-detail-section-state { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.account-detail-section-state strong { font-size: 14px; color: #54708f; font-weight: 550; }
.account-detail-section-state p { font-size: 13px; line-height: 1.8; color: #8a99ad; margin-top: 2px; }
.account-detail-section-state > small { font-size: 12px; color: #92a0b4; white-space: nowrap; }
.account-detail-section-state.state-unavailable strong { color: #b4843c; }
.account-detail-filters { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.account-detail-filters input { flex: 1; min-width: 0; background: #fff; }
.account-detail-filters select { width: 175px; flex: 0 0 175px; background-color: #fff; }
.account-detail-count { color: #8796ac; font-size: 13px; white-space: nowrap; padding-left: 4px; }
.account-detail-results { display: grid; gap: 16px; }
.account-post-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.account-post-card { background: #fff; border: 1px solid #e1e7f1; border-radius: 12px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.account-post-image { aspect-ratio: 4/4.8; position: relative; display: block; background: #eef2f8; overflow: hidden; }
.account-post-image > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .18s ease; }
a.account-post-image:hover > img { transform: scale(1.025); }
.account-post-kind { position: absolute; left: 10px; top: 10px; color: #fff; background: #1c2b48a6; border: 1px solid #ffffff26; padding: 3px 8px; border-radius: 5px; font-size: 12px; backdrop-filter: blur(3px); }
.account-data-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; justify-content: center; align-items: center; color: #a6b4c9; background: linear-gradient(150deg,#f1f5fb,#e8eef7); }
.account-data-image-placeholder > span { font-size: 30px; color: #b9c5d6; }
.account-data-image-placeholder > small { font-size: 12px; }
.account-post-body { padding: 13px 13px 12px; display: flex; flex-direction: column; flex: 1; }
.account-post-date { font-size: 11px; color: #9aa6b8; margin-bottom: 6px; }
.account-post-caption { color: #43556f; font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.account-post-caption.expanded { display: block; overflow: visible; }
.account-post-body > .button { align-self: flex-start; margin: 4px -6px; padding: 2px 6px; min-height: 24px; font-size: 12px; }
.account-post-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: auto; padding-top: 16px; gap: 7px; }
.account-post-metrics strong { display: block; font-size: 13px; color: #344e71; font-weight: 600; overflow-wrap: anywhere; }
.account-post-metrics span { display: block; font-size: 11px; color: #9aa8bb; margin-top: 2px; }
.account-post-footer { border-top: 1px solid #edf1f7; padding: 10px 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.account-post-footer .account-data-id { font-size: 10px; color: #99a7ba; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-post-footer a, .account-product-footer a { font-size: 12px; white-space: nowrap; }
.account-data-id { font-variant-numeric: tabular-nums; user-select: text; overflow-wrap: anywhere; }
.account-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.account-product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e1e7f1; border-radius: 12px; overflow: hidden; background: #fff; }
.account-product-image { display: block; aspect-ratio: 1.45; background: #eff3f9; overflow: hidden; }
.account-product-image > img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.account-product-body { padding: 14px 15px; display: flex; flex: 1; flex-direction: column; }
.account-product-body h3 { font-size: 14px; font-weight: 550; line-height: 1.7; color: #3a4e69; overflow-wrap: anywhere; }
.account-product-price { color: #268e7e; font-size: 16px; font-weight: 600; margin-top: 7px; }
.account-product-id-label { font-size: 11px; color: #98a5b6; margin-top: 12px; }
.account-product-id { display: flex; gap: 8px; align-items: start; justify-content: space-between; font-size: 13px; color: #6e829e; margin-top: 2px; }
.account-product-id .button { min-height: 23px; padding: 1px 5px; font-size: 11px; flex-shrink: 0; margin-top: -3px; }
.account-product-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
.account-product-footer small { color: #99a7ba; font-size: 11px; }
.account-detail-empty { grid-column: 1/-1; text-align: center; padding: 48px 24px; border: 1px dashed #d7e1f0; border-radius: 10px; background: #fff; }
.account-detail-empty > span { font-size: 34px; display: block; color: #a2b5d2; margin-bottom: 10px; }
.account-detail-empty h3 { font-size: 17px; color: #647b9c; }
.account-detail-empty p { font-size: 14px; color: #91a0b6; margin: 7px auto 17px; max-width: 580px; line-height: 1.9; }
.account-detail-footer { justify-content: space-between; }
.account-detail-footer .hint { margin: 0; font-size: 12px; }
.account-detail-copy-field { position: fixed; width: 1px; height: 1px; left: -2000px; top: 0; opacity: 0; }
@media(max-width:1080px) { .account-detail-top { align-items: start; } .account-detail-actions { max-width: 230px; } .account-post-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .account-detail-statistics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) {
  dialog.account-details-modal { width: calc(100vw - 16px); }
  .account-detail-body { padding: 18px 17px 22px; }
  .account-detail-top { flex-direction: column; gap: 15px; margin-bottom: 16px; }
  .account-detail-actions { max-width: none; width: 100%; justify-content: flex-start; }
  .account-detail-actions .button { flex: 1; padding-left: 9px; padding-right: 9px; white-space: nowrap; }
  .account-detail-avatar { width: 54px; height: 54px; flex-basis: 54px; border-radius: 14px; }
  .account-detail-profile h3 { font-size: 18px; }
  .account-detail-profile-meta { gap: 3px 9px; font-size: 12px; }
  .account-detail-statistics { gap: 8px; }
  .account-detail-stat { padding: 11px 10px; }
  .account-detail-stat > span { font-size: 12px; }
  .account-detail-stat > strong { font-size: 22px; }
  .account-detail-stat > small { font-size: 10px; }
  .account-detail-sync { align-items: start; flex-direction: column; gap: 8px; padding: 12px; }
  .account-detail-sync-time { padding-left: 41px; font-size: 11px; white-space: normal; }
  .account-detail-sync-line p { font-size: 12px; }
  .account-detail-tabs { gap: 0; }
  .account-detail-tabs .button { padding: 11px 12px; font-size: 14px; flex: 1; }
  .account-detail-section-state { flex-direction: column; align-items: start; gap: 6px; }
  .account-detail-section-state > small { font-size: 11px; white-space: normal; }
  .account-detail-filters { flex-wrap: wrap; gap: 8px; }
  .account-detail-filters input { flex-basis: 100%; }
  .account-detail-filters select { width: auto; flex: 1; }
  .account-detail-count { padding: 0; font-size: 12px; }
  .account-post-grid, .account-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .account-post-body { padding: 10px; }
  .account-post-kind { left: 7px; top: 7px; font-size: 10px; padding: 2px 6px; }
  .account-post-caption { font-size: 13px; }
  .account-post-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); padding-top: 12px; gap: 9px; }
  .account-post-footer { display: grid; padding: 8px 10px; gap: 4px; }
  .account-post-footer .account-data-id { max-width: 100%; }
  .account-product-body { padding: 11px; }
  .account-product-body h3 { font-size: 13px; }
  .account-product-footer { flex-direction: column; align-items: start; gap: 5px; }
  .account-product-id { gap: 3px; font-size: 12px; }
  .account-product-id .button { font-size: 10px; }
  .account-detail-footer { gap: 12px; align-items: center; padding: 15px 17px; }
  .account-detail-footer .hint { font-size: 11px; max-width: 220px; }
}
@media(max-width:360px) { .account-post-grid, .account-product-grid { grid-template-columns: 1fr; } .account-detail-statistics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
