/* static/css/layout.css — extracted from index.html (FrameFlow prototype) */
  /* Main canvas */
  .main-canvas {
    grid-area: canvas;
    margin: 14px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both 0.15s;
  }

  .scrollable {
    overflow-y: auto;
    padding-right: 6px;
  }

  /* .scrollable uses the unified site-wide scrollbar defined in base.css */

  /* Page header */
  .page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 8px 4px 4px;
  }

  .page-head h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .page-head p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 14px;
  }
  .project-subline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 0;
  }
  .project-subline .tag-type,
  .project-subline .tag-priority { font-size: 11px; padding: 3px 9px; border-radius: 999px; }
  .project-progress {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 4px;
  }
  .project-progress-bar {
    width: 100px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    border: 1px solid var(--border);
  }
  .project-progress-bar i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon), var(--neon-bright));
    border-radius: 4px;
    transition: width .3s ease;
  }
  .project-progress-text { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }

  /* Stats strip */
  .stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .stat-card {
    padding: 18px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .stat-card:nth-child(1) { animation-delay: 0.1s; }
  .stat-card:nth-child(2) { animation-delay: 0.18s; }
  .stat-card:nth-child(3) { animation-delay: 0.26s; }
  .stat-card:nth-child(4) { animation-delay: 0.34s; }

  .stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--surface-2);
  }

  .stat-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .stat-card header span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .stat-card .trend {
    font-size: 11px;
    font-weight: 700;
    color: var(--neon-bright);
    background: rgba(74,222,128,0.10);
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(74,222,128,0.20);
  }

  .stat-card .value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
  }

  .stat-card .sub {
    font-size: 12px;
    color: var(--text-muted);
  }

  .stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(74,222,128,0.10);
    border: 1px solid rgba(74,222,128,0.20);
    color: var(--neon-bright);
    display: grid;
    place-items: center;
  }

  .stat-icon svg { width: 16px; height: 16px; }

