/* Sign-in page. Sizes, spacing and radii are the original's measured values. */
body { font-size: 15px; line-height: 1.5; }

/* Appearance switch, top right */
.look { position: absolute; top: 12px; right: 12px; z-index: 5; }
.rs-theme { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--well); box-shadow: 0 0 0 1px var(--line); }
.rs-theme-btn { width: 34px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--slate); display: grid; place-items: center; cursor: pointer; font: 500 13px var(--body); }
.rs-theme-btn.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.rs-theme-btn:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.tabs button[aria-selected="true"]:focus { box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1.5px var(--amber); }
h2.sr { font: 600 18px var(--display); }

/* Column */
.wrap { max-width: 460px; margin: 0 auto; padding: 54px 20px 16px; }
@media (min-width: 900px) { .wrap { padding-top: 63px; } }

.card { background: var(--card); border-radius: 20px; padding: 32px; box-shadow: 0 0 0 1px var(--line), 0 4px 24px rgba(16, 22, 43, .06); }
@media (max-width: 480px) { .card { padding: 24px; } }

/* Head: crew, mark, name, line */
.si-head { text-align: center; }
.si-crew { display: flex; justify-content: center; height: 48px; margin-bottom: 14px; }
.av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; margin-left: -8px; box-shadow: 0 0 0 2px var(--card); background: var(--well); }
.av:first-child { margin-left: 0; }
.av svg { width: 48px; height: 48px; fill: rgba(251, 249, 244, .92); }
.av-1 { background: linear-gradient(160deg, #F7B94A, #E08A12); }
.av-2 { background: linear-gradient(160deg, #6FD5C4, #2E9E8C); }
.av-3 { background: linear-gradient(160deg, #8C95AE, #5A6480); }
.av-4 { background: linear-gradient(160deg, #3A4A7A, #1C2846); }
.si-mark { display: block; width: 56px; height: 56px; margin: 0 auto 12px; }
.si-word { margin: 0 0 8px; font: 700 24px/29px var(--display); letter-spacing: -.01em; }
.si-sub { margin: 0 auto; max-width: 336px; text-wrap: balance; font-size: 14px; line-height: 21px; color: var(--slate); }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; margin-top: 18px; border-radius: 999px; background: var(--well); }
.tabs button { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--slate); font: 600 14px var(--body); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.tabs button:last-child { flex-grow: 1.05; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
@media (max-width: 400px) { .tabs button { font-size: 13px; padding: 0 2px; } }

.tab-lede { margin: 14px 0; font-size: 15px; line-height: 22.5px; color: var(--slate); }

.google { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); font: 500 14px var(--body); text-decoration: none; }
.google:hover { background: var(--field); }

.note { margin: 6px 0 0; font-size: 12px; line-height: 20px; color: var(--slate); text-align: center; }
.note.or { margin: 16px 0; font-size: 13px; }
.note a { color: var(--link); }

/* Forms */
form label { display: block; margin: 0 0 8px; font: 500 13px/16px var(--body); color: var(--ink); }
form input:not([type="checkbox"]) + label, #invite-row + label { margin-top: 12px; }
form input:not([type="checkbox"]) { display: block; width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); color: var(--ink); font: 400 16px var(--body); outline: none; }
form input::placeholder { color: var(--slate); opacity: .8; }
form input:not([type="checkbox"]):focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); }
.opt { color: var(--slate); font-weight: 400; }

#ts-row { margin-bottom: 6px; }
.verify { display: flex !important; align-items: center; gap: 12px; width: 300px; max-width: 100%; height: 65px; margin: 0 !important; padding: 0 10px 0 9px; border: 1px solid var(--line); background: var(--field); font: 400 14px var(--body) !important; cursor: pointer; }
.verify input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); }
.verify-t { flex: 1; }
.verify-b { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.verify-b b { font: 800 9px var(--display); letter-spacing: .12em; color: var(--ink); }
.verify-b small { font-size: 8px; color: var(--slate); text-decoration: underline; }

.row { margin-top: 16px; }
.primary { display: block; width: 100%; height: 50px; border: 0; border-radius: 999px; background: var(--amber); color: var(--on-amber); font: 600 14px var(--body); cursor: pointer; transition: background .15s; }
.primary:hover { background: var(--amber-hover); }
.primary:disabled { opacity: .6; cursor: default; }

#ask-form .fine-print { margin-top: 10px; }

/* Code step */
#step-code h2 { margin: 0 0 4px; font: 700 18px/1.3 var(--display); }
#step-code .note { text-align: left; margin-bottom: 16px; }
#code-form .primary { margin-top: 16px; }
.ghost, .link { display: block; width: 100%; margin-top: 10px; height: 44px; border-radius: 999px; font: 600 14px var(--body); cursor: pointer; }
.ghost { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.ghost:disabled { color: var(--slate); cursor: default; }
.link { border: 0; background: none; color: var(--link); text-decoration: underline; }

.msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: var(--mint); color: var(--mint-ink); }
.msg.bad { background: #FBE3DF; color: #9A2E22; }

/* How it works */
.how { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }
.how h2 { margin: 20px 0 16px; font: 600 17px/26px var(--display); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { display: flex; gap: 12px; font-size: 15px; line-height: 22px; color: var(--slate); }
.steps li strong { color: var(--ink); font-weight: 600; }
.steps li::before { counter-increment: s; content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--body); background: var(--mint); color: var(--mint-ink); }
.steps li:nth-child(2)::before { background: var(--sky); color: var(--sky-ink); }
.steps li:nth-child(3)::before { background: var(--peach); color: var(--peach-ink); }
.how .note { margin-top: 16px; text-align: left; }

/* Footer */
.foot { max-width: 460px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.foot .fine { margin: 0 12px; font-size: 12px; line-height: 20px; color: var(--slate); }
.foot .links { margin: 0; font-size: 12px; color: var(--slate); }
.foot .links a { display: inline-block; padding: 11px 4px; color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.foot .links span { margin: 0 12px; }

/* Chat helper */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.chat-fab { width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--deep); color: var(--paper); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(16, 22, 43, .25); }
[data-theme="dark"] .chat-fab { background: var(--amber); color: var(--ink); }
.chat-pop { position: relative; width: 300px; min-height: 72px; display: flex; align-items: center; gap: 12px; padding: 12px 34px 12px 12px; border-radius: 6px; background: var(--card); color: var(--ink); box-shadow: 0 4px 18px rgba(16, 22, 43, .16); }
.chat-pop::after { content: ""; position: absolute; right: 24px; bottom: -8px; width: 16px; height: 16px; background: var(--card); transform: rotate(45deg); box-shadow: 4px 4px 8px rgba(16, 22, 43, .06); }
.chat-pop p { margin: 0; font-size: 16px; line-height: 24px; }
.chat-av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #6FD5C4, #2E9E8C); }
.chat-av svg { width: 40px; height: 40px; fill: rgba(251, 249, 244, .92); }
.chat-x { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--slate); display: grid; place-items: center; cursor: pointer; }
.chat-panel { width: 340px; max-width: calc(100vw - 40px); border-radius: 14px; background: var(--card); box-shadow: 0 8px 30px rgba(16, 22, 43, .2); overflow: hidden; }
.chat-head { position: relative; padding: 14px 16px; background: var(--deep); color: var(--paper); font: 600 15px var(--display); }
.chat-head .chat-x { top: 12px; color: var(--paper); }
.chat-body { height: 240px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { margin: 0; max-width: 85%; padding: 9px 12px; border-radius: 12px; background: var(--well); font-size: 14px; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--amber); color: var(--ink); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); color: var(--ink); font: 14px var(--body); }
.chat-form button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
@media (max-width: 420px) { .chat-pop { width: 300px; } }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#ts-widget { min-height: 65px; }
