/* Maps by Funk — Atlas: accounts, saving, viewer pages, dev switcher.
   Tokens from styles.css; page scaffolding (.cv, .cv-section…) from views.css. */

/* ---------- header right ---------- */

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-right .badge-sample {
  margin-left: 0;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.account-btn:hover {
  border-color: var(--teal);
}

.account-signin {
  padding: 0 14px;
  background: var(--teal);
  border-color: var(--teal);
  color: var(--near-black);
  font-family: var(--f-display);
}

.account-signin:hover {
  background: var(--off-white);
  border-color: var(--off-white);
}

.account-avatar,
.me-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--off-white);
  font-family: var(--f-display);
  font-weight: 700;
}

.account-avatar {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.account-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-badge {
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--teal);
  color: var(--near-black);
  font-family: var(--f-display);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- dev switcher ----------
   Deliberately loud: it must never be mistaken for a product feature. */

.dev {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 9px;
  border: 1px dashed #e8b877;
  border-radius: 6px;
  background: rgba(232, 184, 119, 0.08);
}

.dev[hidden] {
  display: none;
}

.dev-label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8b877;
}

.dev-select,
.dev-reset {
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.dev-select {
  padding: 0 6px;
}

.dev-select option {
  background: var(--near-black);
}

.dev-reset {
  padding: 0 8px;
  color: var(--text-dim);
}

.dev-reset:hover {
  color: var(--text);
  border-color: #e8b877;
}

/* ---------- save buttons ---------- */

.card-save {
  flex-shrink: 0;
  width: 26px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
}

.card-save svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.card-save:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.card-save.is-saved {
  color: var(--teal);
  border-color: var(--teal-deep);
}

.card-save.is-saved svg {
  fill: var(--teal);
}

/* The footer now holds three things: keep Details between save and watch. */
.card-foot {
  gap: 8px;
}

.card-foot .card-details {
  margin-right: auto;
}

.place-save {
  flex-shrink: 0;
  border: 1px solid var(--teal-deep);
  background: transparent;
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 3px;
}

.place-save:hover {
  background: rgba(103, 203, 166, 0.12);
}

/* ---------- save popover (reuses .picker) ---------- */

.save-pop {
  width: 270px;
}

.save-pop-head {
  padding: 10px 12px 4px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12.5px;
}

.save-pop .picker-list button {
  justify-content: flex-start;
}

.save-pop .picker-label {
  flex: 1;
}

.save-check {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--text-faint);
  border-radius: 3px;
}

[aria-checked="true"] > .save-check {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: inset 0 0 0 2px var(--near-black);
}

.save-new {
  display: flex;
  gap: 6px;
  padding: 0 8px 8px;
}

.save-new .picker-search {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.save-new .btn-primary {
  height: 32px;
}

.save-pop-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.save-pop-body p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.45;
}

.save-upsell {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.45;
}

.save-upsell b {
  color: var(--teal);
}

/* ---------- viewer pages ---------- */

.signin-card {
  max-width: 520px;
  margin: 40px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}

.signin-card h1 {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 24px;
}

.signin-card p {
  margin: 0 0 10px;
  color: var(--text-dim);
  line-height: 1.5;
}

.signin-note {
  font-size: 12.5px;
  color: var(--text-faint) !important;
}

.me-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.me-hero h1 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 28px);
}

.me-avatar {
  width: 64px;
  height: 64px;
  font-size: 26px;
  border: 3px solid var(--teal-deep);
}

.me-subs {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.me-subs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}

.me-subs li:last-child {
  border-bottom: 0;
}

.me-subs img,
.me-sub-dot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.me-sub-dot {
  border: 1.5px dashed var(--line);
}

.me-sub-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
}

.me-sub-name a {
  color: var(--text);
  text-decoration: none;
}

.me-sub-name a:hover {
  color: var(--teal);
}

.me-sub-status {
  font-size: 12px;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.me-sub-status.is-pending {
  color: var(--text-faint);
}

.me-actions {
  margin-bottom: 8px;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.me-lists {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.me-lists a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
}

.me-lists a:hover {
  border-color: var(--teal);
}

.me-lists span {
  font-size: 12px;
  color: var(--text-faint);
}

.upsell {
  padding: 14px 16px;
  border: 1px dashed var(--teal-deep);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
}

.upsell b {
  display: block;
  margin-bottom: 2px;
  color: var(--teal);
  font-family: var(--f-display);
}

/* ---------- list page ---------- */

.list-name {
  outline: none;
  border-bottom: 1px dashed transparent;
}

.list-name:hover,
.list-name:focus {
  border-bottom-color: var(--teal-deep);
}

.list-thumb {
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.vv-venue-title h3 a {
  color: var(--text);
  text-decoration: none;
}

.vv-venue-title h3 a:hover {
  color: var(--teal);
}

@media (max-width: 760px) {
  .account-name,
  .dev-label {
    display: none;
  }
}
