/* V480 · 포스팅 예시, 프로그램 임대비용/월 유지비용, 회원 다운로드 */
.route-product .detail-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}
.route-product .detail-layout > article {
  width: 100%;
  max-width: none;
}
.route-product .detail-layout > aside {
  display: none !important;
}

.rs-product-fees-v480 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 16px;
  padding: 14px;
  border: 1px solid #e4e8ef;
  border-radius: 18px;
  background: #fffaf4;
  box-shadow: 0 12px 28px rgba(33, 38, 45, .06);
}
.rs-product-fees-v480 > div {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #f0dfd0;
  border-radius: 14px;
  background: #fff;
}
.rs-product-fees-v480 > div:nth-child(2) {
  border-color: #cfeade;
  background: #f5fcf8;
}
.rs-product-fees-v480 small,
.rs-card-fees-v480 small {
  display: block;
  margin-bottom: 5px;
  color: #697386;
  font-size: 12px;
  font-weight: 800;
}
.rs-product-fees-v480 b {
  display: block;
  color: #e95f38;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.rs-product-fees-v480 > div:nth-child(2) b { color: #087a55; }
.rs-product-fees-v480 > span {
  grid-column: 1 / -1;
  padding: 2px 4px 0;
  color: #6f7785;
  font-size: 12px;
}

.rs-card-fees-v480 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e8ebf1;
}
.rs-card-fees-v480 > span {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: #fff6ee;
}
.rs-card-fees-v480 > span:nth-child(2) { background: #effaf5; }
.rs-card-fees-v480 strong {
  display: block;
  color: #19243a;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.rs-card-fees-v480 em {
  grid-column: 1 / -1;
  color: #2769e8;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.rs-posting-examples-v480 {
  margin: 34px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #eadfd3;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffaf4 0%, #fff 52%, #f3fbf7 100%);
}
.rs-posting-examples-v480 header span {
  color: #e95f38;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.rs-posting-examples-v480 header h2 { margin: 6px 0; }
.rs-posting-examples-v480 header p { margin: 0 0 18px; color: #6c7481; }
.rs-posting-examples-v480 > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rs-posting-examples-v480 a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3e7ed;
  border-radius: 15px;
  background: #fff;
  color: #17233a;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(22, 32, 48, .05);
  transition: transform .18s ease, border-color .18s ease;
}
.rs-posting-examples-v480 a:hover { transform: translateY(-2px); border-color: #f08b69; }
.rs-posting-examples-v480 a i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #ffebe2;
  color: #d94f2b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.rs-posting-examples-v480 a span { min-width: 0; }
.rs-posting-examples-v480 a b,
.rs-posting-examples-v480 a small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-posting-examples-v480 a small { margin-top: 4px; color: #7d8490; }
.rs-posting-examples-v480 a em { color: #e95f38; font-size: 12px; font-style: normal; font-weight: 900; }

.rs-posting-example-grid-v480 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rs-posting-example-grid-v480 article {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e5e8ee;
  border-radius: 16px;
  background: #fbfcfe;
}
.rs-posting-example-grid-v480 article > b { color: #e95f38; }
.rs-fee-field-v480 { border-color: #f1d7c8 !important; background: #fffaf6 !important; }
.rs-fee-field-v480 + .rs-fee-field-v480 { border-color: #cfe8dc !important; background: #f6fcf9 !important; }

.rs-sheet-fees-v480 { display: grid; gap: 8px; min-width: 0; }
.rs-sheet-fees-v480 label { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 3px; min-width: 0; margin: 0; }
.rs-sheet-fees-v480 label > small { color: #6c7481; font-size: 10px; font-weight: 800; }
.rs-sheet-fees-v480 label > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; min-width: 0; color: #697386; font-size: 11px; }
.rs-sheet-fees-v480 input { width: 100%; min-width: 0 !important; padding: 8px 7px !important; text-align: right; }

/* 관리자 프로그램 표: 비용·기간 칸이 서로 침범하지 않도록 열과 내부 요소를 고정합니다. */
.admin-page .rs-product-sheet-v390 table { width: 1320px !important; min-width: 1320px !important; }
.rs-product-sheet-v390 th:nth-child(1) { width: 270px !important; }
.rs-product-sheet-v390 th:nth-child(2) { width: 140px !important; }
.rs-product-sheet-v390 th:nth-child(3) { width: 165px !important; }
.rs-product-sheet-v390 th:nth-child(4) { width: 115px !important; }
.rs-product-sheet-v390 th:nth-child(5) { width: 105px !important; }
.rs-product-sheet-v390 th:nth-child(6) { width: 95px !important; }
.rs-product-sheet-v390 th:nth-child(7) { width: 195px !important; }
.rs-product-sheet-v390 th:nth-child(8) { width: 70px !important; }
.rs-product-sheet-v390 th:nth-child(9) { width: 110px !important; }
.rs-product-sheet-v390 td { overflow: hidden; }
.rs-product-sheet-v390 td:nth-child(4) .rs-sheet-number-v390 { min-width: 0; }
.rs-product-sheet-v390 td:nth-child(4) .rs-sheet-number-v390 input {
  flex: 1 1 0;
  width: 0 !important;
  min-width: 0 !important;
}
.rs-product-sheet-v390 td:nth-child(4) > small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #7a8799;
  font-size: 9px;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-purchase-actions-v480 { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rs-download-button-v480 {
  background: #e95f38 !important;
  border-color: #e95f38 !important;
  box-shadow: 0 8px 18px rgba(233, 95, 56, .18);
}
.rs-download-pending-v480 {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid #ead8c9;
  border-radius: 11px;
  background: #fff8f1;
  color: #9b5a3e;
  font-size: 12px;
  font-weight: 800;
}

.rs-money-input-v483 {
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: .01em;
}

.rs-program-file-admin-v483 { margin-bottom: 22px; }
.rs-program-file-upload-v483 {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.4fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0 24px;
  padding: 18px;
  border: 1px solid #dce5df;
  border-radius: 16px;
  background: #f8fbf9;
}
.rs-program-file-upload-v483 label { min-width: 0; margin: 0; }
.rs-program-file-upload-v483 input[type="file"] { min-height: 48px; padding: 10px; background: #fff; }
.rs-program-files-table-v483 td small { display: block; margin-top: 4px; color: #7b8794; }
.rs-program-files-table-v483 td:last-child form { display: flex; gap: 8px; align-items: center; }
.rs-file-toggle-v483 { display: inline-flex !important; flex-direction: row !important; gap: 7px !important; align-items: center; margin: 0 !important; white-space: nowrap; }
.rs-file-toggle-v483 input { display: none; }
.rs-file-toggle-v483 span { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: #f1f3f5; color: #697586; font-size: 11px; font-weight: 800; }

.rs-purchase-actions-v480 { align-items: flex-end; }
.rs-program-download-title-v483 {
  flex: 0 0 100%;
  color: #16233b;
  font-size: 13px;
  text-align: right;
}
.rs-program-download-list-v483 {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 8px;
  width: 100%;
}
.rs-program-download-list-v483 .rs-download-button-v480 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 58px;
  padding: 10px 13px;
  text-align: left;
}
.rs-program-download-list-v483 .rs-download-button-v480 span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-program-download-list-v483 .rs-download-button-v480 small { margin-top: 3px; color: rgba(255,255,255,.82); font-size: 10px; }
.rs-download-pending-v480.muted { border-color: #dfe5eb; background: #f7f9fb; color: #687587; }

@media (min-width: 981px) {
  .rs-editor-steps-v380 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

@media (max-width: 760px) {
  .rs-product-fees-v480,
  .rs-card-fees-v480,
  .rs-posting-examples-v480 > div,
  .rs-posting-example-grid-v480 { grid-template-columns: 1fr; }
  .rs-product-fees-v480 > span,
  .rs-card-fees-v480 em { grid-column: auto; }
  .rs-posting-examples-v480 a { grid-template-columns: auto minmax(0, 1fr); }
  .rs-posting-examples-v480 a em { grid-column: 2; }
  .rs-purchase-history-v270 article footer { align-items: stretch !important; }
  .rs-purchase-actions-v480 { display: grid; width: 100%; }
  .rs-purchase-actions-v480 .btn,
  .rs-download-pending-v480 { width: 100%; justify-content: center; text-align: center; }
  .rs-program-file-upload-v483,
  .rs-program-download-list-v483 { grid-template-columns: 1fr; }
  .rs-program-file-upload-v483 .btn { width: 100%; }
  .rs-program-download-title-v483 { text-align: left; }
  .rs-program-files-table-v483 { overflow-x: auto; }
  .rs-program-files-table-v483 table { min-width: 760px; }
  .rs-editor-steps-v380 { display: flex !important; overflow-x: auto; scroll-snap-type: x proximity; }
  .rs-editor-steps-v380 > a { min-width: 150px; scroll-snap-align: start; }
}

/* V4.8.4 — member downloads: clear contrast, full file names, responsive cards */
.route-mypage .rs-purchase-history-v270 > article > footer {
  display: grid !important;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
  padding: 20px 24px !important;
  border-top: 1px solid #dce5ef !important;
  background: #fff !important;
  color: #17233b !important;
}
.route-mypage .rs-purchase-history-v270 > article > footer > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid #dce7f1;
  border-radius: 15px;
  background: #f5f8fb;
  color: #17233b;
}
.route-mypage .rs-purchase-history-v270 > article > footer > div:first-child small {
  color: #68778b !important;
  font-size: 11px;
  font-weight: 800;
}
.route-mypage .rs-purchase-history-v270 > article > footer > div:first-child code,
.route-mypage .rs-purchase-history-v270 > article > footer > div:first-child span {
  overflow-wrap: anywhere;
  color: #1769df !important;
  font-size: 12px;
  font-weight: 800;
}
.route-mypage .rs-purchase-actions-v480 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #ffd6c8;
  border-radius: 15px;
  background: #fff8f4;
}
.route-mypage .rs-program-download-title-v483 {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: #17233b !important;
  font-size: 16px;
  font-weight: 900;
  text-align: left;
}
.route-mypage .rs-program-download-title-v483::before {
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #f45d3d;
  content: "";
}
.route-mypage .rs-program-download-list-v483 {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.route-mypage .rs-program-download-list-v483 .rs-download-button-v480 {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid #e84e2f !important;
  border-radius: 13px;
  background: linear-gradient(135deg, #f45d3d, #e94c31) !important;
  box-shadow: 0 9px 20px rgba(233, 76, 49, .18);
}
.route-mypage .rs-program-download-list-v483 .rs-download-button-v480 span {
  display: block;
  max-width: 100%;
  overflow: visible;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.route-mypage .rs-program-download-list-v483 .rs-download-button-v480 small {
  margin-top: 6px;
  color: #fff !important;
  font-size: 11px;
  font-weight: 800;
  opacity: .9;
}
.route-mypage .rs-purchase-actions-v480 > .btn:not(.primary) {
  border-color: #cad6e2;
  background: #fff;
  color: #17233b;
  font-weight: 900;
}

/* V4.8.4 — customer file admin table and destructive action */
.rs-program-file-admin-v483 .rs-editor-heading-v100 h2 { color: #17233b; }
.rs-program-files-table-v483 {
  border: 1px solid #dce5ee;
  border-radius: 15px;
  background: #fff;
}
.rs-program-files-table-v483 table { min-width: 880px; }
.rs-program-files-table-v483 th {
  background: #eef4f8;
  color: #304158;
  font-size: 11px;
  white-space: nowrap;
}
.rs-program-files-table-v483 td {
  color: #243248;
  vertical-align: middle;
}
.rs-program-files-table-v483 td:nth-child(2) { min-width: 260px; }
.rs-admin-file-name-v484 {
  display: block;
  color: #17233b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.rs-program-files-table-v483 td small {
  max-width: 360px;
  color: #65758a;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.rs-file-state-v484 {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.rs-file-state-v484.is-visible { background: #e5f8ef; color: #087b50; }
.rs-file-state-v484.is-hidden { background: #eef1f4; color: #657284; }
.rs-file-actions-v484 { display: flex; gap: 7px; align-items: center; }
.rs-file-actions-v484 form { margin: 0 !important; }
.rs-file-actions-v484 .btn { min-width: 62px; justify-content: center; }
.rs-file-actions-v484 .danger-outline {
  border-color: #f0aa9b !important;
  background: #fff6f3 !important;
  color: #c43c25 !important;
}
.rs-file-actions-v484 .danger-outline:hover { background: #ffe8e1 !important; }

/* V4.8.4 — version location shown beside the update workflow */
.rs-version-guide-v484 {
  display: grid;
  grid-template-columns: minmax(230px, .82fr) minmax(420px, 1.45fr);
  gap: 18px 28px;
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid #f1cf9d;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf1, #fff 62%);
  box-shadow: 0 12px 28px rgba(61, 45, 26, .07);
}
.rs-version-guide-v484 > div > span { color: #e65e32; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.rs-version-guide-v484 h2 { margin: 7px 0 8px; color: #17233b; font-size: 21px; }
.rs-version-guide-v484 p { margin: 0; color: #68778b; font-size: 12px; line-height: 1.7; }
.rs-version-guide-v484 ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rs-version-guide-v484 li { display: flex; gap: 9px; align-items: center; min-width: 0; padding: 10px 12px; border: 1px solid #e4e9ef; border-radius: 12px; background: #fff; color: #35445a; font-size: 11px; }
.rs-version-guide-v484 li b { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; border-radius: 50%; background: #f45d3d; color: #fff; }
.rs-version-guide-v484 code { color: #175fbf; font-weight: 800; }
.rs-version-guide-v484 pre { grid-column: 1 / -1; margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid #dce5ee; border-radius: 12px; background: #17233b; color: #f8fbff; font-size: 12px; line-height: 1.65; }
.rs-version-guide-v484 > small { grid-column: 1 / -1; color: #685647; line-height: 1.6; }
.rs-auto-update-panel-v484 { margin-bottom: 18px; }
.rs-update-history-v484 { border: 1px solid #dce5ee; border-radius: 15px; background: #fff; }

@media (max-width: 900px) {
  .route-mypage .rs-purchase-history-v270 > article > footer,
  .rs-version-guide-v484 { grid-template-columns: 1fr !important; }
  .rs-version-guide-v484 ol { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .route-mypage .rs-purchase-history-v270 > article > footer { padding: 14px !important; }
  .route-mypage .rs-program-download-list-v483 { grid-template-columns: 1fr; }
  .route-mypage .rs-purchase-actions-v480 { padding: 13px; }
  .rs-version-guide-v484 { padding: 18px; }
  .rs-version-guide-v484 h2 { font-size: 18px; }
}
