/* XLSX feature uses the shared carousel, typography and local sample assets. */
.xlsx-home { width: 100%; padding: 32px 0 28px; }
.xlsx-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 34px; }
.xlsx-home-copy { min-width: 0; position: relative; z-index: 2; }
.xlsx-home h2 { font-size: clamp(36px, 3.65vw, 52px); font-weight: 820; line-height: 1.08; letter-spacing: -.047em; margin: 20px 0 18px; }
.xlsx-home h2 > span { display: block; }
.xlsx-home-emphasis { color: var(--primary); background: linear-gradient(100deg, #4430fa 5%, #5933ff 65%, #a636e5); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.xlsx-home-copy > p:not(.xlsx-home-hint) { max-width: 470px; color: #596486; font-size: 14px; line-height: 1.65; margin: 0 0 20px; }
.xlsx-home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.xlsx-home-actions .button { min-height: 48px; padding: 12px 18px; font-size: 13px; }
.xlsx-home-copy > .xlsx-home-hint { font-size: 11px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.xlsx-home-hint > span { padding: 0 5px; color: #7a68c6; }
.xlsx-home-benefits { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; list-style: none; padding: 0; margin: 25px 0 0; color: #576286; font-size: 11px; }
.xlsx-home-benefits li { display: inline-flex; align-items: center; gap: 7px; }
.xlsx-home-benefits .icon { width: 19px; height: 19px; color: var(--primary); }
.xlsx-home-art { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 3px 18px; width: 100%; max-width: 590px; justify-self: center; }
.xlsx-workbook-card, .xlsx-pdf-card { flex: 1 1 0; min-width: 0; margin: 0; background: #fff; border: 1px solid #dcd6f6; border-radius: 14px; box-shadow: 0 16px 38px #51408020; overflow: hidden; }
.xlsx-workbook-card { transform: rotate(-2deg); }
.xlsx-pdf-card { transform: rotate(2deg); }
.xlsx-window-dots { display: flex; gap: 5px; align-items: center; min-height: 25px; padding: 0 14px; background: #f6f5fc; }
.xlsx-window-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #aaa4c7; }
.xlsx-preview-title { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; color: #424b6f; font-size: 10px; font-weight: 650; }
.xlsx-preview-title > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xlsx-preview-title > .icon { width: 15px; height: 15px; margin-left: auto; flex-shrink: 0; color: #159976; }
.xlsx-file-badge { display: grid; place-items: center; width: 20px; height: 23px; background: #18985f; color: white; font-size: 13px; border-radius: 3px; flex-shrink: 0; }
.xlsx-pdf-badge { padding: 5px 4px; color: #e74766; background: #fff0f2; border-radius: 4px; font-size: 8px; flex-shrink: 0; }
.xlsx-sheet-columns { display: grid; grid-template-columns: 17px 1.8fr repeat(4, 1fr); background: #f6f7fb; border-block: 1px solid #e4e6f0; color: #7b829d; font-size: 8px; line-height: 22px; text-align: center; }
.xlsx-sheet-columns > span { border-right: 1px solid #e4e6f0; }
.xlsx-sheet-body { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: stretch; }
.xlsx-sheet-rows { display: grid; grid-template-rows: repeat(28, 1fr); color: #9298ae; background: #fafbfe; border-right: 1px solid #e4e6f0; font-size: 7px; text-align: center; }
.xlsx-sheet-rows span { align-self: center; }
.xlsx-sheet-body > img { display: block; width: 100%; height: auto; }
.xlsx-workbook-card figcaption { border-top: 1px solid #eceaf5; padding: 0 10px; }
.xlsx-workbook-card figcaption a { min-height: 36px; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 9px; font-weight: 650; color: #266e55; text-decoration: none; }
.xlsx-workbook-card figcaption .icon { width: 12px; height: 12px; }
.xlsx-output-preview { display: block; margin: 0 9px; padding: 5px; background: #f4f4fa; border-radius: 4px; }
.xlsx-output-preview img { display: block; width: 100%; height: auto; }
.xlsx-pdf-card figcaption { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 32px; padding: 7px; color: #7984a8; font-size: 8px; }
.xlsx-pdf-card .html-status-dot { flex-shrink: 0; width: 5px; height: 5px; }
.xlsx-transform-arrow { position: absolute; z-index: 2; left: 50%; top: 49%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; border: 5px solid #eee9ff; border-radius: 50%; background: #fff; color: var(--primary); box-shadow: 0 3px 16px #7559df20; }
.xlsx-transform-arrow .icon { width: 22px; height: 22px; }
.xlsx-home a:focus-visible { outline: 3px solid #7458e5; outline-offset: 3px; }
@media screen and (min-width: 801px) {
  .xlsx-home { padding-block: clamp(10px, 2vh, 22px); }
  .xlsx-home h2 { font-size: clamp(34px, min(3.65vw, 6vh), 52px); margin-block: 16px 14px; }
  .xlsx-home-art { max-width: min(590px, 68vh); }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .xlsx-home-grid { gap: 24px; }
  .xlsx-home-actions { gap: 6px 14px; }
  .xlsx-home-benefits { gap: 12px; }
}
@media (max-width: 800px) {
  .xlsx-home { padding: 28px 0 24px; }
  .xlsx-home-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 600px; }
  .xlsx-home h2 { font-size: clamp(32px, 6vw, 46px); }
  .xlsx-home-art { max-width: 510px; }
  .xlsx-workbook-card figcaption a { min-height: 44px; }
}
@media (max-width: 520px) {
  .xlsx-home-grid { gap: 24px; }
  .xlsx-home h2 { font-size: clamp(29px, 8.1vw, 40px); line-height: 1.12; margin: 18px 0 16px; }
  .xlsx-home-copy > p:not(.xlsx-home-hint) { font-size: 14px; margin-bottom: 20px; }
  .xlsx-home-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .xlsx-home-actions .button { min-height: 50px; width: 100%; justify-content: center; }
  .xlsx-home-actions .html-example-link { justify-content: center; }
  .xlsx-home-copy > .xlsx-home-hint { font-size: 10px; text-align: center; margin-top: 8px; }
  .xlsx-home-hint > span { padding-inline: 3px; }
  .xlsx-home-benefits { justify-content: space-between; gap: 9px; margin-top: 23px; font-size: 10px; }
  .xlsx-home-benefits li { gap: 5px; }
  .xlsx-home-benefits .icon { width: 17px; height: 17px; }
  .xlsx-home-art { gap: 8px; padding-inline: 3px; }
  .xlsx-preview-title { gap: 5px; min-height: 36px; padding: 7px; font-size: 7px; }
  .xlsx-preview-title > .icon { width: 11px; height: 11px; }
  .xlsx-file-badge { width: 15px; height: 18px; font-size: 10px; }
  .xlsx-pdf-badge { font-size: 6px; padding: 4px 3px; }
  .xlsx-window-dots { min-height: 21px; padding-left: 9px; }
  .xlsx-window-dots i { width: 4px; height: 4px; }
  .xlsx-sheet-columns { line-height: 17px; font-size: 6px; }
  .xlsx-sheet-rows { font-size: 5px; }
  .xlsx-output-preview { margin-inline: 5px; padding: 3px; }
  .xlsx-pdf-card figcaption { font-size: 6px; min-height: 28px; padding: 5px; gap: 3px; }
  .xlsx-workbook-card figcaption { padding-inline: 4px; }
  .xlsx-workbook-card figcaption a { font-size: 7px; gap: 4px; }
  .xlsx-workbook-card figcaption .icon { width: 10px; height: 10px; }
  .xlsx-transform-arrow { width: 38px; height: 38px; border-width: 4px; }
  .xlsx-transform-arrow .icon { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .xlsx-workbook-card, .xlsx-pdf-card { transform: none; }
}
@media print {
  .xlsx-home { break-inside: avoid; }
  .xlsx-home-art { max-width: 430px; }
  .xlsx-home-actions, .xlsx-home-benefits, .xlsx-home-hint { display: none; }
}
