/* ==========================================================================
   Auth screens, "bare" pages (onboarding) and the command palette
   ========================================================================== */

.auth-body { background: var(--bg); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.auth__card { width: min(400px, 100%); display: grid; gap: 22px; }
/* the Duria AI lockup with the brand tagline under it */
.auth__brand { display: grid; justify-items: center; gap: 10px; margin-bottom: 10px; }
.auth__logo { height: 64px; width: auto; }
.auth__tagline { color: var(--text-2); font-size: 14.5px; font-weight: 600; letter-spacing: .02em; }
.auth__card h1 { font-size: 1.5rem; text-align: center; }
.auth__lede { color: var(--text-2); margin-top: 6px; text-align: center; }
.auth__links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth__foot { text-align: center; color: var(--text-2); font-size: 14px; }
.auth__note { text-align: center; color: var(--text-3); font-size: 12.5px; }
.auth-invite {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.auth-invite strong { display: block; }
.auth-invite span { color: var(--text-2); font-size: 13.5px; }

/* ------------------------- bare layout (onboarding, account) ------------------------- */
.bare-body { background: var(--bg); min-height: 100vh; }
.bare-header { display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(16px, 4vw, 40px); }
.bare-header__brand img { height: 30px; width: auto; }
.bare-main { max-width: 920px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 80px; }
.user-chip--light { color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px; width: auto; }
.user-chip--light:hover { background: var(--surface-2); }
.workspace-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.workspace-card { display: flex; align-items: center; gap: 14px; padding: 16px; color: var(--text); }
.workspace-card:hover { text-decoration: none; }
.workspace-card .org-avatar { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }

/* --------------------------------- command palette --------------------------------- */
dialog.modal--palette { width: min(640px, calc(100vw - 24px)); margin-top: 11vh; max-height: 70vh; }
.palette__form { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.palette__form .icon { width: 18px; height: 18px; }
.palette__input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 1rem; height: 36px; color: var(--text); }
.palette__input::-webkit-search-cancel-button { display: none; }
.palette__results { display: block; overflow-y: auto; max-height: calc(70vh - 118px); padding: 8px; min-height: 120px; }
.palette__empty { display: grid; justify-items: center; gap: 8px; padding: 34px 20px; color: var(--text-3); text-align: center; }
.palette__empty .icon { width: 24px; height: 24px; color: var(--text-3); }
.palette__group { padding: 10px 12px 4px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.palette__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--radius); color: var(--text); text-decoration: none; }
.palette__item:hover, .palette__item.is-active { background: var(--surface-2); text-decoration: none; color: var(--text); }
.palette__item .entity__thumb { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.palette__item .entity__thumb .icon { width: 17px; height: 17px; }
.palette__footer { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; }

/* language switch of the public pages */
.locale-switch { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-3); }
.locale-switch__item { color: var(--text-3); }
.locale-switch__item.is-active { color: var(--text); font-weight: 550; }
