/* Project tools (project-tools-tidy.mjs): four groups and an Overview with
   tiles. Self-themed: both palettes are set here, so no generated light twin
   is needed. */
.project-tools-tidy {
  --tools-ink: #f1eaf2;
  --tools-muted: #a59aa9;
  --tools-card: linear-gradient(180deg, #1d1a21, #18161c);
  --tools-line: #36343a;
  --tools-accent: #ff7db5;
  --tools-live: #8fd3a5;
  --tools-live-bg: rgba(143, 211, 165, .1);
}
html[data-theme="light"] .project-tools-tidy {
  --tools-ink: #2f2430;
  --tools-muted: #6f6273;
  --tools-card: linear-gradient(180deg, #ffffff, #fdf7fb);
  --tools-line: #ecdfe8;
  --tools-accent: #b0306f;
  --tools-live: #237a47;
  --tools-live-bg: #eaf7ef;
}
.project-tools-mobile-head { display: none; }
.project-tools-tidy .control-tab-group { text-transform: uppercase; }
.project-tools-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-tools-tile { min-width: 0; display: grid; align-content: start; gap: 10px; padding: 16px; border: 1px solid var(--tools-line); border-radius: 14px; background: var(--tools-card); color: var(--tools-ink); }
.project-tools-tile-top { display: flex; align-items: center; gap: 10px; }
.project-tools-tile-top strong { font-size: 16px; }
.project-tools-tile-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--tools-line); border-radius: 999px; color: var(--tools-accent); font-size: 15px; }
.project-tools-tile p { min-height: 2.6em; margin: 0; color: var(--tools-muted); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.project-tools-tile button { justify-self: start; min-height: 40px; padding: 0 16px; }
.project-tools-tile.is-live.is-on { border-color: rgba(143, 211, 165, .45); background: var(--tools-live-bg); }
.project-tools-tile.is-live.is-on p { color: var(--tools-live); font-weight: 650; }
.project-tools-tile.is-live.is-on p::before { content: "● "; }
@media (max-width: 720px) {
  .project-tools-tidy .baseheart-hub-sidebar { position: relative; padding-top: 10px; }
  .project-tools-mobile-head { display: grid; gap: 2px; min-height: 48px; padding: 4px 56px 10px 2px; color: var(--tools-ink); }
  .project-tools-mobile-head strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .project-tools-mobile-head small { color: var(--tools-muted); font-size: 12px; }
  html[dir="rtl"] .project-tools-mobile-head { padding: 4px 2px 10px 56px; }
  .project-tools-overview { grid-template-columns: minmax(0, 1fr); }
  .project-tools-tile p { min-height: 0; }
}

/* The sidebar's Studio group (index.html): a palette icon like the other
   groups' line icons, and project filters the sidebar no longer shows. */
.sidebar #sidebarStudioToggle { --bh2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5' fill='black'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5' fill='black'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5' fill='black'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5' fill='black'/%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.93 0 1.65-.75 1.65-1.69 0-.44-.18-.84-.44-1.13-.29-.29-.44-.65-.44-1.13a1.64 1.64 0 0 1 1.67-1.67h2c3.05 0 5.55-2.5 5.55-5.55C21.97 6.01 17.46 2 12 2z'/%3E%3C/svg%3E"); }
.sidebar #sidebarStudioToggle > .nav-icon { width: 18px !important; height: 18px !important; min-width: 18px; flex: none; font-size: 0 !important; line-height: 0 !important; color: inherit; background: currentColor !important; opacity: .72; -webkit-mask: var(--bh2-icon) center / 18px no-repeat; mask: var(--bh2-icon) center / 18px no-repeat; transition: opacity .2s, background-color .2s, filter .2s; }
.sidebar .project-filters .filter-item[hidden] { display: none !important; }
