/* Accounts (account-ui.js): sign-in screen, the account button in the header, its menu and the "no results left"
   dialog; also the locked suggested points in Indications. The dialogs reuse the .hiw shell (how-it-works.css). */
.signin { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 30%, #eef0ff 0%, #e3e6ee 60%, #d8dce6 100%); }
.si-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 28px 24px 22px; box-shadow: 0 20px 60px #14182126; text-align: center; }
.si-taktus { display: grid; justify-items: center; gap: 6px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #eceef2; }
.si-taktus img { width: 150px; height: auto; }
.si-taktus p { margin: 0; font: 500 13px "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .04em; color: #6b7280; }
.si-brand { font: 800 22px "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.02em; color: #141821; }
.si-brand b { color: #4b5bdc; padding: 0 1px; }
.si-card h1 { margin: 18px 0 6px; font-size: 22px; letter-spacing: -.01em; }
.si-lead { margin: 0 0 18px; color: #646b7a; font-size: 14.5px; }
.si-plans { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; text-align: start; }
.si-plans li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid #dde1e8; border-radius: 12px; font-size: 14px; }
.si-plans li span { color: #646b7a; }
.si-plans li:last-child { border-color: #4b5bdc; background: #f4f5ff; }
.si-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border: 1px solid #c9ced8; border-radius: 12px; background: #fff;
  font: 700 15.5px "Plus Jakarta Sans", system-ui, sans-serif; color: #1f1f1f; cursor: pointer; }
.si-google:hover { background: #f6f7fb; }
.si-google svg { width: 20px; height: 20px; }
.si-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: #646b7a; font-size: 13px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: #dde1e8; }
.si-or[hidden], .si-google[hidden], .si-err[hidden] { display: none; }
.si-pw { display: grid; gap: 10px; text-align: start; }
.si-pw label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #3a404d; }
.si-pw input { min-height: 44px; border: 1px solid #c9ced8; border-radius: 10px; padding: 0 12px; font: 500 15px "Plus Jakarta Sans", system-ui, sans-serif; color: #141821; }
.si-pw input:focus { outline: 2px solid #4b5bdc; outline-offset: 1px; border-color: transparent; }
.si-submit { min-height: 46px; border: 0; border-radius: 12px; background: #4b5bdc; color: #fff; font: 700 15px "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; }
.si-submit:disabled { opacity: .6; cursor: wait; }
.si-err { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: #ffe8e8; color: #a3161b; font-size: 13.5px; }
.si-small { margin: 16px 0 0; color: #646b7a; font-size: 12.5px; line-height: 1.5; }
.si-lang { margin-top: 14px; display: flex; justify-content: center; }

.acct { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px 0 5px; border: 1px solid var(--line); border-radius: 12px; background: #ffffffd9;
  font: 700 13px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); cursor: pointer; white-space: nowrap; }
.acct:hover { background: var(--indigo-soft); }
.acct-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; }
.acct.none .acct-left { color: var(--pain, #e5484d); }
@media (max-width: 860px) {
  .acct { padding: 0 8px 0 5px; }
  /* Phones: the header shows who is signed in; the results left are in the account dialog. */
  .acct:not(.acct-guest) { padding: 0 5px; }
  .acct:not(.acct-guest) .acct-left { display: none; }
}

.acct-dlg { width: min(520px, calc(100% - 24px)); }
.acct-denied { width: min(440px, calc(100% - 24px)); }
:is(.acct-dlg, .acct-sec) .k { margin: 0 0 2px; font: 700 10.5px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acct-mail { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.acct-dlg h3 { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
/* The account's sections in the settings window (account-ui.js): one card each, like the display settings */
.acct-sec p { margin: 0 0 8px; }
.acct-sec .acct-actions:first-child { margin-top: 0; }
.acct-who { display: flex; align-items: center; gap: 12px; }
.acct-who .acct-av { width: 44px; height: 44px; font-size: 19px; flex: none; }
.acct-who h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.acct-meter { height: 8px; margin: 8px 0 4px; border-radius: 8px; background: #e6e8ee; overflow: hidden; }
.acct-meter i { display: block; height: 100%; border-radius: 8px; background: var(--indigo); }
.acct-plan { padding: 12px 14px; border-radius: 12px; background: #f4f5f8; }
.acct-plan.paid { background: #e9fbf2; }
.acct-big { margin: 2px 0 6px !important; font-size: 18px; font-weight: 800; }
.acct-note, .acct-small { color: var(--muted); font-size: 13px; }
.acct-link { display: flex; gap: 8px; }
.acct-link input { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 500 13px "JetBrains Mono", monospace; color: var(--ink); background: #fafbfc; }
:is(.acct-dlg, .acct-sec, .acct-denied, .acct-delete) .act { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--indigo); font: 700 13.5px "Plus Jakarta Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
:is(.acct-dlg, .acct-sec, .acct-denied, .acct-delete) .act:hover { background: var(--indigo-soft); }
:is(.acct-dlg, .acct-sec, .acct-denied) .act.primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acct-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; padding-top: 14px; border-top: 1px solid var(--line); }
.acct-delete .act.danger, .acct-sec .act.danger { border-color: #c62828; color: #c62828; }
.acct-delete .act.danger:hover, .acct-sec .act.danger:hover { background: #fdecea; }
.acct-privacy h3 { margin: 16px 0 4px; font-size: 14.5px; }
/* PayPal's subscribe button (account-pay.js): its own iframe, kept to a readable width */
.acct-paypal { max-width: 360px; margin-top: 10px; }
.acct-paypal[aria-busy="true"] { min-height: 48px; border-radius: 10px; background: #f4f5f8; }
.acct-pay-out:empty { display: none; }
.acct-pay-done { margin: 8px 0 0; font-weight: 700; color: #11795a; }

/* Indications: the suggested points of a condition, before a free user opens them */
.cunlock { display: grid; gap: 6px; justify-items: start; margin-top: 6px; }
.cunlock button { min-height: 40px; padding: 0 14px; border: 1px solid var(--indigo); border-radius: 10px; background: var(--indigo); color: #fff; font: 700 13.5px "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; }
.cunlock small { color: var(--muted); font-size: 12.5px; }
.acct.unread .acct-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pain, #e5484d); }
.acct-sec .act.has-new { border-color: var(--pain, #e5484d); color: var(--pain, #e5484d); }
.acct-code input { text-transform: lowercase; }
.msg-form { display: grid; gap: 10px; }
.msg-form label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.msg-form :is(select, textarea) { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.msg-form select { min-height: 40px; }
.msg-form .acct-actions { margin-top: 0; }
.msg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msg-list li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.msg-list li.new { border-color: var(--pain, #e5484d); }
.msg-meta { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-reply { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--indigo-soft); }
.msg-reply p:last-child { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.si-terms { display: block; margin: 6px auto 0; padding: 2px 6px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* The account menu (account-menu.js): a popover above your name at the foot of the side bar; a sheet on phones. */
.acct-menu { position: fixed; inset: auto; margin: 0; width: 248px; max-height: calc(100dvh - 16px); overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); box-shadow: 0 18px 40px #14182133; font: 500 13.5px "Plus Jakarta Sans", system-ui, sans-serif; }
.acct-menu.am-sheet { inset: auto 0 0; width: auto; border-radius: 18px 18px 0 0; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); }
.acct-menu .am-mail { margin: 0; padding: 6px 10px 8px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 600; color: var(--ink); text-align: start; cursor: pointer; }
.am-row:hover, .am-row:focus-visible { background: #f1f2f6; outline: none; }
.am-row svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.am-row span { flex: 1; }
.am-row small { color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.am-row.am-up, .am-row.am-up svg { color: var(--indigo); }
.am-new { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--pain, #e5484d); color: #fff; font-size: 11px; text-align: center; }
.acct-menu hr { margin: 5px 6px; border: 0; border-top: 1px solid var(--line); }
.acct-menu.am-sheet .am-row { min-height: 44px; }
.am-lang i { width: 17px; flex: none; font-style: normal; text-align: center; }
.am-lang small { color: var(--indigo); font-weight: 800; }
.am-back span { font-weight: 700; }
[dir="rtl"] .am-back svg { rotate: 180deg; }

/* Guests: "Look around first" on the sign-in screen, and a Sign in button where the account would be. */
.si-look { display: block; width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid #c9ced8; border-radius: 12px; background: #fff; color: #4b5bdc; font: 700 15px "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; }
.si-look:hover { background: #f4f5ff; }
.si-look-note { margin: 8px 0 0; color: #646b7a; font-size: 12.5px; }
.acct-guest { padding: 0 14px; color: var(--indigo); font-weight: 700; }
.sn-guest .acct-av svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
