:root {
  --bg: #ffffff;
  --sidebar: #f2e9e0;
  --card: #f9f7f6;
  --navy: #525a70;
  --navy-deep: #42485c;
  --peach: #f8dab4;
  --peach-deep: #e09048;
  --peach-soft: #fbebd4;
  --peach-events: color-mix(in srgb, var(--peach) 50%, #fff);
  --text: #1f2430;
  --muted: #9aa0aa;
  --line: #eee;
  --radius: 16px;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --avatar-tone: #9c9c9c;
  --avatar-bg: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--avatar-tone) 45%, #fff) 0%,
    color-mix(in srgb, var(--avatar-tone) 68%, #fff) 32%,
    var(--avatar-tone) 72%,
    color-mix(in srgb, var(--avatar-tone) 70%, #000) 100%
  );
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 214px;
  flex-shrink: 0;
  background: var(--sidebar);
  padding: 24px 0 16px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  justify-content: center;
  text-decoration: none;
  margin: 4px 16px 44px;
}
.brand img {
  width: 104px;
  height: auto;
  display: block;
}

.nav-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  position: relative;
}
.nav-indicator {
  position: absolute;
  left: auto;
  right: 0;
  width: 6px;
  top: 0;
  height: 44px;
  background: var(--navy-deep);
  border-radius: 6px 0 0 6px;
  pointer-events: none;
  z-index: 3;
  transition: top 0.55s cubic-bezier(0.22, 1.45, 0.36, 1), height 0.45s cubic-bezier(0.22, 1.45, 0.36, 1);
}
.nav-foot {
  display: none;
}

.main {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--navy-deep);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 16px 36px;
  background: #fff;
  border-bottom: 0;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 0;
  height: 2px;
  background: #d8d8d8;
}

.nav-dir {
  background: rgb(82 90 112 / 8%);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 0;
}
.nav-dir-head {
  display: block;
  padding: 8px 16px 4px 26px;
  color: var(--navy-deep);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  pointer-events: none;
  opacity: 0.38;
  position: relative;
  z-index: 2;
}
.nav-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  opacity: 0.5;
  transition: opacity 0.22s ease, filter 0.22s ease;
}
.nav-ico.nav-ico-lg {
  transform: scale(1.12);
}
.nav-dir .nav-item {
  padding-left: 56px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 26px;
  color: #8d8d93;
  background: none;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 400;
  border-radius: 0;
  position: relative;
  z-index: 2;
  transition: color 0.22s ease;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
  transition: color 0.22s ease;
}
.nav-item svg[fill="none"] {
  stroke: currentColor;
}
.nav-item:hover {
  color: #4c588b;
  background: none;
}
.nav-item.is-active {
  color: var(--navy-deep);
  background: none;
  font-weight: 600;
}
.nav-item.is-active svg,
.nav-item.is-active:hover svg {
  color: var(--peach-deep);
}
.nav-item:hover .nav-ico {
  opacity: 1;
  filter: invert(34%) sepia(14%) saturate(980%) hue-rotate(194deg) brightness(94%) contrast(90%);
}
.nav-item.is-active .nav-ico,
.nav-item.is-active:hover .nav-ico {
  opacity: 1;
  filter: invert(62%) sepia(48%) saturate(850%) hue-rotate(346deg) brightness(98%);
}

