/* 交接单（js/handover.js）：湖心亭那张今天的几件事。2026-11-19 从 desktop.css 拆出来。 */

/* 桌面一角的交接单（js/handover.js）：一张便笺纸用胶带贴在右上角。
   纸和研修记录单是同一种；印的字是塞梅尔维斯列的，红笔是瓦伦缇娜添的（纸面上的才歪） */
#desktop .hand {
  position: absolute;
  top: 20px;
  right: 22px;
  box-sizing: border-box;
  width: 252px;
  padding: 12px 12px 10px;
  background: radial-gradient(circle, #dfe2e6 1px, transparent 1.2px) 0 0 / 12px 12px, #f6f4ee;
  box-shadow: 2px 3px 0 rgb(0 0 0 / 0.25);
  color: #2b2d33;
  font-family: var(--px);
  font-size: 12px;
  line-height: 1.5;
  rotate: 0.8deg;
}

/* 胶带 */
#desktop .hand::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 56px;
  height: 14px;
  translate: -50%;
  rotate: -2.5deg;
  background: rgb(232 220 168 / 0.8);
  box-shadow: 1px 1px 0 rgb(0 0 0 / 0.12);
}

#desktop .hand button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  cursor: pointer;
}

#desktop .hand button:focus-visible {
  outline: 1px dotted currentColor;
}

#desktop .hand .hand-head {
  padding-bottom: 4px;
  border-bottom: 3px double #2b2d33;
}

.hand-head b {
  font-weight: normal;
  letter-spacing: 4px;
}

.hand-head small {
  flex: 1;
  color: #7e848d;
  font-size: 12px;
}

.hand-head em {
  color: var(--seal);
  font-style: normal;
}

.hand ol {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.hand.fold ol {
  display: none;
}

#desktop .hand.fold .hand-head {
  padding-bottom: 0;
  border-bottom: 0;
}

.hand li button {
  padding: 2px 0;
}

.hand li button:hover span {
  text-decoration: underline dotted;
}

/* 待办的是一个空框，办完盖一枚「讫」 */
.hand-s i {
  flex: none;
  align-self: center;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1px solid #2b2d33;
  font-style: normal;
  line-height: 1;
}

.hand-s.done i {
  border-color: var(--seal);
  border-radius: 50%;
  color: var(--seal);
  rotate: -8deg;
}

.hand-s b {
  flex: none;
  min-width: 3em;
  color: #7e848d;
  font-weight: normal;
}

.hand-s.done span {
  color: #7e848d;
}

.hand-v {
  color: var(--pen);
  rotate: -1.2deg;
  transform-origin: left;
}

.hand-s + .hand-v {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed #b6bcc5;
}

.hand-sig {
  text-align: right;
}

/* 待办清单：交接单底下另贴的一张黄便签（js/todo.js）。交接单折起来它还在 */
#desktop .hand-guest {
  position: absolute;
  top: calc(100% + 16px);
  left: 14px;
  right: 22px;
  padding: 10px 12px 8px;
  background: #f1e3a0;
  box-shadow: 2px 3px 0 rgb(0 0 0 / 0.25);
  color: #2b2d33;
  rotate: -2deg;
}

#desktop .hand-guest::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 44px;
  height: 14px;
  translate: -50%;
  rotate: 3deg;
  background: rgb(240 236 220 / 0.75);
  box-shadow: 1px 1px 0 rgb(0 0 0 / 0.12);
}

#desktop .hand-guest > b {
  display: block;
  padding-bottom: 3px;
  border-bottom: 1px solid #2b2d3380;
  font-weight: normal;
  letter-spacing: 3px;
}

#desktop .hand-guest ol {
  margin: 4px 0 0;
  max-height: 260px;
  overflow-y: auto;
}

#desktop .hand-guest li {
  display: flex;
  align-items: baseline;
}

#desktop .hand-guest li.done:not(.wax) span {
  text-decoration: line-through;
}

/* 登记那行盖的是一枚小蜡封（wax.js 的 mini），不要讫的圆框 */
#desktop .hand-guest li.wax i {
  width: 20px;
  height: 20px;
  margin: 0 4px 0 0;
  border: 0;
  outline: 0;
  background: none;
  rotate: -12deg;
}

#desktop .hand-guest .wax-mini {
  width: 100%;
  height: 100%;
  filter: drop-shadow(1px 1px 0 #0000004d);
}

/* 撕掉：平时淡，指上去才显 */
#desktop .hand-guest .todo-x {
  flex: none;
  width: auto;
  padding: 0 2px;
  color: #2b2d3340;
}

#desktop .hand-guest li:hover .todo-x,
#desktop .hand-guest .todo-x:focus-visible {
  color: var(--seal);
}

#desktop .hand-guest input {
  box-sizing: border-box;
  width: 100%;
  margin-top: 4px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px dashed #2b2d3380;
  background: none;
  color: inherit;
  font: inherit;
  outline: none;
}

#desktop .hand-guest input::placeholder {
  color: #2b2d3370;
}

#desktop.mobile .hand-guest {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  margin: 16px 6px 4px;
}

/* 手机上排在图标前面，占一整行，不歪 */
#desktop.mobile .hand {
  position: relative;
  top: auto;
  right: auto;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  rotate: none;
}

#desktop.mobile .hand li button {
  align-items: center;
  min-height: 30px;
}
