.weekly-b {
  margin: 20px 27px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.weekly-b-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 27px 30px;
  border: 1px solid #e1eaf1;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px #173e620b;
}
.weekly-b-hero > div:first-child { max-width: 680px; }
.weekly-b-hero h2 { margin: 7px 0 8px; color: #183047; font-size: 28px; line-height: 1.08; letter-spacing: -.04em; }
.weekly-b-hero p { margin: 0; color: #6d7f90; font-size: 13px; line-height: 1.5; }
.weekly-b-hero-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; color: #315e8f; border-radius: 15px; background: #eaf3fa; font-size: 22px; font-weight: 900; }

.weekly-date-nav {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #e1eaf1;
  border-radius: 16px;
  background: #fff;
}
.weekly-date-nav > div { text-align: center; }
.weekly-date-nav strong { display: block; color: #294861; font-size: 13px; }
.weekly-date-nav span { display: block; margin-top: 3px; color: #8a9aa8; font-size: 9px; }
.weekly-date-arrow, .weekly-current-button {
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #315e8f;
  background: #edf4f9;
  cursor: pointer;
  font: 800 14px/1 Arial, sans-serif;
}
.weekly-date-arrow { width: 36px; padding: 0; }
.weekly-current-button { padding: 0 13px; font-size: 11px; }
.weekly-date-arrow:hover, .weekly-current-button:hover { background: #dfeaf3; }
.weekly-date-arrow:focus-visible, .weekly-current-button:focus-visible { outline: 3px solid #efb95e; outline-offset: 2px; }

.weekly-progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .38fr);
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 15px;
  background: #173e62;
  color: #fff;
}
.weekly-progress-card > div > span { display: block; color: #afc5d6; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.weekly-progress-card strong { display: block; margin-top: 5px; font-size: 12px; }
.weekly-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #ffffff2e; }
.weekly-progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: #83c5a2; transition: width .24s ease; }

.weekly-b-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .36fr); gap: 14px; margin-top: 14px; }
.weekly-b-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e1eaf1;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 28px #173e620b;
}
.weekly-b-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.weekly-b-kicker { display: block; margin-bottom: 5px; color: #8495a4; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.weekly-b-card h3 { margin: 0; color: #183047; font-size: 18px; letter-spacing: -.025em; }
.weekly-b-count { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 7px; border-radius: 9px; background: #f0f4f7; color: #526b81; font-size: 10px; font-weight: 900; }
.weekly-b .weekly-goals-list { gap: 7px; }
.weekly-b .weekly-goal-card {
  min-height: 51px;
  gap: 13px;
  padding: 12px 14px;
  border-color: #cbdbe7;
  border-radius: 12px;
  background: #e6eff6;
  color: #243e55;
  font-size: 13px;
  box-shadow: 0 3px 10px #173e6208;
}
.weekly-b .weekly-goal-card:hover { border-color: #aebfce; background: #dfeaf2; }
.weekly-b .weekly-goal-card input { width: 18px; height: 18px; accent-color: #4b9d72; }
.weekly-b .weekly-goal-card.goal-done { border-color: #e0e6ea; background: #f3f5f6; color: #94a2ad; box-shadow: none; }
.weekly-b .weekly-goal-card.goal-done span { text-decoration: none; }
.weekly-b .weekly-goals-list > .muted { padding: 24px 4px; }

.weekly-b-guide {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  align-self: start;
  padding: 20px;
  border: 1px solid #eee7db;
  border-radius: 18px;
  background: #f8f5ef;
}
.weekly-b-guide-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: #765f3c; border-radius: 10px; background: #eee5d5; font-weight: 900; }
.weekly-b-guide strong { display: block; color: #3d4650; font-size: 13px; }
.weekly-b-guide p { margin: 7px 0 12px; color: #726c63; font-size: 11px; line-height: 1.5; }
.weekly-b-guide a { color: #315e8f; font-size: 11px; font-weight: 800; text-decoration: none; }
.weekly-b-guide a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .weekly-b { margin: 18px 15px 0; }
  .weekly-b-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); }
}
@media (max-width: 760px) {
  .weekly-b-layout { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .weekly-b { margin: 14px 2px 0; }
  .weekly-b-hero { padding: 22px 19px; border-radius: 18px; }
  .weekly-b-hero-mark { width: 42px; height: 42px; }
  .weekly-date-nav { grid-template-columns: 34px minmax(0, 1fr) 34px; padding: 9px; }
  .weekly-current-button { display: none; }
  .weekly-date-nav strong { font-size: 11px; }
  .weekly-progress-card { grid-template-columns: 1fr; gap: 12px; }
  .weekly-b-card { padding: 19px; border-radius: 17px; }
}
