/* The Note page (note.html): the account card and the market for banknotes. Everything else on the
   page comes from ui.css and styles.css. */

.mono { font-family: var(--mono); }
/* ---- the summary at the top: who is connected, and their three numbers ---- */
.nm-tiles { margin: 28px 0 16px; }
.nm-me { margin: 28px 0 16px; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); border-radius: 16px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.nm-me[hidden] { display: none; }
.nm-me-id { display: flex; align-items: center; gap: 14px; padding: 20px 24px; min-width: 0; }
.nm-me-id .nm-x-av { flex: none; width: 48px; height: 48px; font-size: 18px; }
.nm-me-id .nm-x-line { align-items: center; font-size: 17px; font-weight: 650; }
.nm-me-id .nm-x-vf { width: 19px; height: 19px; margin-top: 0; }
.nm-me-stats { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; min-width: 0; }
.nm-stat { display: grid; align-content: center; gap: 4px; padding: 18px 24px; border-left: 1px solid var(--line); min-width: 0; }
.nm-stat-l, .nm-stat-s { font-size: 12px; color: var(--muted); }
.nm-stat strong { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.nm-stat.main strong { font-size: 30px; }
.nm-stat strong .unit { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.nm-meter { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--line-3, var(--line)); overflow: hidden; }
.nm-meter i { display: block; height: 100%; border-radius: 2px; background: var(--brand); }
@media (max-width: 900px) {
  .nm-me { grid-template-columns: 1fr; }
  .nm-me-id { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .nm-stat { padding: 14px 18px; }
  .nm-stat:first-child { border-left: 0; }
}
@media (max-width: 520px) {
  .nm-me-stats { grid-template-columns: 1fr 1fr; }
  .nm-stat.main { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .nm-stat.main + .nm-stat { border-left: 0; }
}
/* The market's own numbers, in one line above its banknotes. */
.nm-mstats { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.nm-mstats b { margin-left: 7px; color: var(--text); font-weight: 600; }

/* the banknote, as the extension's panel draws it */
.bn { display: block; width: 100%; height: auto; border-radius: 10px; }
.bn-cap { font: 600 9px var(--mono); letter-spacing: 0.18em; }
.bn-val { font: 700 38px var(--mono); letter-spacing: -0.02em; }
.bn-ser { font: 500 11px var(--mono); letter-spacing: 0.08em; }

/* ------------------------------------------------------------- account -- */
.nm-account { padding: 20px 24px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.nm-account .card-head { margin-bottom: 12px; }
.nm-steps { display: grid; gap: 10px; }
.nm-step { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.nm-step.done { border-color: rgba(46, 189, 133, 0.3); }
.nm-step-n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); color: var(--brand); border: 1px solid var(--line-3); }
.nm-step.done .nm-step-n { color: #00170d; background: var(--up); border-color: var(--up); }
.nm-step-t { flex: 1 1 0; min-width: 0; display: grid; gap: 2px; }
.nm-step-t span { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.nm-step-a { flex: 0 0 auto; }

/* The connected X account as X shows one: picture, name, and the blue check when it has it. */
.nm-x-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--brand); font-size: 15px; font-weight: 650; letter-spacing: 0; }
/* The name beside its check: two lines at most, and the check keeps its place. */
.nm-x-line { display: flex; align-items: flex-start; gap: 5px; min-width: 0; font-size: 14px; line-height: 1.3; letter-spacing: 0; }
.nm-x-name { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.nm-x-vf { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.nm-x-line.sm { display: inline-flex; align-items: center; max-width: 100%; vertical-align: bottom; font-size: inherit; line-height: inherit; }
.nm-x-line.sm .nm-x-name { display: block; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
.nm-x-line.sm .nm-x-vf { width: 16px; height: 16px; margin-top: 0; }
.nm-step-t strong span { font-size: inherit; color: inherit; }
.nm-addr { font: 500 12.5px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.nm-paste, .nm-fine { margin-top: 10px; }
.nm-paste .link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }

/* ---------------------------------------------------------------- tabs -- */
.nm-bar { margin: 24px 0 16px; }
.nm-bar .tabs { max-width: 100%; overflow-x: auto; }
.nm-bar .tabs button { white-space: nowrap; }
.nm-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; font: 600 11px/18px var(--mono); text-align: center; color: #001314; background: var(--brand); }
.nm-sub { margin: 20px 0 12px; }

/* -------------------------------------------------------------- market -- */
.nm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.nm-chip { --dc: var(--brand); display: grid; gap: 1px; padding: 8px 14px; min-width: 104px; text-align: left; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color 150ms, background 150ms; }
.nm-chip b { font: 600 14px var(--mono); color: var(--dc); }
.nm-chip span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nm-chip:hover { border-color: var(--line-3); }
.nm-chip.on { border-color: var(--dc); background: color-mix(in srgb, var(--dc) 9%, var(--surface)); }
.nm-filters { margin: 14px 0 10px; }
.nm-filters .select { width: auto; min-width: 210px; height: 40px; }
.nm-filters .input { width: 130px; height: 40px; }
.nm-filters .input[data-f="q"] { width: 200px; }
.nm-denomrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-height: 34px; margin-bottom: 14px; font-size: 13.5px; color: var(--text-2); }
.nm-denomrow b { color: var(--text); }
.nm-denomrow-a { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.nm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.nm-card { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color 150ms, transform 200ms var(--ease); }
.nm-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.nm-card.own { border-color: rgba(0, 253, 255, 0.28); }
.nm-card.picked { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 28px -8px var(--brand); }
.nm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nm-card-top.stack { display: grid; gap: 2px; justify-content: stretch; }
.nm-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.nm-price strong { font-size: 22px; letter-spacing: -0.02em; }
.nm-price .unit { font-size: 12px; color: var(--muted); }
.nm-price .tiny { margin-left: auto; }
.nm-offer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.nm-card-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.nm-card-btns .btn { flex: 1 1 auto; }
.nm-pick { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.nm-pick:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* the tick hangs on the corner, clear of the words printed on the banknote */
.nm-tick { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; color: #001314; border: 1.5px solid var(--line-3); background: #070b0d; }
.nm-card.picked .nm-tick { background: var(--brand); border-color: var(--brand); }
.nm-empty { grid-column: 1 / -1; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.nm-more { margin-top: 14px; }

.nm-selbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.nm-selbar-r { margin-left: auto; }

/* the basket: stays in view while the list scrolls */
.nm-cart { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: calc(100vw - 32px); padding: 10px 14px 10px 18px; border-radius: 999px; border: 1px solid var(--line-3); background: #070b0d; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), var(--glow); font-size: 14px; }

/* -------------------------------------------------------------- modals -- */
.nm-field { margin-top: 12px; }
.nm-lines { display: grid; max-height: 240px; overflow: auto; margin-bottom: 4px; }
.nm-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nm-line .muted { flex: 1 1 auto; text-align: right; }
.nm-line.total { border-bottom: 0; font-size: 15px; }
.modal .nm-line + .btn, .modal .nm-field + .btn, .modal .btn-block { margin-top: 14px; }
.modal .btn-block + .note + .nm-field { margin-top: 16px; }

@media (max-width: 640px) {
  .nm-step { flex-wrap: wrap; }
  .nm-step-a { width: 100%; }
  .nm-step-a .btn { width: 100%; }
  .nm-filters .select, .nm-filters .input, .nm-filters .input[data-f="q"] { width: 100%; }
  .nm-denomrow-a, .nm-selbar-r { margin-left: 0; }
  .nm-cart { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nm-card, .nm-chip { transition: none; }
  .nm-card:hover { transform: none; }
}

/* --------------------------------------------------------------- admin -- */
.nm-admin { margin-bottom: 24px; }
.nm-admin h4 { margin: 22px 0 10px; font-size: 14px; color: var(--text-2); }
.nm-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.nm-set .input { height: 40px; }
.nm-admin-row { margin-top: 12px; }
.nm-admin-row .input { width: 150px; height: 40px; }
.nm-admin-row .input.nm-admin-wide { flex: 1 1 240px; width: auto; }
.nm-admin .table td.nm-admin-text { white-space: normal; overflow-wrap: anywhere; min-width: 200px; max-width: 460px; line-height: 1.45; }
.nm-admin .table td { white-space: normal; }
.nm-admin .table td.r { white-space: nowrap; }

/* The mint window: each banknote with its counter. */
.nm-mint { display: grid; gap: 8px; margin: 14px 0 6px; }
.nm-mint-row { display: grid; grid-template-columns: 132px 1fr auto; align-items: center; gap: 14px; padding: 6px; border: 1px solid transparent; border-radius: 14px; transition: border-color 0.15s, background 0.15s; }
.nm-mint-row.on { border-color: rgba(0, 253, 255, 0.35); background: rgba(0, 253, 255, 0.05); }
.nm-mint-art .bn { width: 132px; border-radius: 7px; }
.nm-mint-v { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.nm-qty { display: flex; align-items: center; gap: 6px; }
.nm-qty .input { width: 54px; height: 34px; padding: 0 4px; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.nm-qty .input::-webkit-outer-spin-button, .nm-qty .input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.nm-qty-b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.nm-qty-b:hover { border-color: rgba(0, 253, 255, 0.5); }
.nm-qty-b svg { width: 15px; height: 15px; }
@media (max-width: 480px) {
  .nm-mint-row { grid-template-columns: 92px 1fr auto; gap: 10px; }
  .nm-mint-art .bn { width: 92px; }
}

/* Invitations: the code box in the account steps, and a player's own codes. */
.nm-invite-in { width: 170px; height: 38px; }
.nm-step-a { gap: 8px; }
.nm-invites { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.nm-invites-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nm-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 12px 0 10px; }
.nm-code { font-size: 13.5px; letter-spacing: 0.05em; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.nm-code:hover { border-color: rgba(0, 253, 255, 0.5); color: var(--brand); }

/* The Edge of a call, in the admin table. */
.nm-seed { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.nm-seed .input { width: 82px; height: 34px; }

/* ---- Wake Note's own page (wake-note.html) and its section on the home page before launch. ---- */
.nh-page { padding-top: var(--nav-h); }
.nh-fine { margin-top: 18px; font-size: 13.5px; color: var(--muted, rgba(255, 255, 255, 0.62)); text-align: center; }
.nh-shots { display: flex; align-items: flex-end; justify-content: center; gap: 28px; margin-top: 56px; }
.nh-phone, .nh-card, .nh-pic { display: block; height: auto; border-radius: 18px; border: 1px solid rgba(0, 253, 255, 0.24); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 253, 255, 0.1); background: #020809; }
.nh-phone { width: 260px; flex: none; }
.nh-card { width: min(468px, 38vw); align-self: center; }
.nh-rows { display: grid; gap: 28px; margin-top: 56px; }
.nh-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.nh-row.flip .nh-text { order: 2; }
.nh-text { display: grid; gap: 14px; }
.nh-text .h3 { font-size: 28px; }
.nh-text .btn { justify-self: start; }
.nh-pic { width: 100%; max-width: 468px; justify-self: center; }
.nh-pair { display: flex; justify-content: center; gap: 18px; }
.nh-pair .nh-phone { width: min(230px, 46%); }
@media (max-width: 960px) {
  .nh-shots { gap: 16px; margin-top: 44px; }
  .nh-shots .nh-card { display: none; }
  .nh-shots .nh-phone { width: min(240px, 44vw); }
  .nh-row { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .nh-row.flip .nh-text { order: 0; }
}
