/* App shell — shared pages (login, feed, projects, …) in landing design language */

/* Force light design tokens on all app pages (landing language) */
body.app-shell {
  --ink: #0b0d14;
  --muted: #5b6475;
  --line: rgba(15, 23, 42, 0.08);
  --bg: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.92);
  --card: #ffffff;
  --card-border: rgba(15, 23, 42, 0.06);
  --input-bg: #ffffff;
  --input-border: rgba(15, 23, 42, 0.12);
  --nav-link: #6b7280;
  --shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

body.app-shell {
  color-scheme: light;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 45, 143, 0.12), transparent 58%),
    radial-gradient(780px 380px at 92% 0%, rgba(45, 226, 255, 0.12), transparent 55%),
    #ffffff;
  color: #0b0d14;
  min-height: 100vh;
}

body.app-shell.landing-page {
  background: #ffffff;
}

.app-main.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.75rem max(1.25rem, 3vw) 3rem;
  position: relative;
  z-index: 1;
}

.lp-account {
  margin-left: 0.15rem;
}
.lp-icon-btn.is-active {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

/* Page headers */
.page-head {
  margin: 0 0 1.35rem;
}
.page-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b93a7;
}
.page-head h1,
.page-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0b0d14;
}
.page-lead {
  margin: 0;
  color: #5b6475;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36rem;
}
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.35rem;
}

/* Soft panel / auth */
.page-panel,
.auth-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 22px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.auth-layout {
  max-width: 480px;
  margin: 0.5rem auto 2rem;
}
.auth-layout .page-head {
  text-align: center;
}
.auth-layout .page-lead {
  margin-left: auto;
  margin-right: auto;
}
.auth-panel .btn.iuve-sso,
.auth-panel .btn {
  width: 100%;
  justify-content: center;
  border-radius: 999px !important;
  padding: 0.9rem 1.2rem !important;
}
.auth-hint {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}
.auth-local {
  margin-top: 1.35rem;
  color: #6b7280;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 1rem;
}
.auth-local summary {
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

/* Cards */
body.app-shell .card,
body.app-shell .security-card,
body.app-shell .comment-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
  margin: 0.9rem 0;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}
body.app-shell .card header,
body.app-shell .card .muted,
body.app-shell .post-meta {
  color: #6b7280;
  font-size: 0.86rem;
}
body.app-shell .card h2,
body.app-shell .card h3,
body.app-shell .security-card h2 {
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}
body.app-shell .card a:not(.btn) {
  color: #0b0d14;
  font-weight: 600;
}
body.app-shell .card a:not(.btn):hover {
  color: #ff2d8f;
}

.empty-state {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  color: #6b7280;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

/* Forms */
body.app-shell form p {
  margin: 0 0 0.85rem;
}
body.app-shell label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
body.app-shell input[type="text"],
body.app-shell input[type="search"],
body.app-shell input[type="email"],
body.app-shell input[type="password"],
body.app-shell input[type="url"],
body.app-shell input:not([type]),
body.app-shell textarea,
body.app-shell select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: #0b0d14;
  box-shadow: none;
}
body.app-shell input:focus,
body.app-shell textarea:focus,
body.app-shell select:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
body.app-shell textarea {
  min-height: 8rem;
  resize: vertical;
}
body.app-shell button:not(.nav-toggle):not(.pulse-toast-close):not(.share-btn):not(.react-btn),
body.app-shell input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  background: var(--grad-btn);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
}
body.app-shell button:not(.nav-toggle):not(.pulse-toast-close):not(.share-btn):not(.react-btn):hover {
  filter: brightness(1.05);
}

.search-bar {
  display: flex;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
}
.search-bar input {
  flex: 1;
}
.search-section {
  margin: 1.5rem 0 0.5rem;
}
.search-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.ai-profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 0.85rem 0 1.1rem;
  font-size: 0.9rem;
}
.ai-profile-nav a {
  color: #6b7280;
  font-weight: 600;
}
.ai-profile-nav a:hover { color: #7c3aed; }

.profile-meta {
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-plain li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.app-shell .messages {
  max-width: 860px;
  margin: 0.85rem auto 0;
  padding: 0 max(1.25rem, 3vw);
  list-style: none;
}
body.app-shell .messages li {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

@media (max-width: 980px) {
  .lp-account {
    width: 100%;
  }
  .lp-account .nav-account-summary {
    width: 100%;
    justify-content: space-between;
  }
}

.auth-panel .btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.btn.iuve-sso {
  gap: 0.45rem;
}
