.cards-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.cards-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cards-page-heading h1 {
  font-size: 29px;
  margin: 0 0 10px;
}
.cards-page-heading p {
  color: #71819a;
  line-height: 1.8;
}
.cards-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #dfe7f2;
  margin: 24px 0 28px;
  padding-bottom: 12px;
}
.cards-tabs button {
  background: transparent;
  color: #5b6d86;
  border: 0;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 14px;
}
.cards-tabs button[aria-current="page"] {
  background: #e9f0ff;
  color: #1556dc;
  font-weight: 650;
}
.card-surface {
  background: white;
  border: 1px solid #e1e8f2;
  border-radius: 13px;
  padding: 26px;
}
.surface-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.surface-heading h2,
.card-surface > h2 {
  font-size: 19px;
  margin: 0;
}
.generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 36px;
}
.cards-page label {
  display: block;
  color: #445675;
  font-size: 14px;
  margin-bottom: 18px;
}
.cards-page input:not([type="checkbox"]),
.cards-page select,
.cards-page textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid #dae3ef;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: #243c5d;
  font: inherit;
}
.cards-page input[type="file"] {
  padding: 12px;
  font-size: 13px;
}
.cards-page input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1556dc;
}
.field-help {
  font-size: 12px;
  line-height: 1.9;
  color: #7889a1;
  margin: 8px 0 16px;
}
.field-help a {
  color: #1556dc;
}
.field-columns {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.field-columns .field-add {
  margin-top: 28px;
  min-height: 42px;
}
.generate-submit {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  margin-top: 6px;
}
.operation-message {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  color: #5f7392;
}
.generation-result {
  padding: 20px;
  border: 1px solid #cdddfb;
  background: #f3f7ff;
  border-radius: 10px;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.generation-result strong {
  font-size: 16px;
}
.generation-result p {
  font-size: 13px;
  line-height: 1.8;
}
.generation-result a {
  display: block;
  font-size: 13px;
  margin-bottom: 14px;
}
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.result-actions button {
  font-size: 12px;
}
.preview-column {
  padding: 5px 0;
}
.preview-column h2 {
  font-size: 19px;
  margin-top: 0;
}
.x-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.x-preview-heading h2 {
  margin: 0;
}
.x-preview-heading > span {
  font-size: 11px;
  color: #51617b;
  background: #e7edf6;
  padding: 5px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.x-preview-frame {
  margin-top: 24px;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e1e8f2;
  border-radius: 14px;
}
.x-preview-context {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  color: #536471;
}
.x-preview-context > span {
  font-size: 24px;
  color: #0f1419;
}
.x-preview-context strong {
  font-weight: 500;
}
.x-share-card {
  border: 1px solid #cfd9de;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.x-share-image {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1200/630;
  display: grid;
  place-items: center;
  background: #eef2f6;
  isolation: isolate;
}
.x-share-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.x-share-image::after {
  content: "";
  position: absolute;
  inset: 44.4% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.86));
  z-index: -1;
}
.x-share-image > span {
  font-size: 13px;
  color: #8391a3;
  align-self: start;
  margin-top: 20%;
}
.x-share-image > h3 {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 25.4%;
  margin: 0;
  color: white;
  font-size: 4.34cqw;
  line-height: 1.31;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px #0008;
}
.x-share-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  color: #536471;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.x-preview-caption {
  font-size: 12px;
  color: #8190a5;
  line-height: 1.8;
  margin: 16px 0 0;
}
.preview-column {
  align-self: start;
  position: sticky;
  top: 100px;
}
.card-filters {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) repeat(2, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.cards-page .card-filters input,
.cards-page .card-filters select,
.cards-page .stats-controls select {
  margin: 0;
}
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #edf1f7;
  padding-top: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #6c7f9e;
}
.cards-page .bulk-bar select {
  width: 240px;
  margin: 0;
}
.cards-table-wrap {
  overflow-x: auto;
}
.cards-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 950px;
  text-align: left;
}
.cards-table th {
  font-size: 12px;
  color: #7889a3;
  background: #f6f8fc;
  padding: 14px 12px;
  white-space: nowrap;
}
.cards-table td {
  font-size: 13px;
  padding: 18px 12px;
  border-bottom: 1px solid #edf1f7;
  color: #334d70;
  max-width: 320px;
  vertical-align: middle;
}
.cards-table td:first-child {
  padding-left: 8px;
}
.table-cover {
  display: block;
  width: 85px;
  height: 47px;
  object-fit: cover;
  border-radius: 6px;
}
.card-title-cell {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 240px;
}
.card-title-cell strong {
  display: block;
  max-width: 230px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.card-title-cell a {
  display: block;
  max-width: 260px;
  overflow-wrap: anywhere;
  margin-top: 7px;
  font-size: 11px;
}
.cards-table small {
  display: block;
  color: #7b8ca4;
  font-size: 11px;
  margin-top: 5px;
}
.card-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 125px;
}
.card-row-actions button,
.card-row-actions a {
  border: 1px solid #dce5f1;
  border-radius: 5px;
  background: white;
  color: #3e69a6;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}
.card-state {
  font-size: 11px;
  white-space: nowrap;
  border-radius: 5px;
  padding: 5px 7px;
  background: #eaf7f1;
  color: #27866a;
}
.card-state.pending {
  background: #fff5e5;
  color: #ac7c32;
}
.cards-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: #7c8ea8;
}
.directory-list .directory-row {
  padding: 16px 0;
  border-bottom: 1px solid #edf1f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.directory-row > div {
  min-width: 0;
}
.directory-row strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.directory-row small {
  display: block;
  font-size: 12px;
  color: #8391a7;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.directory-row button {
  flex: none;
}
.directory-row a {
  overflow-wrap: anywhere;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-grid > .card-surface:first-child {
  grid-column: 1/-1;
}
.stats-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cards-page .stats-controls select {
  width: 220px;
}
.cards-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 24px 0;
}
.cards-metrics article {
  background: white;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  padding: 24px;
}
.cards-metrics span {
  color: #7689a5;
  font-size: 13px;
}
.cards-metrics strong {
  display: block;
  margin: 15px 0;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}
