.dashboard {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.onboarding {
  display: grid;
  grid-template-columns: clamp(116px, 13%, 150px) minmax(0, 1fr);
  overflow: hidden;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 4px 18px #2e214608;
}

.onboarding-status {
  --onboarding-tint: #edf7f2;
  --onboarding-divider: #dfece4;
  --onboarding-fill: #3e9d64;
  --onboarding-track: #bde5d0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-right: 1px solid var(--onboarding-divider);
  background: var(--onboarding-tint);
  color: #1b2922;
  text-align: center;
}

.onboarding-status h2 {
  font-size: 14px;
  font-weight: 690;
}

.onboarding-status > p {
  color: #4f6659;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.onboarding-progress {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(var(--onboarding-fill) 25%, var(--onboarding-track) 25%);
}

.onboarding-progress::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--onboarding-tint);
}

.onboarding-progress > span {
  position: relative;
  font-size: 18px;
  font-weight: 660;
  letter-spacing: -.02em;
  color: #1b2922;
  font-variant-numeric: tabular-nums;
}

.onboarding-task {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 14px 19px;
}

.onboarding-task-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}

.onboarding-step {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.onboarding-pagination { display: flex; gap: 6px; }

.onboarding-pagination button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid #e8e1f4;
  border-radius: 9px;
  background: #f5f1fc;
  color: #59429d;
}

.onboarding-pagination button:hover:not(:disabled) { background: #ebe3fc; }

.onboarding-pagination button:disabled {
  color: #a6a0b6;
  background: #faf8fc;
  cursor: default;
}

.onboarding-pagination span {
  display: block;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateX(-2px) rotate(45deg);
}

#onboarding-prev span { transform: translateX(2px) rotate(-135deg); }

.onboarding-task h3 {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: -.026em;
}

.onboarding-task-copy p {
  margin-top: 5px;
  max-width: 52ch;
  color: var(--label);
  font-size: 13px;
  line-height: 1.55;
}

.onboarding-task-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin-top: 9px;
}

.onboarding-task-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1eff5;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.onboarding-task-state[data-complete="true"] {
  color: #5840a0;
  background: var(--lavender);
}

.onboarding-task-state[data-complete="true"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(-1px) rotate(-45deg);
}

