:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #18202f;
  --muted: #7c8696;
  --line: #e5e9ef;
  --blue: #3867d6;
  --teal: #19977f;
  --violet: #7456c8;
  --amber: #d8872d;
  --red: #cf4d5d;
  --shadow: 0 12px 28px rgba(31, 43, 67, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.is-hidden {
  display: none !important;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(56, 103, 214, 0.06), rgba(25, 151, 127, 0.03)),
    var(--bg);
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.login-card label {
  display: block;
  margin-top: 14px;
}

.login-card label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.login-card input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.login-submit {
  width: 100%;
  margin-top: 18px;
}

.login-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #c84d5a;
  font-size: 12px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  padding: 24px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand,
.profile-strip,
.topbar,
.dashboard,
.content-header,
.notes-grid,
.grade-scale {
  display: flex;
}

.brand {
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #3867d6, #19977f);
}

.brand strong,
.brand span,
.sidebar-card b,
.sidebar-card p {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav a,
.nav button {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 8px;
  color: #6f7988;
  text-decoration: none;
  font-size: 14px;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav a.active,
.nav button.active {
  background: #eaf0ff;
  color: var(--blue);
  font-weight: 700;
}

.sidebar-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  padding: 14px;
  border: 1px solid #e7ecf3;
  border-radius: 8px;
  background: #fafbfc;
}

.logout-button {
  width: 100%;
  margin-top: 14px;
}

.sidebar-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.main {
  margin-left: 236px;
  padding: 28px 36px 40px;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.crumb {
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary,
.secondary,
.tab,
.filter-chip {
  height: 36px;
  border-radius: 8px;
}

.icon-button {
  width: 36px;
  background: #fff;
  color: #536071;
  border: 1px solid var(--line);
}

.primary {
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.secondary {
  padding: 0 16px;
  color: #536071;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.profile-strip {
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-strip label {
  flex: 1;
  min-width: 150px;
}

.profile-strip span,
.panel-title small,
.content-header p,
.note-panel span {
  color: var(--muted);
  font-size: 12px;
}

.profile-strip input,
.profile-strip select {
  width: 100%;
  height: 34px;
  margin-top: 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

.state-pill {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7ea;
  color: var(--amber);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard {
  gap: 16px;
  margin-top: 18px;
}

.panel,
.table-panel,
.note-panel,
.grade-scale {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  flex: 1;
  padding: 18px;
}

.score-panel {
  flex: 1.05;
}

.panel-title,
.content-header,
.note-panel > div,
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title span {
  font-weight: 800;
}

.score-content {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}

.score-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) 0 0%, #edf1f6 0% 100%);
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

.score-ring strong,
.score-ring span {
  position: relative;
  z-index: 1;
}

.score-ring strong {
  align-self: end;
  font-size: 34px;
  line-height: 1;
}

.score-ring span {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
}

.grade-box b {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--blue);
  background: #eaf0ff;
}

.grade-box p {
  max-width: 260px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.score-panel footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.bar-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 14px;
  margin-top: 18px;
}

.bar-item {
  min-width: 0;
  display: grid;
  align-items: end;
  gap: 8px;
  height: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.bar {
  width: 100%;
  min-height: 12px;
  border-radius: 8px 8px 3px 3px;
  background: var(--blue);
  position: relative;
}

.bar.teal {
  background: var(--teal);
}

.bar.violet {
  background: var(--violet);
}

.bar.amber {
  background: var(--amber);
}

.bar.slate {
  background: #566273;
}

.bar b {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  color: #455064;
  font-size: 12px;
}

.progress-track {
  height: 8px;
  margin: 22px 0 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf1f6;
}

.progress-track div {
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: var(--teal);
  transition: width 0.25s ease;
}

.progress-panel li {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  color: #586475;
  font-size: 13px;
}

.progress-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
}

.green {
  background: var(--teal);
}

.amber {
  background: var(--amber);
}

.red {
  background: var(--red);
}

.link {
  margin-top: 8px;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}

/* 表格单元格里的文字按钮不需要额外的顶边距，否则会比同行内容低一截。 */
td .link {
  margin-top: 0;
}

.content-header {
  margin: 30px 0 12px;
}

.content-header h2,
.note-panel h2 {
  font-size: 18px;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  padding: 0 14px;
  background: #fff;
  color: #647084;
  border: 1px solid var(--line);
}

.tab.active {
  color: #fff;
  background: #39465a;
}

.table-panel {
  overflow-x: auto;
}

.table-panel table {
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
}

/* 备注列要多放一排缩略图，整表跟着加宽，免得挤掉“考核标准”的正文空间。 */
.table-panel .metric-table {
  min-width: 1280px;
}

/* 考核明细表固定各列宽度，把宽度留给“考核标准”这一列长文本。 */
.metric-table th:nth-child(1) {
  width: 158px;
}

.metric-table th:nth-child(2) {
  width: 84px;
}

.metric-table th:nth-child(3) {
  width: 148px;
}

.metric-table th:nth-child(4) {
  width: 104px;
}

.metric-table th:nth-child(5) {
  width: 176px;
}

.metric-table th:nth-child(7) {
  width: 96px;
}

.metric-table th:nth-child(8) {
  width: 210px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  height: 44px;
  color: #768194;
  background: #fafbfc;
  font-weight: 700;
}

td {
  color: #566273;
}

td b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

td small {
  color: var(--muted);
}

.dimension {
  min-width: 120px;
}

.dimension .code {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  background: var(--blue);
}

.dimension .code.teal {
  background: var(--teal);
}

.dimension .code.violet {
  background: var(--violet);
}

.dimension .code.amber {
  background: var(--amber);
}

.dimension .code.slate {
  background: #566273;
}

.metric-input,
.score-input {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fcfdff;
}

.metric-input {
  width: 100%;
  padding: 0 10px;
}

.input-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.remark-input {
  width: 100%;
}

.remark-images {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.image-thumb {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f0f3f9;
  overflow: hidden;
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}

.image-remove {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 0 0 0 6px;
  background: rgba(20, 26, 38, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.image-remove:hover {
  background: var(--red, #d9534f);
}

.image-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.image-add:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* 原生 file 控件长得和整体差太远，只留下 label 当按钮用。 */
.image-add input[type="file"] {
  display: none;
}

.score-input {
  width: 64px;
  padding: 0 8px;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.score-input:focus,
.metric-input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 103, 214, 0.1);
}

.score-input.danger {
  color: var(--red);
  background: #fff8f8;
  border-color: #f0c5cc;
}

.owner-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0f3f9;
  color: #566273;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.score-flag {
  display: block;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.score-flag.auto {
  color: var(--teal);
}

.score-flag.manual {
  color: var(--amber);
}

.score-flag:disabled {
  cursor: default;
}

.table-foot {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13px;
}

.notes-grid {
  gap: 16px;
  margin-top: 18px;
}

.note-panel {
  flex: 1;
  padding: 18px;
}

.note-panel textarea {
  width: 100%;
  height: 112px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #566273;
  line-height: 1.7;
  resize: vertical;
  outline: 0;
}

/* 问题点和上级评价合成了一块，左右并排放，窄屏再堆成上下两行。
   选择器带上父级是为了压过 .note-panel > div 的 display:flex。 */
.note-panel > .note-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 14px;
}

.note-field {
  display: block;
}

.note-field > span {
  display: block;
  color: #566273;
  font-size: 13px;
  font-weight: 700;
}

.note-field textarea {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .note-panel > .note-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.note-panel footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.adjust-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.adjust-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.adjust-head span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}

.adjust-head .link {
  margin-top: 0;
  font-size: 12px;
}

.adjust-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.adjust-row {
  display: grid;
  grid-template-columns: 110px 72px 1fr 28px;
  gap: 8px;
  align-items: center;
}

.adjust-row input {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  outline: 0;
  min-width: 0;
}

.adjust-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 103, 214, 0.1);
}

.adjust-score {
  font-weight: 800;
  text-align: center;
}

.adjust-remove {
  height: 28px;
  width: 28px;
  border-radius: 8px;
  background: #f6f7f9;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

.adjust-remove:disabled {
  color: var(--muted);
}

.grade-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
}

.grade-scale div {
  padding: 14px;
  background: #fff;
}

.grade-scale b {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.grade-scale span {
  color: var(--muted);
  font-size: 13px;
}

.login-help {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.review-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.review-card,
.empty-card {
  min-height: 98px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  box-shadow: var(--shadow);
}

.review-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 103, 214, 0.1);
}

.review-card b,
.review-card span,
.review-card strong {
  display: block;
}

.review-card span {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.review-card strong {
  color: var(--blue);
  font-size: 16px;
}

.empty-card,
.empty-cell,
.empty-mini {
  color: var(--muted);
}

.empty-cell {
  text-align: center;
  padding: 28px;
}

.empty-mini {
  align-self: center;
  grid-column: 1 / -1;
  text-align: center;
}

.user-form-panel {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.user-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px 18px;
  align-items: end;
  margin-top: 16px;
}

.user-form label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.user-form input,
.user-form select {
  width: 100%;
  height: 34px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
  color: var(--ink);
  outline: 0;
}

.user-form input:focus,
.user-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 103, 214, 0.1);
}

.user-form button {
  height: 34px;
}

.user-table td {
  vertical-align: middle;
}

.user-table {
  min-width: 940px;
}

.user-table th,
.user-table td {
  padding: 10px 14px;
}

.user-table th:nth-child(1) {
  width: 200px;
}

.user-table th:nth-child(2) {
  width: 110px;
}

.user-table th:nth-child(3) {
  width: 220px;
}

/* 联系方式大多为空，不给它固定宽度，把宽度留给姓名和团队。 */
.user-table th:nth-child(5) {
  width: 96px;
}

.user-table th:nth-child(6) {
  width: 80px;
}

.user-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-search input {
  width: 240px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.user-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 103, 214, 0.1);
}

.user-search small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.lead-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(56, 103, 214, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(25, 151, 127, 0.1);
  color: var(--teal);
}

.pill.off {
  background: rgba(207, 77, 93, 0.1);
  color: var(--red);
}

.pill.warn {
  background: rgba(216, 135, 45, 0.12);
  color: var(--amber);
}

.header-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: 0;
}

.header-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 103, 214, 0.1);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.team-rank {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.team-rank-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px 104px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.team-rank-name {
  font-weight: 700;
}

.team-rank-track {
  height: 10px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.team-rank-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width 0.25s ease;
}

.team-rank-score {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.team-rank-row small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* 排行榜比用户表窄，单独给它一组列宽，否则会继续开到 1220px 而平白多出横向滚动。 */
.table-panel .workbench-table {
  min-width: 1040px;
}

.workbench-table th:nth-child(1) {
  width: 70px;
}

.workbench-table th:nth-child(2) {
  width: 170px;
}

.workbench-table th:nth-child(3) {
  width: 200px;
}

.workbench-table th:nth-child(4),
.workbench-table th:nth-child(5) {
  width: 100px;
}

.workbench-table th:nth-child(6) {
  width: 108px;
}

.workbench-table th:nth-child(7) {
  width: 112px;
}

.workbench-table th:nth-child(8) {
  width: 100px;
}

.workbench-table .rank-cell b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef2f9;
  color: #455064;
  font-size: 13px;
}

/* 前三名给个颜色，一眼能看出头部。 */
.workbench-table tr:nth-child(1) .rank-cell b {
  background: rgba(116, 86, 200, 0.14);
  color: var(--violet);
}

.workbench-table tr:nth-child(2) .rank-cell b,
.workbench-table tr:nth-child(3) .rank-cell b {
  background: rgba(56, 103, 214, 0.12);
  color: var(--blue);
}

.workbench-table .score-cell {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.workbench-table .is-empty-row td {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 32, 47, 0.42);
  z-index: 20;
  animation: modal-in 0.16s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
  }
}

.modal-card {
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(24, 32, 47, 0.24);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: 24px;
  padding: 11px 16px;
  border-radius: 8px;
  background: #202a3a;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .dashboard,
  .notes-grid {
    flex-direction: column;
  }

  .profile-strip {
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: static;
    width: auto;
  }

  .main {
    margin-left: 0;
    padding: 20px;
  }

  .topbar,
  .content-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .table-panel {
    overflow-x: auto;
  }

  .grade-scale {
    grid-template-columns: 1fr;
  }
}
