/* Accounts: sign in, code entry, account settings, saved history. Same soft, rounded look as the rest. */
.top.bar {
  min-height: var(--tap);
}
.bartitle {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ib.acct {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.ib.acct.on {
  background: var(--accent-soft);
  border-color: var(--accent-text);
  color: var(--accent-text);
}
.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 6px 4px;
}
.auth-hero h2 {
  margin: 4px 0 0;
  font-size: 1.5rem;
  line-height: 1.25;
}
.auth-hero p {
  margin: 0;
}
.bubble-ico {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border-radius: 24px;
  background: var(--accent-soft);
}
.authform {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 1.1rem;
  border-radius: var(--r);
  border: 2px solid var(--line);
  background: var(--input);
}
.field:focus {
  outline: none;
  border-color: var(--accent-text);
}
.code-input.otp {
  letter-spacing: 0.35em;
  padding-left: 0.35em;
  font-size: 2.2rem;
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 0.9rem;
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn.google {
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.btn.google .g {
  width: 22px;
  height: 22px;
}
.center-row {
  justify-content: center;
  flex-wrap: wrap;
}
.btn.ghost.danger-ghost {
  color: var(--bad);
  border-color: var(--bad-line);
}
/* account settings */
.who {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--accent);
  color: var(--on-accent);
}
.who-text {
  min-width: 0;
}
.who .email {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.btn.rowbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
}
.btn.rowbtn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.btn.rowbtn span:not(.chev) {
  flex: 1;
}
.chev {
  color: var(--dim);
  font-size: 1.5rem;
}
.danger {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
/* history list */
.hist .note {
  margin: -6px 0 0;
  text-align: center;
}
.hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hist-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.hist-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 4px 14px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 22px;
}
.hist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hist-top .pair {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-item .preview {
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ib.del {
  align-self: center;
  margin-right: 6px;
}
.status {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  color: var(--dim);
}
.status.live {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 40px 10px;
}
.empty h2,
.empty p {
  margin: 0;
}
/* one saved chat, read-only */
.langbtn.static {
  justify-content: center;
}
.ro-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--dim);
  background: var(--panel2);
}
.readonly .acts,
.readonly .ib.hear,
.readonly .tick {
  display: none;
}
.ro-foot {
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--panel);
}
