/* New screens that the legacy page did not have: login, invite page, settings sheet.
   Only layout here; colours, fonts, fields and buttons come from the legacy styles (app.css), so all three
   designs and the dark theme apply as they are. */
.auth{display:flex;justify-content:center;padding-top:clamp(16px, 7vh, 64px)}
.auth-card{width:100%;max-width:420px;display:flex;flex-direction:column;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--shadow);padding:22px}
.auth-card h2{font-family:var(--f-display);font-weight:600;font-size:19px;line-height:1.3;margin:0}
.auth-card .btn.primary{width:100%;height:44px;margin-top:4px}
.auth-card .auth-note{text-align:center}

/* Settings sheet: sections separated by a line; people and invites as small rows. */
.sheet .set-sec + .set-sec{margin-top:6px;padding-top:18px;border-top:1px solid var(--line)}
.set-me{color:var(--ink);font-weight:600}
.set-list{display:flex;flex-direction:column;gap:8px}
.set-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-field);background:var(--bg)}
.set-main{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px}
.set-main b{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.set-main small{font-size:13px;color:var(--muted)}
.set-item .confirm{flex-basis:100%}
.set-link-box{display:flex;flex-direction:column;gap:8px}
.set-link{font-family:var(--f-label);font-size:13px;user-select:all}

/* Settings entry: the gear in the header where it fits; on narrow screens a quiet button at the bottom of the page
   instead, so the legacy header stays exactly as it was (decided 21.11.2026). */
.app-foot{display:none;justify-content:center;margin-top:32px}
@media (max-width:480px){ #setBtn{display:none} .app-foot{display:flex} }

/* Someone else's item: the author's name where the pencil "Изменить" would be (decided 21.11.2026).
   On a prompt card the name is a button: it opens the editor to save a copy into your own guide. */
.author{flex:none;max-width:14ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:none;padding:4px 6px;margin:-4px -6px -4px 0;font:inherit;font-size:12.5px;font-weight:500;color:var(--muted)}
button.author{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
button.author:hover{color:var(--ink)}
.author-line{font-size:13px;color:var(--muted)}
