/* Yoru — the app */
.net { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dd { position: relative; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #151515; border: 1px solid var(--line2); border-radius: 6px; padding: 6px; z-index: 40; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.dd-head { font-size: 12px; color: var(--faint); padding: 8px 10px; word-break: break-all; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dd-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.dd-menu button:hover { background: rgba(239, 237, 232, .06); }
.dd-menu .danger { color: #ff8a6e; }
.banner { border-bottom: 1px solid var(--line); background: rgba(255, 74, 36, .06); font-size: 14px; color: var(--dim); padding: 11px 0; }
.banner b { color: var(--ink); font-weight: 700; }
.app-main { padding: 36px 0 20px; min-height: 60vh; }
.btn-lg { padding: 17px 22px; font-size: 16px; }

.connect { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; padding: 46px; align-items: center; }
.connect h1 { margin: 0; font: 800 clamp(34px, 4.6vw, 52px)/1.08 var(--serif); }
.connect p { color: var(--dim); max-width: 520px; }
.cc-steps { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.cc-steps li { display: flex; gap: 12px; align-items: center; color: var(--dim); }
.cc-steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line2); font: 800 14px var(--serif); color: var(--ink); flex: none; }
.cc-steps li.done span { background: var(--red); border-color: var(--red); color: var(--on-red); }
.cc-steps li.done { color: var(--ink); }
.cc-wallets { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-note { font-size: 14px; color: var(--faint) !important; margin-top: 16px; }
.cc-art { display: grid; place-items: center; }
.cc-art img { width: min(190px, 40vw); height: auto; filter: drop-shadow(0 20px 60px rgba(255, 74, 36, .18)); }

.dash { display: grid; grid-template-columns: 1.45fr .85fr; gap: 18px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 18px; }
.act { padding: 0; overflow: hidden; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 18px; cursor: pointer; font: 700 17px var(--serif); color: var(--faint); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.panel { padding: 26px; display: grid; gap: 18px; }
.panel-desc { margin: 0; color: var(--dim); font-size: 15.5px; }
.field { display: grid; gap: 9px; }
.f-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dim); }
.f-top label { color: var(--ink); font-weight: 700; }
.f-top b { color: var(--ink); }
.txt { width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line2); border-radius: 4px; padding: 14px 16px; font-size: 16px; outline: none; }
.txt:focus { border-color: rgba(239, 237, 232, .5); }
.txt::placeholder { color: var(--faint); }
.amt { position: relative; }
.amt .txt { font: 700 26px var(--sans); padding-right: 64px; }
.amt span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { background: none; border: 1px solid var(--line2); color: var(--dim); padding: 8px 14px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.chips button:hover { color: var(--ink); }
.quote { display: grid; border: 1px solid var(--line); border-radius: 4px; }
.quote:empty { display: none; }
.q-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; font-size: 14.5px; border-top: 1px solid var(--line); }
.q-row:first-child { border-top: 0; }
.q-row span { color: var(--dim); }
.q-row b { text-align: right; }
.q-row.strong b { font-size: 17px; }
.kind .note { margin-top: 2px; }
.note { display: flex; gap: 10px; padding: 11px 13px; border-radius: 4px; font-size: 14px; }
.note.ok { background: rgba(143, 199, 154, .08); color: #b9dcbf; }
.note.err { background: rgba(255, 74, 36, .1); color: #ff9e86; }
.note.info { background: rgba(239, 237, 232, .04); color: var(--dim); }
.note b { color: inherit; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.progress li { display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: 14.5px; }
.progress li .pi { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; }
.progress li .pi svg { width: 12px; height: 12px; opacity: 0; }
.progress li.active { color: var(--ink); }
.progress li.active .pi { border-color: var(--red); border-top-color: transparent; animation: spin .8s linear infinite; }
html[data-motion='off'] .progress li.active .pi { animation: none; border-top-color: var(--red); }
.progress li.done { color: var(--dim); }
.progress li.done .pi { background: var(--red); border-color: var(--red); color: var(--on-red); }
.progress li.done .pi svg { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.acts-card { padding: 22px 24px; }
.ac-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ac-top h2 { margin: 0; font: 700 20px var(--serif); }
.ac-top span, .acts-empty { color: var(--faint); font-size: 13.5px; }
.acts { list-style: none; margin: 10px 0 0; padding: 0; }
.acts li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.acts li svg { width: 18px; height: 18px; color: var(--red); }
.acts li small { display: block; color: var(--faint); font-size: 13px; }
.acts li a { color: var(--dim); font-size: 13px; }

.bal { padding: 22px 24px; }
.bal-top { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 14px; }
.bal-top span { display: inline-flex; gap: 8px; align-items: center; }
.bal-top svg { width: 15px; height: 15px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: none; border-radius: 4px; cursor: pointer; color: var(--dim); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.spin svg { animation: spin .9s linear infinite; }
.bal-total { font: 800 44px/1.1 var(--serif); margin-top: 10px; }
.bal-sub { color: var(--faint); font-size: 13.5px; margin-top: 4px; }
.notes { list-style: none; margin: 16px 0 0; padding: 0; }
.notes li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.notes li b { color: var(--ink); }
.older { margin-top: 14px; font-size: 13.5px; color: var(--dim); }
.side-facts { padding: 22px 24px; }
.side-facts h3 { margin: 0 0 8px; font: 700 18px var(--serif); }
.side-facts ul { list-style: none; margin: 0; padding: 0; }
.side-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.side-facts li span { color: var(--dim); }
.side-facts li b { text-align: right; }
.side-facts li small { display: block; color: var(--faint); font-weight: 400; font-size: 12.5px; }
.side-facts p { color: var(--faint); font-size: 13px; margin: 14px 0 0; }
.side-facts a { color: var(--dim); }

.app-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 0 40px; margin-top: 50px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.app-foot nav { display: flex; gap: 20px; }
.app-foot a { text-decoration: none; }

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .connect { grid-template-columns: 1fr; padding: 30px; }
  .cc-art { display: none; }
  .net { display: none; }
}
@media (max-width: 560px) {
  .panel { padding: 20px 18px; }
  .connect { padding: 24px 20px; }
  .acts li { grid-template-columns: 24px 1fr; }
  .acts li > a { grid-column: 2; }
}
