/* elaiban-web/pages/messages.html · 由 scripts/split_page_assets.py 从页面内联样式抽取，勿在页面内重写 */

/* ---------- 内联块 1 ---------- */
      /* ── Shell Layout ── */
      .app-shell {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        background: var(--background);
        color: var(--foreground);
        font-family: var(--font-sans);
        overflow: hidden;
        max-width: 430px;
        margin: 0 auto;
      }

      .app-shell__status-bar {
        flex-shrink: 0;
        height: 0;
        padding-top: env(safe-area-inset-top, 0px);
      }

      .main-scroll {
        flex: 1 1 0%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
      }

      

      /* ── Top Bar ── */

      /* ── Category Tabs ── */
      .category-tabs {
        display: flex;
        gap: 8px;
        padding: 12px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      .category-tabs::-webkit-scrollbar {
        display: none;
      }

      .category-tabs {
        -ms-overflow-style: none;
        scrollbar-width: none;
      }

      .category-tab {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 9px 16px;
        border-radius:8px;
        font-size: 13px;
        font-weight: 500;
        border: none;
        cursor: pointer;
        background: var(--muted);
        color: var(--muted-foreground);
        -webkit-tap-highlight-color: transparent;
        transition: background 140ms cubic-bezier(.2, .8, .2, 1),
                    color 140ms cubic-bezier(.2, .8, .2, 1);
      }

      .category-tab:active {
        opacity: 0.8;
      }

      .category-tab[data-active="true"] {
        background: var(--primary);
        color: var(--primary-foreground);
      }

      /* ── Message List ── */
      .message-list {
        padding: 0 16px 20px;
      }

      .message-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: opacity 140ms cubic-bezier(.2, .8, .2, 1);
      }

      .message-item:last-child {
        border-bottom: none;
      }

      .message-item:active {
        opacity: 0.7;
      }

      .message-item__icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border-radius:8px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .message-item__icon svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none;
        stroke: var(--primary-foreground);
      }

      .message-item__icon--system {
        background: var(--primary);
      }

      .message-item__icon--audit {
        background: var(--chart-5);
      }

      .message-item__icon--interaction {
        background: var(--chart-1);
      }

      .message-item__content {
        flex: 1;
        min-width: 0;
      }

      .message-item__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 4px;
      }

      .message-item__title {
        font-size: 14px;
        font-weight: 600;
        color: var(--foreground);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
      }

      .message-item__title-row {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
        flex: 1;
      }

      .message-item__unread-dot {
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        border-radius:8px;
        background: var(--destructive);
      }

      .message-item__time {
        flex-shrink: 0;
        font-size: 12px;
        color: var(--muted-foreground);
        white-space: nowrap;
      }

      .message-item__desc {
        font-size: 13px;
        color: var(--muted-foreground);
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

    
