/* Format Central.
 *
 * The design is the studio mockup Bas chose on 2026-09-08, which MP Lab has
 * clicked through. Tokens and component shapes are lifted from
 * `mockup-studio/index.html` unchanged, because the point of approving a
 * mockup is that the real thing looks like it.
 *
 * Everything here is scoped to the app root the same way the mockup scoped to
 * #fc-studio, so a screenshot comparison is a like-for-like one.
 */

@import url('../fonts/fonts.css');

:root {
  --fc-bg: #f3f5f8;
  --fc-paper: #fff;
  --fc-ink: #182432;
  --fc-muted: #667180;
  --fc-line: #dfe5ed;
  --fc-blue: #214bff;
  --fc-pale: #eaf0ff;
  --fc-yellow: #fff0ad;
  --fc-radius: 12px;

  /* Derived, not invented. Everything below is one of the eight above. */
  --fc-line-soft: #edf0f5;
  --fc-shadow: 0 3px 10px #17274306;
  --fc-shadow-lift: 0 8px 22px #17274312;
  --fc-green: #1a7f4b;
  --fc-amber: #8a6100;
  --fc-red: #b3261e;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: Manrope, -apple-system, system-ui, 'Segoe UI', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fc-ink);
  background: var(--fc-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: 'Bricolage Grotesque', Manrope, Arial, sans-serif;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
}
h2 {
  font-size: 27px;
  line-height: 1.15;
  font-weight: 600;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:is(button, input, textarea, select, a):focus-visible {
  outline: 3px solid #8ba3ff;
  outline-offset: 3px;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}

.fc-muted {
  color: var(--fc-muted);
}
.fc-small {
  font-size: 11px;
  line-height: 1.6;
}
.fc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fc-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.fc-gap {
  display: grid;
  gap: 18px;
}

/* --- splash ------------------------------------------------------------
 * Not decoration. The local server takes a few seconds to start, and a
 * branded screen during that wait is the difference between "it is starting"
 * and "nothing happened, click it again". It holds about 1.5 seconds and
 * leaves by itself; there is no way to get stuck on it.
 *
 * The choreography, all transform and opacity so it never reflows: a soft
 * glow breathes behind the mark, the mark settles from slightly large, the
 * name arrives letter by letter, a hairline fills for the length of the
 * hold, and the whole thing lifts away when the app is ready.
 */
#splash {
  position: fixed;
  inset: 0;
  background: var(--fc-bg);
  display: grid;
  place-items: center;
  z-index: 100;
  overflow: clip;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#splash::before {
  content: '';
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--fc-pale) 0%, transparent 70%);
  animation: fc-glow 2.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}
#splash[data-leaving='true'] {
  opacity: 0;
  pointer-events: none;
}
#splash[data-leaving='true'] .fc-splash-inner {
  transform: translateY(-8px) scale(1.02);
}
.fc-splash-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* MP Lab's own mark, black line art on the light page. Sized by width; the
 * file is 713 px wide, so it stays sharp on a retina screen at this size. */
.fc-splash-mark {
  width: 132px;
  max-width: 56vw;
  height: auto;
  animation: fc-settle 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.fc-splash-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.035em;
  display: flex;
}
.fc-splash-name > span {
  display: inline-block;
  animation: fc-letter 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(0.28s + var(--i) * 0.035s);
}
.fc-splash-space {
  width: 0.28em;
}
/* The hairline fills for the length of the hold, so the wait reads as a
 * wait and not as a hang. Scaled, not resized: no layout on the way. */
.fc-splash-line {
  width: 132px;
  height: 2px;
  border-radius: 1px;
  background: var(--fc-ink);
  transform-origin: left;
  animation: fc-fill 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.25s both;
}
#splash-note {
  animation: fc-rise 0.5s ease 0.75s both;
}
@keyframes fc-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fc-settle {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fc-letter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fc-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes fc-glow {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  #splash,
  #splash::before,
  .fc-splash-inner,
  .fc-splash-mark,
  .fc-splash-name > span,
  .fc-splash-line,
  #splash-note {
    animation: none;
    transition: opacity 0.15s ease;
    transform: none;
  }
}

/* --- sign in ----------------------------------------------------------- */
.fc-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.fc-gate-card {
  background: var(--fc-paper);
  border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow);
  padding: 30px;
  width: min(400px, 100%);
  display: grid;
  gap: 16px;
}
/* A sign-in form is four lines; the pre-flight checks are four findings with a
   repair under each, and they are unreadable at 400px. */