.search {
  max-width: 380px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: none;
  border: 0;
}
.search svg { width: 18px; height: 18px; color: #8d8d93; }
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}
.search input::placeholder { color: #c5c5c8; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #8d8d93;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn svg,
.icon-btn img {
  width: 18px;
  height: 18px;
  display: block;
}
.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.badge-red { background: #e35d5d; }
.badge-navy { background: var(--navy); }
.profile-menu {
  position: relative;
  border-radius: var(--radius);
  transition: background 0.28s ease, filter 0.35s ease, border-radius 0.35s cubic-bezier(0.22, 1.45, 0.36, 1);
}
.profile-menu.is-open {
  background: #eceae4;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 50;
  filter: drop-shadow(0 14px 28px rgba(31, 36, 48, 0.28));
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 6px 8px 6px 6px;
  border-radius: var(--radius);
  width: 100%;
}
.profile-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--avatar-bg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-shrink: 0;
}
.profile-photo img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}
.profile-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}
.profile-copy em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.profile > svg {
  width: 14px;
  height: 14px;
  color: #c5c5c8;
  transition: transform 0.4s cubic-bezier(0.22, 1.45, 0.36, 1);
}
.profile-menu.is-open .profile > svg { transform: rotate(180deg); }
.profile-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  min-width: 100%;
  margin: 0;
  padding: 2px 6px 8px;
  list-style: none;
  background: #eceae4;
  border: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transform-origin: top center;
  transition:
    opacity 0.28s ease,
    transform 0.45s cubic-bezier(0.22, 1.45, 0.36, 1),
    visibility 0.3s;
}
.profile-menu.is-open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--navy-deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    background 0.2s ease,
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1.45, 0.36, 1);
}
.profile-dropdown .nav-ico {
  width: 16px;
  height: 16px;
  opacity: 0.75;
  filter: none;
}
.profile-menu.is-open .profile-dropdown li:nth-child(1) a { transition-delay: 0.05s; }
.profile-menu.is-open .profile-dropdown li:nth-child(2) a { transition-delay: 0.1s; }
.profile-menu.is-open .profile-dropdown a {
  opacity: 1;
  transform: none;
}
.profile-dropdown li:not(:first-child) {
  border-top: 1px solid rgb(82 90 112 / 14%);
  margin-top: 4px;
  padding-top: 4px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  padding: 24px 36px 40px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.kpi {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 22px 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.22s ease;
}
.kpi.is-active {
  background: color-mix(in srgb, var(--card) 95%, #000);
}
.kpi span:not(.kpi-btn) {
  display: block;
  color: #8b8f99;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}
.kpi strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.kpi:focus { outline: none; }
.kpi:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.kpi-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #c5c5c8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  pointer-events: none;
  box-shadow: none;
  transition: background 0.22s ease, color 0.22s ease;
}
.kpi-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.22, 1.45, 0.36, 1);
}
.kpi-btn .chev-left { opacity: 0.55; }
.kpi:hover .kpi-btn,
.kpi.is-active .kpi-btn {
  background: var(--navy);
  color: #fff;
}
.kpi.is-active .kpi-btn svg {
  transform: rotate(90deg);
}

.charts {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 22px 24px 20px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}
.card-title h2,
.students h2,
.concept h2,
.notice-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
}
.year {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  opacity: 0.75;
}
.year svg { width: 12px; height: 12px; }
.year-menu {
  position: relative;
}
.year-menu ul {
  position: absolute;
  left: 0;
  top: 100%;
  margin: 6px 0 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  min-width: 88px;
  display: none;
  z-index: 4;
}
.year-menu.is-open ul { display: block; }
.year-menu button[data-year] {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 6px 8px;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
}
.year-menu button[data-year]:hover { background: var(--card); }

.more {
  border: 0;
  background: transparent;
  color: #c5c5c8;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 1px;
  cursor: pointer;
}
.head-right { display: flex; align-items: center; gap: 14px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend.is-off { display: none; }
.dot-navy, .dot-peach {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.dot-navy { background: var(--navy); }
.dot-peach { background: var(--peach-deep); }

.chart-wrap {
  height: 260px;
  margin-top: 8px;
}

.students { display: flex; flex-direction: column; }
.card[data-right]:not(.is-on) { display: none; }
.card.students.is-on,
.card.concept.is-on {
  display: grid;
  grid-template-rows: auto 210px auto;
}
.gauge-wrap,
.donut-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto;
}
.gauge-wrap canvas,
.donut-wrap canvas {
  width: 210px !important;
  height: 210px !important;
  display: block;
}
.donut-wrap canvas {
  position: relative;
  z-index: 2;
}
.gauge-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  background: var(--peach-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 12px #fff;
  pointer-events: none;
}
.donut-hub { z-index: 1; }
.gauge-hub > * {
  grid-area: 1 / 1;
}
.gauge-hub > .is-off {
  display: none !important;
}
.gauge-hub svg { width: 22px; height: 22px; color: #fff; }
.gauge-hub img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.gender {
  list-style: none;
  margin: 18px 8px 4px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gender li { display: flex; flex-direction: column; gap: 2px; }
.gender .row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.gender strong {
  font-size: 22px;
  color: var(--navy);
  font-weight: 800;
  margin-left: 28px;
}
.ico {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.peach-ico { background: var(--peach-deep); }
.navy-ico { background: var(--navy); }

.concept-body { display: contents; }
.concept-legend {
  list-style: none;
  margin: 12px 4px 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 10px;
}
.concept-legend li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 12px;
}
.concept-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.concept-legend b {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.concept-legend span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-deep);
}

.notice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.notice-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.notice-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notice-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  color: #b0b0b5;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
}
.notice-list li.is-featured { color: #2a3140; }
.thumb {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: block;
  object-fit: cover;
  background: #e8e4de;
}
.notice-copy {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.date {
  color: #b0b0b5;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.is-featured .date {
  background: var(--peach);
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9px;
}
.socials {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c4c4c8;
  background: #fbfbfa;
  border: 1px solid #f3f3f0;
  border-radius: 9px;
  padding: 7px 12px;
}
.socials svg { width: 15px; height: 15px; }
.views {
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 36px;
}
.views::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--peach-deep);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cal-card {
  background: var(--peach-events);
  color: #fff;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.cal-top {
  background: var(--navy);
  padding: 20px 18px 16px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.cal-card .more { color: rgba(255,255,255,0.7); }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 12px;
}
.cal-nav strong {
  font-size: 14px;
  font-weight: 700;
}
.cal-nav button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.cal-week {
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.cal-grid button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.cal-grid button:disabled {
  visibility: hidden;
}
.cal-grid .is-today {
  background: var(--peach);
  color: #3d2a22;
}
.cal-grid .is-selected:not(.is-today) {
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7);
}
.cal-grid .has-event {
  position: relative;
}
.cal-grid .has-event::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--peach);
  transform: translateX(-50%);
}
.cal-grid .is-today.has-event::after {
  background: var(--navy-deep);
}

