.feed-shell {
  --feed-muted: #556155;
  width: min(1440px, calc(100% - 56px));
  padding-top: 26px;
  padding-bottom: 24px;
}

.feed-shell .catalog-heading { align-items: center; gap: 20px; padding: 0 0 16px; }
.feed-shell .catalog-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.feed-heading-copy { min-width: 0; }
.feed-heading-copy p { margin: 8px 0 0; color: var(--feed-muted); font-size: 15px; line-height: 1.5; }
.feed-shell .eyebrow { font: 12px var(--sans); letter-spacing: .06em; }
#feed-results { scroll-margin-top: 20px; }
#feed-results:focus { outline: none; }

.feed-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0; }
.feed-tab { min-height: 44px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 14px; font: 600 14px var(--sans); color: var(--feed-muted); cursor: pointer; }
.feed-tab.selected { background: var(--green-light); color: var(--green); border-color: #c9d7c3; }
.feed-search-form { display: grid; gap: 8px; padding: 0; background: transparent; border: 0; }
.feed-primary-controls { display: grid; grid-template-columns: minmax(0, 1fr) 220px 210px; gap: 12px; align-items: end; }
.feed-search-field { display: grid; gap: 6px; min-width: 0; }
.feed-search-row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.feed-search-row input { flex: 1; }
.feed-search-form label { display: grid; gap: 6px; color: var(--feed-muted); font-size: 13px; line-height: 1.4; }
.feed-search-form input, .feed-search-form select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: white; color: var(--ink); font: 16px var(--sans); }
.feed-search-row .button { flex-shrink: 0; min-height: 44px; font-size: 14px; padding: 10px 18px; }
.feed-search-form details { margin-left: auto; }
.feed-search-form details > summary { width: fit-content; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--green); cursor: pointer; font-size: 14px; list-style: none; }
.feed-search-form details > summary::-webkit-details-marker { display: none; }
.feed-search-form details > summary::before { content: '+'; font-size: 22px; font-weight: 500; }
.feed-search-form details[open] > summary::before { content: '−'; }
.feed-budget-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; grid-column: 1 / -1; }
.feed-budget-fields legend { padding: 0 0 6px; color: var(--ink); font-size: 13px; font-weight: 600; }
.feed-filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.feed-display-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.feed-search-form details[open] { flex-basis: 100%; margin-left: 0; }
.feed-search-form details[open] > summary { margin-left: auto; }
.feed-date-fields { display: flex; gap: 16px; grid-column: 1 / -1; }
.feed-date-fields label { flex: 1; min-width: 0; }
.feed-filter-footer { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-top: 4px; }
.feed-active { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.feed-filter-chip { display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; border: 1px solid #c9d7c3; border-radius: 8px; padding: 9px 12px; color: #35513a; background: #edf3ea; font: 14px var(--sans); text-align: left; cursor: pointer; }
.feed-filter-chip span:first-child { overflow-wrap: anywhere; }
.feed-filter-chip span:last-child { flex-shrink: 0; font-size: 20px; }
.feed-filter-footer .quiet-button { flex-shrink: 0; min-height: 44px; padding: 10px; font: 14px var(--sans); }

.feed-shell .sort-control { display: grid; margin-left: auto; gap: 6px; color: var(--feed-muted); font: 13px var(--sans); flex-shrink: 0; }
.feed-shell .sort-control select { min-height: 44px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: white; color: var(--ink); font: 16px var(--sans); }
.feed-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 0; margin: 10px 0 14px; color: #556155; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.feed-status:empty { display: none; }
.feed-status .quiet-button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 14px; }
.feed-more-row { display: flex; justify-content: center; padding: 28px 0 12px; }
.feed-more-row button { min-height: 44px; min-width: 180px; font-size: 15px; }
.feed-author { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px; background: #eaf0e3; border: 1px solid var(--line); border-radius: 14px; margin: 20px 0; scroll-margin-top: 20px; }
.feed-author h2 { margin: 5px 0 8px; overflow-wrap: anywhere; }
.feed-author p { margin: 0; font-size: 14px; color: #536b4b; }
.feed-author-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.feed-author-actions button { min-height: 44px; font-size: 14px; }
.feed-subscriptions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 0; font-size: 14px; }
.feed-subscriptions a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; color: var(--green); padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }

.feed-shell .build-grid { gap: 20px; margin-top: 0; align-items: stretch; }
.feed-shell .build-card { display: flex; flex-direction: column; padding: 0; border-radius: 16px; overflow: visible; cursor: pointer; }
.feed-shell .build-card:hover { border-color: #b6c7af; box-shadow: 0 6px 24px #2533280c; }
.feed-card-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 15px 15px 0 0; border-bottom: 1px solid #e6ebe1; background: white; }
.feed-card-photo > [data-frame-photo-build] { height: 100%; }
.feed-shell .card-frame-photo { display: block; width: 100%; height: 100%; padding: 10px; box-sizing: border-box; object-fit: contain; margin: 0; }
.feed-photo-placeholder { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 8px; color: #667d5d; font-size: 14px; pointer-events: none; }
.feed-photo-placeholder svg { width: 55%; max-width: 180px; height: auto; opacity: .65; }
.feed-card-photo:has(img:not([hidden])) .feed-photo-placeholder { display: none; }
.feed-card-photo .expert-build-badge { position: absolute; top: 12px; left: 12px; margin: 0; padding: 7px 10px; background: #fff5da; font-size: 13px; }
.feed-shell .build-info { display: flex; flex-direction: column; flex: 1; padding: 16px; min-width: 0; }
.feed-shell .build-type { font: 14px var(--sans); color: var(--green); letter-spacing: 0; }
.feed-shell .build-info h3 { margin: 6px 0 8px; color: var(--ink); font-size: 20px; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.feed-card-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; color: var(--feed-muted); font-size: 13px; line-height: 1.5; }
.build-author-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.feed-card-author { overflow-wrap: anywhere; }
.feed-card-date { color: var(--feed-muted); font: 13px var(--sans); }
.feed-shell .build-price { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.035em; margin-bottom: 10px; }
.feed-shell .feed-price-unknown { font-size: 21px; }
.feed-shell .build-price small { display: block; margin-top: 6px; color: var(--feed-muted); font: 13px/1.4 var(--sans); letter-spacing: 0; }
.feed-shell .build-price .price-exclusions { margin-top: 3px; }
.feed-shell .spec-row { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 0; margin: 0 0 10px; padding: 0; color: var(--feed-muted); font-size: 13px; line-height: 1.5; }
.feed-shell .spec-row strong { color: var(--ink); font-weight: 600; }
.feed-shell .build-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; margin: 0 0 12px; color: var(--feed-muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.feed-shell .public-data-conditions { font-size: 13px; margin-bottom: 12px; }
.feed-shell .public-data-conditions > summary { min-height: 44px; align-content: center; }
.feed-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.feed-card-actions .button { flex: 1; min-height: 44px; min-width: 145px; padding: 10px 12px; font: 600 14px var(--sans); white-space: nowrap; }
.feed-save-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: 1; min-height: 44px; min-width: 115px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: white; color: var(--green); font: 14px var(--sans); cursor: pointer; }
.feed-save-button span { font-size: 20px; line-height: 1; }
.feed-save-button.saved { border-color: #a3bd96; background: #edf3ea; }
.feed-shell .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e6ebe1; margin-top: 10px; padding-top: 4px; }
.feed-shell .card-vote { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 0; height: auto; padding: 8px 0; border: 0; color: var(--feed-muted); background: none; font: 14px var(--sans); }
.feed-shell .card-vote .heart { color: #a24427; font-size: 24px; line-height: 1; }
.feed-shell .card-vote.voted { color: #8b3d23; }
.feed-card-menu { position: relative; }
.feed-card-menu > summary { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 8px; color: var(--feed-muted); list-style: none; font-size: 18px; letter-spacing: 2px; cursor: pointer; }
.feed-card-menu > summary::-webkit-details-marker { display: none; }
.feed-card-menu[open] > summary { background: #edf3ea; }
.feed-shell .card-report { position: absolute; z-index: 2; right: 0; bottom: 48px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #873b30; box-shadow: 0 4px 16px #25332816; font: 14px var(--sans); white-space: nowrap; }
.feed-shell .catalog-disclaimer { margin-top: 20px; font: 14px/1.5 var(--sans); }
.feed-shell .empty-state { grid-column: 1 / -1; padding: 36px 24px; font-size: 16px; line-height: 1.5; text-align: center; }
.feed-shell .empty-state b { font-size: 22px; }
.feed-shell .empty-state p { color: var(--feed-muted); }
.feed-shell .empty-state button { min-height: 44px; font-size: 15px; }
.feed-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.feed-empty-actions .button { max-width: 100%; padding: 10px 16px; overflow-wrap: anywhere; text-align: center; }
.feed-loading { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 180px; color: var(--feed-muted); font-size: 16px; }
.feed-loading-dot { width: 12px; height: 12px; border-radius: 50%; background: #6c8b5e; animation: feed-loading-pulse 1s ease-in-out infinite alternate; }
.feed-shell .build-grid[aria-busy=true] { opacity: .7; }
.feed-shell :is(button, a, input, select, summary, .build-card):focus-visible { outline: 3px solid #b16419; outline-offset: 3px; }
.feed-date-fields[hidden], .feed-filter-footer[hidden], .feed-more-row button[hidden], .feed-author[hidden], .feed-subscriptions[hidden], #moderation-open[hidden], .feed-card-photo img[hidden] { display: none; }

@keyframes feed-loading-pulse { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .feed-loading-dot { animation: none; } }
@media (max-width: 1000px) { .feed-primary-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feed-search-field { grid-column: 1 / -1; } }
@media (max-width: 620px) {
  .feed-shell { width: calc(100% - 28px); padding-top: 20px; }
  .feed-shell .catalog-heading { align-items: start; flex-wrap: wrap; gap: 12px; padding-top: 0; }
  .feed-heading-copy p { display: none; }
  .feed-card-photo { height: 190px; }
  .feed-tabs { display: none; }
  .feed-tab { padding: 8px 10px; font-size: 14px; }
  .feed-primary-controls { gap: 10px; }
  .feed-search-row .button { padding: 10px 12px; }
  .feed-filter-footer { flex-direction: column; gap: 6px; }
  .feed-display-controls { gap: 4px 12px; }
  .feed-shell .sort-control { display: flex; width: 100%; justify-content: space-between; align-items: center; }
  .feed-shell .sort-control select { max-width: 72%; }
  .feed-shell .build-grid { gap: 20px; }
  .feed-shell .build-info { padding: 18px; }
  .feed-shell .build-info h3 { font-size: 22px; }
  .feed-author { flex-direction: column; align-items: start; padding: 20px; }
  .feed-date-fields { flex-wrap: wrap; }
  .feed-date-fields label { flex-basis: 100%; }
}
@media (max-width: 360px) { .feed-card-actions { flex-direction: column; } .feed-filter-fields { grid-template-columns: 1fr; } }
.feed-search-form .feed-frame-grouping{display:flex;align-items:center;gap:10px;min-height:44px;max-width:100%;width:fit-content;color:var(--green);font:500 14px var(--sans);cursor:pointer}
.feed-frame-grouping input{flex:none;width:18px;height:18px;margin:0;accent-color:#46664a}
.feed-frame-grouping span{min-width:0;overflow-wrap:anywhere}
.feed-frame-grouping[hidden]{display:none}
.feed-frame-grouping:focus-within{outline:2px solid var(--green);outline-offset:4px;border-radius:4px}
.feed-shell .frame-group-card .build-price{display:flex;flex-direction:column;gap:4px;font-size:25px}
.frame-group-count{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;color:var(--green);font:600 14px var(--sans)}
.feed-shell .frame-group-card .build-description{margin-bottom:20px}
.feed-frame-return{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--green);font:600 14px var(--sans);cursor:pointer}
.feed-frame-view{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#edf3e8;scroll-margin-top:20px}
.feed-frame-view[hidden]{display:none}
.feed-frame-view h2{margin:4px 0;font-size:24px;overflow-wrap:anywhere}
.feed-frame-view .eyebrow{margin:0}
@media(max-width:620px){.feed-frame-view{align-items:stretch;flex-direction:column}.feed-frame-return{justify-content:center}}
