@font-face {
  font-family: Riviera;
  src: url("/assets/fonts/RivieraNights-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: Riviera;
  src: url("/assets/fonts/RivieraNights-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
:root {
  --ink: var(--leo-text);
  --muted: var(--leo-muted);
  --line: var(--leo-line);
  --paper: var(--leo-card);
  --green: var(--leo-action-fill);
  --accent: var(--leo-editorial-on-surface);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--leo-bg);
  color: var(--ink);
  font:
    15px/1.65 Riviera,
    Arial,
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--leo-action-on-card);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--leo-focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 100;
  background: var(--leo-card);
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
.mc-header {
  height: 88px;
  background: var(--leo-surface);
  color: var(--leo-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, 4vw);
  gap: 24px;
}
.mc-logo img {
  width: 130px;
  height: 48px;
  object-fit: contain;
}
.mc-topnav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.mc-topnav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--leo-muted);
}
.mc-topnav a[aria-current] {
  color: var(--leo-action-text);
  border-bottom: 1px solid var(--leo-action-text);
  padding: 6px 0;
}
.mc-avatar {
  width: 36px;
  height: 36px;
  border: 1px solid var(--leo-control-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  text-decoration: none;
}
.mc-main {
  max-width: 1480px;
  margin: auto;
  padding: 44px max(24px, 4vw) 28px;
}
.mc-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}
.mc-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 8px;
}
.mc-heading h1 {
  font-weight: 400;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin: 0;
}
.mc-heading p:not(.mc-kicker) {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 13px;
}
.mc-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  min-height: 44px;
  border: 1px solid var(--leo-control-border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.mc-button.primary {
  background: var(--green);
  color: var(--leo-on-action);
  border-color: var(--green);
}
.mc-button:hover {
  filter: brightness(0.96);
}
.mc-workspace {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 15px 50px var(--leo-shadow);
  overflow: hidden;
}
.mc-folders {
  display: flex;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.mc-folders button {
  min-height: 42px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
}
.mc-folders button[aria-pressed="true"] {
  background: var(--leo-surface);
  color: var(--leo-action-text);
  font-weight: 500;
}
.mc-columns {
  display: grid;
  grid-template-columns: minmax(285px, 34%) minmax(0, 1fr);
  min-height: 560px;
}
.mc-mailbox {
  border-right: 1px solid var(--line);
  min-width: 0;
}
.mc-search {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 6px;
}
.mc-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--leo-control-border);
  padding: 9px 12px;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.mc-search button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  padding: 8px;
}
.mc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 620px;
  overflow: auto;
  scrollbar-width: thin;
}
.mc-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  position: relative;
}
.mc-row:hover {
  background: var(--leo-hover);
}
.mc-row[aria-current="true"] {
  background: var(--leo-surface);
  box-shadow: inset 3px 0 var(--leo-action-text);
}
.mc-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.mc-row strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 5px;
}
.mc-row.unread strong {
  font-weight: 500;
}
.mc-row.unread .mc-row-top:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--leo-action-on-card);
  border-radius: 50%;
}
.mc-row.unread .mc-row-top span {
  margin-right: auto;
}
.mc-preview {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-detail {
  padding: 30px 36px;
  min-width: 0;
  max-height: 750px;
  overflow: auto;
  scrollbar-width: thin;
}
.mc-empty {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 36px;
  color: var(--muted);
}
.mc-empty svg {
  width: 46px;
  height: 46px;
  stroke: var(--leo-muted);
  margin-bottom: 8px;
}
.mc-empty h2 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}
.mc-empty p {
  max-width: 340px;
  margin: 0;
  font-size: 13px;
}
.mc-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.mc-tools button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--leo-control-border);
  border-radius: 4px;
  min-height: 36px;
  padding: 6px 11px;
  font-size: 11px;
}
.mc-tools button[aria-pressed="true"] {
  color: var(--leo-action-text);
  background: var(--leo-surface);
  border-color: var(--leo-control-border);
}
.mc-detail h2 {
  font-size: 27px;
  line-height: 1.4;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 22px;
  overflow-wrap: anywhere;
}
.mc-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leo-editorial-on-surface);
  margin-bottom: 12px;
}
.mc-message {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.mc-byline {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 18px;
}
.mc-byline time {
  font-size: 10px;
  color: var(--muted);
}
.mc-body {
  font:
    15px/1.85 Riviera,
    Arial,
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 70ch;
}
.mc-resources {
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
}
.mc-resources a {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
}
.mc-resources a:before {
  content: "↗";
  color: var(--muted);
}
.mc-reply {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.mc-reply label {
  font-size: 12px;
  color: var(--muted);
}
.mc-reply textarea,
.mc-compose input,
.mc-compose textarea {
  width: 100%;
  border: 1px solid var(--leo-control-border);
  border-radius: 5px;
  padding: 13px;
  background: var(--leo-card);
  color: var(--ink);
  resize: vertical;
  min-height: 110px;
}
.mc-reply button {
  justify-self: start;
}
.mc-status {
  font-size: 12px;
  min-height: 22px;
  color: var(--leo-muted);
  margin: 14px 0;
}
.mc-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  font-size: 11px;
  color: var(--muted);
}
.mc-bottom a {
  text-underline-offset: 4px;
}
.mc-pages {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.mc-pages button {
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--leo-action-on-card);
  min-height: 32px;
}
.mc-compose {
  border: 0;
  border-radius: 12px;
  width: min(600px, calc(100% - 32px));
  padding: 34px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px var(--leo-shadow);
}
.mc-compose::backdrop {
  background: var(--leo-backdrop);
  backdrop-filter: blur(4px);
}
.mc-compose h2 {
  font-size: 26px;
  font-weight: 400;
  margin: 0;
}
.mc-compose p {
  font-size: 13px;
  color: var(--muted);
}
.mc-compose form {
  display: grid;
  gap: 10px;
}
.mc-compose input {
  min-height: 44px;
}
.mc-compose textarea {
  min-height: 180px;
}
.mc-compose label {
  font-size: 12px;
  margin-top: 10px;
}
.mc-compose footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}
.mc-lock {
  max-width: 820px;
  margin: 35px auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 60px;
}
.mc-lock h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 400;
  max-width: 550px;
  margin: 20px 0;
}
.mc-lock > p {
  max-width: 560px;
  color: var(--muted);
}
.mc-lock .mc-button {
  margin-top: 20px;
  margin-right: 10px;
}
.mc-lock small {
  display: block;
  color: var(--muted);
  margin-top: 30px;
}
.mc-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  margin: 35px 0;
}
.mc-metric {
  padding: 24px 0;
}
.mc-metric strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.mc-metric span {
  font-size: 12px;
  color: var(--muted);
}
.mc-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.mc-panel-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 28px;
}
.mc-panel-section h2,
.mc-library h2 {
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.mc-panel-section p {
  font-size: 13px;
  color: var(--muted);
}
.mc-topic {
  padding: 12px 0;
}
.mc-topic label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.mc-topic progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 10px;
  accent-color: var(--leo-action-on-card);
}
.mc-topic small {
  font-size: 11px;
  color: var(--muted);
}
.mc-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 170px;
  margin: 16px 0;
}
.mc-chart-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: stretch;
  height: 100%;
  gap: 5px;
  text-align: center;
}
.mc-chart-column span,
.mc-chart-column small {
  font-size: 10px;
  color: var(--muted);
}
.mc-chart-column meter {
  appearance: none;
  writing-mode: vertical-rl;
  direction: rtl;
  block-size: 100%;
  inline-size: 125px;
  align-self: center;
  width: 18px;
  height: 125px;
}
.mc-chart-column meter::-webkit-meter-bar {
  background: var(--leo-surface);
  border: none;
  border-radius: 3px;
}
.mc-chart-column meter::-webkit-meter-optimum-value {
  background: var(--leo-action-on-card);
}
.mc-score-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.mc-score-table td,
.mc-score-table th {
  padding: 9px 4px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.mc-score-table th {
  color: var(--muted);
}
.mc-library-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mc-material {
  padding: 24px;
  border: 1px solid var(--leo-control-border);
  border-radius: 7px;
  background: var(--paper);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mc-material:hover {
  border-color: var(--leo-action-on-card);
}
.mc-material h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}
.mc-material small {
  font-size: 11px;
  color: var(--muted);
}
.mc-material .mc-tag {
  margin: 0;
}
.mc-back-list {
  display: none !important;
}
@media (max-width: 800px) {
  .mc-header {
    padding: 0 22px;
    height: 72px;
  }
  .mc-topnav {
    gap: 16px;
  }
  .mc-topnav a {
    font-size: 11px;
  }
  .mc-topnav .mc-booking-link {
    display: none;
  }
  .mc-logo img {
    width: 100px;
  }
  .mc-main {
    padding: 28px 16px;
  }
  .mc-heading {
    align-items: start;
  }
  .mc-heading h1 {
    font-size: 30px;
  }
  .mc-heading p:not(.mc-kicker) {
    max-width: 220px;
  }
  .mc-heading .mc-button {
    padding: 10px 12px;
    font-size: 12px;
  }
  .mc-folders {
    padding: 10px;
  }
  .mc-columns {
    display: block;
    min-height: 400px;
  }
  .mc-mailbox {
    border: 0;
  }
  .mc-detail {
    display: none;
    max-height: none;
    padding: 22px;
  }
  .mc-workspace.reading .mc-mailbox {
    display: none;
  }
  .mc-workspace.reading .mc-detail {
    display: block;
  }
  .mc-workspace.reading .mc-back-list {
    display: inline-flex !important;
  }
  .mc-list {
    max-height: none;
  }
  .mc-detail h2 {
    font-size: 24px;
  }
  .mc-panel-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mc-library-list {
    grid-template-columns: 1fr 1fr;
  }
  .mc-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .mc-lock {
    padding: 32px 24px;
    margin: 10px 0;
  }
  .mc-lock h1 {
    font-size: 34px;
  }
  .mc-bottom {
    align-items: start;
  }
  .mc-avatar {
    width: 32px;
    height: 32px;
  }
  .mc-compose {
    padding: 24px;
  }
  .mc-tools {
    margin-bottom: 20px;
  }
  .mc-topnav .mc-nav-label {
    display: none;
  }
}
@media (max-width: 460px) {
  .mc-header {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
  }
  .mc-topnav {
    flex-wrap: wrap;
    min-width: 0;
    margin-inline-start: auto;
    max-width: 100%;
  }
  .mc-topnav a {
    overflow-wrap: anywhere;
  }
  .mc-avatar { flex-shrink: 0; }
  .mc-library-list {
    grid-template-columns: 1fr;
  }
  .mc-topnav {
    gap: 12px;
  }
  .mc-topnav a {
    font-size: 10px;
  }
  .mc-heading {
    gap: 10px;
  }
  .mc-heading .mc-button {
    font-size: 11px;
  }
  .mc-panel-section {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.mc-shortcuts {
  display: flex;
  gap: 10px;
  margin: -10px 0 24px;
  flex-wrap: wrap;
}
.mc-shortcuts .mc-button {
  background: transparent;
  border-color: var(--leo-control-border);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

/* The white signature needs dark ink on the light header. */
html[data-theme="light"] .mc-logo img { filter:brightness(0); }
