/* Wireframe host pages for the TagAWallet demo: the extension's UI is the only real detail on screen. */
:root { --bg: #f4f4f2; --card: #fff; --line: #e7e6e2; --block: #ebeae6; --block2: #e2e1dc; --ink: #2b2a27; --muted: #8a877f; --link: #3b63c4; --up: #1f8a5b; --down: #c2412d; }
/* ?dark (set by hub.js): the same page on a dark site */
html.dark { --bg: #121315; --card: #1a1b1e; --line: #2a2b30; --block: #24252a; --block2: #2e2f35; --ink: #e9e8e4; --muted: #8e8c86; --link: #82a6ff; --up: #3fbf87; --down: #ef6f5a; color-scheme: dark; }
html.dark .tab.on { color: #121315; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.page { max-width: 760px; margin: 0 auto; padding: 22px 20px 40px; }
.bar { height: 10px; border-radius: 99px; background: var(--block); }
.bar.d { background: var(--block2); }
.row { display: flex; align-items: center; gap: 10px; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.logo { width: 22px; height: 22px; border-radius: 6px; background: var(--block2); }
.search { flex: 1; height: 30px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
a.addr { color: var(--link); text-decoration: none; }
a.addr:hover { text-decoration: underline; }
h1 { font-size: 15px; font-weight: 600; margin: 0; }
.tabs { display: flex; gap: 8px; margin: 14px 0 10px; }
.tab { height: 24px; padding: 0 10px; border-radius: 7px; background: var(--block); color: var(--muted); font-size: 12px; display: flex; align-items: center; }
.tab.on { background: var(--ink); color: #fff; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--block); color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); }
.post { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 99px; background: var(--block2); flex: none; }
.post .who { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.post .who b { font-weight: 600; }
.post .who span { color: var(--muted); }
.post p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; word-break: break-all; }
.post .acts { display: flex; gap: 36px; margin-top: 8px; }
/* Narrow frames (the case page on a phone): wrap the address, let tabs and tables scroll inside their card */
@media (max-width: 600px) {
  .page { padding: 16px 12px 28px; }
  .row { flex-wrap: wrap; }
  .row > .mono { min-width: 0; word-break: break-all; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tab { flex: none; white-space: nowrap; }
  .card { overflow-x: auto; }
  th, td { padding-left: 10px; padding-right: 10px; }
  .post { padding: 12px; }
}

/* ?fit (set by hub.js): several pages side by side on the case page, cut to the parts that hold addresses. */
html.fit .page { padding: 16px 16px 24px; }
html.fit .top { margin-bottom: 16px; }
html.fit .chart { display: none !important; }
html.fit .explorer .row:nth-of-type(3) { display: none; }
html.fit .explorer .row:nth-of-type(2) .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
html.fit .trades th:nth-child(3), html.fit .trades td:nth-child(3) { display: none; }
html.fit .trades .row b, html.fit .trades .row .up { display: none; }
html.fit .card { overflow: visible; }
@media (max-width: 640px) {
  html.fit .explorer th:nth-child(-n+2), html.fit .explorer td:nth-child(-n+2) { display: none; }
}
@media (max-width: 560px) {
  html.fit .explorer th:nth-child(5), html.fit .explorer td:nth-child(5) { display: none; }
  html.fit .trades th:nth-child(1), html.fit .trades td:nth-child(1) { display: none; }
  html.fit .tabs { overflow: hidden; }
  html.fit th, html.fit td { padding-left: 10px; padding-right: 10px; }
}
/* A phone-width explorer: one address column, so both sides of the light/dark split show names. */
@media (max-width: 420px) {
  html.fit .explorer th:nth-child(4), html.fit .explorer td:nth-child(4) { display: none; }
}
