/** ChallengeFlow: 07-account-messages.css */
@layer components {
  /* Login, Nachrichten und Account */
  .messages-layout {
    display: grid;
    gap: 18px;
  }
  /* Überschrift und Aktion bilden einen eigenen Kopfbereich. Der Abstand
     darunter verhindert, dass „Alle gelesen“ optisch an der ersten
     Benachrichtigung (zum Beispiel „Neue Teilnahme“) klebt. */
  .messages-section-head {
    align-items: center;
    margin-bottom: 16px;
  }
  .messages-section-head h2 {
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0;
  }
  .messages-intro-copy {
    margin: 6px 0 0;
  }
  .notice-list {
    display: grid;
    gap: 10px;
  }
  .notice-body {
    flex: 1;
    min-width: 0;
  }
  .notice strong {
    font-size: 13px;
    color: var(--text);
  }
  .notice p {
    margin: 2px 0;
    font-size: 12.5px;
    color: var(--copy);
  }
  .thread-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0 0 8px;
    font-size: 13.5px;
  }
  .message-list {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
  }
  .account-layout {
    display: grid;
    gap: 14px;
  }
  .manage-row:last-child {
    border-bottom: none;
  }
  .messages-layout, .account-layout {
    max-width: 880px;
    margin-inline: auto;
  }
  .notice, .thread-card, .message {
    border-color: rgba(0,0,0,.07);
    background: #fafafa;
  }
  .notice {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--soft);
    padding: 14px;
    border-radius: 0;
  }
  .notice.unread {
    border-color: var(--accent-glow);
    background: var(--accent-glow);
  }
  .notice-thumb {
    flex: 0 0 auto;
    object-fit: cover;
    cursor: pointer;
    box-shadow: var(--icon-shadow);
    width: 54px;
    height: 54px;
    border-radius: 0;
  }
  .notice-video-thumb {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #17181c;
  }
  .notice-video-thumb video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
  }
  .notice-video-thumb .media-play-indicator {
    width: 27px;
    height: 27px;
  }
  .notice-video-thumb .media-play-indicator svg {
    width: 12px;
    height: 12px;
  }
  .thread-card {
    border: 1px solid var(--line);
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 0;
  }
  .thread-card:last-child {
    margin-bottom: 0;
  }
  .message {
    background: var(--soft);
    font-size: 13px;
    padding: 11px 13px;
    border-radius: 0;
  }
  .message.sent {
    background: var(--accent-glow);
  }
  .profile-card {
    text-align: left;
  }
  .profile-card>.avatar {
    margin-inline: auto;
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    text-align: center;
    gap: 10px;
    margin-top: 14px;
  }
  .stats-grid>div {
    padding: 16px 8px;
    border-radius: 0;
    background: #0a0a0a;
  }
  .stats-grid strong {
    display: block;
    color: var(--text);
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.03em;
  }
  .stats-grid span {
    color: var(--muted);
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
  }
  .manage-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    min-height: 52px;
    padding: 9px 2px;
  }
  .manage-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
  }
  .auth-shell {
    display: flex;
    justify-content: center;
    padding: 8vh 0 6vh;
  }
  .login-card {
    width: 100%;
    max-width: 430px;
    padding: 34px 32px;
    text-align: center;
  }
  .brand-mark {
    margin: 0 auto 12px;
    color: #fff;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 0;
    background: linear-gradient(145deg,var(--accent-hot),var(--accent) 65%,var(--accent-deep));
    box-shadow: 0 12px 30px var(--accent-glow),inset 0 1px 0 rgba(255,255,255,.28);
    font-size: 16px;
    font-weight: 650;
  }
  .login-card h1 {
    font-family: var(--font-display);
    font-size: clamp(32px,4.4vw,48px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
    text-transform: uppercase;
    margin-top: 16px;
  }
  .login-card form {
    text-align: left;
    margin-top: 22px;
  }
  .dev-users {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
  }
}
