@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/manrope-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/manrope-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/manrope-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/manrope-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tblr-font-sans: Manrope, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --tblr-body-font-family: var(--tblr-font-sans);
  --tblr-primary: #c23b62;
  --tblr-primary-rgb: 194, 59, 98;
}

body {
  font-family: var(--tblr-font-sans);
}

.navbar-vertical .navbar-brand,
.navbar-vertical.navbar-expand-lg .navbar-brand {
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding-left: var(--tblr-page-padding);
  padding-right: var(--tblr-page-padding);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-lockup img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}

.sidebar-foot {
  margin-top: auto;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.archive-grid > .card {
  height: 100%;
  margin: 0;
}

.archive-grid .span-2 {
  grid-column: 1 / -1;
}

.field-grid {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.9rem 1.25rem;
  margin: 0;
}

.field-grid dt,
.field-grid dd {
  margin: 0;
}

.field-grid dt {
  color: var(--tblr-secondary);
}

.field-grid .wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.9rem 1.25rem;
}

.archive-grid .span-2 .field-grid {
  grid-template-columns: 7.5rem minmax(0, 1fr) 7.5rem minmax(0, 1fr);
}

.row-cards > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.row-cards > [class*="col-"] > .card {
  flex: 1 1 auto;
  width: 100%;
}

.card-link:hover {
  border-color: var(--tblr-primary);
}

.form-label.required::after {
  content: " *";
  color: var(--tblr-danger);
}

.work-card {
  overflow: hidden;
}

.work-cover {
  height: 10.5rem;
  background: #f6e7ec;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-cover-name span {
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.work-form-preview {
  display: block;
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.75rem;
}

.score-row + .score-row {
  margin-top: 0.9rem;
}

.score-basis {
  margin-top: 0.35rem;
  font-weight: 600;
}

.score-source,
.score-note {
  color: var(--tblr-secondary);
  font-size: 0.82rem;
}

.month-grid + .month-grid {
  margin-bottom: 0.35rem;
}

.account-corner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.account-name {
  font-weight: 600;
}

.account-corner details {
  position: relative;
}

.account-corner summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--tblr-border-color);
  border-radius: 8px;
  padding: 0.25rem 0.7rem;
  background: var(--tblr-bg-surface);
}

.account-corner summary::-webkit-details-marker {
  display: none;
}

.account-corner form {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: 16rem;
  z-index: 20;
  padding: 0.9rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: 8px;
  background: var(--tblr-bg-surface);
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.note-meta {
  color: var(--tblr-secondary);
  font-size: 0.82rem;
}

.evidence-chip {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--tblr-bg-surface-secondary);
  font-size: 0.8rem;
}

.score-track {
  height: 0.45rem;
  background: var(--tblr-bg-surface-secondary);
  border-radius: 99px;
  overflow: hidden;
}

.score-fill {
  height: 0.45rem;
  background: var(--tblr-primary);
  border-radius: 99px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.month-head {
  color: var(--tblr-secondary);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  text-align: center;
}

.day-cell {
  min-height: 2rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: transparent;
}

.day-met { background: #e7f5ec; color: #1f7a45; }
.day-short { background: #fff3d6; color: #8a5a00; }
.day-miss { background: #fde8d4; color: #9a4b12; }
.day-absent { background: #fde8e8; color: #a12626; }
.day-none { background: #eef1f4; color: #5c6770; }
.day-blank { background: #f4f6f8; color: #8b95a1; }

.legend-swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  display: inline-block;
  margin-right: 0.3rem;
}

@media (max-width: 991.98px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-grid .span-2 {
    grid-column: auto;
  }
}