.cards-metrics small {
  font-size: 12px;
  color: #6e85a7;
}
.cards-chart {
  overflow-x: auto;
  margin: 24px 0;
}
.cards-chart svg {
  display: block;
  width: 100%;
  min-width: 650px;
  height: auto;
}
.cards-chart text {
  font-family: inherit;
  font-size: 11px;
  fill: #7286a4;
}
.cards-page .console-dialog form {
  padding-top: 10px;
}
.cards-page .console-dialog .checkbox-label {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cards-page .login-surface {
  max-width: 450px;
  margin: 40px auto;
}
.cards-page .login-surface p {
  line-height: 1.8;
  color: #71829e;
}
.cards-page .login-surface button {
  width: 100%;
  justify-content: center;
}
.cards-page [role="alert"] {
  font-size: 13px;
  color: #b34e50;
}
.cards-page .console-toast {
  max-width: 90vw;
}
.cards-page .text-button {
  white-space: nowrap;
}
.cards-page .primary-button,
.cards-page .outline-button {
  min-height: 40px;
}
.cards-page button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.cards-page button:hover,
.cards-tabs button:hover {
  filter: brightness(0.97);
}
@media (max-width: 1000px) {
  .generator-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
  }
  .card-filters {
    grid-template-columns: 1fr 1fr;
  }
  .card-surface {
    padding: 22px;
  }
  .preview-column {
    position: static;
  }
}
@media (max-width: 700px) {
  .cards-main {
    padding: 26px 16px 40px;
  }
  .cards-page-heading {
    align-items: flex-start;
  }
  .cards-page-heading h1 {
    font-size: 24px;
  }
  .cards-page-heading p {
    font-size: 12px;
  }
  .cards-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 20px 0;
  }
  .cards-tabs button {
    padding: 12px 6px;
    font-size: 13px;
  }
  .generator-layout {
    grid-template-columns: 1fr;
  }
  .preview-column {
    order: 2;
    max-width: 360px;
    margin: auto;
  }
  .card-surface {
    padding: 18px;
  }
  .field-columns {
    grid-template-columns: 1fr auto;
  }
  .field-columns button {
    font-size: 12px;
    padding: 10px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .cards-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cards-metrics article {
    padding: 20px;
  }
  .cards-metrics strong {
    font-size: 28px;
  }
  .card-filters {
    grid-template-columns: 1fr;
  }
  .bulk-bar {
    align-items: stretch;
  }
  .cards-page .bulk-bar select {
    width: 100%;
  }
  .surface-heading {
    align-items: flex-start;
  }
  .surface-heading h2 {
    font-size: 18px;
  }
  .cards-table {
    min-width: 0;
  }
  .cards-table,
  .cards-table tbody {
    display: block;
  }
  .cards-table thead {
    display: none;
  }
  .cards-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #dfe7f2;
  }
  .cards-table td,
  .cards-table td:first-child {
    display: block;
    border: 0;
    padding: 0;
    max-width: none;
    min-width: 0;
  }
  .cards-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: #8193ad;
    margin-bottom: 8px;
  }
  .cards-table td.title-column,
  .cards-table td.action-column {
    grid-column: 1/-1;
  }
  .cards-table td.select-column {
    grid-column: 1/-1;
  }
  .cards-table td.title-column::before {
    display: none;
  }
  .card-title-cell {
    min-width: 0;
    align-items: flex-start;
  }
  .card-title-cell strong {
    max-width: none;
  }
  .card-title-cell a {
    max-width: 220px;
  }
  .card-row-actions {
    width: 100%;
  }
  .card-row-actions a,
  .card-row-actions button {
    flex: 1;
    text-align: center;
    min-height: 36px;
    display: grid;
    place-items: center;
  }
  .cards-pagination {
    justify-content: space-between;
    font-size: 12px;
    gap: 8px;
  }
  .cards-pagination button {
    padding: 9px 12px;
  }
  .directory-row {
    align-items: flex-start;
  }
  .cards-page .stats-controls select {
    flex: 1;
    min-width: 145px;
  }
  .cards-page .login-surface {
    margin-top: 20px;
  }
  .card-state {
    white-space: normal;
  }
}

.x-share-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.x-share-card[href]:hover {
  border-color: #1d9bf0;
}
.x-share-card:focus-visible {
  outline: 3px solid #1d9bf0;
  outline-offset: 3px;
}

.x-share-image > img {
  background: #fff;
}
.x-share-image > h3 {
  font-weight: 500;
}

.x-share-image > .x-platform-domain {
  position: absolute;
  left: 2.4%;
  bottom: 4.5%;
  margin: 0;
  align-self: auto;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 3px;
  background: #101010e8;
  color: #fff;
  padding: 3px 6px;
  font-size: clamp(9px, 2.2cqw, 12px);
  line-height: 1.2;
  z-index: 1;
}
