/* The Terms update popup (static/terms.js) and the Terms checkbox on the invite screens.
 * The popup's frame is each app's own (app.css .modal/.msheet, org.css .backdrop/.dialog, the worker
 * portal's .card); this file sets only what's inside it, and the worker portal's overlay.
 * Colours are each app's own tokens: the grower app and the worker portal name them --tx / --tm / --gm,
 * the team app --ink / --ink2 / --accent, so each reads the first one its page has. */
/* theme:tokens-only begin terms */
.tu-root { --tu-ink: var(--tx, var(--ink)); --tu-ink2: var(--tm, var(--ink2)); --tu-acc: var(--gm, var(--accent)); }
#terms-modal { z-index: 1300; }
#terms-modal .msheet { max-width: 480px; }
.tu-team .dialog { width: 480px; }
.tu-team h2 { margin: 0 0 4px; }
.tu-sub { font-size: 13px; color: var(--tu-ink2); margin: 4px 0 14px; }
.tu-sum { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.tu-sum li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: var(--tu-ink); }
.tu-sum li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--tu-acc); }
.tu-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tu-links a { color: var(--tu-acc); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; }
.tu-links a:hover { text-decoration: underline; }
.tu-err { font-size: 13px; color: var(--warn, var(--danger, var(--red))); margin-top: 8px; }
.tu-out { display: block; margin: 12px auto 0; background: none; border: none; color: var(--tu-ink2); font-size: 13px; text-decoration: underline; cursor: pointer; min-height: 32px; }
/* the worker portal (light only, no theme.css): its own overlay around its .card */
.tu-wbg { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; justify-content: center; }
.tu-wsheet { width: 100%; max-width: 480px; margin: 0; border-radius: var(--r, 14px) var(--r, 14px) 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 90vh; overflow-y: auto; }
.tu-wsheet h2 { font-size: 18px; margin: 0; color: var(--tu-ink); }
.tu-wacts { display: flex; gap: 8px; margin-top: 16px; }
.tu-wacts .btn { flex: 2; margin: 0; }
.tu-wacts .tu-wlater { flex: 1; background: none; border: 1px solid var(--br); color: var(--tu-ink); }
@media (min-width: 600px) {
  .tu-wbg { align-items: center; }
  .tu-wsheet { border-radius: var(--r, 14px); }
}
/* the Terms checkbox on an accept (sharing.js request card, the claim form) */
.terms-chk { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; font-size: 13.5px; color: var(--tu-ink2, var(--tm)); line-height: 1.45; cursor: pointer; }
.terms-chk[hidden] { display: none; }
.terms-chk input { width: 18px; height: 18px; flex-shrink: 0; margin: 1px 0 0; cursor: pointer; }
.terms-chk a { color: var(--gm); }
/* theme:tokens-only end terms */
