/* ==========================================================================
   ОЦЕНКИ v2 — понятный экран выставления оценок
   ========================================================================== */

.sc { display: flex; flex-direction: column; gap: 14px; }

.sc-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.sc-head__title { flex: 1; min-width: 240px; }
.sc-head__title h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: 9px;
}
.sc-head__title h2 i { color: var(--c-brand); }
.sc-head__title p { margin: 4px 0 0; color: var(--c-muted); font-size: .84rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sc-head__actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sc-head__actions .cx-btn { padding: 9px 13px; font-size: .82rem; }

.sc-controls {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--c-shadow-sm);
}
.sc-control { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 0 1 auto; }
.sc-control span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); }
.sc-control select, .sc-select {
  height: 38px;
  min-width: 160px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-size: .84rem;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c8798' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.sc-control select:focus, .sc-select:focus { outline: none; border-color: var(--c-brand); box-shadow: var(--c-ring); }
.sc-control select:disabled { opacity: .55; cursor: not-allowed; }
.sc-search {
  position: relative;
  display: flex; align-items: center;
  flex: 1 1 220px;
  min-width: 180px;
  height: 38px;
  align-self: flex-end;
}
.sc-search i { position: absolute; left: 11px; color: var(--c-muted); font-size: .8rem; }
.sc-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-size: .84rem;
}
.sc-search input:focus { outline: none; border-color: var(--c-brand); box-shadow: var(--c-ring); }

