/* Trang danh sách dự án (/projects). */
/* ---------- Trang dự án ---------- */
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; margin: 0; }
.page-head .hint { margin: 0; flex-basis: 100%; }
.page-head input[type=search] { width: 240px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.page-body { max-width: 1680px; margin: 0 auto; padding: 24px 16px 60px; }
.pgrid.tgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 450px), 1fr)); gap: 20px; }
.tgrid .pthumb { min-height: 0; padding: 12px 8px; }
.tgrid .pthumb canvas { max-height: none; }
.tcard { cursor: default; }
.tcard .pthumb { cursor: pointer; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.pcard.cur { border-color: var(--brand); }
.pthumb { border: 0; padding: 0; background: var(--panel-2); border-radius: 10px; cursor: pointer; overflow: hidden; display: grid; place-items: center; min-height: 160px; }
.pthumb canvas { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.pinfo b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinfo small { color: var(--muted); font-size: 12px; }
.pacts { display: flex; gap: 8px; }
.pacts { align-items: center; }
.pacts > .btn.primary { flex: 1; height: 36px; padding: 0 14px; font-size: 14px; font-weight: 700; }
.kebab { background: transparent; border-color: transparent; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; font-size: 22px; line-height: 1; color: var(--muted); }
.kebab:hover, .kebab[aria-expanded="true"] { background: transparent; border-color: transparent; color: var(--text); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; min-width: 170px; padding: 4px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.menu button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--line); }
.menu .danger { color: #ff8585; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: 14px; padding: 28px; max-width: 640px; }
.empty p { margin: 0 0 16px; color: var(--muted); }
.empty b { color: var(--text); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