.fc-gate-card[data-breed='true'] {
  width: min(620px, 100%);
}
.fc-field {
  display: grid;
  gap: 6px;
}
.fc-field > label {
  font-size: 11px;
  font-weight: 700;
  color: var(--fc-muted);
}
.fc-input {
  border: 1px solid var(--fc-line);
  border-radius: 7px;
  padding: 10px 12px;
  min-height: 40px;
  background: var(--fc-paper);
  width: 100%;
}
.fc-input:hover {
  border-color: #c9d3e2;
}
textarea.fc-input {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* --- shell -------------------------------------------------------------- */
.fc-shell {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: 100vh;
}
/* Window-tall and sticky, so the signed-in person stays bottom-left instead of
 * sitting at the bottom of a long Overzicht. */
.fc-side {
  background: var(--fc-paper);
  border-right: 1px solid var(--fc-line);
  padding: 27px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.fc-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 4px;
  text-align: left;
  color: var(--fc-ink);
  text-decoration: none;
}
/* MP Lab's own mark, where the "FC" monogram used to be. */
.fc-mark {
  width: 38px;
  height: auto;
  flex: none;
}
.fc-monogram {
  width: 33px;
  height: 35px;
  background: var(--fc-blue);
  color: #fff;
  border-radius: 8px 8px 8px 2px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -2px;
  padding-right: 2px;
  flex: none;
}
.fc-brandname {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: pre-line;
}
.fc-nav {
  display: grid;
  gap: 5px;
}
.fc-navbutton {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  min-height: 39px;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease;
}
.fc-navbutton:hover {
  background: var(--fc-bg);
}
.fc-navbutton:active {
  transform: translateY(0.5px);
}
.fc-navbutton[aria-current='page'] {
  color: var(--fc-blue);
  background: var(--fc-pale);
}
.fc-sidelabel {
  font-size: 11px;
  color: var(--fc-muted);
  padding: 0 12px;
  margin-bottom: 8px;
}
.fc-projectnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  text-align: left;
  font-size: 11px;
  border-radius: 6px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.fc-projectnav:hover {
  background: var(--fc-bg);
}
.fc-projectnav[aria-current='page'] {
  background: var(--fc-pale);
  color: var(--fc-blue);
}
.fc-square {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--fc-blue);
  flex: none;
}
/* A format's own mark in the rail: its cover, or its colour as a dot. */
.fc-formaticon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: var(--fc-line);
  flex: none;
}
.fc-formaticon[data-dot='true'] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin: 0 3.5px;
}
.fc-formatlijst {
  display: grid;
}
/* The twelve colour swatches on a format's page. */
.fc-kleuren {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fc-kleur {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--fc-paper);
  box-shadow: 0 0 0 1px var(--fc-line);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
}
.fc-kleur:hover {
  transform: scale(1.15);
}
.fc-kleur:focus-visible {
  outline: 2px solid var(--fc-blue);
  outline-offset: 2px;
}
.fc-kleur[aria-pressed='true'] {
  box-shadow: 0 0 0 2px var(--fc-ink);
}
.fc-kleur[data-bezet='true'] {
  opacity: 0.45;
}
/* Dragging: the thing in hand goes pale, the line says where it lands. */
.fc-dragging {
  opacity: 0.35;
}
.fc-dropline {
  position: fixed;
  z-index: 90;
  background: var(--fc-blue);
  border-radius: 2px;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--fc-pale);
}
.fc-sidebottom {
  margin-top: auto;
  padding-top: 40px;
}

/* --- the signed-in person, and the account menu -------------------------
 * Bottom-left in the rail, and the avatar in the top bar. Both open the same
 * menu, which is where Instellingen lives.
 */
.fc-usertrigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 7px 6px;
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  text-align: left;
  color: var(--fc-ink);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.fc-usertrigger b {
  display: block;
  font-size: 11px;
  line-height: 1.3;
}
.fc-usertrigger .fc-muted {
  display: block;
  font-size: 10px;
}
.fc-usertrigger:hover {
  background: var(--fc-bg);
  border-color: var(--fc-line);
}
.fc-usertrigger:focus-visible {
  outline: 2px solid var(--fc-blue);
  outline-offset: 2px;
}
.fc-usertrigger:active {
  background: var(--fc-pale);
}
.fc-usertrigger[aria-expanded='true'] {
  background: var(--fc-bg);
  border-color: var(--fc-line);
}
.fc-usertrigger-bare {
  width: auto;
  margin-top: 0;
  padding: 0;
  border-radius: 50%;
}
.fc-usertrigger-bare:hover,
.fc-usertrigger-bare[aria-expanded='true'] {
  background: none;
  border-color: transparent;
}
.fc-usertrigger-bare:hover .fc-user {
  border-color: var(--fc-pale);
}

