.fa-page {
  display: grid;
  gap: 20px;
  min-width: 0;
  color: #151824;
}
.fa-page .fa-rules, .fa-page .fa-detail, .fa-page .fa-day {
  border: 1px solid #e5e4e8;
  background: #fff;
}
.fa-rules {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 20px;
  border-radius: 18px;
}
.fa-rules strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fa-rules strong::before { content: ''; width: 8px; height: 8px; background: #50bf71; border-radius: 50%; }
.fa-rules strong.fa-rules-off::before { background: #a1a1aa; }
.fa-rules p { max-width: 680px; margin: 6px 0 0; }
.fa-rules p, .fa-rules-path, .fa-detail-description, .fa-detail-empty, .fa-scoring-note { font-size: 13px; line-height: 1.55; }
.fa-rules-path { display: inline-flex; align-items: center; gap: 7px; flex: 0 1 auto; }
.fa-rules-path svg { flex: none; }
.fa-calendar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(111px, 1fr); gap: 9px; overflow-x: auto; padding: 1px 0 3px; }
.fa-page .fa-day { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px; min-width: 0; text-align: left; color: inherit; border-radius: 14px; }
.fa-day:hover { border-color: #cf8ba6; }
.fa-page .fa-day[aria-pressed="true"] { border-color: #bd345f; box-shadow: inset 0 0 0 1px #bd345f, 0 3px 7px #84143813; }
.fa-day:focus-visible, .fa-generate:focus-visible { outline: 2px solid #a82753; outline-offset: -3px; }
.fa-weekday { font-size: 11px; font-weight: 650; line-height: 1.45; letter-spacing: .035em; text-transform: uppercase; color: #55555c; }
.fa-day-date { font-size: 20px; line-height: 1.35; letter-spacing: -.035em; }
.fa-day-count { font-size: 11.5px; line-height: 1.45; }
.fa-tag { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; padding: 3px 8px; border: 1px solid #e4e4e8; border-radius: 999px; background: #f7f7f8; color: #4b4d55; font-size: 10.5px; font-weight: 650; line-height: 1.5; }
.fa-tag-active { background: #fbf3e5; color: #794600; border-color: #e4c794; }
.fa-tag-scheduled { background: #f4effe; color: #553398; border-color: #e3d8f4; }
.fa-tag-unavailable { background: #fcf7e6; color: #8b6b1c; border-color: #eddfaa; }
.fa-tag-ready { background: #eaf7ed; color: #26703d; border-color: #cee8d3; }
.fa-detail { border-radius: 17px; overflow: hidden; }
.fa-detail-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 17px 20px; }
.fa-detail h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; font-size: 16px; letter-spacing: -.025em; font-weight: 700; }
.fa-detail-description { margin: 5px 0 0; }
.fa-page .fa-generate { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 14px; color: #374151; font-weight: 650; font-size: 12px; }
.fa-generate:hover { background: #f8f8f9; }
.fa-detail-body { border-top: 1px solid #eeedf0; }
.fa-detail-empty { margin: 0; padding: 24px 20px; text-align: center; color: #686974; }
.fa-products { display: grid; margin: 0; padding: 0; list-style: none; }
.fa-product { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid #efedf1; font-size: 12px; }
.fa-product:last-child { border-bottom: 0; }
.fa-product .product-thumb { flex: none; }
.fa-product-name { flex: 1 1 auto; }
.fa-product-name b, .fa-product-name small { display: block; }
.fa-product-name small { margin-top: 3px; color: #75747b; }
.fa-suggest-value { font-weight: 600; white-space: nowrap; }
.fa-scoring-note { margin: 0; padding: 12px 20px; border-top: 1px solid #eeedf0; color: #666874; }
@media (max-width: 850px) {
  .fa-rules { align-items: flex-start; flex-direction: column; gap: 12px; }
  .fa-calendar { grid-auto-columns: 115px; }
}
@media (max-width: 580px) {
  .fa-rules, .fa-detail-heading { padding: 16px; }
  .fa-product { padding: 10px 12px; gap: 8px; }
}
