/* ============================================================
 * records.css · 「记录」页（块3）专属样式
 * ------------------------------------------------------------
 * 只作用「记录」页块3内部类，不依赖 body[data-page] 或 page-* 前缀，
 * 由 records.html 通过 base 的 extra_head 钩子自行挂载。
 * 通用记录类（.record-grid / .record-chain / .record-version-* /
 * .record-prompt 等）已在 style.css / main.css 全局定义，此处只补
 * 记录页专属布局（.records-*）。
 * ============================================================ */

.records-workbench{
  display: grid;
  gap: 12px;
  min-width: 0;
}

body[data-page="records"] .app-main > .page-shell.page-records{
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

body[data-page="records"] .app-shell > .app-main{
  padding-right: 12px;
  padding-left: 12px;
}

.records-workbench > .panel-header{
  border: 1px solid rgba(22, 139, 255, .14);
  background-color: #edf4ff;
  background-image:
    radial-gradient(ellipse 72% 130% at -8% 0%, rgba(10, 168, 186, .18), transparent 72%),
    radial-gradient(ellipse 64% 150% at 104% 100%, rgba(115, 89, 214, .15), transparent 74%),
    linear-gradient(138deg, rgba(246, 253, 252, .96), rgba(238, 245, 255, .96) 58%, rgba(250, 242, 248, .94));
  box-shadow: 0 16px 42px rgba(23, 73, 132, .10);
}

.records-workbench > .panel-header{
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
}

.records-heading{
  display: grid;
  gap: 3px;
  min-width: 250px;
}

.records-heading .section-title{
  font-size: 22px;
  line-height: 1.2;
}

.records-heading .section-subtitle{
  line-height: 1.45;
}

.records-workbench .toolbar{
  flex: 1 1 520px;
  justify-content: flex-end;
  gap: 10px;
}

.records-search-field{
  position: relative;
  flex: 1 1 300px;
  max-width: 420px;
}

.records-search-field > i{
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: #69809d;
  font-size: 17px;
  transform: translateY(-50%);
  pointer-events: none;
}

.records-workbench #records-search{
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding-left: 36px;
  background: rgba(255, 255, 255, .78) !important;
}

.records-create-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
}

.records-workbench > .summary-row{
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) minmax(190px, 1fr) minmax(110px, .55fr) minmax(110px, .55fr);
  gap: 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.records-summary-item{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding: 0 14px;
  border-right: 1px solid rgba(73, 111, 153, .14);
}

.records-summary-item:first-child{
  padding-left: 4px;
}

.records-summary-item:last-child{
  border-right: 0;
}

.records-summary-item > i{
  flex: 0 0 auto;
  color: #2876df;
  font-size: 17px;
}

.records-summary-item .tiny-text{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: auto;
}

.page-records .records-layout{
  grid-template-columns: minmax(0, 1fr);
}

.records-folder-panel{
  display: grid;
  gap: 14px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.records-folder-head{
  margin-bottom: 0;
}

.records-folder-headbar{
  display: flex;
  align-items: center;
  gap: 10px;
}

.record-grid{
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  align-items: start;
  gap: 12px;
}

#records-folder-grid:not(.records-folder-detail-grid){
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  justify-content: stretch;
  gap: 0 8px !important;
}

.page-records .record-chain{
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(22, 139, 255, .14);
  border-radius: 8px;
  background-color: #eef5ff;
  box-shadow: 0 16px 42px rgba(23, 73, 132, .10);
}

.page-records .record-folder-card{
  width: 100%;
  max-width: 100%;
  margin-block: 4px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "preview"
    "info";
  gap: 0;
  padding: 0;
  border-width: 2px;
}

.page-records .record-chain-header{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  min-height: 32px;
  margin: 0;
  padding-right: 46px;
  color: #10223f;
}

