:root {
  --fc-small-font-size: .85em;
  --fc-page-bg-color: #fff;
  --fc-neutral-bg-color: hsla(0,0%,82%,.3);
  --fc-neutral-text-color: grey;
  --fc-border-color: #ddd;
  --fc-button-text-color: #fff;
  --fc-button-bg-color: #2c3e50;
  --fc-button-border-color: #2c3e50;
  --fc-button-hover-bg-color: #1e2b37;
  --fc-button-hover-border-color: #1a252f;
  --fc-button-active-bg-color: #1a252f;
  --fc-button-active-border-color: #151e27;
  --fc-event-bg-color: #3788d8;
  --fc-event-border-color: #3788d8;
  --fc-event-text-color: #fff;
  --fc-event-selected-overlay-color: rgba(0,0,0,.25);
  --fc-more-link-bg-color: #d0d0d0;
  --fc-more-link-text-color: inherit;
  --fc-event-resizer-thickness: 8px;
  --fc-event-resizer-dot-total-width: 8px;
  --fc-event-resizer-dot-border-width: 1px;
  --fc-non-business-color: hsla(0,0%,84%,.3);
  --fc-bg-event-color: #8fdf82;
  --fc-bg-event-opacity: 0.3;
  --fc-highlight-color: rgba(188,232,241,.3);
  --fc-today-bg-color: rgba(255,220,40,.15);
  --fc-now-indicator-color: red;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  height: 100vh;
  height: -moz-available;
  height: -webkit-fill-available;
  width: fill-available;
  scroll-behavior: smooth;
}

