/* R2 extends the existing homepage without changing the product application. */
.site-header nav {
  gap: 25px;
}
.scene-section {
  padding-top: 90px;
  padding-bottom: 80px;
}
.scene-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.scene-cards > button {
  text-align: left;
  border: 1px solid #e1e7ef;
  background: white;
  border-radius: 11px;
  padding: 24px 21px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.scene-cards > button:hover {
  transform: translateY(-4px);
  border-color: #a9b7e7;
  box-shadow: 0 12px 25px #1d39620c;
}
.scene-cards > button[aria-selected="true"] {
  border-color: #6074ef;
  background: #f9faff;
  box-shadow: 0 4px 15px #344fbc0a;
}
.scene-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #eef2fb;
  border-radius: 9px;
  color: #5268b9;
}
.scene-cards strong {
  font-weight: 550;
  font-size: 18px;
}
.scene-cards > button > span:not(.scene-icon) {
  color: #7a879c;
  font-size: 14px;
  line-height: 1.8;
}
.scene-cards .scene-card-bottom {
  border-top: 1px solid #e9edf6;
  padding-top: 15px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 12px !important;
}
.scene-card-bottom svg {
  width: 15px;
}
.scene-detail {
  display: flex;
  gap: 35px;
  align-items: center;
  background: #f6f8fc;
  border-radius: 9px;
  margin-top: 20px;
  padding: 23px 28px;
  min-height: 108px;
}
.scene-detail h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
  min-width: 215px;
}
.scene-detail p {
  font-size: 14px;
  color: #75849c;
  margin: 0;
  flex: 1;
}
.scene-detail .link-button {
  white-space: nowrap;
  flex-shrink: 0;
}
.ai-showcase-section {
  background: #f5f7fb;
  border-block: 1px solid #edf0f6;
  padding: 82px 0 86px;
}
.showcase-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  align-items: start;
}
.showcase-choices > button {
  display: flex;
  align-items: start;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #dfe6f0;
  padding: 25px 18px 25px 9px;
  gap: 15px;
  transition: background 0.25s;
}
.showcase-choices > button:hover {
  background: #edf1fb;
}
.showcase-choices > button[aria-selected="true"] {
  background: #e9eefb;
  border-radius: 8px;
  border-color: transparent;
}
.showcase-choices > button > span {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #8695b6;
  line-height: 28px;
}
.showcase-choices strong {
  font-size: 18px;
  font-weight: 550;
}
.showcase-choices p {
  font-size: 14px;
  color: #7e8ca3;
  line-height: 1.8;
  margin: 9px 0 0;
}
.showcase-choices > button > i {
  margin-left: auto;
  color: #5e78c4;
  padding-top: 4px;
}
.showcase-choices > button[aria-selected="true"] strong {
  color: #304dbe;
}
.showcase-note {
  font-size: 12px;
  color: #8492a8;
  line-height: 1.9;
  padding: 26px 10px;
}
.showcase-panel {
  min-width: 0;
  background: white;
  border: 1px solid #e1e7f0;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 18px 40px #15345709;
}
.effect-stage {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: #eef1f5;
  gap: 2px;
  min-height: 418px;
}
.effect-source,
.effect-result {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-width: 0;
}
.effect-source {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px;
  background: #f2f4f8;
}
.effect-source > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.effect-source h4 {
  font-size: 15px;
  font-weight: 550;
  margin: 15px 0 3px;
}
.effect-source p {
  font-size: 12px;
  color: #8390a3;
  margin: 0;
}
.effect-source .effect-direction {
  color: #6276c3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-top: 17px;
}
.effect-result > button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 418px;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.effect-result img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  min-height: 418px;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s;
}
.effect-result > button:hover img {
  transform: scale(1.035);
}
.effect-image-label {
  position: absolute;
  top: 15px;
  left: 14px;
  border: 1px solid #ffffffae;
  background: #ffffffe3;
  backdrop-filter: blur(10px);
  border-radius: 5px;
  font-size: 12px;
  color: #5a6980;
  padding: 5px 9px;
}
.effect-enlarge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  border: 1px solid #ffffffae;
  background: #ffffffe3;
  color: #4d6388;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 12px;
}
.effect-enlarge svg {
  width: 14px;
}
.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 21px;
  gap: 18px;
  border-top: 1px solid #e9edf3;
  min-height: 84px;
}
.showcase-footer p {
  font-size: 12px;
  color: #8190a7;
  margin: 0;
  max-width: 340px;
}
.showcase-footer .button {
  font-size: 12px;
  padding: 10px 14px;
  min-height: 40px;
  flex-shrink: 0;
}
.archive-preview {
  padding: 26px;
  min-height: 418px;
}
.archive-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
}
.archive-heading img {
  width: 76px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}
