@import url('/static/console-17.css');

.profile-composer {
  display: grid;
  gap: var(--n-space-l);
  margin-block-end: var(--n-space-xl);
  padding: var(--n-space-l);
  border: 1px solid var(--n-color-border);
  border-radius: var(--n-border-radius-l);
  background: linear-gradient(145deg, var(--n-color-surface-raised), var(--n-color-surface));
}

.profile-composer-head,
.profile-preview-head {
  display: flex;
  justify-content: space-between;
  gap: var(--n-space-l);
  align-items: flex-start;
}

.profile-composer-head h3,
.profile-composer-head p,
.profile-preview-head p {
  margin-block: 0;
}

.profile-composer-head > div,
.profile-preview-head > div {
  display: grid;
  gap: var(--n-space-xs);
}

.profile-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--n-space-s);
}

.profile-preset-card {
  appearance: none;
  display: grid;
  gap: var(--n-space-xs);
  min-inline-size: 0;
  padding: var(--n-space-m);
  border: 1px solid var(--n-color-border);
  border-radius: var(--n-border-radius-m);
  background: var(--n-color-surface-raised);
  color: var(--n-color-text);
  text-align: start;
  cursor: pointer;
}

.profile-preset-card:hover {
  border-color: var(--n-color-accent);
  background: var(--n-color-surface);
}

.profile-preset-card:focus-visible {
  outline: 2px solid var(--n-color-accent);
  outline-offset: 2px;
}

.profile-preset-card[aria-pressed='true'] {
  border-color: var(--n-color-accent);
  box-shadow: inset 3px 0 0 var(--n-color-accent);
}

.profile-preset-card > span,
.profile-preset-card > small {
  overflow-wrap: anywhere;
}

.profile-preset-name {
  font-weight: var(--n-font-weight-heading);
  color: var(--n-color-text-heading);
}

.profile-preset-card small {
  color: var(--n-color-text-weaker);
}

.profile-preview {
  display: grid;
  gap: var(--n-space-m);
  padding: var(--n-space-m);
  border-radius: var(--n-border-radius-m);
  background: var(--n-color-surface-lowered);
}

.profile-preview-head > span {
  color: var(--n-color-text-weaker);
  font-size: var(--n-font-size-s);
}

.profile-preview dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--n-space-s);
  margin: 0;
}

.profile-preview dl > div {
  display: grid;
  gap: var(--n-space-xs);
  padding: var(--n-space-s);
  border-inline-start: 2px solid var(--n-color-border-strong);
}

.profile-preview dt {
  font-weight: var(--n-font-weight-heading);
}

.profile-preview dd {
  margin: 0;
  color: var(--n-color-text-weaker);
}

.profile-preview-warning {
  margin: 0;
  padding: var(--n-space-s);
  border-radius: var(--n-border-radius-s);
  background: var(--n-color-status-warning-weak);
  color: var(--n-color-text);
}

@media (max-width: 900px) {
  .profile-preset-grid,
  .profile-preview dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .profile-composer-head,
  .profile-preview-head {
    flex-direction: column;
  }
}