.record-folder-card .record-chain-header{
  width: 100%;
  min-height: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.records-folder-card-info{
  display: grid;
  grid-area: info;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0 0 6px 6px;
  background: var(--hx-workbench-control-hover, #e5e7eb);
}

.page-records .record-chain-header > div:first-child{
  min-width: 0;
}

.record-folder-card .record-chain-header > div:first-child{
  width: 100%;
}

.page-records .record-chain-header .fw-semibold{
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 2.64em;
  line-height: 1.32;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.record-chain-version-count{
  overflow: hidden;
  color: #6a82a3;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-folder-card-counts{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.records-folder-card-count{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  min-height: 24px;
  padding: 3px 5px;
  border-radius: 6px;
  color: #587097;
  background: #f3f7fc;
}

body[data-page="records"] .records-folder-card-info .records-folder-card-count{
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  background: transparent !important;
}

body[data-page="records"] .records-folder-card-info :is(
  .records-folder-card-count-label,
  .records-folder-card-count-value
){
  color: #fff !important;
}

.records-folder-card-count-label{
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-folder-card-count-value{
  flex: 0 0 auto;
  color: #155fc1;
  font-size: 11px;
  font-weight: 900;
}

.page-records .record-chain-header > .tiny-text{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-chain-preview-shell,
.records-folder-tile-preview-shell{
  position: relative;
  width: 100%;
}

.records-folder-tile-preview-shell{
  width: 100%;
}

.record-folder-card .record-chain-preview-shell{
  display: grid;
  grid-area: preview;
  place-items: center;
}

.record-chain-preview-btn{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
}

.record-chain-preview{
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  border: 1px solid rgba(22, 139, 255, .16);
  border-radius: 14px;
  background:
    linear-gradient(45deg, rgba(229, 241, 255, .85) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(229, 241, 255, .85) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(229, 241, 255, .85) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(229, 241, 255, .85) 75%),
    #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.record-folder-card .record-chain-preview{
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1;
}

.page-records .record-folder-card .record-chain-preview{
  margin-bottom: 0;
  border-radius: 6px 6px 0 0 !important;
}

.record-folder-card .record-chain-preview-btn{
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.record-chain-preview-image{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.record-folder-card .record-chain-preview-image{
  object-fit: contain;
}

.record-chain-preview video.record-chain-preview-image{
  background: #071b37;
  object-fit: contain;
}

.record-chain-preview-file{
  display: grid;
  place-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: #14345f;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(238, 248, 255, .92)),
    #fff;
}

.record-chain-preview-file::before{
  content: "TXT";
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 2px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0b5fc9, #15b6dc);
  box-shadow: 0 12px 26px rgba(11, 95, 201, .18);
  font-size: 13px;
  font-weight: 900;
}

.record-chain-preview-file strong{
  font-size: 15px;
  font-weight: 900;
}

.record-chain-preview-file span{
  overflow: hidden;
  max-width: 100%;
  color: #667994;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-chain-preview-hint{
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 20, 42, .66);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(8px);
}

.record-chain-preview-btn:hover .record-chain-preview-hint,
.record-chain-preview-btn:focus-visible .record-chain-preview-hint{
  opacity: 1;
  transform: translateY(0);
}

.records-delete-btn{
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: color .16s ease;
}

.records-delete-btn:hover,
.records-delete-btn:focus-visible{
  color: #d92d20;
  outline: 0;
}

.records-delete-btn:disabled{
  cursor: wait;
  opacity: .72;
  transform: none;
}

.page-records .record-version-list{
  gap: 6px;
}

.page-records .record-version-item{
  min-height: 42px;
  padding: 7px 8px;
  border-color: rgba(22, 139, 255, .10);
  background: #f5faff;
  color: #20324e;
}

.page-records .record-version-item-active{
  background: #eaf5ff;
}

.page-records .record-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.page-records .record-actions a,
.records-folder-detail-actions a{
  text-decoration: none;
}

.page-records .record-actions a:nth-of-type(1),
.records-folder-detail-actions a:nth-of-type(1){
  border-color: rgba(22, 139, 255, .28);
  color: #0f62d6;
  background: #eef7ff;
}

.records-folder-empty{
  margin-top: 4px;
}

.records-folder-detail-grid{
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.records-asset-profile-suite{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.records-asset-profile-collapse,
.records-asset-pool-group{
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

.records-asset-profile-collapse > summary{
  list-style: none;
  cursor: default;
}

.records-asset-profile-collapse > summary::-webkit-details-marker{
  display: none;
}

.records-asset-profile-collapse[open] > .records-asset-profile-summary{
  display: none;
}

.records-asset-profile-summary{
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #13151a;
  box-shadow: none;
}

.records-asset-profile-summary::before{
  content: none;
}

.records-asset-profile-copy{
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}

.records-asset-profile-copy strong{
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-asset-profile-overview{
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(300px, 1.45fr) minmax(300px, 1.45fr) minmax(180px, .65fr);
  gap: 0;
  min-width: 0;
}

.records-asset-profile-overview section{
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.records-asset-profile-overview section + section{
  border-left: 1px solid rgba(135, 160, 187, .32);
}

.records-asset-profile-overview p{
  margin: 0;
  color: #dce6f1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.records-asset-profile-overview b{
  color: #79baff;
  font-size: 11px;
  font-weight: 900;
}

.records-asset-profile-actions{
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding-top: 18px;
}

.records-asset-profile-action{
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(77, 166, 255, .52);
  border-radius: 999px;
  color: #ddecff;
  background: rgba(22, 119, 255, .14);
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.records-asset-profile-action:hover,
.records-asset-profile-action.is-active{
  color: #1264d9;
  background: #fff;
}

.records-asset-profile-body{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #161a21;
}

.records-asset-profile-fields{
  display: grid;
  gap: 12px;
  min-width: 0;
}

.records-asset-profile-primary-fields{
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 10px;
}

.records-asset-profile-detail-fields{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.records-asset-profile-field{
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.records-asset-profile-field > span{
  color: #b9c7d6;
  font-size: 11px;
  font-weight: 900;
}

.records-asset-profile-field input,
.records-asset-profile-field textarea{
  width: 100%;
  min-width: 0;
  margin: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(22, 139, 255, .14);
  border-radius: 8px;
  color: #4f6c8d;
  background: #f7fbff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  box-sizing: border-box;
}

.records-asset-profile-field textarea{
  min-height: 74px;
  resize: vertical;
}

.records-asset-profile-field-sku textarea{
  min-height: 36px;
  height: 36px;
  resize: none;
}

.records-asset-profile-primary-fields .records-asset-profile-field-name input,
.records-asset-profile-primary-fields .records-asset-profile-field-sku textarea{
  min-height: 38px;
  height: 38px;
}

@media (max-width: 760px){
  .records-asset-profile-primary-fields,
  .records-asset-profile-detail-fields{
    grid-template-columns: minmax(0, 1fr);
  }
}

.records-asset-profile-body > .records-asset-pool-group{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: #1b2028;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.records-asset-profile-form-actions{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.records-edit-status{
  margin-right: auto;
  font-size: 12px;
  font-weight: 800;
}

.records-edit-status[data-tone="success"]{ color: #158f6f; }
.records-edit-status[data-tone="warning"]{ color: #ad6800; }
.records-edit-status[data-tone="danger"]{ color: #c0465c; }

.records-asset-profile-cancel,
.records-asset-profile-save{
  min-width: 76px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.records-asset-profile-cancel{
  border: 1px solid rgba(255, 255, 255, .18);
  color: #d4dde7;
  background: #252b34;
}

.records-asset-profile-save{
  border: 1px solid #1677ff;
  color: #fff;
  background: #1677ff;
  box-shadow: 0 4px 10px rgba(22, 119, 255, .2);
}

.records-white-asset-showcase{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(22, 139, 255, .16);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.records-white-generation-status{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #315174;
  font-size: 13px;
}

.records-white-generation-status strong{
  color: #10223f;
  font-size: 14px;
  font-weight: 900;
}

.records-white-generation-status span{
  color: #1677ff;
  font-weight: 800;
}

.records-white-generation-status.is-failed span{
  color: #c43b3b;
}

.records-white-asset-showcase-preview{
  display: grid;
  gap: 5px;
  width: 100%;
  max-width: 230px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  animation: none !important;
}

.records-white-asset-showcase-preview[draggable="true"]{
  cursor: grab;
}

.records-white-asset-showcase-preview.is-dragging{
  opacity: .5;
  cursor: grabbing;
  transform: scale(.98);
}

.records-white-asset-showcase-gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 230px));
  gap: 10px;
  justify-content: start;
  min-width: 0;
}

.records-white-asset-showcase-image{
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(22, 139, 255, .18);
  border-radius: 10px;
  background: #fff;
}

.records-white-asset-showcase-image .records-delete-btn{
  top: 7px;
  right: 7px;
  width: 26px;
  height: 26px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, color .16s ease;
}

.records-white-asset-showcase-preview:hover .records-delete-btn,
.records-white-asset-showcase-preview:focus-within .records-delete-btn{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.records-white-asset-showcase-actions{
  position: absolute;
  inset: auto 7px 7px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}

.records-white-asset-showcase-preview:hover .records-white-asset-showcase-actions,
.records-white-asset-showcase-preview:focus-within .records-white-asset-showcase-actions{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.records-white-asset-showcase-action{
  min-width: 42px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 6px;
  color: #fff;
  background: rgba(22, 119, 255, .94);
  box-shadow: 0 3px 10px rgba(13, 74, 156, .22);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.records-white-asset-showcase-action:hover,
.records-white-asset-showcase-action:focus-visible{
  background: #095dcc;
}

.records-white-asset-showcase-gallery .records-white-asset-showcase-image{
  aspect-ratio: 1 / 1;
}

.records-white-generation-tile{
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  padding: 12px;
  border: 1px solid rgba(22, 119, 255, .28);
  border-radius: 10px;
  background: #f3f8ff;
  color: #4e78a8;
}

.records-white-generation-loader{
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--suite-blue-deep, #075eea), var(--suite-blue, #1677ff), var(--suite-cyan, #33b6ff));
  overflow: hidden;
}

.records-white-generation-loader::before{
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255,255,255,.62);
  border-radius: 14px;
  animation: suite-loader 1.2s ease-in-out infinite alternate;
}

.records-white-generation-loader span{
  position: absolute;
  bottom: 0;
  width: 20px;
  background: rgba(255,255,255,.36);
  animation: suite-bars 1.1s ease-in-out infinite;
}

.records-white-generation-loader span:nth-child(1){ left: 8px; height: 22px; }
.records-white-generation-loader span:nth-child(2){ left: 24px; height: 40px; animation-delay: .12s; }
.records-white-generation-loader span:nth-child(3){ right: 8px; height: 30px; animation-delay: .22s; }

.records-white-generation-label{
  font-size: 12px;
  font-weight: 800;
}

.records-folder-generation-preview{
  display: grid;
  place-items: center;
  background: #f3f8ff;
}

.records-folder-generation-preview.has-preview{
  background: #fff;
}

.records-folder-generation-indicator{
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 5px;
  min-width: 74px;
  padding: 7px;
  border: 1px solid rgba(22, 119, 255, .22);
  border-radius: 10px;
  background: rgba(235, 247, 255, .94);
  box-shadow: 0 8px 20px rgba(22, 119, 255, .16);
  backdrop-filter: blur(7px);
}

.records-folder-generation-preview:not(.has-preview) .records-folder-generation-indicator{
  position: static;
  border-color: rgba(22, 119, 255, .2);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.records-folder-generation-indicator .records-white-generation-loader{
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.records-folder-generation-indicator .records-white-generation-loader::before{
  inset: 7px;
  border-radius: 9px;
}

.records-folder-generation-indicator .records-white-generation-loader span{
  width: 13px;
}

.records-folder-generation-indicator .records-white-generation-loader span:nth-child(1){ left: 5px; height: 15px; }
.records-folder-generation-indicator .records-white-generation-loader span:nth-child(2){ left: 15px; height: 27px; }
.records-folder-generation-indicator .records-white-generation-loader span:nth-child(3){ right: 5px; height: 20px; }

.records-folder-generation-indicator .records-white-generation-label{
  color: #1769c2;
  font-size: 11px;
}

.records-folder-generation-preview:not(.has-preview) .records-white-generation-label{
  color: #4e78a8;
}

@keyframes suite-loader{ to{ inset: 15px; opacity: .52; } }
@keyframes suite-bars{ 50%{ transform: translateY(-14px); } }

.records-white-asset-showcase-img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: none !important;
  transition: transform .18s ease;
}

.records-white-asset-showcase-preview:hover .records-white-asset-showcase-img,
.records-white-asset-showcase-preview:focus-visible .records-white-asset-showcase-img{
  transform: scale(1.02);
}

.records-white-asset-showcase-preview > span{
  overflow: hidden;
  color: #315174;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-white-asset-upload{
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px dashed rgba(22, 119, 255, .42);
  border-radius: 10px;
  color: #1677ff;
  background: rgba(247, 251, 255, .82);
  cursor: pointer;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.records-white-asset-upload:hover,
.records-white-asset-upload:focus-visible{
  border-color: rgba(22, 119, 255, .72);
  color: #0d58d8;
  background: #eef7ff;
  outline: 0;
  transform: translateY(-1px);
}

.records-white-asset-showcase-copy{
  display: grid;
  gap: 7px;
  min-width: 0;
}

.records-white-asset-showcase-copy > span{
  color: #1677ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.records-white-asset-showcase-copy > strong{
  overflow: hidden;
  color: #10223f;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-white-asset-showcase-copy > p{
  margin: 0;
  color: #667994;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.records-white-asset-showcase-copy > small{
  color: #6d8cab;
  font-size: 12px;
  font-weight: 800;
}

.records-white-asset-showcase-empty{
  display: grid;
  gap: 6px;
  min-height: 120px;
  align-content: center;
  color: #667994;
}

.records-white-asset-showcase-empty strong{
  color: #315174;
  font-size: 15px;
}

.records-white-asset-showcase-empty span{
  font-size: 12px;
  font-weight: 700;
}

.records-asset-pool-group-summary{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #e8eef6;
  background: #202631;
}

.records-asset-pool-group-summary > span{
  font-size: 13px;
  font-weight: 900;
}

.records-asset-pool-group-summary > small{
  margin-left: auto;
  color: #8fa2b7;
  font-size: 11px;
  font-weight: 800;
}

.records-asset-pool-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 6px;
  min-width: 0;
  overflow-x: visible;
  padding: 6px;
  background: #171b22;
  scrollbar-width: thin;
}

.records-asset-pool{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  min-height: 174px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 6px;
  background: #20252e;
  transition: border-color .18s ease, background .18s ease;
}

.records-asset-pool:hover{
  border-color: rgba(65, 156, 255, .52);
  background: #242b35;
}

.records-asset-pool.is-drop-target{
  border-color: rgba(22, 119, 255, .68);
  background: #eef7ff;
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, .16);
}

.records-asset-pool-head{
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 10px 4px;
}

.records-asset-pool-head strong{
  display: block;
  overflow: hidden;
  color: #dce6f0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-asset-pool-head > span{
  color: #6dafff;
  font-size: 10px;
  font-weight: 900;
}

.records-asset-pool-thumbs{
  display: flex;
  gap: 6px;
  min-width: 0;
  min-height: 120px;
  overflow-x: visible;
  flex-wrap: wrap;
  padding: 8px;
  scrollbar-width: thin;
}

.records-asset-pool-add{
  display: grid;
  flex: 0 0 120px;
  place-items: center;
  width: 120px;
  height: 120px;
  padding: 0;
  border: 1px dashed rgba(22, 119, 255, .38);
  border-radius: 8px;
  color: #1677ff;
  background: #f7fbff;
  cursor: pointer;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.records-asset-pool-add:hover,
.records-asset-pool-add:focus-visible,
.records-asset-pool-add.is-active{
  border-color: rgba(22, 119, 255, .72);
  color: #0d58d8;
  background: #eef7ff;
  outline: 0;
  transform: translateY(-1px);
}

.records-asset-pool-picker-modal{
  position: fixed;
  z-index: 3050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 20, 42, .48);
  backdrop-filter: blur(8px);
}

.records-asset-pool-picker-modal[hidden]{
  display: none !important;
}

.records-asset-pool-picker-dialog{
  display: grid;
  gap: 14px;
  width: min(700px, calc(100vw - 36px));
  max-height: min(640px, calc(100vh - 36px));
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(175, 210, 255, .48);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px -24px rgba(6, 63, 180, .38);
}

.records-asset-pool-picker-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #315174;
}

.records-asset-pool-picker-header > div{
  display: grid;
  gap: 3px;
}

.records-asset-pool-picker-header span{
  color: #1677ff;
  font-size: 11px;
  font-weight: 900;
}

.records-asset-pool-picker-header strong{
  color: #10223f;
  font-size: 16px;
  font-weight: 900;
}

.records-asset-pool-picker-close{
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  border: 1px solid rgba(22, 119, 255, .16);
  border-radius: 50%;
  color: #6d8cab;
  background: #f5f9ff;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.records-asset-pool-picker-close:hover,
.records-asset-pool-picker-close:focus-visible{
  color: #0d58d8;
  border-color: rgba(22, 119, 255, .48);
  outline: 0;
}

.records-asset-pool-picker-options{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 2px;
}

.records-asset-pool-picker-option{
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(22, 119, 255, .14);
  border-radius: 8px;
  color: #315174;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.records-asset-pool-picker-option:hover,
.records-asset-pool-picker-option:focus-visible{
  border-color: rgba(22, 119, 255, .55);
  box-shadow: 0 8px 18px rgba(22, 119, 255, .12);
  outline: 0;
}

.records-asset-pool-picker-option.is-selected{
  border-color: rgba(22, 119, 255, .28);
  color: #8ba0b5;
  background: #edf2f7;
  cursor: default;
}

.records-white-asset-tag-options{
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.records-white-asset-tag-body{
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}

.records-white-asset-tag-preview{
  display: grid;
  place-items: center;
  min-height: 150px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(22, 119, 255, .18);
  border-radius: 8px;
  background: #f7fbff;
}

.records-white-asset-tag-preview-image{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.records-white-asset-tag-group{
  display: grid;
  gap: 8px;
  min-width: 0;
}

.records-white-asset-tag-group > strong{
  color: #315174;
  font-size: 12px;
  font-weight: 900;
}

.records-white-asset-tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.records-white-asset-tag-list > button{
  padding: 7px 10px;
  border: 1px solid rgba(22, 119, 255, .18);
  border-radius: 8px;
  color: #315174;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.records-white-asset-tag-list > button:hover,
.records-white-asset-tag-list > button:focus-visible,
.records-white-asset-tag-list > button.is-selected{
  border-color: rgba(22, 119, 255, .7);
  color: #0d58d8;
  background: #eef7ff;
  outline: 0;
}

.records-white-asset-tag-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.records-white-asset-tag-actions > button{
  min-width: 64px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.records-white-asset-tag-cancel{
  border: 1px solid rgba(22, 119, 255, .2);
  color: #315174;
  background: #fff;
}

.records-white-asset-tag-confirm{
  border: 1px solid #1677ff;
  color: #fff;
  background: #1677ff;
}

@media (max-width: 620px){
  .records-white-asset-tag-body{
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .records-white-asset-tag-preview{
    width: min(180px, 100%);
    min-height: 0;
  }
}

.records-asset-pool-picker-option small{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-asset-pool-picker-image{
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  background: #f7fbff;
}

.records-asset-pool-picker-img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.records-asset-pool-picker-empty{
  grid-column: 1 / -1;
  padding: 32px 10px;
  color: #98aabd;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.records-asset-pool-thumb-shell{
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
}

.records-asset-pool-thumb{
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid rgba(22, 119, 255, .16);
  border-radius: 8px;
  background: #f7fbff;
  cursor: zoom-in;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.records-asset-pool-thumb:hover,
.records-asset-pool-thumb:focus-visible{
  border-color: rgba(22, 119, 255, .55);
  box-shadow: 0 8px 16px -10px rgba(6, 63, 180, .55);
  outline: 0;
  transform: translateY(-1px);
}

.records-asset-pool-thumb.is-dragging{
  opacity: .45;
  cursor: grabbing;
  transform: scale(.96);
}

.records-asset-pool-thumb-image{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.records-asset-pool-thumb .record-chain-preview-file{
  padding: 5px;
}

.records-asset-pool-thumb .record-chain-preview-file::before{
  width: 26px;
  height: 26px;
  font-size: 8px;
}

.records-asset-pool-thumb .record-chain-preview-file strong,
.records-asset-pool-thumb .record-chain-preview-file span{
  display: none;
}

.records-asset-pool-thumb-shell .records-delete-btn{
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  font-size: 13px;
}

.records-asset-pool-empty{
  display: grid;
  place-items: center;
  flex: 1 0 120px;
  min-height: 120px;
  border: 1px dashed rgba(126, 153, 180, .42);
  border-radius: 8px;
  color: #98aabd;
  background: #f6f9fc;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 680px){
  .records-asset-profile-body{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records-white-asset-showcase{
    grid-template-columns: 1fr;
  }

  .records-white-asset-showcase-gallery{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

.records-folder-detail-header{
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 2px 2px 8px;
  border-bottom: 1px solid rgba(22, 139, 255, .12);
}

.records-product-dossier{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.4fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(22, 139, 255, .14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,248,255,.9));
}

.records-product-dossier-main{
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
}

.records-product-dossier-main span{
  color: #1677ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.records-product-dossier-main strong{
  overflow: hidden;
  color: #10223f;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-product-dossier-main p{
  margin: 0;
  color: #667994;
  font-size: 12px;
  font-weight: 800;
}

.records-product-info-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.records-product-info-grid span{
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(106, 130, 163, .14);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
}

.records-product-info-grid b,
.records-product-info-grid em{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.records-product-info-grid b{
  color: #14345f;
  font-size: 12px;
  font-weight: 900;
}

.records-product-info-grid em{
  color: #8392a8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.records-product-info-grid .is-ready{
  border-color: rgba(22, 139, 255, .22);
}

.records-product-info-grid .is-ready em{
  color: #1677ff;
}

.records-white-select-panel{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(22, 139, 255, .20);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(238, 248, 255, .98), rgba(255, 255, 255, .96));
}

.records-white-select-copy{
  display: grid;
  gap: 4px;
  min-width: 0;
}

.records-white-select-copy span{
  color: #1677ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.records-white-select-copy strong{
  color: #10223f;
  font-size: 17px;
  font-weight: 900;
}

.records-white-select-copy p{
  margin: 0;
  color: #667994;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.records-white-select-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.records-white-select-actions a{
  text-decoration: none;
}

.records-white-select-actions a:first-child{
  border-color: rgba(22, 139, 255, .28);
  color: #0f62d6;
  background: #fff;
}

.records-detail-back{
  flex: 0 0 auto;
  min-height: 38px;
}

.records-folder-detail-info{
  flex: 1 1 auto;
  min-width: 0;
}

.records-folder-detail-title{
  margin: 0;
  color: #10223f;
  font-size: 18px;
  font-weight: 900;
}

.records-folder-detail-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.records-folder-asset-section{
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.records-folder-asset-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: #13151a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.records-folder-asset-head strong{
  color: #f3f6fb;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.records-folder-asset-head span{
  color: #94a5ba;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.records-detail-long-toggle{
  margin-left: auto;
  padding: 5px 10px;
  border: 1px solid rgba(89, 154, 255, .55);
  border-radius: 6px;
  color: #dbeafe;
  background: rgba(37, 99, 235, .18);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.records-detail-long-toggle[aria-pressed="true"]{
  color: #fff;
  background: rgba(37, 99, 235, .62);
}

.records-detail-long-toggle:disabled{
  border-color: rgba(148, 163, 184, .28);
  color: #94a3b8;
  background: rgba(71, 85, 105, .18);
  cursor: not-allowed;
}

.records-folder-asset-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.records-folder-tile{
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #10223f;
  cursor: pointer;
  text-align: left;
}

.records-folder-tile-preview-btn{
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: zoom-in;
}

.records-folder-tile-preview{
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid rgba(22, 139, 255, .12);
  background:
    linear-gradient(45deg, rgba(229, 241, 255, .85) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(229, 241, 255, .85) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(229, 241, 255, .85) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(229, 241, 255, .85) 75%),
    #fff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.records-folder-tile-preview .records-folder-tile-image.ui-asset-thumbnail{
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  margin-inline: auto;
}

.records-folder-tile-preview:has(.records-folder-tile-image[src]){
  background-color: #fff;
}

.records-video-play-badge{
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 30, 55, .72);
  box-shadow: 0 10px 24px rgba(8, 20, 42, .18);
  font-size: 19px;
  line-height: 1;
  padding-left: 3px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.records-folder-tile.is-cover{
  outline: 1px solid rgba(22, 139, 255, .55);
  outline-offset: 3px;
}

.bbox-frame > video.bbox-frame-image{
  display: block;
  width: 100%;
  background: #071b37;
  object-fit: cover;
}

.records-preview-video-poster{
  width: 100%;
  height: 100%;
}

.records-preview-play{
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 30, 55, .72);
  box-shadow: 0 14px 36px rgba(8, 20, 42, .22);
  transform: translate(-50%, -50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.records-preview-play:hover,
.records-preview-play:focus-visible{
  background: rgba(15, 30, 55, .86);
  outline: none;
}

.records-preview-play span{
  display: block;
  margin-left: 4px;
  font-size: 28px;
  line-height: 1;
}

.records-preview-text{
  width: 100%;
  height: 100%;
  overflow: auto;
  margin: 0;
  padding: 18px;
  color: #13243e;
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
  font: 14px/1.7 "Microsoft YaHei", Arial, sans-serif;
}

@media (max-width: 1500px){
  .records-folder-asset-grid{
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1200px){
  .records-folder-asset-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  .records-folder-asset-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .records-asset-profile-overview{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records-asset-profile-overview section + section{
    border-left: 0;
  }

  .records-asset-profile-overview section:nth-child(even){
    border-left: 1px solid rgba(135, 160, 187, .32);
  }

  .records-asset-profile-overview section:nth-child(n+3){
    border-top: 1px solid rgba(135, 160, 187, .22);
  }

  .records-asset-profile-primary-fields,
  .records-asset-profile-detail-fields{
    grid-template-columns: minmax(0, 1fr);
  }

  .records-asset-pool-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .records-asset-pool-thumbs{
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .records-workbench > .panel-header{
    align-items: stretch;
    flex-direction: column;
  }

  .records-heading{
    min-width: 0;
  }

  .records-workbench .toolbar{
    flex: 0 1 auto;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .records-search-field{
    max-width: none;
  }

  .records-workbench #records-search{
    width: 100%;
    min-width: 0;
  }

  .records-workbench > .summary-row{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records-summary-item:nth-child(2){
    border-right: 0;
  }

  .records-summary-item:nth-child(n + 3){
    border-top: 1px solid rgba(73, 111, 153, .12);
  }

  .records-product-dossier{
    grid-template-columns: 1fr;
  }

  .records-product-info-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records-white-select-panel{
    grid-template-columns: 1fr;
  }

  .records-white-select-actions{
    justify-content: flex-start;
  }

  .records-folder-detail-header{
    align-items: stretch;
    flex-direction: column;
  }

  .records-folder-detail-actions{
    justify-content: flex-start;
  }
}

@media (max-width: 760px){
  .records-folder-asset-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px){
  .records-folder-asset-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .records-folder-tile{
    width: 100%;
    max-width: none;
  }

  .records-folder-tile-preview-shell,
  .records-folder-tile-preview-btn,
  .records-folder-tile-preview{
    width: 100%;
    max-width: none;
  }

  .records-folder-tile-preview .records-folder-tile-image.ui-asset-thumbnail{
    width: 100%;
    max-width: 100%;
  }

  .records-asset-profile-overview{
    grid-template-columns: minmax(0, 1fr);
  }

  .records-asset-profile-overview section:nth-child(even){
    border-left: 0;
  }

  .records-asset-profile-overview section + section{
    border-top: 1px solid rgba(135, 160, 187, .22);
  }

  .records-asset-profile-actions{
    padding-top: 0;
  }

  .records-asset-profile-body > .records-asset-pool-group{
    overflow: visible;
  }

  .records-asset-pool-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .records-asset-pool{
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="records"] .app-shell > .app-main{
    padding-right: 8px;
    padding-left: 8px;
  }

  .page-records{
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .records-workbench{
    gap: 10px;
  }

  .records-workbench > .panel-header{
    gap: 12px;
    padding: 12px;
  }

  .records-heading .section-title{
    font-size: 20px;
  }

  .records-heading .section-subtitle{
    font-size: 12px;
  }

  .records-search-field{
    flex: 1 0 100%;
    width: 100%;
  }

  .records-create-button{
    flex: 1 1 auto;
  }

  .records-workbench > .summary-row{
    padding: 0;
  }

  .records-summary-item{
    padding: 0 9px;
  }

  .records-summary-item:first-child{
    padding-left: 9px;
  }

  #records-folder-grid:not(.records-folder-detail-grid){
    grid-template-columns: minmax(0, 1fr);
  }

  .page-records .record-folder-card{
    grid-template-columns: minmax(150px, calc(38% + 30px)) minmax(0, 1fr);
    grid-template-areas: "preview info";
    align-items: start;
  }

  .record-folder-card .records-folder-card-info{
    height: 100%;
    align-content: start;
  }

  .record-folder-card .record-chain-preview,
  .record-folder-card .record-chain-preview-btn{
    width: 100%;
    max-width: 180px;
  }

  .record-folder-card .record-chain-preview{
    height: auto;
  }

  .records-folder-card-counts{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }

  .records-asset-profile-summary{
    align-items: stretch;
    flex-direction: column;
  }

  .records-asset-profile-actions{
    width: 100%;
  }

  .records-asset-profile-action{
    width: 100%;
  }

  .records-asset-profile-body,
  .records-product-info-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .records-white-asset-showcase-gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records-folder-detail-actions{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .records-folder-detail-actions > *{
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .records-white-select-actions{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .records-white-select-actions > *{
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

@media (max-width: 380px){
  .records-workbench > .summary-row{
    grid-template-columns: minmax(0, 1fr);
  }

  .records-summary-item{
    border-top: 1px solid rgba(73, 111, 153, .12);
    border-right: 0;
  }

  .records-summary-item:first-child{
    border-top: 0;
  }

  .page-records .record-folder-card{
    grid-template-columns: minmax(126px, calc(34% + 30px)) minmax(0, 1fr);
    grid-template-areas: "preview info";
  }

  .record-folder-card .record-chain-preview,
  .record-folder-card .record-chain-preview-btn{
    width: 100%;
    max-width: 100%;
  }

  .records-folder-detail-actions,
  .records-white-select-actions{
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (hover: none){
  .records-white-asset-showcase-image .records-delete-btn,
  .records-white-asset-showcase-actions{
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

}
