/* Your coins.

   Three tabs, one list shape. Everything on this page is a card with the same
   anatomy (who it is, what state it is in, the facts, the links) because a dev
   switching between their coins and their locks should not have to re-learn
   where anything is. */

.head { margin: 26px 0 18px; }
.head p { margin-top: 6px; font-size: 14px; }
.wsub {
  font: 500 13px 'Geist Mono', monospace; color: var(--txt-3);
  background: var(--bg-2); border-radius: 4px; padding: 1px 5px;
}

/* ---------------------------------------------------- unfinished launches */

/* A <details>, so a dev with nothing wrong pays one line for it. It only opens
   itself when the CHAIN has confirmed there is a split left to lock. */
.unf {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); margin-bottom: 18px;
}
.unf[hidden] { display: none; }
.unf > summary {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; cursor: pointer; list-style: none;
  font: 550 12.5px Geist, sans-serif; letter-spacing: -.01em; color: var(--txt-3);
  transition: color var(--t-fast);
}
.unf > summary::-webkit-details-marker { display: none; }
.unf > summary:hover { color: var(--txt-hero); }
.unf > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r); }
/* The disclosure arrow, drawn rather than shipped as a glyph so it rotates. */
.unf > summary::before {
  content: ''; flex: 0 0 auto; width: 0; height: 0;
  border: 4px solid transparent; border-left-color: var(--txt-5);
  margin-right: 2px;
  transition: transform var(--t-fast);
}
.unf[open] > summary::before { transform: rotate(90deg) translateX(1px); }
/* Yellow only when there is something to lock. Everything else about this
   panel is quiet on purpose: most of the time it has nothing to say. */
.unf > summary.warn { color: var(--warn); }

.unf-body { padding: 0 15px 15px; border-top: 1px solid var(--line); }
.unf-say {
  margin: 12px 0 0; max-width: 72ch;
  font-size: 12.3px; line-height: 1.6; color: var(--txt-5);
}

.unf-form { margin-top: 14px; }
.unf-lab {
  display: block; margin-bottom: 6px;
  font: 500 9.5px 'Geist Mono', monospace; letter-spacing: .12em;
  text-transform: uppercase; color: var(--txt-5);
}
.unf-row { display: flex; gap: 8px; align-items: stretch; }
.unf-in {
  flex: 1 1 auto; min-width: 0;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 8px 10px; color: var(--txt-hero);
  font: 400 12.5px 'Geist Mono', monospace;
}
.unf-in::placeholder { color: var(--txt-5); }
.unf-in:focus { outline: none; border-color: var(--accent); }
.unf-row .btn { flex: 0 0 auto; }
.unf-err { margin: 8px 0 0; font-size: 11.8px; line-height: 1.5; color: var(--warn); }
.unf-err[hidden] { display: none; }

/* One remembered or pasted mint. Same card anatomy as everything else on the
   page, minus the image: there is no metadata to show for a coin we have no
   record of. */
/* minmax(0, 1fr), not the default `auto`. A grid item's automatic minimum is
   its min-content, and a mint is 44 unbreakable characters, so an auto track
   grows to fit the whole address and pushes the card past the viewport on a
   phone. The ellipsis on .unfrow-mint cannot help while the track is wider than
   the screen. Found at 375px. */
