/* Standalone sign-in, People, sheets and the GHL hand-off. Loaded after portal.css; uses its tokens only. */

/* ---------- Sign-in card (portal origin, no GHL) ---------- */
.standalone-signin { align-items: flex-start; }
.standalone-signin h1 { font: 600 26px/1.15 var(--display); }
.signin-logo { display: block; height: 17px; width: auto; }
.standalone-signin .btn.primary { align-self: stretch; white-space: normal; text-align: center; }
.signin-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.signin-steps li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: baseline; color: var(--text); }
.signin-steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--green-text); font: 500 12px var(--mono); }
.signin-steps b { font-weight: 600; }
.signin-note { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); font-size: 14px; }

/* ---------- "Me" actions: rail and phone header menu ---------- */
.phonehead .logo { align-self: center; margin: 0; }
.me-acts { display: flex; flex-direction: column; gap: 2px; }
.me-act { display: flex; align-items: center; width: 100%; padding: 8px 12px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); font-size: 13px; text-align: left; }
.me-act:hover { background: var(--surface); color: var(--text); }
.pmenu { position: relative; }
.pmenu > summary { list-style: none; cursor: pointer; }
.pmenu > summary::-webkit-details-marker { display: none; }
.pmenu > summary::after { content: "▾"; margin-left: 6px; color: var(--muted); font-size: 11px; }
.pmenu > summary.account { flex-direction: row; align-items: center; }
.pmenu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 190px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.pmenu-list .me-act { min-height: 44px; color: var(--text); font-size: 14px; }

/* ---------- Sheets: link modal, devices drawer, hand-off modal ---------- */
.sheet .mbody .btn.lg { align-self: stretch; }
.copyrow { display: flex; gap: 8px; align-items: center; min-width: 0; }
.copyfield { flex: 1; min-width: 0; width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); color: var(--text); font: 500 12.5px var(--mono); }
textarea.copyfield { resize: vertical; font: 400 14px/1.45 var(--body); }
.copyfield:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.sheet-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.sheet-sec { display: flex; flex-direction: column; padding-top: 14px; }
.sheet-sec > .eyebrow { padding: 0 18px 6px; }
.sheet .li { flex-wrap: wrap; }

@container app (max-width: 760px) {
  .copyrow { flex-wrap: wrap; }
  .copyrow .btn { flex: 1; }
}
.signin-note:empty { display: none; }
.signin-paste { align-self: stretch; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.signin-paste summary { color: var(--muted); font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.signin-paste form { display: flex; gap: 8px; margin-top: 10px; }
.signin-paste input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 16px; }
.signin-paste input:focus { border-color: var(--green); outline: none; }
.standalone-signin h1 { letter-spacing: -0.03em; }
.standalone-signin h1 .reply { display: block; color: var(--muted); font-weight: 600; }
.qrrow { display: flex; align-items: center; gap: 16px; }
.qrrow .muted { font-size: 14px; }
.qr { width: 148px; height: 148px; flex: none; border-radius: var(--r); }