.onboarding-guide {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.onboarding-guide::after {
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 1.4px 1.4px 0 0;
  transform: rotate(45deg);
  content: "";
}

.onboarding-guide:hover { background: #5034b9; }

.dashboard-earnings {
  --earnings-travel-color: #8b74dc;
  --earnings-events-color: #479e91;
  --earnings-commerce-color: #d5a054;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.earnings-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 184px;
  padding: 15px clamp(13px, 1.6vw, 21px) 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 18px #2e214608;
}

.earnings-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.earnings-header h2 {
  font-size: 16px;
  font-weight: 690;
  letter-spacing: -.023em;
}

.earnings-tag {
  padding: 2px 7px;
  border: 1px solid #ede6f9;
  border-radius: 5px;
  background: #f7f3fd;
  color: #675487;
  font-size: 10px;
  white-space: nowrap;
}

.earnings-totals, .earnings-stats, .earnings-legend, .earnings-card dd { margin: 0; }

.earnings-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.earnings-totals dt, .earnings-stats dt {
  color: var(--muted);
  font-size: 12px;
}

.earnings-card .earnings-money, .earnings-stats dd, .earnings-legend dd {
  font-variant-numeric: tabular-nums;
}

.earnings-totals .earnings-money {
  margin-top: 1px;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 660;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.earnings-money span {
  margin-inline-end: 2px;
  font-size: .72em;
  font-weight: 600;
}

.earnings-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #efedf4;
}

.earnings-stats > div + div {
  padding-inline-start: 13px;
  border-inline-start: 1px solid #efedf4;
}

.earnings-stats dd {
  margin-top: 2px;
  font-size: clamp(13px, 1.12vw, 16px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.earnings-overview {
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.5vw, 23px);
  margin-top: 12px;
}

.earnings-donut {
  --earnings-ring-width: clamp(9px, .95vw, 12px);
  --earnings-travel-end: 62.5%;
  --earnings-events-end: 87.5%;
  display: grid;
  place-items: center;
  width: clamp(76px, 8.1vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fcfbfe calc(100% - var(--earnings-ring-width)), transparent calc(100% - var(--earnings-ring-width) + .7px)),
    conic-gradient(
      var(--earnings-travel-color) 0 var(--earnings-travel-end),
      var(--earnings-events-color) var(--earnings-travel-end) var(--earnings-events-end),
      var(--earnings-commerce-color) var(--earnings-events-end) 100%
    );
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 560;
}

.earnings-legend {
  display: grid;
  gap: 10px;
}

.earnings-legend > div, .earnings-legend dt {
  display: flex;
  align-items: center;
  gap: 7px;
}

.earnings-legend > div { justify-content: space-between; }

.earnings-legend dt {
  color: var(--label);
  font-size: 12px;
}

.earnings-legend dd {
  flex: none;
  font-size: 13px;
  font-weight: 670;
}

.earnings-swatch {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
}

.earnings-swatch--travel { background: var(--earnings-travel-color); }
.earnings-swatch--events { background: var(--earnings-events-color); }
.earnings-swatch--commerce { background: var(--earnings-commerce-color); }

.dashboard-briefs {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.dashboard-brief {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(15px, 1.65vw, 23px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.brief-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  margin-bottom: 16px;
}

.brief-heading h2, .guide-intro h2 {
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 700;
  letter-spacing: -.018em;
}

.brief-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #594190;
  font-size: 12px;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.brief-link:hover { color: var(--accent); }

.notice-list {
  display: grid;
  gap: 9px;
  grid-auto-rows: 1fr;
}

.notice-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(72px, 8.8vw, 118px);
  align-items: center;
  gap: 11px;
  min-height: 116px;
  padding: 10px 11px;
  border: 1px solid #f0ebf6;
  border-radius: 12px;
  background: #f8f5fa;
}

.notice-copy { min-width: 0; }
.notice-meta { color: #6a5b7b; font-size: 11px; line-height: 1.4; }

.notice-title {
  margin: 3px 0 2px;
  font-size: 14px;
  font-weight: 690;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.notice-summary {
  color: var(--label);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notice-list .notice-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-action {
  width: fit-content;
  min-height: 25px;
  margin-top: 6px;
  padding: 3px 8px;
  border: 1px solid #e8e0f0;
  border-radius: 7px;
  background: #eee8f5;
  color: #553d83;
  font-size: 11px;
  font-weight: 650;
  text-align: start;
}

.notice-action:hover { background: #e7ddf4; }

.notice-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #ede7f3;
  border-radius: 8px;
  background: #efeaf6;
}

.notice-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: auto;
}

.notice-dots, .dashboard-pagination { display: flex; align-items: center; gap: 5px; }

.notice-dot {
  display: grid;
  place-items: center;
  width: 17px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.notice-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 9px;
  background: #d3c9e4;
}

.notice-dot[aria-current="page"] { width: 26px; }
.notice-dot[aria-current="page"]::after { width: 19px; background: var(--accent); }
.notice-dot:hover::after { background: #a48bd3; }

.dashboard-pagination button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1ecf7;
  color: #5c4a76;
}

.dashboard-pagination button:hover:not(:disabled) { background: #e9e0f4; }
.dashboard-pagination button:disabled { background: #f7f5fa; color: #a6a0af; cursor: default; }

.dashboard-pagination span {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateX(-1px) rotate(45deg);
}

.dashboard-pagination .dashboard-prev span { transform: translateX(1px) rotate(-135deg); }

.course-toolbar,
.course-period {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.course-toolbar { justify-content: space-between; margin-bottom: 16px; }
.course-period { min-width: 0; color: var(--ink); font-size: 13px; font-weight: 660; }
.course-period .dashboard-pagination button { width: 25px; height: 27px; background: transparent; }

.dashboard-segment {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid #ebe4f3;
  border-radius: 9px;
  background: #eee8f5;
}

.dashboard-segment button {
  min-height: 26px;
  padding: 3px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--label);
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-segment button[aria-pressed="true"] {
  background: var(--surface);
  color: #51368b;
  font-weight: 660;
  box-shadow: 0 1px 3px #2c184a13;
}

.dashboard-segment button:hover:not([aria-pressed="true"]) { background: #e8dff0; }

.course-toolbar .dashboard-segment button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#courses-calendar::before {
  content: "";
  width: 11px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: inset 0 2px currentColor;
}

#courses-list::before {
  content: "";
  width: 10px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 3px currentColor, 0 -3px currentColor;
}

.courses-content { min-width: 0; }

.course-calendar {
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  min-height: 41px;
}

.calendar-time {
  position: relative;
  top: -7px;
  padding-right: 8px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.calendar-slot {
  position: relative;
  border-top: 1px solid #e8e4ee;
}

.calendar-row:last-child .calendar-slot { border-bottom: 1px solid #e8e4ee; }

.calendar-preview-time {
  position: absolute;
  inset: 75% 0 auto;
  z-index: 2;
  height: 1px;
  background: #cc8097;
  pointer-events: none;
}

.calendar-preview-time::before {
  content: "";
  position: absolute;
  top: -2.5px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cc8097;
}

.calendar-event {
  position: absolute;
  inset: 3px 1px auto 1px;
  z-index: 1;
  width: calc(100% - 2px);
  min-height: 29px;
  overflow: hidden;
  padding: 4px 8px;
  border: 0;
  border-inline-start: 3px solid #9870db;
  border-radius: 0 7px 7px 0;
  background: #f0e9fc;
  color: #4e3776;
  font-size: 12px;
  font-weight: 620;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event[data-half] { top: 19px; }
.calendar-event:hover { background: #e7dbf8; }

.course-note, .course-empty {
  color: var(--muted);
  font-size: 11px;
}

.course-empty { margin: 9px 0 0 43px; }
.course-note { padding-top: 12px; margin-top: auto; }

.course-list { display: grid; gap: 7px; }

.course-row-button {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid #f0ebf6;
  border-radius: 8px;
  background: #f9f6fc;
  text-align: start;
}

.course-row-button:hover { background: var(--lavender); }
.course-date, .course-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.course-name { font-size: 12px; font-weight: 640; overflow-wrap: anywhere; }
.course-time { white-space: nowrap; }

.dashboard-guides {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(14px, 2.6vw, 34px);
  min-width: 0;
  margin-top: 16px;
  padding: clamp(15px, 1.8vw, 25px);
  border: 1px solid #ebe5f3;
  border-radius: 16px;
  background: #f3eff8;
}

.guide-intro h2 { margin-bottom: 9px; }

.guide-scene > p {
  margin-top: 12px;
  color: var(--label);
  font-size: 13px;
  line-height: 1.65;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin-top: 12px;
}

.guide-link {
  padding: 5px 10px;
  border: 1px solid #e7deef;
  border-radius: 7px;
  background: #ebe3f4;
  color: #543b80;
  font-size: 12px;
  font-weight: 640;
  text-decoration: none;
  white-space: nowrap;
}

.guide-link:hover { background: #e6d9f2; }

.guide-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #543b80;
  font-size: 12px;
  font-weight: 640;
  text-align: start;
}

.guide-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

.guide-index {
  min-width: 0;
  border-inline-start: 1px solid #e4dceb;
  padding-inline-start: clamp(12px, 2vw, 26px);
}

.guide-index h3 { margin: 0 0 5px; font-size: 13px; font-weight: 660; }
.guide-grid { display: grid; gap: 2px; }
.guide-grid > li { min-width: 0; }

.guide-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 30px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: start;
}

.guide-button:hover { border-color: #e8ddf2; background: #ede5f5; }

.guide-button > span:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 7px;
  min-width: 0;
}

.guide-play {
  display: grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #ddcdef;
  border-radius: 50%;
  background: #f4ecfc;
  color: var(--accent);
}

.guide-play::before {
  content: "";
  margin-inline-start: 2px;
  border-block: 3px solid transparent;
  border-inline-start: 5px solid currentColor;
}

.guide-title { font-size: 12px; font-weight: 630; overflow-wrap: anywhere; }

.guide-duration {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.guide-dialog {
  width: min(800px, calc(100% - 32px));
  max-height: calc(100% - 36px);
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 54px #2e214635;
}

.guide-dialog::backdrop { background: #24203566; }

.briefing-dialog {
  width: min(550px, calc(100% - 32px));
  padding: 18px;
}

.notice-archive { display: grid; gap: 6px; }

.notice-archive > li {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid #f0ebf6;
  border-radius: 8px;
}

.notice-detail .notice-summary,
.course-dialog-description { margin: 7px 0; color: var(--label); font-size: 13px; line-height: 1.6; }

.course-dialog-meta, .course-dialog-note { color: var(--muted); font-size: 12px; }

.guide-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.guide-dialog-header h2 { font-size: 16px; font-weight: 680; }

.guide-dialog-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: var(--canvas);
  color: var(--label);
  font-size: 21px;
  line-height: 1;
}

.guide-dialog-close:hover { background: var(--lavender); }

.guide-video {
  display: block;
  width: 100%;
  max-height: 68vh;
  border-radius: 9px;
  background: #211d2d;
}

.guide-transcript, #guide-video-error {
  margin-top: 9px;
  color: var(--label);
  font-size: 12px;
}

.guide-transcript summary {
  width: fit-content;
  color: #614e94;
  cursor: pointer;
}

.guide-transcript summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.guide-steps { margin: 5px 0 0; padding-inline-start: 20px; }
.guide-steps > li + li { margin-top: 3px; }

#guide-video-error {
  padding: 5px 8px;
  border-radius: 5px;
  background: #f8f4fb;
}

@media (max-width: 740px) {
  .dashboard-earnings, .dashboard-briefs { grid-template-columns: minmax(0, 1fr); }
  .earnings-card { min-height: 174px; }
}

@media (max-width: 600px) {
  .onboarding { grid-template-columns: 87px minmax(0, 1fr); }
  .onboarding-status { gap: 6px; padding-inline: 5px; }
  .onboarding-progress { width: 52px; height: 52px; }
  .onboarding-progress::before { inset: 8px; }
  .onboarding-progress > span { font-size: 15px; }
  .onboarding-task { padding: 10px; }
  .dashboard-guides { grid-template-columns: minmax(0, 1fr); }
  .guide-index { padding: 10px 0 0; border-inline-start: 0; border-top: 1px solid #e4dceb; }
}

@media (max-width: 460px) {
  .earnings-stats > div + div { padding-inline-start: 7px; }
  .notice-item { grid-template-columns: minmax(0, 1fr) 65px; align-items: start; }
  .notice-summary { overflow-wrap: break-word; }
  .course-row-button { grid-template-columns: 32px minmax(0, 1fr); }
  .course-row-button .course-time { grid-column: 2; }
}

@media (max-width: 360px) {
  .onboarding { grid-template-columns: 82px minmax(0, 1fr); }
  .onboarding-task { padding-inline: 8px; }
  .onboarding-task h3 { font-size: 15px; }
  .earnings-totals .earnings-money { font-size: 16px; }
  .earnings-stats dd { font-size: 12px; }
}