#unfList:not(:empty) {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 10px; margin-top: 14px;
}
.unfrow { min-width: 0; }
.unfrow-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.unfrow-mint {
  min-width: 0; flex: 1;
  font: 500 12px 'Geist Mono', monospace; color: var(--txt-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.unfrow .mnote, .unfrow .mwarn { margin-top: 9px; }
.unfdrop {
  background: none; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 0; cursor: pointer; margin-left: auto;
}

/* Nothing remembered in this browser, which is the state the dev with the
   oldest half-launch will see. Quieter than .empty (this is a panel inside a
   page, not a whole tab) and it ends in the button that puts the cursor in the
   box underneath. */
.unf-none {
  min-width: 0;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm);
  padding: 14px 15px;
}
.unf-none b { display: block; font: 550 12.5px Geist, sans-serif; color: var(--txt-2); }
.unf-none p {
  margin-top: 6px; max-width: 60ch;
  font-size: 11.8px; line-height: 1.55; color: var(--txt-5);
}
.unf-none .btn { margin-top: 12px; }

@media (max-width: 560px) {
  .unf-row { flex-wrap: wrap; }
  .unf-row .btn { width: 100%; justify-content: center; }
  .unfdrop { margin-left: 0; }
}

/* ------------------------------------------------------------------ tabs */

.tabs {
  display: flex; gap: 2px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tab {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 0; border-bottom: 1px solid transparent;
  margin-bottom: -1px; padding: 9px 13px; cursor: pointer;
  font: 500 12.5px Geist, sans-serif; letter-spacing: -.01em; color: var(--txt-5);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tab:hover { color: var(--txt-3); }
.tab.on { color: var(--txt-hero); border-bottom-color: var(--accent); }
.tab-n {
  font: 500 10.5px 'Geist Mono', monospace;
  background: var(--bg-3); color: var(--txt-4);
  border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.tab.on .tab-n { background: rgba(134, 239, 172, .14); color: var(--accent); }
.tab-n[hidden] { display: none; }

.pane[hidden] { display: none; }

/* ----------------------------------------------------------------- cards */

/* minmax(0, 1fr), for the same reason #unfList above has it, found the same way
   at 375px: a grid's implicit column is `auto`, an auto track grows to its
   items' min-content, and a card's min-content is set by the coin NAME, which
   is one nowrap line. So the track became 436px inside a 335px shell, every
   card ran 100px past the right edge, and body { overflow-x: clip } trimmed it
   rather than scrolling, which is why the status chip was simply missing on a
   phone instead of being somewhere off to the side. Capping the track makes the
   flex line inside the card definite, and .mcard-id (min-width: 0) shrinks and
   ellipsises as it was always meant to. */
.mlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

.mcard {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); padding: 13px 15px 14px;
  transition: border-color var(--t-fast);
}
.mcard:hover { border-color: var(--line-2); }

/* The head is the link. The rest of the card is not, so a copy button inside
   it does not have to fight an ancestor anchor's navigation. */
.mcard-head {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: inherit;
}
.mcard-img {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 8px; object-fit: cover; background: var(--bg-4);
}
.mcard-id { min-width: 0; flex: 1; }
/* The ticker ellipsises too. It is 14px mono and a ticker is unbreakable, so a
   long one printed straight through the chip and out of the card. The span
   under it had this and the b did not. */
.mcard-id b {
  display: block; font: 600 14px 'Geist Mono', monospace;
  color: var(--txt-hero); letter-spacing: -.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mcard-id span {
  display: block; margin-top: 2px; font-size: 12.3px; color: var(--txt-5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mcard-head:hover .mcard-id b { color: var(--accent); }

.mstate {
  flex: 0 0 auto;
  font: 500 10px 'Geist Mono', monospace; letter-spacing: .08em;
  text-transform: uppercase; color: var(--txt-5);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px;
}
.mstate.ok   { color: var(--accent); border-color: rgba(134, 239, 172, .3); }
/* The ring is the text colour at 30%, so they read as one yellow. It was
   amber-400 around --warn, which is yellow-500. */
.mstate.warn { color: var(--warn);   border-color: rgba(234, 179, 8, .3); }
.mstate.wait { color: var(--txt-4); }
/* A coin whose every run is erroring. Same ring treatment as the others, so it
   reads as the same control rather than an alert, but it is not green and it is
   not quiet: a dev scanning the list has to be able to see which coin is stuck. */
.mstate.bad  { color: var(--bad, #f87171); border-color: rgba(248, 113, 113, .35); }

/* ----------------------------------------------------------- jobs + facts */

.mjobs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mjob {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--bg-3); border-radius: var(--r-sm); padding: 4px 9px;
}
.mjob b { font: 500 11.5px Geist, sans-serif; color: var(--txt-2); }
.mjob i {
  font: 600 11px 'Geist Mono', monospace; font-style: normal; color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.mfacts {
  display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px;
  padding-top: 11px; border-top: 1px solid var(--line);
}
.mfact { display: flex; align-items: baseline; gap: 7px; }
.mfact span {
  font: 500 9.5px 'Geist Mono', monospace; letter-spacing: .12em;
  text-transform: uppercase; color: var(--txt-5);
}
.mfact b { font-size: 12.5px; color: var(--txt-2); font-weight: 550; }

.mwarn {
  margin-top: 10px; font-size: 11.5px; line-height: 1.55; color: var(--warn);
}
.mnote {
  margin-top: 10px; font-size: 11.2px; line-height: 1.55; color: var(--txt-5);
  max-width: 68ch;
}
.mnote.dim { color: var(--txt-4); }

/* ----------------------------------------------------------------- links */

.mlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.mlink {
  font: 400 11.5px Geist, sans-serif; color: var(--txt-4);
  text-decoration: none; border-bottom: 1px solid var(--line-2);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.mlink:hover { color: var(--accent); border-bottom-color: rgba(134, 239, 172, .4); }

.mcard .addr { margin-top: 12px; }

/* ----------------------------------------------------------------- empty */

.empty {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 34px 24px; text-align: center;
}
.empty b { display: block; font-size: 14.5px; color: var(--txt-2); font-weight: 550; }
.empty p {
  margin: 7px auto 0; max-width: 46ch;
  font-size: 12.5px; line-height: 1.6; color: var(--txt-5);
}
.empty .btn { margin-top: 16px; }

.status { margin-top: 18px; font-size: 12.5px; color: var(--txt-5); }
.status[hidden] { display: none; }

@media (max-width: 560px) {
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }
  .mfacts { gap: 8px 16px; }
}
