/* Existing /upload/:id status pages and sequence management remain available. */
a[href="/upload"], a[href="/upload/"],
a[href="/migrate"], a[href="/migrate/"] {
  display: none !important;
}
/* Hide the menu row as well as its link to avoid empty menu entries. */
li:has(> a[href="/upload"]), li:has(> a[href="/upload/"]),
li:has(> a[href="/migrate"]), li:has(> a[href="/migrate/"]) {
  display: none !important;
}
/* The share page also wraps its upload link in a clickable illustration. */
.wrapper-illustration:has(a[href="/upload"]) {
  display: none !important;
}

/* Keep the account token list and revocation controls; hide creation only. */
.entry-tokens .create-token-wrapper > .generate-title,
.entry-tokens .create-token-wrapper > .wrapper-form {
  display: none !important;
}

/* Account token information stays beside the token list on wide screens. */
.osm-lens-account-layout:has(> .osm-lens-token-aside) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.5rem;
  align-items: start;
}
.osm-lens-account-layout > .tokens-wrapper {
  width: 100%;
  min-width: 0;
}
.osm-lens-account-layout > .profile-container {
  grid-column: 1 / -1;
  width: 100%;
  margin-right: 0;
}
.entry-tokens > div { min-width: 0; }
.entry-tokens .reveal-token,
.entry-tokens .entry-copy-button > div:has([data-test^="button-copy-"]) {
  display: none !important;
}
.osm-lens-token-date {
  color: var(--grey-dark);
  font-family: AtkinsonHyperlegibleNext, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
}
.osm-lens-token-aside {
  padding: 1.25rem;
  border: 0;
  border-radius: .625rem;
  background: var(--blue-pale);
  color: var(--black);
  font-family: AtkinsonHyperlegibleNext, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
}
.osm-lens-token-aside h3 {
  margin: 0 0 1.25rem;
  color: var(--blue-dark);
  font-family: AtkinsonHyperlegibleNext-Bold, sans-serif;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.625rem;
}
.osm-lens-token-aside h4 {
  margin: 1.25rem 0 .75rem;
  color: var(--blue-dark);
  font-family: AtkinsonHyperlegibleNext-Bold, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5rem;
}
.osm-lens-token-aside li {
  padding: .9375rem;
  border: .0625rem solid var(--grey);
  border-radius: .875rem;
  background: var(--white);
}
.osm-lens-token-aside strong {
  color: var(--blue);
  font-family: AtkinsonHyperlegibleNext-Bold, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5rem;
}
.osm-lens-token-aside p { margin: 0 0 0.75rem; }
.osm-lens-token-aside ul { margin: 0; padding: 0; list-style: none; }
.osm-lens-token-aside li > p { margin-top: 0.35rem; }
.osm-lens-store-links { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.osm-lens-store-links a { display: inline-flex; max-width: 100%; }
.osm-lens-store-links img { display: block; height: 40px; width: auto; max-width: 100%; }
.osm-lens-store-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.osm-lens-developer-note { margin-top: 1.25rem; padding-top: 1.25rem; border-top: .0625rem solid var(--grey-pale); }
.osm-lens-developer-note h4 { margin-top: 0; }
.osm-lens-developer-note p { margin-bottom: 0; }
.osm-lens-developer-note a { color: var(--blue-dark); font-family: AtkinsonHyperlegibleNext-Bold, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.osm-lens-developer-note a:hover { color: var(--blue); }
.osm-lens-developer-note a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.osm-lens-contribute-original { display: none !important; }
.osm-lens-contribute-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem;
}
.osm-lens-contribute-page h1,
.osm-lens-contribute-page h2 {
  color: var(--blue-dark);
  font-family: AtkinsonHyperlegibleNext-Bold, sans-serif;
  font-weight: 400;
}
.osm-lens-contribute-page h1 { margin: 0 0 1.25rem; font-size: 2rem; line-height: 2.375rem; }
.osm-lens-contribute-page h2 { margin: 1.25rem 0 .75rem; font-size: 1.375rem; line-height: 1.625rem; }
.osm-lens-contribute-page .osm-lens-developer-note h2 { margin-top: 0; }
@media (max-width: 800px) {
  .osm-lens-contribute-page { padding: 1.25rem; }
  .osm-lens-contribute-page h1 { font-size: 1.625rem; line-height: 2rem; }
  .osm-lens-account-layout:has(> .osm-lens-token-aside) { grid-template-columns: minmax(0, 1fr); }
  .osm-lens-account-layout > .profile-container { order: 0; }
  .osm-lens-account-layout > .osm-lens-token-aside { order: 1; }
  .osm-lens-account-layout > .tokens-wrapper { order: 2; }
  .osm-lens-token-aside h3 { font-size: 1.25rem; }
  .osm-lens-token-aside strong { font-size: 1rem; }
}