.sc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sc-stat {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--c-border);
  border-radius: 13px;
  background: var(--c-surface);
  box-shadow: var(--c-shadow-sm);
  min-width: 0;
}
.sc-stat__icon {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-brand-soft); color: var(--c-brand);
  font-size: .92rem;
}
.sc-stat--success .sc-stat__icon { background: rgba(5, 150, 105, .12); color: #059669; }
.sc-stat--warning .sc-stat__icon { background: rgba(217, 119, 6, .12); color: #d97706; }
.sc-stat--muted .sc-stat__icon { background: var(--c-surface-2); color: var(--c-muted); }
.sc-stat__body { min-width: 0; flex: 1; }
.sc-stat__value { font-size: 1.18rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.sc-stat__label { font-size: .71rem; font-weight: 600; color: var(--c-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-meter { height: 5px; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-border); overflow: hidden; margin-top: 6px; }
.sc-meter span { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: inherit; }
.sc-meter--success span { background: linear-gradient(90deg, #34d399, #059669); }

.sc-body {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: var(--c-shadow-sm);
  overflow: hidden;
}
.sc-subjects {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  background: var(--c-surface-2);
}
.sc-subject-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--c-text-2);
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.sc-subject-tab:hover { background: var(--c-surface); color: var(--c-text); }
.sc-subject-tab.is-active { background: var(--c-surface); color: var(--c-brand); border-color: var(--c-border); box-shadow: var(--c-shadow-sm); }
.sc-subject-tab__count {
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--c-brand-soft); color: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .66rem; font-weight: 750; padding: 0 5px;
}
.sc-subject-tab__count.is-empty { background: var(--c-surface-2); color: var(--c-muted); }

.sc-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
}
.sc-toolbar__left, .sc-toolbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-toolbar__right { margin-left: auto; }
.sc-linkbtn {
  border: none; background: transparent; color: var(--c-brand);
  font: inherit; font-size: .78rem; font-weight: 650;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 2px;
}
.sc-linkbtn:hover { text-decoration: underline; }
.sc-howto { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--c-muted); }
.sc-howto i { color: var(--c-brand); font-size: .7rem; }
.sc-selection { font-size: .78rem; color: var(--c-muted); }
.sc-save-status { font-size: .74rem; color: var(--c-success); font-weight: 650; opacity: 0; transition: opacity .2s; }
.sc-save-status.is-visible { opacity: 1; }

.sc-table-wrap { max-height: calc(100vh - 430px); min-height: 300px; overflow: auto; }
.sc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .84rem; }
.sc-table thead th {
  position: sticky; top: 0; z-index: 3;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: .65rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 7px;
  white-space: nowrap;
}
.sc-table tbody td {
  border-bottom: 1px solid var(--c-border);
  padding: 7px;
  background: var(--c-surface);
}
.sc-table tbody tr:hover td { background: var(--c-brand-soft); }
.sc-check-col { width: 38px; text-align: center; position: sticky; left: 0; z-index: 2; background: var(--c-surface-2); }
.sc-table tbody .sc-check-col { background: var(--c-surface); }
.sc-student-col {
  position: sticky; left: 38px; z-index: 2;
  min-width: 230px; max-width: 300px;
  background: var(--c-surface-2) !important;
  box-shadow: 1px 0 0 var(--c-border);
}
.sc-table tbody .sc-student-col { background: var(--c-surface) !important; }
.sc-student { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sc-student__main { min-width: 0; flex: 1; }
.sc-student__main b { display: block; font-size: .82rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-student__main small { display: block; font-size: .68rem; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-journal-btn {
  width: 24px; height: 24px; border-radius: 7px; border: none; background: transparent;
  color: var(--c-muted); cursor: pointer; flex: 0 0 24px;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .45;
}
.sc-student:hover .sc-journal-btn { opacity: 1; color: var(--c-brand); background: var(--c-brand-soft); }

.sc-topic-col { min-width: 64px; text-align: center; }
.sc-topic-name { display: block; font-size: .7rem; font-weight: 700; color: var(--c-text-2); text-transform: none; letter-spacing: 0; }
.sc-topic-date { display: block; font-size: .62rem; color: var(--c-muted); font-weight: 500; margin-top: 1px; text-transform: none; letter-spacing: 0; }
.sc-subject-col { min-width: 64px; text-align: center; }
.sc-subject-col span { display: block; font-size: .62rem; color: var(--c-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.sc-subject-col.is-disabled { opacity: .45; }
.sc-total-col, .sc-total-cell { text-align: center; min-width: 66px; background: var(--c-surface-2) !important; border-left: 1px solid var(--c-border); }
.sc-total-col { text-transform: uppercase; }

.sc-cell, .sc-final-cell {
  text-align: center;
  cursor: pointer;
  transition: background .12s ease, transform .08s ease;
  min-width: 58px;
  height: 40px;
  user-select: none;
}
.sc-cell:hover { background: var(--c-brand-soft) !important; }
.sc-cell:active { transform: scale(.96); }
.sc-cell:focus-visible { outline: 2px solid var(--c-brand); outline-offset: -2px; }
.sc-cell.is-saving { opacity: .55; pointer-events: none; }
.sc-cell.is-filled { background: var(--c-surface); }
.sc-final-cell { cursor: pointer; }
.sc-final-cell:hover { background: var(--c-brand-soft) !important; }
.sc-final-cell.is-disabled { cursor: default; opacity: .5; }
.sc-empty-score { color: var(--c-muted); opacity: .55; font-size: 1rem; font-weight: 500; }
.sc-cell:hover .sc-empty-score { opacity: 1; color: var(--c-brand); }

.sc-score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 7px;
  border-radius: 8px;
  font-size: .82rem; font-weight: 750;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.sc-score--5 { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.sc-score--4 { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.sc-score--3 { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.sc-score--2 { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.sc-score--1 { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
body.dark-theme .sc-score--5 { background: #123527; color: #6ee7b7; border-color: #1c4b36; }
body.dark-theme .sc-score--4 { background: #12294a; color: #93c5fd; border-color: #1c3a63; }
body.dark-theme .sc-score--3 { background: #33260d; color: #fcd34d; border-color: #4a3712; }
body.dark-theme .sc-score--2 { background: #3a2110; color: #fdba74; border-color: #502e16; }
body.dark-theme .sc-score--1 { background: #3b1717; color: #fca5a5; border-color: #522020; }

.sc-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 46px 20px; text-align: center; color: var(--c-muted);
}
.sc-empty i { font-size: 1.9rem; opacity: .4; }
.sc-empty h3 { margin: 0; font-size: 1rem; color: var(--c-text); font-weight: 650; }
.sc-empty p { margin: 0; font-size: .86rem; line-height: 1.5; max-width: 460px; }

/* ---------------------------------------------------------- Пикер оценки */
.sc-picker {
  position: fixed;
  width: 240px;
  padding: 10px;
  border-radius: 13px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow-lg);
  z-index: 1200;
}
.sc-picker__title { font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: 7px; }
.sc-picker__row { display: flex; gap: 5px; }
.sc-picker__score {
  flex: 1; height: 40px; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 750; cursor: pointer;
}
.sc-picker__score:hover { transform: translateY(-1px); filter: brightness(.97); }
.sc-picker__score.is-active { box-shadow: 0 0 0 2px var(--c-brand); }
.sc-picker__clear {
  width: 100%; margin-top: 7px; padding: 8px;
  border-radius: 9px; border: 1px solid var(--c-border); background: var(--c-surface-2);
  color: var(--c-text-2); font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer;
}
.sc-picker__clear:hover { color: var(--c-danger); }
.sc-picker__hint { margin-top: 7px; font-size: .66rem; color: var(--c-muted); text-align: center; }

/* ---------------------------------------------------------- Массовая форма */
.sc-mass-dialog { width: min(760px, 96vw) !important; max-width: 760px !important; }
.sc-mass-section { margin-bottom: 16px; }
.sc-mass-section h3 { margin: 0 0 8px; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); }
.sc-scopes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-scope {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 11px;
  background: var(--c-surface);
  cursor: pointer;
}
.sc-scope:hover { border-color: rgba(37, 99, 235, .35); }
.sc-scope.is-selected { border-color: var(--c-brand); background: var(--c-brand-soft); box-shadow: 0 0 0 1px var(--c-brand); }
.sc-scope.is-disabled { opacity: .5; cursor: not-allowed; }
.sc-scope input { margin-top: 2px; accent-color: var(--c-brand); }
.sc-scope__body { min-width: 0; }
.sc-scope__body b { display: block; font-size: .82rem; font-weight: 650; }
.sc-scope__body small { display: block; margin-top: 2px; font-size: .72rem; color: var(--c-muted); }
.sc-mass-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.sc-mass-hint { margin-top: 5px; font-size: .72rem; color: var(--c-muted); }
.sc-mass-scores { display: flex; gap: 5px; flex-wrap: wrap; }
.sc-mass-score {
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 750; cursor: pointer;
}
.sc-mass-score.is-selected { box-shadow: 0 0 0 2px var(--c-brand); }
.sc-mass-clear {
  height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--c-border); background: var(--c-surface-2);
  color: var(--c-text-2); font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer;
}
.sc-mass-clear.is-selected { border-color: var(--c-danger); color: var(--c-danger); background: rgba(220, 38, 38, .07); }
.sc-mass-preview {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--c-brand-soft);
  border: 1px solid rgba(37, 99, 235, .2);
  font-size: .8rem;
  line-height: 1.45;
  color: var(--c-text-2);
}
.sc-mass-preview i { color: var(--c-brand); }
.sc-mass-preview b { color: var(--c-text); }

/* --------------------------------------------------------------- Прогресс */
.sc-progress-dialog { max-width: 440px !important; text-align: center; padding: 26px 24px 20px !important; }
.sc-progress-icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-brand-soft); color: var(--c-brand);
  font-size: 1.2rem; margin-bottom: 12px;
}
.sc-progress-dialog h2 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.sc-progress-dialog p { margin: 0 0 14px; font-size: .82rem; color: var(--c-muted); }
.sc-progress-bar { height: 9px; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-border); overflow: hidden; margin-bottom: 16px; }
.sc-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .2s ease; }

@media (max-width: 1200px) {
  .sc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-table-wrap { max-height: calc(100vh - 480px); }
}
@media (max-width: 900px) {
  .sc-head__actions { width: 100%; }
  .sc-head__actions .cx-btn { flex: 1; justify-content: center; }
  .sc-control { flex: 1 1 160px; }
  .sc-search { flex: 1 1 100%; }
  .sc-scopes, .sc-mass-grid { grid-template-columns: 1fr; }
  .sc-table { min-width: 760px; }
  .sc-table-wrap { max-height: 60vh; }
  .sc-student-col { min-width: 190px; }
}
@media (max-width: 600px) {
  .sc-stats { grid-template-columns: 1fr 1fr; }
  .sc-stat { padding: 9px 10px; gap: 9px; }
  .sc-stat__icon { width: 34px; height: 34px; flex-basis: 34px; }
  .sc-stat__value { font-size: 1.02rem; }
  .sc-stat__label { font-size: .66rem; }
  .sc-head__title h2 { font-size: 1.2rem; }
  .sc-toolbar { padding: 8px 10px; }
  .sc-toolbar__right { margin-left: 0; width: 100%; }
  .sc-toolbar__right .cx-btn { width: 100%; }
}

/* ==========================================================================
   ЖУРНАЛ УЧАСТНИКА v2
   ========================================================================== */
.journal-dialog { width: min(1120px, 97vw) !important; max-width: 1120px !important; max-height: 92vh; display: flex; flex-direction: column; }
.journal-head { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--c-border); background: var(--c-surface); }
.journal-head__main { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.journal-avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; background: var(--c-brand-soft); color: var(--c-brand); display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: .95rem; }
.journal-head h2 { margin: 0; font-size: 1.1rem; font-weight: 750; display: flex; align-items: center; gap: 7px; }
.journal-head h2 i { color: var(--c-brand); }
.journal-head__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--c-muted); font-size: .78rem; }
.journal-head__meta i { margin-right: 3px; opacity: .7; }
.journal-head__right { display: flex; align-items: center; gap: 10px; }
.journal-overall { text-align: center; padding: 6px 11px; border-radius: 10px; background: var(--c-surface-2); border: 1px solid var(--c-border); }
.journal-overall span { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); }
.journal-overall b { font-size: 1.2rem; color: var(--c-brand); }
.journal-legend { padding: 8px 18px; font-size: .76rem; color: var(--c-muted); background: var(--c-brand-soft); border-bottom: 1px solid var(--c-border); }
.journal-legend i { color: var(--c-brand); margin-right: 5px; }
.journal-body { flex: 1; overflow: auto; padding: 12px 16px 16px; }
.journal-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; min-width: 640px; }
.journal-table th { text-align: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); padding: 0 4px 4px; font-weight: 700; }
.journal-table th.journal-subject-col { text-align: left; min-width: 190px; }
.journal-table th.journal-final-col { color: var(--c-brand); min-width: 60px; }
.journal-table td { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 5px; }
.journal-table td:first-child { border-left: 1px solid var(--c-border); border-radius: 9px 0 0 9px; }
.journal-table td:last-child { border-right: 1px solid var(--c-border); border-radius: 0 9px 9px 0; }
.journal-subject-cell { text-align: left; font-size: .8rem; font-weight: 650; color: var(--c-text-2); padding-left: 10px !important; }
.journal-cell-wrap { text-align: center; }
.journal-cell-wrap.is-missing { color: var(--c-muted); opacity: .45; }
.journal-cell { width: 40px; height: 34px; border-radius: 8px; border: 1px dashed var(--c-border-strong); background: transparent; color: var(--c-muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: transform .12s, background .12s, border-color .12s; }
.journal-cell:hover { transform: translateY(-1px); border-color: var(--c-brand); color: var(--c-brand); background: var(--c-brand-soft); }
.journal-cell.is-5 { background: rgba(5, 150, 105, .14); border: 1px solid rgba(5, 150, 105, .35); color: #047857; }
.journal-cell.is-4 { background: rgba(37, 99, 235, .12); border: 1px solid rgba(37, 99, 235, .3); color: #1d4ed8; }
.journal-cell.is-3 { background: rgba(217, 119, 6, .14); border: 1px solid rgba(217, 119, 6, .32); color: #b45309; }
.journal-cell.is-2 { background: rgba(220, 38, 38, .12); border: 1px solid rgba(220, 38, 38, .3); color: #b91c1c; }
.journal-final-cell { text-align: center; }
.journal-final { display: inline-flex; min-width: 32px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; font-weight: 750; font-size: .84rem; background: var(--c-brand-soft); color: var(--c-brand); }
.journal-final.is-5 { background: rgba(5, 150, 105, .14); color: #047857; }
.journal-final.is-4 { background: rgba(37, 99, 235, .12); color: #1d4ed8; }
.journal-final.is-3 { background: rgba(217, 119, 6, .14); color: #b45309; }
.journal-final.is-2 { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.journal-foot { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--c-border); background: var(--c-surface-2); font-size: .74rem; color: var(--c-muted); }
.journal-foot span { flex: 1; }
.journal-foot i { color: var(--c-brand); }
.journal-empty { padding: 26px; text-align: center; color: var(--c-muted); }
.journal-empty i { font-size: 1.6rem; opacity: .5; }
.journal-score-menu { position: fixed; z-index: 20500; width: 196px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--c-shadow-lg); padding: 9px; animation: journal-menu-in .13s ease-out; }
.journal-score-menu__head { font-size: .7rem; color: var(--c-muted); line-height: 1.3; margin: 0 2px 7px; max-height: 2.6em; overflow: hidden; }
.journal-score-menu__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.journal-score-menu__grid button { height: 38px; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text); font: inherit; font-weight: 750; cursor: pointer; }
.journal-score-menu__grid button.is-5 { background: rgba(5, 150, 105, .14); color: #047857; border-color: rgba(5, 150, 105, .3); }
.journal-score-menu__grid button.is-4 { background: rgba(37, 99, 235, .12); color: #1d4ed8; border-color: rgba(37, 99, 235, .3); }
.journal-score-menu__grid button.is-3 { background: rgba(217, 119, 6, .14); color: #b45309; border-color: rgba(217, 119, 6, .3); }
.journal-score-menu__grid button.is-2 { background: rgba(220, 38, 38, .12); color: #b91c1c; border-color: rgba(220, 38, 38, .3); }
.journal-score-menu__grid button:hover { transform: translateY(-1px); }
.journal-score-menu__clear { width: 100%; margin-top: 6px; border: none; background: transparent; color: var(--c-muted); font: inherit; font-size: .74rem; padding: 6px; border-radius: 7px; cursor: pointer; }
.journal-score-menu__clear:hover { background: rgba(220, 38, 38, .08); color: var(--c-danger); }
@keyframes journal-menu-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .journal-head { flex-direction: column; }
  .journal-head__right { width: 100%; justify-content: space-between; }
  .journal-body { padding: 8px; }
  .journal-foot { flex-wrap: wrap; }
  .journal-foot span { flex-basis: 100%; }
}