.archive-heading strong {
  font-weight: 550;
  font-size: 17px;
}
.archive-heading small {
  display: block;
  font-size: 12px;
  color: #8a97ac;
  margin-top: 8px;
}
.archive-fields {
  margin: 0;
}
.archive-fields > div {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 15px;
  border-bottom: 1px solid #e7ecf3;
  padding: 13px 0;
  font-size: 14px;
}
.archive-fields dt {
  color: #8693a9;
}
.archive-fields dd {
  margin: 0;
  color: #445672;
}
.archive-fields small {
  display: block;
  font-size: 12px;
  color: #8b98ac;
  margin-top: 4px;
}
.archive-warning {
  display: flex;
  gap: 8px;
  background: #f0f4ff;
  color: #677da4;
  font-size: 12px;
  padding: 12px 14px;
  margin-top: 20px;
  line-height: 1.8;
}
.archive-warning svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.document-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px;
  min-height: 418px;
  align-items: center;
  background: #f7f9fc;
}
.paper-snippet {
  border: 1px solid #dce4ee;
  background: #fff;
  padding: 20px 15px;
  box-shadow: 0 7px 20px #19385f08;
  transform: rotate(-2deg);
}
.paper-snippet h4 {
  font-weight: 550;
  font-size: 17px;
  text-align: center;
  margin: 5px 0 18px;
}
.paper-snippet p {
  font-size: 12px;
  color: #8693a8;
  margin: 11px 0;
  line-height: 1.8;
}
.paper-snippet dl {
  font-size: 12px;
  margin: 15px 0;
}
.paper-snippet dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e6ebf4;
  padding: 7px 0;
}
.paper-snippet dt {
  color: #8290a6;
}
.paper-snippet dd {
  margin: 0;
}
.document-result {
  min-width: 0;
}
.document-result h4 {
  font-size: 17px;
  font-weight: 550;
  margin: 8px 0 15px;
}
.document-result p {
  font-size: 14px;
  line-height: 1.9;
  color: #8290a7;
}
.document-result .tags span {
  font-size: 12px;
}
.journey {
  margin-top: 65px;
  border-top: 1px solid #e4e9f2;
  padding-top: 38px;
}
.journey-header {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 28px;
}
.journey h3 {
  font-size: 26px;
  font-weight: 550;
  margin: 10px 0 0;
  letter-spacing: -0.5px;
}
.route-choices {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.route-choices > button {
  font-size: 12px;
  color: #7988a2;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  padding: 7px 11px;
  transition:
    color 0.2s,
    background 0.2s;
}
.route-choices > button:hover {
  background: #f1f4fa;
  color: #3b55ab;
}
.route-choices > button[aria-pressed="true"] {
  background: #eaf0ff;
  color: #3855c6;
  border-color: #b9c8f5;
}
.journey-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}
.journey-steps > button {
  position: relative;
  text-align: left;
  border: 1px solid #e2e9f2;
  border-radius: 8px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  background: #fafbfd;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.journey-steps > button:hover {
  border-color: #aebee8;
}
.journey-steps > button > span {
  font-size: 12px;
  color: #8a9bb7;
}
.journey-steps > button[aria-selected="true"] {
  background: #f0f4ff;
  border-color: #91a4e7;
  color: #314fc7;
}
.journey-steps svg {
  width: 15px;
  margin-left: auto;
  color: #91a2bd;
}
.journey-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  background: #f7f9fc;
  border-radius: 9px;
  margin-top: 13px;
  min-height: 128px;
}
.journey-panel h4 {
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 550;
}
.journey-panel p {
  margin: 0;
  color: #7c8ba3;
  font-size: 14px;
  line-height: 1.8;
  max-width: 740px;
}
.journey-panel .link-button {
  white-space: nowrap;
  font-size: 13px;
}
.journey-label {
  font-size: 12px;
  color: #8b98ad;
  display: block;
  margin-top: 8px;
}
.insight-section {
  padding-bottom: 80px;
}
.insight-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.insight-choices > button {
  display: flex;
  gap: 15px;
  align-items: center;
  width: 100%;
  padding: 22px 17px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.insight-choices > button:hover {
  background: #f7f9fc;
}
.insight-choices > button[aria-selected="true"] {
  background: #edf2fc;
  border-color: #dce5f5;
}
.insight-choices strong {
  display: block;
  font-size: 17px;
  font-weight: 550;
}
.insight-choices small {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: #8492a7;
  margin-top: 7px;
}
.insight-choices > button > i {
  color: #5671bd;
}
.insight-panel {
  border: 1px solid #dfe6f0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 36px #12376508;
  overflow: hidden;
  min-width: 0;
  min-height: 420px;
}
.insight-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e8edf5;
  font-size: 14px;
}
.insight-top strong {
  font-weight: 550;
}
.insight-top > span {
  font-size: 12px;
  color: #8a96a9;
}
.insight-body {
  padding: 24px;
}
.insight-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.insight-metrics > button,
.insight-metrics > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 5px;
  padding: 14px 16px;
  background: #f6f8fc;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 12px;
  color: #8794a9;
}
.insight-metrics > button:hover {
  border-color: #b4c4ee;
  background: #f0f4fe;
}
.insight-metrics b {
  font-weight: 550;
  font-size: 26px;
  color: #263c5c;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.insight-metrics b i {
  font-style: normal;
  font-size: 13px;
  margin-left: 5px;
  color: #8694ac;
}
.insight-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #8090a8;
  margin: 25px 0 10px;
}
.chart-bars {
  display: flex;
  gap: 13px;
  height: 144px;
  border-bottom: 1px solid #dce4ef;
  align-items: end;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 46px,
    #f2f5f9 47px,
    #f2f5f9 48px
  );
}
.day-bar {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 5px;
  flex: 1;
  min-width: 0;
  padding: 0;
  position: relative;
}
.day-bar span {
  font-size: 12px;
  color: #8c9bb2;
  font-variant-numeric: tabular-nums;
}
.day-bar i {
  display: block;
  width: 58%;
  min-height: 7px;
  border-radius: 4px 4px 0 0;
  background: #d3ddf5;
  transition:
    background 0.25s,
    filter 0.25s;
}
.day-bar[aria-pressed="true"] i {
  background: #5975e8;
}
.day-bar:hover i {
  filter: brightness(0.92);
}
.day-bar:focus-visible {
  outline-offset: 5px;
}
.chart-dates {
  display: flex;
  gap: 13px;
  margin-top: 10px;
  color: #8493ab;
  font-size: 12px;
}
.chart-dates span {
  flex: 1;
  text-align: center;
}
.insight-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0 0;
  font-size: 12px;
  color: #8b98ac;
}
.insight-link-row .link-button {
  font-size: 12px;
}
.insight-bottom {
  padding: 14px 24px;
  background: #fafbfe;
  border-top: 1px solid #edf1f6;
  font-size: 12px;
  color: #8a97ac;
  line-height: 1.8;
}
.insight-progress {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.insight-progress strong {
  font-size: 17px;
  font-weight: 550;
}
.insight-progress p {
  font-size: 12px;
  color: #8c98ab;
  margin: 5px 0;
}
.insight-formula {
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 20px;
  margin: 17px 0;
}
.insight-formula b {
  font-weight: 550;
  font-size: 31px;
  color: #3756b4;
}
.insight-formula div > span {
  font-size: 14px;
  color: #536887;
}
.insight-formula small {
  display: block;
  font-size: 12px;
  color: #8b99af;
  margin-top: 5px;
}
.cost-note {
  margin-top: 16px;
  font-size: 13px;
  color: #8493a9;
  line-height: 1.9;
}
.insight-table td,
.insight-table th {
  font-size: 13px;
  padding: 12px;
}
.cost-empty {
  color: #97a2b4;
}
.devices-section {
  border-top: 1px solid #e5ebf4;
  padding-top: 76px;
}
.service-section {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 52px;
  padding: 20px 0 78px;
}
.service-heading h2 {
  font-size: 29px;
}
.service-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
}
.service-items article {
  border-top: 1px solid #cfdaf0;
  padding-top: 21px;
}
.service-items article > span {
  font-size: 12px;
  color: #8a98b0;
}
.service-items h3 {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 550;
  margin: 13px 0 10px;
}
.service-items p {
  font-size: 14px;
  line-height: 1.9;
  color: #7d8aa0;
  margin: 0 0 12px;
}
.service-items .link-button {
  font-size: 12px;
}
.r2-image-modal {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f3f5;
}
.effect-modal-note {
  font-size: 12px;
  color: #8796ac;
  margin-top: 14px;
}
.effect-attach-preview {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 17px;
  background: #f3f6fb;
  border-radius: 10px;
}
.effect-attach-preview > img {
  width: 88px;
  height: 119px;
  object-fit: cover;
  border-radius: 6px;
}
.effect-attach-preview h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 0 0 8px;
}
.effect-attach-preview p {
  font-size: 13px;
  color: #7a8ca7;
  margin: 0;
  line-height: 1.9;
}
.r2-receipt-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e7ecf4;
  font-size: 14px;
}
.r2-receipt-row > span {
  color: #8896ac;
}
.r2-receipt-row b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.r2-detail-list {
  padding-left: 20px;
  color: #71829b;
  font-size: 14px;
  line-height: 1.9;
}
.r2-detail-list li + li {
  margin-top: 10px;
}
.r2-modal-note {
  font-size: 12px;
  line-height: 1.8;
  color: #8c99ac;
  margin-top: 20px;
}
.date-summary {
  color: #7f8da4;
  font-size: 13px;
  margin: 0 0 13px;
}
.billing-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.billing-fields span {
  border: 1px solid #e0e7f2;
  border-radius: 6px;
  background: #f7f9fd;
  color: #6f829f;
  padding: 7px 11px;
  font-size: 13px;
}
@media (max-width: 1120px) {
  .site-header nav {
    gap: 18px;
  }
  .showcase-layout {
    gap: 27px;
    grid-template-columns: 0.85fr 1.15fr;
  }
  .scene-cards > button {
    padding: 21px 16px;
  }
  .scene-detail {
    gap: 22px;
  }
  .scene-detail h3 {
    min-width: 160px;
  }
  .effect-source {
    padding: 18px;
  }
  .showcase-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .showcase-footer p {
    max-width: none;
  }
  .service-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .journey-header {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .journey-steps > button {
    padding: 13px 12px;
    gap: 8px;
  }
  .insight-layout {
    grid-template-columns: 245px 1fr;
    gap: 23px;
  }
  .insight-metrics b {
    font-size: 23px;
  }
  .document-preview {
    padding: 20px;
    gap: 15px;
  }
  .paper-snippet {
    padding: 16px 12px;
  }
  .showcase-choices strong {
    font-size: 16px;
  }
}
@media (max-width: 820px) {
  .scene-cards {
    grid-template-columns: 1fr 1fr;
  }
  .scene-detail {
    flex-wrap: wrap;
    gap: 14px;
  }
  .scene-detail h3 {
    width: 100%;
  }
  .scene-detail p {
    min-width: 60%;
  }
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .showcase-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .showcase-choices > button {
    padding: 15px 12px;
    border: 1px solid #dfe6f0;
    border-radius: 8px;
    gap: 8px;
    flex-direction: column;
  }
  .showcase-choices > button > i {
    display: none;
  }
  .showcase-choices strong {
    font-size: 15px;
  }
  .showcase-choices p {
    font-size: 13px;
  }
  .showcase-note {
    grid-column: 1/-1;
    padding: 9px 4px 0;
  }
  .effect-stage {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .effect-source {
    padding: 30px;
  }
  .effect-result > button,
  .effect-result img {
    min-height: 410px;
    max-height: 470px;
  }
  .ai-showcase-section {
    padding: 65px 0;
  }
  .journey-steps > button {
    font-size: 13px;
    gap: 8px;
    padding: 13px 10px;
  }
  .journey-steps svg {
    display: none;
  }
  .journey-panel {
    gap: 18px;
    padding: 20px;
    flex-wrap: wrap;
  }
  .journey-panel p {
    font-size: 14px;
  }
  .journey-panel .link-button {
    padding: 0;
  }
  .insight-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .insight-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .insight-choices > button {
    padding: 15px 12px;
    margin: 0;
    gap: 10px;
    align-items: start;
  }
  .insight-choices strong {
    font-size: 15px;
  }
  .insight-choices small {
    font-size: 12px;
  }
  .insight-choices > button > i {
    margin-top: 3px;
  }
  .insight-panel {
    min-height: 400px;
  }
  .service-items {
    gap: 20px;
  }
  .service-items h3 {
    font-size: 16px;
  }
  .service-items p {
    font-size: 14px;
  }
  .service-heading h2 {
    font-size: 29px;
  }
  .scene-section {
    padding-top: 68px;
  }
  .r2-receipt-row {
    grid-template-columns: 100px 1fr;
  }
}
@media (max-width: 520px) {
  .scene-cards {
    gap: 10px;
  }
  .scene-cards > button {
    padding: 17px 13px;
    gap: 10px;
  }
  .scene-cards strong {
    font-size: 16px;
  }
  .scene-cards > button > span:not(.scene-icon) {
    font-size: 13px;
  }
  .scene-cards .scene-card-bottom {
    font-size: 12px !important;
    line-height: 1.7;
    gap: 6px;
    padding-top: 11px;
    margin-top: 0;
  }
  .scene-card-bottom svg {
    width: 13px;
  }
  .scene-icon {
    width: 34px;
    height: 34px;
  }
  .scene-icon svg {
    width: 18px;
  }
  .scene-detail {
    padding: 20px;
    gap: 12px;
  }
  .scene-detail p {
    flex: auto;
  }
  .scene-detail .link-button {
    font-size: 13px;
    padding-top: 4px;
  }
  .showcase-choices {
    gap: 6px;
  }
  .showcase-choices > button {
    padding: 11px 9px;
    gap: 4px;
  }
  .showcase-choices > button > span {
    font-size: 12px;
  }
  .showcase-choices strong {
    font-size: 14px;
    line-height: 1.7;
  }
  .showcase-choices p {
    display: none;
  }
  .showcase-note {
    font-size: 12px;
    padding-top: 7px;
  }
  .effect-stage {
    grid-template-columns: 0.78fr 1.22fr;
    min-height: 325px;
  }
  .effect-source {
    padding: 15px 12px;
  }
  .effect-source h4 {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
  }
  .effect-source p {
    font-size: 12px;
  }
  .effect-source .effect-direction {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 10px;
    gap: 5px;
  }
  .effect-direction svg {
    width: 14px;
  }
  .effect-result > button,
  .effect-result img {
    min-height: 325px;
    max-height: 360px;
  }
  .effect-image-label {
    font-size: 12px;
    top: 11px;
    left: 10px;
    padding: 4px 6px;
  }
  .effect-enlarge {
    font-size: 12px;
    bottom: 10px;
    right: 10px;
    padding: 4px 7px;
  }
  .showcase-footer {
    padding: 15px;
  }
  .showcase-footer .button {
    font-size: 13px;
    min-height: 40px;
  }
  .archive-preview {
    padding: 19px;
    min-height: 0;
  }
  .archive-heading strong {
    font-size: 15px;
  }
  .archive-heading small {
    font-size: 12px;
  }
  .archive-fields > div {
    grid-template-columns: 70px 1fr;
    font-size: 13px;
    gap: 9px;
  }
  .archive-fields small {
    font-size: 12px;
  }
  .archive-warning {
    padding: 11px;
    font-size: 12px;
  }
  .document-preview {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
    gap: 18px;
  }
  .paper-snippet {
    transform: rotate(-1deg);
    padding: 20px;
  }
  .document-result h4 {
    font-size: 16px;
  }
  .document-result p {
    font-size: 14px;
  }
  .journey {
    margin-top: 42px;
    padding-top: 29px;
  }
  .journey h3 {
    font-size: 23px;
  }
  .journey .eyebrow {
    font-size: 12px;
  }
  .route-choices {
    gap: 5px;
  }
  .route-choices > button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .journey-steps {
    gap: 5px;
  }
  .journey-steps > button {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 11px 3px;
    font-size: 12px;
    line-height: 1.7;
  }
  .journey-steps > button > span {
    font-size: 12px;
  }
  .journey-panel {
    padding: 18px;
  }
  .journey-panel h4 {
    font-size: 16px;
  }
  .journey-panel p {
    font-size: 14px;
  }
  .journey-label {
    font-size: 12px;
  }
  .insight-choices > button {
    padding: 12px 9px;
    gap: 7px;
    flex-direction: column;
  }
  .insight-choices strong {
    font-size: 14px;
  }
  .insight-choices small {
    display: none;
  }
  .insight-choices svg {
    width: 18px;
  }
  .insight-top {
    padding: 16px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .insight-top > span {
    font-size: 12px;
  }
  .insight-body {
    padding: 16px;
  }
  .insight-metrics {
    gap: 6px;
  }
  .insight-metrics > button,
  .insight-metrics > div {
    padding: 11px 9px;
    gap: 6px;
    font-size: 12px;
  }
  .insight-metrics b {
    font-size: 21px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
  .insight-metrics b i {
    font-size: 12px;
    margin-left: 2px;
  }
  .insight-chart-head {
    font-size: 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .chart-bars {
    height: 130px;
    gap: 5px;
  }
  .day-bar span {
    font-size: 12px;
  }
  .chart-dates {
    font-size: 12px;
    gap: 5px;
  }
  .insight-link-row {
    gap: 12px;
    align-items: start;
    flex-wrap: wrap;
    font-size: 12px;
  }
  .insight-link-row .link-button {
    font-size: 12px;
    padding: 0;
  }
  .insight-bottom {
    padding: 13px 16px;
    font-size: 12px;
  }
  .insight-progress strong {
    font-size: 15px;
  }
  .insight-progress p {
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .insight-progress {
    gap: 10px;
  }
  .insight-formula {
    padding: 14px;
    gap: 15px;
  }
  .insight-formula b {
    font-size: 28px;
  }
  .insight-formula div > span {
    font-size: 14px;
  }
  .insight-formula small {
    font-size: 12px;
  }
  .insight-table td,
  .insight-table th {
    font-size: 12px;
    padding: 10px 8px;
  }
  .cost-note {
    font-size: 13px;
  }
  .service-items {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .service-section {
    padding: 5px 0 57px;
    gap: 28px;
  }
  .service-items article {
    padding-top: 18px;
  }
  .service-items h3 {
    font-size: 17px;
    margin: 9px 0;
  }
  .service-items p {
    font-size: 14px;
  }
  .service-items .link-button {
    font-size: 13px;
  }
  .effect-attach-preview {
    padding: 14px;
    gap: 13px;
  }
  .effect-attach-preview > img {
    width: 75px;
    height: 108px;
  }
  .effect-attach-preview h3 {
    font-size: 15px;
  }
  .effect-attach-preview p {
    font-size: 12px;
  }
  .r2-receipt-row {
    font-size: 13px;
    grid-template-columns: 84px 1fr;
    gap: 10px;
  }
}
/* Explicit image sizing prevents intrinsic HTML dimensions stretching the grid. */
.effect-stage {
  height: 450px;
  min-height: 0;
}
.effect-source > img {
  height: auto;
  flex-shrink: 0;
}
.effect-result > button {
  min-height: 0;
}
.effect-result img {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.scene-cards > button > span:not(.scene-icon),
.scene-detail p,
.showcase-choices p,
.showcase-choices > button > span,
.showcase-note,
.effect-source p,
.showcase-footer p,
.archive-heading small,
.archive-fields dt,
.archive-fields small,
.archive-warning,
.paper-snippet p,
.paper-snippet dt,
.document-result p,
.journey-label,
.journey-panel p,
.route-choices > button,
.journey-steps > button > span,
.insight-choices small,
.insight-top > span,
.insight-metrics > button,
.insight-metrics > div,
.insight-metrics b i,
.insight-chart-head,
.day-bar span,
.chart-dates,
.insight-link-row,
.insight-bottom,
.insight-progress p,
.insight-formula small,
.cost-note,
.cost-empty,
.service-items article > span,
.service-items p,
.effect-modal-note,
.effect-attach-preview p,
.r2-receipt-row > span,
.r2-detail-list,
.r2-modal-note,
.date-summary,
.billing-fields span {
  color: #596a81;
}
.showcase-choices .title-short {
  display: none;
}
@media (max-width: 820px) {
  .effect-stage {
    height: 430px;
  }
}
@media (max-width: 520px) {
  .effect-stage {
    height: 325px;
  }
  .showcase-choices .title-long {
    display: none;
  }
  .showcase-choices .title-short {
    display: block;
    white-space: nowrap;
  }
  #insight-panel[aria-labelledby="insight-sales"] .insight-metrics {
    grid-template-columns: 1fr 1fr;
  }
  #insight-panel[aria-labelledby="insight-sales"]
    .insight-metrics
    > button:first-child {
    grid-column: 1/-1;
  }
  #insight-panel[aria-labelledby="insight-sales"] .insight-metrics b {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-cards > button,
  .effect-result img,
  .showcase-choices > button,
  .day-bar i {
    transition: none;
  }
}
