/* App screens (/mine, /wallet). Builds on site.css: same paper, ink, accent and type scale. */
.app { padding: clamp(128px, 19vh, 190px) var(--pad) 0; max-width: 1240px; }
.app-head { max-width: var(--col); margin-bottom: clamp(40px, 7vh, 72px); }
.app-title { font-size: clamp(46px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.055em; font-weight: 600; }
.app-sub { margin-top: 18px; color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); letter-spacing: -0.012em; max-width: 30em; }
.app-h2 { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 560; margin-bottom: 18px; }
.muted { color: var(--ink-2); max-width: 32em; }
.empty { color: var(--ink-2); padding: 20px 0 22px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.02em; }
.msg { min-height: 1.5em; margin: 10px 0 4px; color: var(--accent); font-size: 15px; font-weight: 500; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn[disabled] { opacity: 0.45; cursor: default; pointer-events: none; }
.btn-big { height: 64px; padding: 0 40px; font-size: 18px; min-width: 220px; }
.mono { overflow-wrap: anywhere; }

/* Mine: the live thought is the hero */
.think { padding-top: 22px; border-top: 1px solid var(--ink); }
.think-label { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 18px; }
.think-label > span:first-child { color: var(--accent); }
.think-text {
  font-size: clamp(34px, 5.4vw, 92px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 460;
  min-height: 3.06em; max-width: 15em; overflow-wrap: anywhere;
}
.is-mining .think-text { color: var(--ink); }
.mine-controls { margin-top: clamp(30px, 5vh, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.threads select, .field select {
  height: 52px; padding: 0 40px 0 16px; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
  background: transparent; border: 1px solid var(--ink); border-radius: 3px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px; background-repeat: no-repeat;
}
.mine-note { flex: 1 1 100%; min-height: 1.5em; color: var(--ink-2); font-size: 15px; }

.moment { margin-top: clamp(36px, 6vh, 64px); padding: 30px 0 34px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.moment.in { animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.moment-label { font-size: 15px; font-weight: 560; color: var(--accent); margin-bottom: 12px; }
.moment-thought { font-size: clamp(26px, 3vw, 48px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 460; max-width: 22em; }
.moment-reward { margin-top: 18px; font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -0.05em; font-weight: 560; }
.moment-reward span { font-size: 0.42em; letter-spacing: -0.01em; color: var(--ink-2); font-weight: 480; }

.reg-app { max-width: none; margin-top: clamp(48px, 8vh, 88px); grid-template-columns: repeat(4, 1fr); }
.reg-app dd { font-size: clamp(32px, 3.2vw, 54px); }
.payto { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 16px; overflow-wrap: anywhere; }
.payto a { color: var(--ink); font-weight: 540; text-underline-offset: 4px; }
.payto a:hover { color: var(--accent); }
.wins { margin-top: clamp(64px, 11vh, 120px); }
.rows-app { max-width: none; }

/* Wallet */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); max-width: 1000px; }
.choice-item { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.choice-item .app-h2 { margin-bottom: 0; }
.choice-item .field { align-self: stretch; }
.back { margin-top: 36px; }
.back a { text-underline-offset: 4px; font-weight: 500; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  display: block; width: 100%; font: inherit; font-size: 20px; letter-spacing: -0.01em; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0 12px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field input::placeholder { color: var(--ink-3); }
.field-inline { display: flex; align-items: center; gap: 12px; margin: 0; }
.field-inline > span { margin: 0; }

.seed {
  margin-top: 26px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  font-size: clamp(20px, 2vw, 30px); letter-spacing: 0.02em; line-height: 1.5; font-weight: 500; word-spacing: 0.3em; max-width: 30em;
  font-variant-numeric: tabular-nums;
}
.check { display: flex; gap: 12px; align-items: center; margin: 28px 0 22px; font-size: 17px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }

.balance { padding-bottom: clamp(30px, 5vh, 48px); }
.balance-label { font-size: 14px; color: var(--accent); font-weight: 560; margin-bottom: 8px; }
.balance-big { font-size: clamp(64px, 10vw, 168px); line-height: 0.9; letter-spacing: -0.06em; font-weight: 560; overflow-wrap: anywhere; }
.balance-big .unit { font-size: 0.24em; letter-spacing: -0.02em; color: var(--ink-2); font-weight: 480; }
.balance-sub { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.balance-sync { margin-top: 6px; min-height: 1.5em; color: var(--ink-3); font-size: 15px; }

.addr { border-top: 1px solid var(--ink); padding-top: 22px; max-width: 900px; }
.addr-label { font-size: 14px; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
.addr-val { font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.005em; overflow-wrap: anywhere; line-height: 1.4; }

.send { margin-top: clamp(64px, 10vh, 110px); max-width: 720px; }
.review { border-top: 1px solid var(--ink); }
.review > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.review dt { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.review dd { font-size: 19px; letter-spacing: -0.01em; }
.review .review-total dd { font-size: 26px; font-weight: 560; letter-spacing: -0.03em; }
.sent-line { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 20px; overflow-wrap: anywhere; }

.activity { margin-top: clamp(64px, 10vh, 110px); }
.act .unit { font-size: 0.6em; color: var(--ink-2); letter-spacing: -0.01em; }
.act-detail { font-size: 0.6em; color: var(--ink-2); letter-spacing: -0.01em; }

.manage { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: flex-start; }
.seed-reveal summary { cursor: pointer; font-weight: 540; list-style: none; padding: 12px 0; }
.seed-reveal summary::-webkit-details-marker { display: none; }
.seed-reveal[open] summary { color: var(--accent); }
.seed-reveal .seed { margin-top: 8px; font-size: 18px; }
.manage-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chain-at { margin-top: 48px; color: var(--ink-3); font-size: 14px; }

@media (max-width: 820px) {
  .app { padding: 112px 20px 0; }
  .app-head { margin-bottom: 36px; }
  .app-title { font-size: 48px; }
  .think-text { font-size: 32px; min-height: 3.1em; }
  .mine-controls { margin-top: 18px; }
  .mine-controls .btn-big { flex: 1 1 100%; }
  .threads { flex: 1 1 100%; }
  .threads select { width: 100%; }
  .reg-app { grid-template-columns: 1fr 1fr; }
  .reg-app dd { font-size: 30px; white-space: nowrap; }
  .choice { grid-template-columns: 1fr; }
  .choice-item .btn { width: 100%; }
  .balance-big { font-size: clamp(54px, 17vw, 84px); }
  .review > div { grid-template-columns: 1fr; gap: 4px; }
  .row-actions .btn { flex: 1 1 auto; }
  .activity .row-thought { font-size: 22px; }
  .act-detail { display: block; margin-top: 2px; }
  .seed { font-size: 19px; }
}

/* Rows (the landing scopes its own; these are the app versions) */
.app .rows-app .row { display: grid; grid-template-columns: 110px 1fr auto; align-items: baseline; gap: 20px; padding: 20px 0 22px; border-top: 1px solid var(--hair); }
.app .rows-app .row:last-child { border-bottom: 1px solid var(--hair); }
.app .row-n { font-size: 14px; font-weight: 560; color: var(--accent); }
.app .row-thought { font-size: clamp(20px, 1.85vw, 30px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 440; }
.app .row-ago { font-size: 14px; color: var(--ink-3); white-space: nowrap; text-align: right; }
.app .act .row-n { color: var(--ink-2); }
.app .act-mined .row-n, .app .act-received .row-n { color: var(--accent); }
@media (max-width: 820px) {
  .app .rows-app .row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0 18px; }
  .app .row-n { grid-column: 1; grid-row: 1; }
  .app .row-ago { grid-column: 2; grid-row: 1; }
  .app .row-thought { grid-column: 1 / -1; font-size: 22px; }
}

.moment-share { margin-top: 18px; font-size: 17px; }
