/* The account pages (My lists, Saved screens, Alerts, API keys), the screener's list and saved-screen
   controls, the company page's Watchlist box and the sign-in pages. Uses the tokens of tokens.css only.
   Rules of the house: text wraps (nothing is clipped), nothing is sticky, tables are compact. */

.jts .jts-acct-notes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.jts .jts-acct-note { padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: var(--fs-sm); }
.jts .jts-acct-note.is-error { border-left-color: var(--down); background: var(--down-soft); }

.jts .jts-acct-sec { margin-top: var(--s4); }
.jts .jts-acct-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.jts .jts-acct-head h2 { font-size: var(--fs-lg); font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.jts .jts-acct-head .n { color: var(--text-3); font-size: var(--fs-sm); margin-right: 4px; }
.jts .jts-acct-head form { margin: 0; }

.jts .jts-acct-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 8px; margin: 0; }
.jts .jts-acct-stack { display: grid; gap: 8px; margin: 0; justify-items: start; }
.jts .jts-acct-field { display: grid; gap: 3px; }
.jts .jts-acct-form input[type="text"], .jts .jts-acct-form input[type="password"], .jts .jts-acct-form select,
.jts .jts-acct-stack input[type="text"], .jts .jts-acct-stack input[type="password"], .jts .jts-acct-stack select {
  height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card);
  color: var(--text); font-size: var(--fs-sm); min-width: 0; max-width: 100%;
}
.jts .jts-acct-form input[type="text"], .jts .jts-acct-stack input[type="text"], .jts .jts-acct-stack input[type="password"] { width: 220px; }
.jts .jts-acct-check { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.jts .jts-acct-help { color: var(--text-3); font-size: var(--fs-xs); margin: 6px 0 0; max-width: 90ch; }
.jts .jts-acct-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.jts .jts-acct-kinds { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); width: 100%; max-width: 820px; }
.jts .jts-acct-kinds label, .jts .jts-poppanel .jts-colpick label { white-space: normal; }

.jts .jts-acct-wrap { border: 1px solid var(--line); border-radius: 8px; background: var(--card); margin-top: 8px; }
.jts .jts-acct-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--card); }
.jts .jts-acct-table th, .jts .jts-acct-table td { padding: 5px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; font-weight: 400; overflow-wrap: anywhere; }
.jts .jts-acct-table thead th { background: var(--raised); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); }
.jts .jts-acct-table tbody th { font-weight: 600; }
.jts .jts-acct-table tbody tr:last-child > * { border-bottom: 0; }
.jts .jts-acct-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.jts .jts-acct-table td.when { color: var(--text-2); }
.jts .jts-acct-table small { color: var(--text-3); }
.jts .jts-acct-table form { margin: 0; }
.jts .jts-acct-table .jts-btn, .jts .jts-acct-table .jts-popbtn { height: 26px; padding: 0 8px; }
.jts .jts-acct-table tr.is-unread td { font-weight: 600; }
.jts .jts-acct-new { display: inline-block; padding: 0 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; }
.jts .jts-acct-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); overflow-wrap: anywhere; user-select: all; margin: 6px 0; }

/* popups that hold buttons with long names: the text wraps */
.jts .jts-popbtns { display: grid; gap: 4px; }
.jts .jts-popbtns form { margin: 0; display: grid; }
.jts .jts-btn.jts-btn-wrap { height: auto; min-height: 30px; padding: 4px 10px; white-space: normal; text-align: left; justify-content: flex-start; overflow-wrap: anywhere; }
.jts .jts-poppanel-end { left: auto; right: 0; }
.jts .jts-poppanel .jts-acct-help { margin: 0; }

/* the screener: saved screens next to the ready-made ones, the Watchlist filter */
.jts .jts-preset.jts-preset-mine { height: auto; min-height: 28px; padding-top: 3px; padding-bottom: 3px; white-space: normal; overflow-wrap: anywhere; border-style: dashed; }
.jts .jts-savepop .jts-popbtn { height: 28px; border-radius: 999px; }
.jts .jts-sbar .jts-sfield-list select { max-width: none; }

/* the company page: Watchlist and Alert */
.jts .jts-watch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* the unread count on the menu */
.jts .jts-badge-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--bar-text); color: var(--bar); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* sign in, sign out, change password (the demo project's pages) */
.jts .jts-signin { max-width: 420px; margin: var(--s5) auto; }
.jts .jts-signin h1 { font-size: var(--fs-xl); font-weight: 700; margin: 0 0 4px; }
.jts .jts-signin .jts-acct-stack { margin-top: var(--s3); }
.jts .jts-signin .jts-acct-stack input[type="text"], .jts .jts-signin .jts-acct-stack input[type="password"] { width: min(320px, 100%); }
.jts .jts-signin ul.errorlist { list-style: none; margin: 0; padding: 0; color: var(--down-text); font-size: var(--fs-sm); }
.jts .jts-signin .helptext, .jts .jts-signin .helptext ul { color: var(--text-3); font-size: var(--fs-xs); margin: 0; }
