/* app.css — the few things the Pakt screens need beyond the shared
   components of styles.css. Same tokens, same rules (DESIGN.md). */

/* Top bar: the wallet sits between the status and the language switch. */
.topbar-wallet { display: flex; align-items: center; gap: 12px; flex: none; }
.tb-bal .amt { color: var(--text-1); }

/* A banner about a trouble that should pass by itself is amber, not red. */
.banner-in.is-passing .banner-dot { background: var(--warn); }

/* The link of a toast: the transaction just made, in the explorer. */
.toast-a { margin-top: 2px; font-size: 12px; }

/* Text that is read, not scanned: keep the line length comfortable. */
.intro-lead { margin: 0 0 4px; font-size: 16px; font-weight: 500; color: var(--text-1); }
.intro p { max-width: 72ch; margin: 0; }
.note { margin: 12px 0 0; max-width: 72ch; }
.t-meta { font-size: 12px; line-height: 1.5; color: var(--text-3); }

/* Tables whose rows open a deal. */
.table-rows tbody tr { cursor: pointer; }
.table-rows tbody tr:hover { background: var(--hover); }
.table-rows td { height: 44px; padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
.row-link { display: block; color: inherit; text-decoration: none; }
.row-link:hover { text-decoration: none; }
.cell-title { width: 46%; max-width: 0; }
.cell-title .t-em { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell-sub { display: block; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; color: var(--text-3); }
.cell-seller { max-width: 0; width: 24%; }
.cell-seller .rep { font-size: 12px; }
.cell-next { max-width: 0; width: 34%; font-size: 12px; }
.table-rows tr.is-mine td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.rep { font-size: 12px; }

/* One deal. */
.deal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.deal-title { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.25; color: var(--text-1); overflow-wrap: anywhere; }
.deal-desc { margin: 0; max-width: 72ch; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.outcomes { margin-top: 8px; }
.outcomes tr.is-proposal td { background: var(--accent-weak); }
.panel-sec > .t-label { margin-bottom: 4px; }
.panel-sec p { margin: 0; }
.probe { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* A framed remark: a pending proposal, the program's answer. */
.notice { padding: 10px 12px; border: 1px solid var(--border-2); border-radius: var(--r-2); background: var(--field); font-size: 13px; }
.notice p { margin: 4px 0 0; }
.notice-neg { border-color: color-mix(in srgb, var(--neg) 35%, transparent); }
.notice-neg p { color: var(--neg); }
.notice-warn { border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice-warn .t-label { color: var(--warn); }
.notice-neg .t-label { color: var(--neg); }
/* The deadline that runs against the viewer: the first thing in their panel. */
.deadline { display: grid; gap: 6px; padding: 12px; border-width: 2px; }
.deadline .countdown { width: 100%; }
.deadline .cd-v { font-size: 22px; font-weight: 600; color: var(--text); }
.deadline .cd-track { height: 4px; }
.deadline.notice-neg .cd-v { color: var(--neg); }
.deadline.notice-neg p, .deadline p { color: var(--text-2); margin: 2px 0 0; }
.deadline p b { color: var(--text); }
.deadline .btn { justify-self: start; margin-top: 4px; }
.modal-b p { margin: 0; max-width: 60ch; }

/* Numbered and plain lists of short statements. */
.steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 20px; color: var(--text-2); }
.steps li { padding-left: 4px; }
.steps li::marker { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.steps-lg li b { display: block; font-weight: 500; color: var(--text-1); }
ul.steps { padding-left: 0; list-style: none; }
ul.steps li { padding-left: 12px; border-left: 1px solid var(--border-2); }
.bullets { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 18px; max-width: 72ch; color: var(--text-2); }
.faq { display: flex; flex-direction: column; margin: 0; max-width: 72ch; }
.faq dt { font-weight: 500; color: var(--text-1); }
.faq dd { margin: 2px 0 14px; color: var(--text-2); }
.faq dd:last-child { margin-bottom: 0; }

/* Form bits. */
.area { height: auto; min-height: 88px; padding: 8px 10px; line-height: 1.45; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 14px; height: 14px; accent-color: var(--accent); }
[hidden] { display: none !important; }

/* Choosing a wallet. */
.wallet-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-2); border-radius: var(--r-2); background: transparent;
  color: var(--text-1); font: inherit; text-align: left; cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.wallet-item:hover { background: var(--hover); }
.wallet-item:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.wallet-item img, .wallet-ico { flex: none; width: 24px; height: 24px; border-radius: var(--r-1); }
.wallet-ico { border: 1px solid var(--border-2); }
.wallet-item b { font-weight: 500; }

@media (max-width: 860px) {
  .topbar-status { display: none; }
  .col-lock, .col-window, .cell-next, .table-mine th:last-child { display: none; }
  .cell-title { width: 50%; }
}