.cal-panel {
  margin: -16px 0 0;
  padding: 16px 18px 18px;
  background: var(--peach-events);
  color: var(--navy-deep);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}
.cal-events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cal-heading {
  display: grid;
  justify-items: start;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.cal-heading span {
  grid-area: 1 / 1;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1.45, 0.36, 1);
}
.cal-add-title {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
}
.cal-panel.is-adding [data-cal-day-label] {
  opacity: 0;
  transform: translateX(-8px);
}
.cal-panel.is-adding .cal-add-title {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cal-add-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: var(--peach-deep);
  color: #fff;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1.45, 0.36, 1), background 0.25s ease;
}
.cal-add-btn:hover { transform: scale(1.06); }
.cal-add-icon {
  display: block;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.22, 1.45, 0.36, 1);
}
.cal-panel.is-adding .cal-add-icon {
  transform: rotate(45deg);
}
.cal-swap {
  position: relative;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.25, 1.08, 0.35, 1);
}
.cal-events {
  transition: opacity 0.32s ease, transform 0.4s cubic-bezier(0.25, 1.08, 0.35, 1);
}
.cal-add {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.42s cubic-bezier(0.25, 1.08, 0.35, 1);
}
.cal-panel.is-adding .cal-events {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.cal-panel.is-adding .cal-add {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cal-panel.is-adding .cal-add label,
.cal-panel.is-adding .cal-save {
  animation: cal-rise 0.42s cubic-bezier(0.25, 1.08, 0.35, 1) both;
}
.cal-panel.is-adding .cal-add label:nth-of-type(1) { animation-delay: 0.06s; }
.cal-panel.is-adding .cal-add label:nth-of-type(2) { animation-delay: 0.12s; }
.cal-panel.is-adding .cal-add label:nth-of-type(3) { animation-delay: 0.18s; }
.cal-panel.is-adding .cal-save { animation-delay: 0.24s; }
@keyframes cal-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.cal-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.cal-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 0;
  border-left: 1.5px dashed var(--peach-deep);
  transform: translateX(-50%);
  z-index: 0;
}
.cal-timeline li {
  position: relative;
  padding: 0 0 16px 22px;
  z-index: 1;
}
.cal-timeline li:last-child { padding-bottom: 0; }
.cal-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--peach-events);
  border: 2px solid var(--peach-deep);
  z-index: 1;
}
.cal-timeline li.is-done::before {
  background: var(--peach-deep);
}
.cal-timeline strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cal-timeline em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.cal-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.cal-add label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.cal-add input,
.cal-add textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-deep);
  outline: none;
  box-shadow: none;
}
.cal-add input:focus,
.cal-add textarea:focus {
  outline: none;
  box-shadow: none;
}
.cal-add textarea {
  min-height: 72px;
  resize: vertical;
}
.cal-add input::placeholder,
.cal-add textarea::placeholder { color: #c5c5c8; }
.cal-save {
  width: 100%;
  margin-top: 4px;
  border: 0;
  background: var(--peach-deep);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
}

.scout-banner {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 22px 20px 38px;
  background: var(--peach) url("./img/scouts.png") right bottom / cover no-repeat;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.scout-copy {
  max-width: 58%;
}
.scout-copy h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: #1a1a1a;
}
.scout-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #4a4038;
}
.scout-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: var(--radius);
  transition: transform 0.35s cubic-bezier(0.25, 1.08, 0.35, 1), background 0.2s ease;
}
.scout-cta:hover {
  transform: translateY(-2px);
  background: var(--navy-deep);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .charts, .notice-list li { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: 1fr; }
  .top-actions { justify-content: flex-end; }
}
