




.pm-scale {
  position: relative;
  width: 300px;
  height: calc(850px * (300 / 402));
  pointer-events: none;
  user-select: none;
}
.pm-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 850px;
  transform: scale(calc(300 / 402));
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #17191b;                 
  color: #d8dbdf;                      
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: left;
}


.pm-navbar { display: flex; align-items: center; height: 52px; padding: 0 12px; flex: none; }
.pm-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: #20242c;
  border-radius: 8px 0 0 8px;
  color: #e7e9ed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.pm-nav-btn svg { width: 19px; height: 19px; }

.pm-nav-btn::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background: #939aa6;
}
.pm-listen {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 44px;
  padding: 0 12px;
  overflow: hidden;
  background: #20242c;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.pm-listen-info { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; }
.pm-listen-title { font-size: 17px; font-weight: 650; line-height: 1.25; color: #e7e9ed; white-space: nowrap; }
.pm-listen-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.48px; color: #939aa6; white-space: nowrap; }

.pm-dither {
  position: absolute;
  inset: 0 0 0 133px;
  background: url('/pixelos/assets/shots/listening-dither-static.png') right center / auto 100% no-repeat;
  opacity: 0.5;
}
.pm-dither::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, #20242c 8px, rgba(32, 36, 44, 0) 130px); }


.pm-panel { flex: none; padding-top: 12px; border-bottom: 1px solid #2c3034; }
.pm-monthyear {
  margin: 0 0 2px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 650;
  line-height: 13px;
  letter-spacing: 1.2px;
  color: #858a91;
}

.pm-dates { display: flex; align-items: center; gap: 4px; height: 55px; margin-left: -8px; }
.pm-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 63px;
  height: 55px;
  flex: none;
  padding: 3px 0 4px;
}
.pm-date-dow { font-family: var(--font-mono); font-size: 12px; line-height: 13px; letter-spacing: 1.44px; text-transform: uppercase; color: #858a91; }
.pm-date-day { font-family: var(--font-mono); font-size: 22px; line-height: 22px; font-weight: 500; color: #adb1b7; }
.pm-date-dots { display: flex; height: 4px; margin-top: 5px; color: #858a91; }
.pm-date-dots svg { display: block; }
.pm-date.is-today .pm-date-dow, .pm-date.is-today .pm-date-dots { color: #7dba18; }
.pm-date.is-today .pm-date-day { color: #7dba18; font-weight: 650; }


.pm-main { position: relative; flex: 1; overflow: hidden; }

.pm-band {
  position: absolute;
  inset: 0 0 0 56px;
  z-index: 0;
  background: linear-gradient(to right, rgba(125, 186, 24, 0.1) 0, rgba(0, 0, 0, 0) 80px), rgba(216, 219, 223, 0.04);
}
.pm-cal { position: relative; z-index: 1; padding: 8px 12px 0; }
.pm-row { display: flex; align-items: stretch; margin-bottom: 26px; }
.pm-gap { position: relative; }

.pm-timecol { position: relative; width: 44px; flex: none; padding: 4px 8px 0 0; text-align: right; }
.pm-t-start { display: block; font-family: var(--font-mono); font-size: 12px; line-height: 12px; letter-spacing: 0.48px; color: #858a91; }
.pm-t-end { position: absolute; right: 8px; bottom: 4px; font-family: var(--font-mono); font-size: 11px; line-height: 11px; letter-spacing: 0.48px; color: #858a91; opacity: 0.65; }


.pm-eventcol { position: relative; display: flex; align-items: stretch; flex: 1; padding-left: 12px; border-left: 1px solid rgba(0, 0, 0, 0); }
.pm-eventcol::before { content: ''; position: absolute; left: -2px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--pm-bar); }

.pm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--pm-tint), rgba(0, 0, 0, 0) 58%), rgba(40, 44, 50, 0.55);
  border: 1px solid rgba(242, 243, 244, 0.12);
  border-radius: 6px;
}

.pm-card-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 0;
  width: 120px;
  font-size: 22px;
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: 1.76px;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pm-mark);
}
.pm-card-head { position: relative; z-index: 1; display: block; margin: 0 0 6px; padding-right: 80px; }
.pm-card-time { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.48px; color: #adb1b7; white-space: nowrap; }
.pm-card-title { position: relative; z-index: 1; display: block; margin: 0 0 14px; font-size: 16px; color: #d8dbdf; }
.pm-card-snippet {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 19px;
  color: #adb1b7;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-card-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-bottom: 4px; }
.pm-chip {
  max-width: 140px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-chip-person { background: rgba(125, 186, 24, 0.12); color: #bcdf5e; }
.pm-chip-topic { background: rgba(143, 167, 212, 0.22); color: #8fa7d4; }
.pm-chip-topic-alt { background: rgba(185, 160, 210, 0.22); color: #b4a2cf; }

.pm-cat-meeting { --pm-tint: rgba(125, 186, 24, 0.09); --pm-mark: rgba(125, 186, 24, 0.16); --pm-bar: #527619; }
.pm-cat-meal { --pm-tint: rgba(221, 177, 82, 0.09); --pm-mark: rgba(221, 177, 82, 0.16); --pm-bar: #8a713b; }
.pm-cat-work { --pm-tint: rgba(143, 167, 212, 0.09); --pm-mark: rgba(143, 167, 212, 0.16); --pm-bar: #5d6b86; }

.pm-tick { position: absolute; top: 50%; left: 1px; right: 0; display: flex; align-items: center; height: 11px; }
.pm-tick-time { flex: none; width: 36px; padding-right: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.4px; text-align: right; color: #858a91; opacity: 0.55; }
.pm-tick-line { flex: 1; border-top: 1px dashed #2c3034; opacity: 0.55; }


.pm-fab {
  position: absolute;
  right: 16px;
  bottom: 104px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #32363b;
  border: 1px solid #2c3034;
  border-radius: 50%;
  color: #adb1b7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.45);
}
.pm-fab svg { width: 22px; height: 22px; }


.pm-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: stretch;
  height: 90px;
  padding: 6px 6px 34px;
  background: #23262a;
  border-top: 1px solid rgba(242, 243, 244, 0.06);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
.pm-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: 1; padding: 4px 0; color: #d8dbdf; }
.pm-tab svg { width: 22px; height: 22px; }
.pm-tab-label { font-size: 10px; line-height: 10px; font-weight: 500; letter-spacing: 0.4px; white-space: nowrap; }
.pm-tab.is-active { color: #7dba18; }


.pm-crop {
  position: relative;
  height: 340px;
  padding: 0;
  overflow: hidden;
  container-type: inline-size;
  background: #17191b;                 
}
.pm-crop .pm-scale { position: absolute; inset: 0; width: auto; height: auto; }
.pm-crop .pm-screen { transform: scale(1.1) translateY(-120px); }
.pm-crop .pm-screen { transform: scale(calc(tan(atan2(100cqw, 402px)))) translateY(-120px); }
@media (min-width: 768px) {
  .pm-crop { height: 400px; }          
}
