﻿/* Only polish the Assets main page. Do not touch sidebar/project name. */

body.agnes-assets-view #agnesV1AssetsPage {
  box-sizing: border-box !important;
  padding: 64px 76px 40px 76px !important;
  background: #050505 !important;
  color: #f4f4f5 !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-head {
  height: 46px !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 28px !important;
  padding: 0 0 0 0 !important;
  margin: 0 0 30px 0 !important;
  border-bottom: 1px solid #242428 !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tabs {
  height: 46px !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 72px !important;
  flex: 1 1 auto !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tab,
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tabs button {
  height: 46px !important;
  min-width: 118px !important;
  padding: 0 0 11px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #c9c9d0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  position: relative !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tab.active,
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tabs button.active,
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tabs button[aria-selected="true"] {
  color: #f2f2f6 !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tab.active::after,
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tabs button.active::after,
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-tabs button[aria-selected="true"]::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  height: 2px !important;
  background: #a78bfa !important;
  border-radius: 999px !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-actions {
  height: 46px !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 16px !important;
  padding-bottom: 6px !important;
  margin-left: auto !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-selected {
  color: #e8e8ee !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-delete,
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-upload,
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-actions button {
  height: 30px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  border: 1px solid #303036 !important;
  background: #09090b !important;
  color: #f0f0f3 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, 112px) !important;
  gap: 30px 34px !important;
  align-items: start !important;
  padding: 0 18px !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-card {
  width: 112px !important;
  min-height: 132px !important;
  padding: 7px 7px 9px 7px !important;
  border-radius: 7px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-card.selected,
body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-card.is-selected,
body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-card[aria-selected="true"] {
  background: #221a45 !important;
  border-color: #6d55e8 !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-thumb {
  width: 98px !important;
  height: 98px !important;
  margin: 0 auto 8px auto !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #17171a !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-thumb img,
body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-name {
  color: #d7d7dd !important;
  font-size: 12px !important;
  line-height: 18px !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* Assets fix 3: use landscape thumbnails, not square */
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-grid {
  grid-template-columns: repeat(auto-fill, 154px) !important;
  gap: 26px 30px !important;
  padding: 0 14px !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-card {
  width: 154px !important;
  min-height: 122px !important;
  padding: 0 0 8px 0 !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-thumb {
  width: 154px !important;
  height: 92px !important;
  margin: 0 0 8px 0 !important;
  border-radius: 8px !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-thumb img,
body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-asset-name {
  width: 154px !important;
  padding: 0 2px !important;
  text-align: left !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-selected-num {
  color: #ff4d5f !important;
  font-weight: 700 !important;
}

/* Assets count: selected/total */
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-selected {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 30px !important;
  min-width: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 30px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-selected-num {
  color: #ff3b4f !important;
  font-size: 16px !important;
  line-height: 30px !important;
  font-weight: 800 !important;
}

body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-selected-sep,
body.agnes-assets-view #agnesV1AssetsPage .agnes-assets-total-num {
  color: #e4e4ea !important;
  font-size: 16px !important;
  line-height: 30px !important;
  font-weight: 600 !important;
}

/* Assets upload toast: keep it inside the Assets page */
body.agnes-assets-view #agnesV1UploadStatus,
body.agnes-assets-view .agnes-v1-upload-status,
body.agnes-assets-view .agnes-upload-status {
  min-width: 156px !important;
  height: 34px !important;
  padding: 0 14px !important;
  line-height: 34px !important;
  font-size: 14px !important;
  text-align: center !important;
  white-space: nowrap !important;
}
