/* Portal additions on top of the shared app.css (same brand tokens as the Next.js portal). */
.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow-card); }
.auth-logo { width: 72px; height: 72px; border-radius: 22%; margin: 0 auto 16px; box-shadow: var(--shadow-card); }
.auth-card h1 { text-align: center; font-size: 22px; }
.auth-desc { text-align: center; color: var(--ink-muted); margin-top: 6px; }
.auth-body { margin-top: 22px; }
.auth-footer { text-align: center; color: var(--ink-subtle); font-size: 13.5px; margin-top: 16px; }
.icon-chip { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: flex; align-items: center; justify-content: center; flex: none; }
.icon-chip .icon { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-700); font-weight: 700; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.link-btn:hover { color: var(--brand-800); text-decoration: none; }
.link-btn:disabled { opacity: .5; cursor: not-allowed; }
.portal-content { padding-bottom: 32px; }
.portal-top .mobile-only { display: inline-flex; }
@media (min-width: 960px) { .portal-top .mobile-only { display: none; } .portal-top { justify-content: flex-end; } }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.app-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .app-grid { grid-template-columns: 1fr 1fr 1fr; } }
.app-card { display: flex; flex-direction: column; padding: 20px; transition: border-color .15s, box-shadow .15s; }
.app-card.live:hover { border-color: var(--brand-200); box-shadow: var(--shadow-pop); }
.app-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--canvas); color: var(--ink-subtle); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.app-icon.live { background: var(--brand-50); color: var(--brand); box-shadow: none; }
.app-notice { margin-top: 12px; border-radius: 10px; background: var(--canvas); padding: 8px 12px; font-size: 12.5px; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }
.app-disabled { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--ink-subtle); font-weight: 700; cursor: not-allowed; }
.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.user-menu-btn:hover { background: var(--canvas); }
.user-menu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 256px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-pop); }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: none; color: var(--ink-muted); font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.menu-item:hover { background: var(--canvas); color: var(--ink); text-decoration: none; }
.menu-item.danger:hover { background: var(--danger-50); color: var(--danger); }
.user-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.user-filters .search { grid-column: 1 / -1; }
.user-filters .btn { grid-column: 1 / -1; }
@media (min-width: 820px) { .user-filters { grid-template-columns: 1fr 11rem 12rem auto; } .user-filters .search, .user-filters .btn { grid-column: auto; } }
.role-option { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; cursor: pointer; }
.role-option.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.role-option input { accent-color: var(--brand-600); width: 16px; height: 16px; }
.module-check { border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; }
.module-editor summary { list-style: none; }
.module-editor summary::-webkit-details-marker { display: none; }
.module-editor[open] { box-shadow: var(--shadow-pop); }
.module-editor[open] summary .chev { transform: rotate(180deg); }
.btn.disabled { opacity: .6; pointer-events: none; }
code { background: var(--canvas); border-radius: 6px; padding: 1px 6px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
