/* FILE A2W-ONLY — brand identity redesign */
.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-preview-column,
.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-section:nth-of-type(2),
.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-section:nth-of-type(4) {
  display: none;
}

.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-layout {
  display: block;
}

.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-header__actions {
  margin-top: 12px;
}

.a2w-bi-page.a2w-bi-legacy-shell .a2w-bi-state-badge {
  display: none;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-breadcrumb {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--a2w-text-tertiary);
  display: inline-flex;
  gap: 6px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-title {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 600;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-state-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--a2w-border-default);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-state-badge.is-dirty {
  border-color: rgba(248, 250, 252, 0.35);
  color: #f8fafc;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-state-badge.is-saving {
  border-color: rgba(63, 224, 200, 0.45);
  color: var(--a2w-action-primary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 32px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section {
  margin: 0;
  border: 1px solid var(--a2w-border-default);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head p {
  margin: 0 0 14px;
  color: var(--a2w-text-secondary);
  font-size: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-section__head--row > div p {
  margin-bottom: 0;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-field-help {
  margin-top: 6px;
  color: var(--a2w-text-tertiary);
  font-size: 11px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-field-error {
  min-height: 16px;
  margin-top: 5px;
  color: #fca5a5;
  font-size: 11px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-slug-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-slug-status {
  min-width: 26px;
  text-align: center;
  font-size: 12px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-url-preview {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-assets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-card {
  border: 1px solid var(--a2w-border-default);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  padding: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-spec {
  margin: 0 0 8px;
  color: var(--a2w-text-tertiary);
  font-size: 11px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-dropzone {
  border: 1px dashed var(--a2w-border-default);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-dropzone.is-dragover {
  border-color: var(--a2w-action-primary);
  background: rgba(63, 224, 200, 0.08);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-dropzone-hint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 10px;
  color: var(--a2w-text-tertiary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-preview {
  height: 100px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-placeholder {
  color: var(--a2w-text-tertiary);
  font-size: 11px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-asset-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-link-btn {
  border: 0;
  background: transparent;
  color: var(--a2w-action-primary);
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--a2w-text-primary);
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 0 10px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-danger-zone {
  margin-top: 64px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
  border-radius: 14px;
  padding: 18px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-danger-zone h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-danger-zone p {
  margin: 0 0 12px;
  color: #fecaca;
  font-size: 13px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-column {
  position: relative;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-mobile-toggle {
  display: none;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-card {
  position: sticky;
  top: 24px;
  margin: 0;
  border: 1px solid var(--a2w-border-default);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-tabs button {
  border: 1px solid var(--a2w-border-default);
  border-radius: 999px;
  background: transparent;
  color: var(--a2w-text-secondary);
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-tabs button.is-active {
  border-color: rgba(63, 224, 200, 0.5);
  color: var(--a2w-action-primary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-pass-preview {
  border: 1px solid var(--a2w-border-default);
  border-radius: 12px;
  overflow: hidden;
  background: #0d0b1a;
  margin-bottom: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-pass-preview__strip {
  height: 94px;
  background: linear-gradient(135deg, rgba(63, 224, 200, 0.2), rgba(20, 184, 166, 0.06));
  background-size: cover;
  background-position: center;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-pass-preview__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-pass-preview__body img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

html[data-shell="dark"].a2w-shell #brand-identity #a2wBiPassName {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

html[data-shell="dark"].a2w-shell #brand-identity #a2wBiPassTagline {
  margin: 2px 0 0;
  font-size: 12px;
  color: #cbd5e1;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-meta p {
  margin: 0;
  font-size: 12px;
  color: var(--a2w-text-secondary);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-qr {
  min-height: 110px;
  border: 1px dashed var(--a2w-border-default);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--a2w-z-modal);
  display: grid;
  place-items: center;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog[hidden] {
  display: none;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: #0f172a;
  padding: 18px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__panel p {
  margin: 0 0 12px;
  color: var(--a2w-text-secondary);
}

html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-delete-dialog__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

html[data-shell="dark"].a2w-shell #brand-identity input:focus-visible,
html[data-shell="dark"].a2w-shell #brand-identity select:focus-visible,
html[data-shell="dark"].a2w-shell #brand-identity button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--a2w-action-primary);
}

@media (max-width: 1023px) {
  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-layout {
    grid-template-columns: 1fr;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-mobile-toggle {
    display: inline-flex;
    margin-bottom: 10px;
    width: 100%;
    justify-content: center;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-preview-card {
    position: static;
  }
}

@media (max-width: 767px) {
  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-page {
    padding: 18px 12px;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-header {
    flex-direction: column;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  html[data-shell="dark"].a2w-shell #brand-identity .a2w-bi-assets-grid {
    grid-template-columns: 1fr;
  }
}
