    /* Page-specific layout */
    .fav-shell {
      display: grid;
      grid-template-columns: 220px 1fr 320px;
      gap: 18px;
      align-items: start;
    }
    @media (max-width: 1280px) {
      .fav-shell { grid-template-columns: 200px 1fr 300px; }
    }
    @media (max-width: 1100px) {
      .fav-shell { grid-template-columns: 1fr; }
    }
    .folder-rail {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      padding: 16px;
      position: sticky;
      top: calc(var(--header-h) + 24px);
    }
    .folder-rail h4 {
      font-family: var(--font-serif);
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 12px;
    }
    .folder {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: 8px;
      font-size: 13px;
      color: var(--ink);
      cursor: pointer;
      transition: background .15s;
      margin-bottom: 2px;
    }
    .folder:hover { background: var(--bg); }
    .folder.active { background: var(--ink); color: #fff; }
    .folder.active .folder-count { background: rgba(255,255,255,.18); color: #fff; }
    .folder-dot {
      width: 8px; height: 8px; border-radius: 2px;
      flex-shrink: 0;
    }
    .folder-name { flex: 1; }
    .folder-count {
      font-family: var(--font-mono);
      font-size: 11px;
      padding: 1px 6px;
      background: var(--bg);
      border-radius: 4px;
      color: var(--muted);
    }
    .folder-add {
      margin-top: 8px;
      padding-top: 12px;
      border-top: 1px dashed var(--border);
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--muted);
      cursor: pointer;
    }
    .folder-add:hover { color: var(--accent); }

    /* Favorite cards */
    .fav-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }
    @media (max-width: 1400px) {
      .fav-grid { grid-template-columns: 1fr; }
    }
    .fav-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-lg);
      overflow: hidden;
      cursor: pointer;
      transition: transform .2s, box-shadow .2s, border-color .2s;
      position: relative;
    }
    .fav-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
      border-color: var(--border-strong);
    }
    .fav-card.selected {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(31,63,217,.12);
    }
    .fav-strip {
      display: flex;
      height: 96px;
    }
    .fav-strip > div { flex: 1; transition: flex .25s; }
    .fav-card:hover .fav-strip > div:first-child { flex: 2; }
    .fav-body { padding: 14px 16px 16px; }
    .fav-top-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }
    .fav-type {
      font-size: 10px;
      padding: 2px 7px;
      border-radius: 4px;
      letter-spacing: .04em;
      text-transform: uppercase;
      font-family: var(--font-mono);
    }
    .fav-type.palette { background: #EFF1FF; color: var(--accent); }
    .fav-type.template { background: #FEF3E8; color: #B25D25; }
    .fav-type.project { background: #E8F3EE; color: #2D7A4E; }
    .fav-tag {
      font-size: 11px;
      color: var(--muted);
      padding: 2px 7px;
      border: 1px solid var(--border);
      border-radius: 4px;
    }
    .fav-name {
      font-family: var(--font-serif);
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 4px;
    }
    .fav-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11px;
      color: var(--muted);
      font-family: var(--font-mono);
    }
    .fav-actions {
      display: flex;
      gap: 4px;
      opacity: 0;
      transition: opacity .2s;
    }
    .fav-card:hover .fav-actions { opacity: 1; }
    .fav-action-btn {
      width: 26px; height: 26px;
      border: 1px solid var(--border);
      background: var(--surface);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--muted);
      transition: all .15s;
    }
    .fav-action-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    .fav-action-btn.danger:hover {
      border-color: #D44; color: #D44;
    }

    /* Top filter / view */
    .fav-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      gap: 12px;
      flex-wrap: wrap;
    }
    .view-toggle {
      display: flex;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 3px;
    }
    .view-toggle button {
      padding: 5px 12px;
      font-size: 12px;
      background: transparent;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .view-toggle button.active {
      background: var(--ink);
      color: #fff;
    }
    .search-inline {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      flex: 1;
      max-width: 280px;
    }
    .search-inline input {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      font-size: 13px;
      color: var(--ink);
    }

    /* Detail panel content */
    .fav-detail-strip {
      display: flex;
      height: 120px;
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 14px;
    }
    .fav-detail-strip > div { flex: 1; position: relative; }
    .fav-detail-strip > div::after {
      content: attr(data-hex);
      position: absolute;
      bottom: 6px; left: 6px;
      font-family: var(--font-mono);
      font-size: 9px;
      color: rgba(255,255,255,.85);
      text-shadow: 0 1px 2px rgba(0,0,0,.3);
      letter-spacing: .04em;
    }
    .fav-detail-strip > div.light::after {
      color: rgba(20,23,31,.65);
      text-shadow: none;
    }

    .application-preview {
      background: var(--bg);
      border-radius: 10px;
      padding: 14px;
      margin-bottom: 14px;
    }
    .app-preview-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
      margin-bottom: 10px;
    }
    .app-preview-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .app-preview-tile {
      aspect-ratio: 1.4 / 1;
      border-radius: 6px;
      position: relative;
      overflow: hidden;
      font-size: 9px;
      color: rgba(255,255,255,.9);
      padding: 6px;
      font-family: var(--font-mono);
    }

    .info-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .info-list li {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      font-size: 12px;
      border-bottom: 1px dashed var(--border);
    }
    .info-list li:last-child { border-bottom: none; }
    .info-list .k { color: var(--muted); }
    .info-list .v { color: var(--ink); font-family: var(--font-mono); }

    .empty-state {
      padding: 40px;
      text-align: center;
      color: var(--muted);
      background: var(--surface);
      border-radius: var(--r-lg);
      border: 1px dashed var(--border);
    }

    /* New fav-layout overrides (redesigned page) */
    .fav-layout {
      align-items: start;
    }
    /* Override old fav-shell grid when using new layout */
    .fav-layout .fav-shell { display: contents; }
