/* Projects page — same visual language as Settings. One accent: evergreen. */
:root {
  --accent: #1e6b52;
  --accent-dim: #e2efe8;
  --bg: #f5f4f0;
  --panel: #fff;
  --line: #e3e1da;
  --text: #191919;
  --muted: #6b6a66;
  --red: #c0392b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.pg-page { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.pg-head { display: flex; align-items: center; gap: 8px; padding: 14px 0 10px; }
.pg-icon { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; }
.pg-icon:hover { background: #eae8e2; }
.pg-icon .icon { width: 20px; height: 20px; display: block; }
.pg-icon svg { width: 100%; height: 100%; }
.pg-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.pg-pad { width: 38px; }
.pg-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.newp { display: flex; gap: 8px; }
.newp input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fbfaf7; }
.newp input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.pg-add { border: 0; background: var(--accent); color: #fff; border-radius: 10px; padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer; }
.pg-add:hover { background: #17543f; }
.pg-list { display: flex; flex-direction: column; gap: 10px; }
.pg-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pg-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; width: 100%; border: 0; background: none; font: inherit; text-align: left; }
.pg-top:hover { background: #faf9f6; }
.pg-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-dim); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pg-ic .icon { width: 17px; height: 17px; display: block; }
.pg-ic svg { width: 100%; height: 100%; }
.pg-name { flex: 1; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-count { color: var(--muted); font-size: 12.5px; }
.pg-more { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.pg-more:hover { background: #eeece6; color: var(--text); }
.pg-more .icon { width: 16px; height: 16px; display: block; }
.pg-more svg { width: 100%; height: 100%; }
.pg-chats { border-top: 1px solid var(--line); padding: 6px 8px 10px; }
.pg-chats[hidden] { display: none; }
.pg-chat { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--text); }
.pg-chat:hover { background: var(--accent-dim); }
.pg-chat.none { color: var(--muted); cursor: default; }
.pg-chat.none:hover { background: none; }
.pg-empty { color: var(--muted); font-size: 13.5px; text-align: center; margin-top: 24px; }
.pg-empty[hidden] { display: none; }
.pg-menu { position: fixed; z-index: 60; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; min-width: 150px; box-shadow: 0 8px 24px rgba(20,24,32,.12); }
.pg-menu button { text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; }
.pg-menu button:hover { background: var(--accent-dim); }
.pg-menu button.danger { color: var(--red); }
