


  #demo-boards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
  }
  @media (max-width: 1199px) { #demo-boards { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 899px) { #demo-boards { grid-template-columns: 1fr; } }

  .demo-card {
    background: var(--ground);
    border: 1px solid var(--surface-elevated);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
  }
  
  .demo-header {
    padding: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-elevated);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .demo-title-group { display: flex; flex-direction: column; gap: 4px; }
  .demo-title { font-family: 'Oswald', sans-serif; font-size: 1.25rem; color: var(--ink); margin: 0; letter-spacing: 0.02em; }
  .demo-tag { font-size: 0.65rem; text-transform: uppercase; background: var(--ground); color: var(--secondary); padding: 4px 8px; border-radius: 4px; font-weight: 600; align-self: flex-start; border: 1px solid var(--surface-elevated); }
  
  .demo-reset { font-size: 0.8rem; color: var(--accent); cursor: pointer; border: none; background: none; font-weight: 500; text-decoration: underline; padding: 4px; }
  
  .demo-rows { list-style: none; padding: 0; margin: 0; flex: 1; display: flex; flex-direction: column; }
  .demo-row {
    padding: 20px;
    border-bottom: 1px solid var(--surface-elevated);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ground);
    text-align: left;
    border-top: none;
    border-left: none;
    border-right: none;
    width: 100%;
  }
  .demo-row:last-child { border-bottom: none; }
  .demo-row:hover, .demo-row:focus-visible { background: var(--surface); outline: 2px solid var(--accent); outline-offset: -2px; }
  
  .row-content { display: flex; flex-direction: column; gap: 6px; }
  .row-label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
  .row-meta { font-size: 0.8rem; color: var(--secondary); display: flex; gap: 12px; align-items: center; }
  
  .status-pill {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--surface-elevated);
    color: var(--secondary);
    transition: background 0.3s, color 0.3s;
  }
  .status-pill[data-stage="0"] { background: var(--surface-elevated); color: var(--secondary); }
  .status-pill[data-stage="1"] { background: color-mix(in srgb, var(--amber) 15%, transparent); color: color-mix(in srgb, var(--amber) 80%, var(--ink)); }
  .status-pill[data-stage="2"] { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
  .status-pill[data-stage="3"] { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }

  .demo-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ground);
    transform: translateX(101%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    z-index: 5;
  }
  @media (prefers-reduced-motion: reduce) { .demo-pane { transition: none; } }
  .demo-pane.is-open { transform: translateX(0); }
  
  .pane-header {
    padding: 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-elevated);
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .pane-back {
    background: var(--ground);
    border: 1px solid var(--surface-elevated);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: 0.2s;
  }
  .pane-back:hover { border-color: var(--ink); }
  .pane-title { font-family: 'Oswald', sans-serif; font-size: 1.1rem; color: var(--ink); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  
  .pane-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .pane-detail-card {
    background: var(--surface);
    padding: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.5;
    border-left: 3px solid var(--accent);
  }
  
  .pane-timeline {
    list-style: none;
    padding: 0;
    margin: 0 0 0 8px;
    border-left: 2px solid var(--surface-elevated);
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .pane-timeline li {
    position: relative;
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
    line-height: 1.4;
  }
  .pane-timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-elevated);
    border: 2px solid var(--ground);
  }
  .pane-timeline li:last-child { color: var(--ink); font-weight: 500; }
  .pane-timeline li:last-child::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  
  .pane-footer {
    padding: 20px;
    background: var(--ground);
    border-top: 1px solid var(--surface-elevated);
  }
  .pane-action {
    width: 100%;
    min-height: 48px;
    background: var(--accent);
    color: var(--ground);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
  }
  .pane-action:hover, .pane-action:focus-visible { background: var(--ink); outline: none; }
  .pane-action:active { transform: scale(0.98); }
  .pane-action:disabled { background: var(--surface-elevated); color: var(--secondary); cursor: not-allowed; transform: none; }
