.excel-intro { align-items: center; }
.excel-intro-mark {
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  height: 76px;
  border-radius: 22px;
  background: #a4dbc01a;
  color: var(--mint);
  transform: rotate(-6deg);
}
.excel-intro-mark > .icon { width: 38px; height: 38px; }
.excel-catalog { margin-top: 30px; }
.excel-catalog [hidden] { display: none !important; }
.excel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.excel-heading h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.045em; }
.excel-count { flex-shrink: 0; color: var(--muted); font-size: var(--font-small); text-align: right; white-space: nowrap; }
.excel-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.excel-access { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; margin: 0; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); }
.excel-access button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 7px 15px; border: 0; border-radius: 24px; background: transparent; color: var(--muted); font-size: var(--font-caption); font-weight: 800; }
.excel-access button:hover { color: var(--text); background: var(--surface-2); }
.excel-access button[aria-pressed="true"] { color: #25213d; background: var(--lavender); }
.excel-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.excel-access button[aria-pressed="true"] .excel-dot { background: #285f46; }
.excel-search { display: flex; align-items: center; flex: 1 1 270px; gap: 11px; min-width: 0; min-height: 52px; padding: 0 17px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); color: var(--muted); }
.excel-search:focus-within { border-color: var(--lavender); }
.excel-search > .icon { width: 19px; height: 19px; flex-shrink: 0; }
.excel-search input { width: 100%; min-width: 0; min-height: 50px; padding: 10px 0; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: var(--font-small); color-scheme: dark; }
.excel-search input::placeholder { color: var(--muted); opacity: 1; }
.excel-reset { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: var(--font-caption); text-decoration: underline; text-underline-offset: 4px; }
.excel-reset:hover { color: var(--text); }
.excel-reset > .icon { width: 15px; height: 15px; }
.excel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.excel-card {
  --cover: #d3ebdd;
  --sheet-color: #47775f;
  --sheet-soft: #dfede4;
  --sheet-tilt: -3deg;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.excel-card:nth-child(4n + 2) { --cover: #e1d8f5; --sheet-color: #8069a9; --sheet-soft: #eee8f8; --sheet-tilt: 2deg; }
.excel-card:nth-child(4n + 3) { --cover: #d5e3f6; --sheet-color: #5278a6; --sheet-soft: #e5edf7; }
.excel-card:nth-child(4n + 4) { --cover: #f1ddce; --sheet-color: #a77856; --sheet-soft: #f5ebe2; --sheet-tilt: 3deg; }
.excel-card:hover, .excel-card:focus-within { border-color: var(--lavender); box-shadow: 0 12px 28px #20202728; }
.excel-card-media { position: relative; aspect-ratio: 4 / 3; min-width: 0; overflow: hidden; border-radius: 18px; background: var(--cover); }
.excel-card-badges { position: absolute; inset: 12px 12px auto; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.excel-format, .excel-free { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; line-height: 1.6; }
.excel-format { background: #236346; color: #fff; }
.excel-format > .icon { width: 15px; height: 15px; }
.excel-free { background: #ffffffd9; color: #304a3c; }
.excel-card-media .plus-badge { margin: 0; background: #322449; color: #ecdeff; border: 1px solid #6d558e; font-size: 12px; }
.excel-preview { position: absolute; inset: 55px 26px 31px; }
.excel-sheet { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid #00000012; border-radius: 7px; background: #fff; box-shadow: 0 12px 18px -8px #28352e55; transform: rotate(var(--sheet-tilt)); transition: transform .25s ease; }
.excel-sheet-toolbar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; background: var(--sheet-color); color: #fff; font-size: 7px; font-weight: 700; }
.excel-sheet-toolbar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.excel-sheet-toolbar > span:last-child { margin-left: auto; }
.excel-sheet-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #ffffffa6; }
.excel-sheet-art { display: block; flex: 1; min-height: 0; width: 100%; height: auto; }
.excel-art-fill { fill: var(--sheet-color); }
.excel-art-soft { fill: var(--sheet-soft); }
.excel-art-stroke { stroke: var(--sheet-color); }
.excel-art-soft-stroke { stroke: var(--sheet-soft); }
.excel-art-donut, .excel-art-line { display: none; }
.excel-card:nth-child(3n + 2) .excel-art-bars, .excel-card:nth-child(3n + 3) .excel-art-bars { display: none; }
.excel-card:nth-child(3n + 2) .excel-art-donut, .excel-card:nth-child(3n + 3) .excel-art-line { display: block; }
.excel-sheet-tabs { display: flex; align-items: center; gap: 10px; padding: 3px 14px; border-top: 1px solid #e2e9e5; background: #f3f6f4; color: #69776f; font-size: 6px; }
.excel-sheet-tabs > span:first-child { color: var(--sheet-color); font-weight: 800; border-bottom: 1px solid; }
.excel-preview-caption { position: absolute; bottom: -25px; left: 0; width: 100%; color: #4a5350; font-size: 10px; letter-spacing: .025em; text-align: center; }
.excel-screenshot { position: absolute; inset: 55px 26px 31px; display: block; width: calc(100% - 52px); height: calc(100% - 86px); object-fit: contain; border-radius: 7px; transform: rotate(var(--sheet-tilt)); transition: transform .25s ease; }
.excel-card-body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; gap: 12px; padding: 19px 10px 10px; }
.excel-card-body h3 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; }
.excel-card-body p { margin: 0 0 10px; color: var(--muted); font-size: var(--font-small); line-height: 1.65; overflow-wrap: anywhere; }
.excel-card-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 100%; min-height: 46px; margin-top: auto; padding: 5px 5px 5px 16px; border: 1px solid #c5b1ff55; border-radius: 28px; background: #c5b1ff14; color: var(--accent-2); font-size: var(--font-caption); font-weight: 800; transition: background .2s; }
.excel-card-action:hover { color: #f7f0ff; background: #c5b1ff2e; }
.excel-action-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--lavender); color: #25213d; }
.excel-action-icon > .icon { width: 17px; height: 17px; }
.excel-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 22px; border: 1px dashed var(--line); border-radius: 24px; text-align: center; }
.excel-empty h3 { margin: 0; font-size: 23px; font-weight: 800; }
.excel-empty p { margin: 0; max-width: 440px; color: var(--muted); }
.excel-empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #a4dbc01a; color: var(--mint); }
.excel-empty-icon > .icon { width: 28px; height: 28px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .excel-card:hover { transform: translateY(-3px); }
  .excel-card:hover .excel-sheet, .excel-card:hover .excel-screenshot { transform: rotate(0) scale(1.025); }
}
@media (min-width: 1700px) { .excel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .excel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .excel-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .excel-intro-mark { display: none; }
  .excel-heading h2 { font-size: 22px; }
  .excel-count { font-size: var(--font-caption); }
  .excel-filters { gap: 10px; }
  .excel-access { width: 100%; }
  .excel-access button { flex: 1; padding-inline: 8px; }
  .excel-search { flex-basis: 100%; }
  .excel-search input { font-size: var(--font-caption); }
  .excel-card-media { aspect-ratio: 4 / 3; }
  .excel-card-body { padding: 16px 12px 12px; }
}
