/* Middagskollen — login, registrering, inställningar ("Mer") och admin. */

/* ---------- login / register / invite ---------- */
.auth-container { padding-top: 1.5rem; }
.auth-hero { text-align: center; padding: 1.5rem 1rem 1.25rem; margin-bottom: 1rem; border-radius: 22px;
  background: radial-gradient(120% 120% at 50% 0%, var(--primary-soft), transparent 70%); }
.auth-hero h1 { font-size: 2rem; margin: .6rem 0 .4rem; }
.auth-hero-sm { padding: .75rem 1rem; }
.auth-hero-sm h1 { font-size: 1.6rem; margin-top: .4rem; }
.auth-logo { margin: 0 auto; border-radius: 22px; box-shadow: var(--shadow); width: 84px; height: 84px; }
.auth-hero-sm .auth-logo { width: 64px; height: 64px; border-radius: 16px; }
.auth-pitch { color: var(--muted); font-size: 1.05rem; line-height: 1.45; max-width: 30ch; margin: 0 auto; }
.auth-card { padding: 1.25rem; }
.auth-card h2 { margin-bottom: 0; }
.auth-card .form-errors + .form-errors { margin-top: .5rem; }
.auth-emoji { font-size: 2.6rem; line-height: 1; }
@media (min-width: 640px) { .auth-container { padding-top: 3rem; } }

/* ---------- Mer: genvägar ---------- */
.menu-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border-top: 1px solid var(--line); color: var(--ink); min-height: 60px; }
.menu-item:first-child { border-top: 0; }
.menu-item:hover { background: var(--surface-2); text-decoration: none; }
.menu-item > .ico:last-child { color: var(--muted); width: 1.1em; height: 1.1em; }
.menu-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.menu-text small { color: var(--muted); font-size: .8rem; }

/* ---------- Mer: formulär ---------- */
.fold > summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.3rem; }
.fold[open] > summary::after { content: "–"; }
.fold-body { margin-top: .75rem; }
.members { margin-top: .4rem; }
.settings-foot { margin-top: 1.5rem; line-height: 1.6; }

/* basvaror */
.staples { margin-top: .4rem; display: flex; flex-direction: column; gap: .6rem; }
.staples .chips.wrap { gap: .4rem; }
.staples .chip-x { cursor: default; background: var(--surface-2); }
.staple-add .suggest-wrap { position: relative; flex: 1; min-width: 0; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0; padding: .25rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-height: 14rem; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; padding: .55rem .65rem; border-radius: 8px; cursor: pointer; min-height: 40px; }
.suggest button:hover, .suggest button[aria-selected="true"] { background: var(--primary-soft); }

/* inbjudningar */
.invite-item { align-items: flex-start; flex-wrap: wrap; }
.invite-item .list-item-main { min-width: 0; }
.invite-link { max-width: 100%; }
@media (max-width: 420px) { .invite-item .list-item-actions { width: 100%; justify-content: flex-end; } }

/* ---------- admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .9rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .5rem; text-align: center; box-shadow: var(--shadow); }
.stat-n { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.user-card .user-actions { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); gap: .4rem; }
.temp-pw { border-color: var(--warn); background: var(--warn-soft); margin-bottom: 1rem; }
.temp-pw-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; user-select: all; word-break: break-all; }
code { background: var(--surface-2); padding: .05rem .35rem; border-radius: 6px; font-size: .9em; }