.fc-usermenu {
  position: fixed;
  z-index: 60;
  width: 244px;
  max-width: calc(100vw - 24px);
  background: var(--fc-paper);
  border: 1px solid var(--fc-line);
  border-radius: 11px;
  box-shadow: var(--fc-shadow-lift);
  overflow: hidden;
}
.fc-usermenu-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--fc-line);
}
/* The text column only: the avatar next to it is a span too, and a blanket
 * span rule here takes its centering away. */
.fc-usermenu-head > div > b {
  display: block;
  font-size: 12px;
}
.fc-usermenu-head > div > span {
  display: block;
  font-size: 10px;
  color: var(--fc-muted);
  margin-top: 2px;
}
.fc-usermenu-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 12px;
  color: var(--fc-ink);
  cursor: pointer;
}
.fc-usermenu-item + .fc-usermenu-item {
  border-top: 1px solid var(--fc-line-soft);
}
.fc-usermenu-item:hover {
  background: var(--fc-bg);
}
.fc-usermenu-item:focus-visible {
  outline: 2px solid var(--fc-blue);
  outline-offset: -2px;
}
.fc-usermenu-item:active {
  background: var(--fc-pale);
}
.fc-topbar {
  padding: 16px 26px;
  background: var(--fc-paper);
  border-bottom: 1px solid var(--fc-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 72px;
}
.fc-breadcrumb {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fc-muted);
  min-width: 0;
}
.fc-user {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e9fc;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  flex: none;
}
.fc-content {
  padding: 27px 26px 36px;
  min-width: 0;
}
.fc-heading {
  margin-bottom: 24px;
}
/* The format's cover beside its heading. */
.fc-kopmetbeeld {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.fc-kopbeeld {
  width: 336px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex: none;
  box-shadow: var(--fc-shadow);
}
.fc-heading p {
  color: var(--fc-muted);
  margin-top: 9px;
  max-width: 54ch;
}
.fc-overline {
  color: var(--fc-muted);
  font-size: 11px;
  margin-bottom: 10px;
}
.fc-sectionhead {
  margin: 28px 0 15px;
}

/* --- buttons ------------------------------------------------------------
 * Eight states on every interactive element: default, hover, focus-visible,
 * active, disabled, loading, error, success.
 */
.fc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--fc-line);
  background: var(--fc-paper);
  border-radius: 7px;
  padding: 10px 13px;
  font-weight: 700;
  font-size: 11px;
  min-height: 38px;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    transform 0.08s ease;
}
.fc-button:hover:not(:disabled) {
  background: var(--fc-bg);
  border-color: #c9d3e2;
}
.fc-button:active:not(:disabled) {
  transform: translateY(1px);
}
.fc-button[data-primary] {
  background: var(--fc-blue);
  border-color: var(--fc-blue);
  color: #fff;
}
.fc-button[data-primary]:hover:not(:disabled) {
  background: #1c40db;
  border-color: #1c40db;
}
.fc-button[data-busy='true'] {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.fc-button[data-busy='true']::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid currentcolor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: fc-spin 0.7s linear infinite;
  color: var(--fc-muted);
}
.fc-button[data-primary][data-busy='true']::after {
  color: #fff;
}
@keyframes fc-spin {
  to {
    transform: rotate(1turn);
  }
}
.fc-textbutton {
  color: var(--fc-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fc-textbutton:hover {
  text-decoration: underline;
}

/* --- the tabs inside a format ------------------------------------------- */
.fc-workflow {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--fc-line);
  margin: 0 0 23px;
  padding-bottom: 0;
  overflow-x: auto;
}
.fc-step {
  background: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fc-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.12s ease;
}
.fc-step:hover {
  color: var(--fc-ink);
}
.fc-step[data-actief='true'] {
  color: var(--fc-blue);
  border-bottom-color: var(--fc-blue);
}

/* --- panels, notices, cards --------------------------------------------- */
.fc-panel {
  background: var(--fc-paper);
  border-radius: var(--fc-radius);
  padding: 21px;
  min-width: 0;
  box-shadow: var(--fc-shadow);
}
.fc-notice {
  background: var(--fc-pale);
  padding: 12px 14px;
  border-radius: 7px;
  color: #294894;
  font-size: 11px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.fc-notice[data-tone='waarschuwing'] {
  background: var(--fc-yellow);
  color: #6b4e00;
}
.fc-notice[data-tone='fout'] {
  background: #fdecea;
  color: var(--fc-red);
}
.fc-notice[data-tone='goed'] {
  background: #e7f6ee;
  color: var(--fc-green);
}

.fc-formatgrid {
  display: grid;
  /* A fixed card width, so four fit on a normal screen and the row is a row
   * of equal cards rather than two wide ones. */
  grid-template-columns: repeat(auto-fill, 280px);
  gap: 18px;
}
@media (max-width: 900px) {
  .fc-formatgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fc-formatcard {
  background: var(--fc-paper);
  border-radius: var(--fc-radius);
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--fc-shadow);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
  display: grid;
  grid-template-rows: auto 1fr;
  text-align: left;
  color: inherit;
  text-decoration: none;
}
.fc-formatcard:hover {
  box-shadow: var(--fc-shadow-lift);
}
.fc-formatcard:active {
  transform: translateY(1px);
}
.fc-cover {
  width: 100%;
  height: 159px;
  padding: 19px;
  display: flex;
  align-items: flex-end;
  background-color: #dbe5f3;
  background-size: cover;
  background-position: center;
  position: relative;
}
/* Never a broken tile: a cover that fails to load falls back to this. */
.fc-cover[data-placeholder='true'] {
  background-image:
    radial-gradient(120% 90% at 20% 10%, #2b3f8f 0%, transparent 55%),
    radial-gradient(90% 80% at 85% 25%, #4d6fe0 0%, transparent 60%),
    linear-gradient(160deg, #17203f 0%, #35519c 100%);
}
.fc-covertitle {
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-size: 22px;
  line-height: 1.1;
  text-shadow: 0 1px 12px rgb(0 0 0 / 35%);
}
.fc-formatbody {
  padding: 14px 17px 17px;
}
.fc-cardmeta {
  font-size: 10px;
  color: var(--fc-muted);
  margin-bottom: 12px;
}
.fc-outgrid {
  display: grid;
  grid-template-columns: 25px repeat(3, minmax(0, 1fr));
  gap: 7px 4px;
  align-items: center;
  font-size: 10px;
  line-height: 1.4;
}
.fc-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  white-space: nowrap;
  color: var(--fc-muted);
}
.fc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentcolor;
  flex: none;
}
.fc-status[data-state='goedgekeurd'] {
  color: var(--fc-green);
}
.fc-status[data-state='in review'] {
  color: var(--fc-blue);
}
.fc-status[data-state='concept'] {
  color: var(--fc-amber);
}
.fc-status[data-outdated='true'] {
  color: var(--fc-amber);
}
.fc-workline {
  margin-top: 13px;
  border-top: 1px solid var(--fc-line-soft);
  padding-top: 10px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--fc-muted);
}

.fc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--fc-line);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  color: var(--fc-muted);
  white-space: nowrap;
}
.fc-chip[data-tone='waarschuwing'] {
  background: var(--fc-yellow);
  border-color: #eddfa7;
  color: #73570c;
}
.fc-chip[data-tone='goed'] {
  background: #e7f6ee;
  border-color: #bfe3ce;
  color: var(--fc-green);
}
.fc-chip[data-tone='fout'] {
  background: #fdecea;
  border-color: #f3c9c3;
  color: var(--fc-red);
}

