/* Profile editor: the "what's left" box, step dots and the Edit / Preview switch (Oct 23 survey asks). */
.edit-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  margin: 0 0 14px;
  border-radius: 12px;
  background: var(--tint, #eceae3);
  border: 1px solid var(--line);
  min-width: 220px;
}
.edit-switch > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}
.edit-switch > [aria-current] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 650;
  cursor: default;
  box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
}
.edit-switch > :not([aria-current]):hover {
  color: var(--ink);
}
.preview-banner .edit-switch {
  margin: 0;
}
.profile-local-banner .edit-switch a {
  float: none;
  display: flex;
  margin-top: 0;
  text-decoration: none;
}
.preview-banner:not([hidden]) {
  flex-wrap: wrap;
  gap: 10px 16px;
}

/* What's left before going public, every step until published. */
.publish-left:not([hidden]) {
  display: block;
  margin: 0 0 18px;
  padding: 14px 16px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 14px;
}
.left-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.left-head strong {
  font-size: 15px;
}
.left-head span {
  font-size: 12px;
  color: var(--muted);
}
.left-head:only-child {
  margin-bottom: 8px;
}
.left-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 4px;
  overflow: hidden;
}
.left-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.left-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.left-list li + li {
  border-top: 1px solid var(--line);
}
.left-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.left-go {
  flex: none;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
}
.left-list button:hover .left-go {
  text-decoration: underline;
}

/* Step buttons: a dot while a step still has an essential missing, a check once its essentials are in. */
.setup-steps button.has-left,
.setup-steps button.is-complete {
  position: relative;
}
.setup-steps button.has-left::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c2702b;
  border: 2px solid var(--paper);
}
.setup-steps button.is-complete:not([aria-current]) span {
  font-size: 0;
}
.setup-steps button.is-complete:not([aria-current]) span::before {
  content: '✓';
  font-size: 12px;
}

/* A draft preview's missing essentials, as dashed spots that open the editor at that field. */
.preview-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.preview-missing a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px dashed #c2702b;
  border-radius: 10px;
  color: #a85a1c;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}
.preview-missing a:hover {
  background: color-mix(in srgb, #c2702b 8%, transparent);
}
[data-theme='dark'] .preview-missing a {
  color: #e8a467;
  border-color: #d08546;
}
@media (max-width: 640px) {
  .edit-switch {
    display: grid;
    width: 100%;
  }
  .preview-missing a {
    width: 100%;
  }
}
[data-theme='dark'] .edit-switch > [aria-current] {
  background: #3b403c;
}