body {
  font-family: Geneva, Verdana, Tahoma, sans-serif;
  font-size: 1.6rem;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
@media screen and (max-width: 640px) {
  body {
    font-size: 2.4vw;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
form,
fieldset,
.bar {
  margin: 20px 0 auto;
}
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child,
p:first-child,
form:first-child,
fieldset:first-child,
.bar:first-child {
  margin-top: 0;
}

.eyedropper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 10px;
  border: 1px solid transparent;
}
.eyedropper .box {
  position: relative;
  cursor: pointer;
}
.eyedropper .box.-large {
  width: 80px;
  height: 80px;
}
.eyedropper .box.-small {
  width: 40px;
  height: 40px;
}
.eyedropper .box .preview {
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
}
.eyedropper .box .-hidden {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.eyedropper .box:checked {
  border-color: #000;
}

form {
  display: flex;
  flex-direction: column;
}
form fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
form fieldset legend {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-bottom: 10px;
}
form fieldset input[type=text],
form fieldset input[type=email],
form fieldset input[type=password] {
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  color: #000;
  background-color: #f2f2f2;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}
@supports (mask-image: paint(smooth-corners)) {
  form fieldset input[type=text],
  form fieldset input[type=email],
  form fieldset input[type=password] {
    border-radius: 0;
    mask-image: paint(smooth-corners);
    --smooth-corners: 10;
  }
}
form fieldset input[type=text]:focus,
form fieldset input[type=email]:focus,
form fieldset input[type=password]:focus {
  outline-offset: 2px;
  z-index: 1;
}
form fieldset input[type=checkbox] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}
form fieldset input[type=checkbox]:checked {
  background-color: #3788d8;
  border-color: #3788d8;
}
form fieldset input[type=checkbox]:focus {
  outline-offset: 2px;
  z-index: 1;
}
form fieldset input[type=radio] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}
form fieldset input[type=radio]:checked {
  background-color: #3788d8;
  border-color: #3788d8;
}
form fieldset input[type=radio]:focus {
  outline-offset: 2px;
  z-index: 1;
}
form fieldset select {
  border: none;
  border-radius: 10px;
  padding: 10px 32px 10px 10px;
  font-size: 16px;
  color: #000;
  background-color: #f2f2f2;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0%2C1%2C0-1.414-1.414Z%22%20fill%3D%22%23000000%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: 12px;
  background-position: calc(100% - 10px) center;
  background-repeat: no-repeat;
}
form fieldset select::-ms-expand {
  display: none;
}
@supports (mask-image: paint(smooth-corners)) {
  form fieldset select {
    border-radius: 0;
    mask-image: paint(smooth-corners);
    --smooth-corners: 10;
  }
}
form fieldset select:focus {
  outline-offset: 2px;
  z-index: 1;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 auto;
  gap: 1em;
}
.bar:first-child {
  margin-top: 0;
}
.bar button {
  background-color: rgb(127, 127, 127);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 100ms ease-in-out;
}
@supports (mask-image: paint(smooth-corners)) {
  .bar button {
    border-radius: 0;
    mask-image: paint(smooth-corners);
    --smooth-corners: 10;
  }
}
.bar button:hover {
  background-color: black;
}
.bar button.-active, .bar button:active {
  background-color: #4c4c4c;
}
.bar button.-active {
  cursor: default;
  background-color: #cccccc;
  color: rgb(127, 127, 127);
}
.bar button:focus {
  outline-offset: 2px;
  z-index: 1;
}
.bar button[data-autofocus] {
  background-color: #3788d8;
}
.bar button[data-autofocus]:hover {
  background-color: #246eb8;
}
.bar button[data-autofocus]:active {
  background-color: #1c558d;
}
.bar button svg {
  display: block;
}
.bar select,
.bar input {
  margin: 0;
}
.bar.buttons {
  display: flex;
  justify-content: end;
  gap: 10px;
}
.bar.buttons .group.buttons,
.bar.buttons button {
  order: 1;
}
.bar.buttons .group.buttons:first-child,
.bar.buttons button:first-child {
  margin-left: auto;
}
.bar.buttons .diverge {
  order: 0;
}
.bar.buttons .diverge:first-child {
  margin-left: 0;
}
.bar.buttons .diverge:first-child + button {
  margin-left: auto;
}
.bar.buttons.-dismiss .dismiss {
  order: 66;
}
.bar.buttons.-resolve .resolve {
  order: 66;
}
.bar.buttons.-reject .reject {
  order: 66;
}
.bar.buttons.-diverge .group.buttons,
.bar.buttons.-diverge button {
  margin-left: 0;
}
.bar.buttons.-diverge .diverge {
  order: 66;
  margin-left: auto;
}
.bar.buttons.-diverge .diverge:first-child + .group.buttons, .bar.buttons.-diverge .diverge:first-child + button {
  margin-left: 0;
}

.group {
  display: flex;
  gap: 0;
}
.group *:not(:first-child, :last-child) {
  border-radius: 0;
}
@supports (mask-image: paint(smooth-corners)) {
  .group *:not(:first-child, :last-child) {
    --smooth-corners: 0;
  }
}
.group *:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
@supports (mask-image: paint(smooth-corners)) {
  .group *:first-child {
    --smooth-corners: 10 0 0 10;
  }
}
.group *:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
@supports (mask-image: paint(smooth-corners)) {
  .group *:last-child {
    --smooth-corners: 0 10 10 0;
  }
}
.group.-start {
  justify-self: start;
  order: 0;
}
.group.-end {
  justify-self: end;
  order: 66;
}
.group.-center {
  justify-self: center;
  order: 1;
}

.dialog {
  z-index: 8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: 16px;
  line-height: 24px;
}
.dialog .exit {
  z-index: 10000;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  background-color: #555;
  border-radius: 10px;
  border: none;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}
.dialog .exit:hover {
  background-color: #6f6f6f;
}
.dialog .exit:active {
  background-color: #222222;
}
.dialog .contents {
  position: relative;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  margin: 20px;
}
@media screen and (max-width: 640px) {
  .dialog .contents {
    margin: 10px;
    border-radius: 20px;
    max-width: 100%;
    overflow: auto;
  }
}
@supports (mask-image: paint(smooth-corners)) {
  .dialog .contents {
    border-radius: 0;
    mask-image: paint(smooth-corners);
    --smooth-corners: 10;
  }
  @media screen and (max-width: 640px) {
    .dialog .contents {
      --smooth-corners: 20;
    }
  }
}
.dialog h2 {
  margin-top: -2px;
}

.event {
  margin: 0;
  padding: 0;
  background-color: inherit;
  display: inline;
  overflow: hidden;
}
.event__time, .event__title {
  margin: 0;
  padding: 0;
  display: inline;
}
.event__time {
  font-size: 1.2rem;
  float: right;
}
@media screen and (max-width: 640px) {
  .event__time {
    font-size: 6px;
  }
}
.event__title {
  font-size: 1.6rem;
  background-color: inherit;
}
@media screen and (max-width: 640px) {
  .event__title {
    font-size: 12.3px;
  }
}
.fc-daygrid-dot-event .event__time {
  float: left;
  margin-right: 3px;
  font-size: 1.6rem;
}
@media screen and (max-width: 640px) {
  .fc-daygrid-dot-event .event__time {
    font-size: 12.3px;
  }
}
.fc-daygrid-dot-event .event__title {
  font-size: 1.2rem;
}
@media screen and (max-width: 640px) {
  .fc-daygrid-dot-event .event__title {
    font-size: 8px;
  }
}

.header {
  height: 64px;
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  box-sizing: border-box;
  background-color: #f5f5f5;
}
@media screen and (max-width: 640px) {
  .header {
    top: auto;
    bottom: 0;
  }
}
.header.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
  align-content: center;
}
.header.bar button {
  min-height: 32px;
  min-width: 38px;
  max-height: 44px;
  max-width: 44px;
  width: 10vh;
  height: 8vh;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 640px) {
  .header.bar button {
    padding: 5px 10px;
  }
}
.header.bar .group {
  gap: 1px;
}
.header h1 {
  font-size: 1em;
  margin: 0;
  padding: 0;
}
@media screen and (max-width: 640px) {
  .header h1 {
    font-size: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    width: 100%;
    text-align: center;
    line-height: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    padding: 0 1em;
  }
}

.fc {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media screen and (max-width: 640px) {
  .fc {
    /*
    height: calc(100vh - 210px);
    bottom: 128px;
    */
    bottom: 64px;
  }
}
.fc .fc-event-main {
  background-color: inherit;
}
.fc .fc-toolbar.fc-header-toolbar {
  margin: 0.5em;
}
.fc .fc-toolbar-title {
  font-size: 1em;
  text-align: center;
}
.fc .fc-col-header-cell-cushion {
  display: inline-block;
  padding: 2px 30%;
}
.fc .fc-daygrid-week-number {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0;
  line-height: 20px;
  text-align: center;
  margin: 1px;
}
.fc .fc-event-main {
  overflow: hidden;
}