.fc-empty {
  background: var(--fc-paper);
  border: 1px dashed var(--fc-line);
  border-radius: var(--fc-radius);
  padding: 34px;
  text-align: center;
  color: var(--fc-muted);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.fc-table th {
  text-align: left;
  color: var(--fc-muted);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--fc-line);
}
.fc-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--fc-line-soft);
  vertical-align: top;
}
.fc-scroll {
  overflow-x: auto;
}

.fc-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 8px;
  max-width: min(380px, calc(100vw - 36px));
}
.fc-toast > div {
  background: var(--fc-ink);
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: var(--fc-shadow-lift);
  animation: fc-rise 0.2s ease both;
}
.fc-toast > div[data-tone='fout'] {
  background: var(--fc-red);
}

@media (max-width: 760px) {
  .fc-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .fc-side {
    border-right: 0;
    border-bottom: 1px solid var(--fc-line);
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px;
    overflow-x: auto;
    /* A row, not a column: window-tall and sticky would take the whole screen.
     * The person goes with it, which is why the top bar keeps the avatar. */
    position: static;
    height: auto;
    overflow-y: visible;
  }
  .fc-side .fc-sidebottom,
  .fc-side .fc-sidegroup[data-hide-narrow] {
    display: none;
  }
  .fc-nav {
    grid-auto-flow: column;
    gap: 4px;
  }
  .fc-content {
    padding: 20px 16px 32px;
  }
  .fc-topbar {
    padding: 14px 16px;
  }
}
