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

/* ---------- 内联块 1 ---------- */
      .no-scrollbar::-webkit-scrollbar { display: none; }
      .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
      [data-icon] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        background-color: currentColor;
      }

  /* ── 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;
  }

  /* ── Top Safe Area ── */
  .app-shell__status-bar {
    flex-shrink: 0;
    height: 0;
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* ── Main Scroll Area ── */
  .main-scroll {
    flex: 1 1 0%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  


  /* ── Status Filter Tabs ── */
  .filter-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .filter-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 8px;
    border: none;
    border-radius:8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 140ms, color 140ms;
    background: var(--muted);
    color: var(--muted-foreground);
  }

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

  /* ── Post Card ── */
  .post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius:8px;
    padding: 16px;
    margin-bottom: 12px;
  }

  .post-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .post-card__desc {
    font-size: 13px;
    color: var(--muted-foreground);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 12px;
  }

  .post-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .post-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
  }

  .post-card__badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius:8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
  }

  .post-card__badge--reviewing {
    background: color-mix(in srgb, var(--foreground) 12%, var(--muted));
    color: color-mix(in srgb, var(--foreground) 75%, var(--muted-foreground));
  }

  .post-card__badge--approved {
    background: color-mix(in srgb, var(--primary) 12%, var(--muted));
    color: color-mix(in srgb, var(--primary) 80%, var(--muted-foreground));
  }

  .post-card__badge--rejected {
    background: color-mix(in srgb, var(--destructive) 10%, var(--muted));
    color: color-mix(in srgb, var(--destructive) 80%, var(--muted-foreground));
  }

  .post-card__badge--offline {
    background: var(--muted);
    color: var(--muted-foreground);
  }

  .post-card__info {
    font-size: 12px;
    color: var(--muted-foreground);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .post-card__info svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .post-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }

  .post-card__foot .post-card__actions {
    flex: none;
    border-top: 0;
    padding-top: 0;
  }

  .post-card__btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius:8px;
    background: transparent;
    color: var(--foreground);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 140ms;
  }

  .post-card__btn-edit:active {
    background: var(--muted);
  }

  .post-card__btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius:8px;
    background: transparent;
    color: var(--destructive);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 140ms;
  }

  .post-card__btn-delete:active {
    background: color-mix(in srgb, var(--destructive) 8%, var(--background));
  }

  /* ── Mobile Viewport ── */
  .mobile-viewport {
    max-width: 430px;
    margin: 0 auto;
  }
    
