.prop-page,
.prop-page body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #ececf0;
  color: #111;
}
.prop-page {
  --red: #d8322c;
  --ios-line: #d9d9de;
  --ios-sub: #626267;
  --paper: #fff;
}
.prop-page body {
  position: fixed;
  inset: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang HK",
    "Microsoft JhengHei", sans-serif;
}
.prop-page #app {
  height: 100%;
  height: 100dvh;
}
#phone {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: var(--paper);
  margin: auto;
  color: #161618;
}
.ios-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, env(safe-area-inset-right)) 0
    max(24px, env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  height: calc(40px + env(safe-area-inset-top));
  flex: none;
  font-size: 16px;
  font-weight: 730;
  line-height: 1;
}
.ios-status button {
  display: flex;
  align-items: center;
  min-width: 48px;
  min-height: 40px;
  padding: 0 3px;
  color: inherit;
  font-weight: inherit;
}
.system-icons {
  display: flex;
  gap: 3px;
  align-items: center;
}
#phone-view {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
  min-height: 0;
  padding-bottom: max(15px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.home-indicator {
  position: absolute;
  left: 50%;
  bottom: max(5px, calc(env(safe-area-inset-bottom) / 3));
  transform: translateX(-50%);
  width: 112px;
  height: 4px;
  z-index: 4;
  background: currentColor;
  border-radius: 5px;
  pointer-events: none;
}
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) {
    .home-indicator {
      display: none;
    }
  }
}
.ios-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ios-scroll::-webkit-scrollbar {
  display: none;
}
.ios-nav,
.ios-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 13px;
  flex-shrink: 0;
}
.ios-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--red);
  font-size: 17px;
  padding: 0 4px;
}
.ios-bottom {
  border-top: 1px solid var(--ios-line);
  background: #fafafa;
  padding-inline: 20px;
}
.ios-large {
  padding: 14px 22px 19px;
}
.ios-large h1 {
  font-size: 36px;
  letter-spacing: -0.045em;
  line-height: 1.2;
  font-weight: 720;
}
.ios-large small {
  display: block;
  color: var(--red);
  font-size: 17px;
  margin-bottom: 5px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 1px 10px 7px;
}
.week-strip button,
.week-strip .adjacent-day {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 3px;
  padding: 0;
  color: inherit;
  min-height: 52px;
}
.week-strip small {
  font-size: 11px;
  color: var(--ios-sub);
}
.week-strip .adjacent-day b {
  color: #85858c;
}
.week-strip b,
.month-grid button > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-weight: 550;
}
.week-strip .selected b,
.month-grid .selected > span {
  background: var(--red);
  color: white;
}
.day-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 11px 21px;
  border-block: 1px solid var(--ios-line);
  background: #f7f7f9;
}
.day-heading b {
  font-size: 21px;
}
.day-heading span {
  font-size: 14px;
  color: #4f4f52;
}
.all-day {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0 7px 16px;
  color: var(--ios-sub);
  font-size: 11px;
  border-bottom: 1px solid var(--ios-line);
}
.all-day span {
  border-left: 1px solid var(--ios-line);
  height: 15px;
}
.hours {
  padding: 12px 0 20px;
}
.hour-row {
  display: flex;
  position: relative;
  min-height: 62px;
}
.hour-row > span {
  position: relative;
  top: -7px;
  width: 56px;
  flex: none;
  text-align: right;
  padding-right: 9px;
  color: var(--ios-sub);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.hour-content {
  flex: 1;
  min-width: 0;
  border-top: 1px solid var(--ios-line);
  border-left: 1px solid #f1f1f3;
  padding: 4px 9px 3px 4px;
}
.time-event {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  text-align: left;
  width: 100%;
  min-height: 45px;
  margin-bottom: 2px;
  padding: 6px 9px;
  color: #733238;
  border-left: 3px solid #d7494f;
  border-radius: 3px;
  background: #ffe8e8;
}
.time-event b {
  font-size: 14px;
  line-height: 1.45;
}
.time-event small {
  font-size: 11px;
}
.now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  display: flex;
  align-items: center;
  color: var(--red);
  pointer-events: none;
}
.now-line time {
  font-size: 11px;
  font-weight: 700;
  background: var(--paper);
  padding: 3px 6px;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.now-line i {
  position: relative;
  height: 1px;
  background: var(--red);
  flex: 1;
  margin-left: 3px;
}
.now-line i::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 13px 15px;
  border-bottom: 1px solid var(--ios-line);
}
.month-grid .weekday {
  text-align: center;
  color: var(--ios-sub);
  font-size: 12px;
  padding: 8px 0;
}
.month-grid button {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: inherit;
  font-size: 18px;
}
.month-grid button.marked::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #838087;
}
.agenda-date {
  padding: 10px 19px;
  background: #f4f4f6;
  color: #45454a;
  font-size: 14px;
  text-align: left;
  font-weight: 600;
}
.entry-row,
.draft-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 17px;
  text-align: left;
  border-bottom: 1px solid var(--ios-line);
  color: inherit;
}
.entry-row time {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
}
.entry-row > span {
  padding-left: 10px;
  border-left: 3px solid #d85e61;
  flex: 1;
}
.entry-row b {
  font-size: 16px;
  font-weight: 580;
  line-height: 1.5;
}
.entry-row small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ios-sub);
}
.entry-row > svg,
.draft-row svg {
  color: #95959a;
  margin-left: auto;
}
.ios-empty,
.empty-day {
  color: var(--ios-sub);
  font-size: 14px;
  padding: 18px 20px;
}
.forecast-scroll {
  position: relative;
  touch-action: pan-y;
}
.forecast-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.blank-future {
  height: 500vh;
  min-height: 2500px;
  background: var(--paper);
}
.after-end .ios-status,
.after-end .home-indicator {
  visibility: hidden;
}
.forecast-scroll:focus {
  outline: 0;
}
.event-detail {
  padding: 15px 21px 30px;
}
.event-heading {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 6px 0 17px;
}
.event-heading h1 {
  font-size: clamp(24px, 6.5vw, 32px);
  line-height: 1.42;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.event-rule {
  width: 5px;
  flex: none;
  background: #dc5056;
  border-radius: 3px;
}
.detail-date,
.detail-time {
  margin: 4px 0;
  color: #45454a;
  font-size: 17px;
}
.detail-field {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-block: 1px solid var(--ios-line);
  margin: 25px 0;
}
.detail-field span {
  color: var(--ios-sub);
}
.detail-field b,
.editor-calendar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.detail-field i,
.editor-calendar i {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: #d7565c;
  border-radius: 50%;
}
.detail-notes h2 {
  font-size: 18px;
}
.detail-notes ul {
  padding-left: 1.3em;
  margin-block: 10px;
}
.detail-notes li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.sync-button {
  font-weight: 700;
}
.edit-scroll {
  background: #f2f2f7;
}
.ios-group {
  margin: 0 16px 16px;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
}
.ios-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 12px;
}
.ios-field + .ios-field {
  border-top: 1px solid var(--ios-line);
}
.ios-field span,
.title-field > span {
  font-size: 16px;
  font-weight: 530;
}
.ios-field select,
.ios-field input {
  min-width: 0;
  max-width: 72%;
  background: #f3f3f5;
  color: #262628;
  border: 0;
  padding: 7px;
  border-radius: 6px;
  font-size: 16px;
  color-scheme: light;
}
.title-field {
  display: grid;
  gap: 7px;
  padding: 13px 0;
}
.title-field textarea {
  border: 0;
  background: #fff;
  color: #18181b;
  width: 100%;
  padding: 2px 0;
  font-size: 17px;
  line-height: 1.5;
  resize: vertical;
}
.editor-calendar {
  padding: 0 24px 20px;
  color: var(--ios-sub);
  font-size: 14px;
}
#phone.wallpaper {
  color: white;
  background: #332d35 url("../media/e6.webp") center/cover;
}
#phone.wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#111d3d50, #27325319 55%, #1411269e);
  z-index: -1;
}
.wallpaper .ios-status {
  background: linear-gradient(
    white env(safe-area-inset-top),
    transparent env(safe-area-inset-top)
  );
}
.lock-body,
.home-body {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(22px, 6vh, 68px) 18px 12px;
}
.lock-symbol {
  opacity: 0.92;
  margin-bottom: 10px;
}
.lock-body p,
.home-date {
  font-size: 20px;
  font-weight: 550;
  text-shadow: 0 2px 8px #0004;
}
.lock-time {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: -0.055em;
  font-size: clamp(68px, 22vw, 120px);
  line-height: 1.05;
}
.unlock-phone {
  margin-top: auto;
  min-height: 48px;
  color: white;
  font-size: 14px;
  text-shadow: 0 1px 4px #000;
}
.home-body {
  align-items: flex-start;
  gap: 28px;
  text-align: left;
  padding-inline: 30px;
}
.home-calendar {
  display: grid;
  gap: 5px;
  justify-items: center;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 5px #000;
}
.calendar-icon {
  width: 39px;
  height: 39px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #141416;
  border-radius: 9px;
  line-height: 1;
  text-shadow: none;
  box-shadow: 0 1px 4px #0001;
}
.calendar-icon small {
  font-size: 8px;
  color: #d52a25;
  font-weight: 690;
  margin-bottom: 1px;
}
.calendar-icon b {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.07em;
}
.home-calendar .calendar-icon {
  width: 61px;
  height: 61px;
  border-radius: 14px;
}
.home-calendar .calendar-icon small {
  font-size: 11px;
}
.home-calendar .calendar-icon b {
  font-size: 34px;
}
#banner-slot {
  position: absolute;
  z-index: 6;
  top: calc(42px + env(safe-area-inset-top));
  left: 8px;
  right: 8px;
  color: #151518;
  pointer-events: none;
}
.notice-shell {
  position: relative;
  visibility: hidden;
  width: 100%;
  display: flex;
  text-align: left;
  align-items: center;
  gap: 11px;
  background: rgba(241, 241, 246, 0.95);
  color: #151518;
  border-radius: 18px;
  padding: 13px 15px;
  box-shadow: 0 6px 25px #13151a30;
}
.notice-shell.notification {
  visibility: visible;
  pointer-events: auto;
  animation: drop-in 0.26s cubic-bezier(0.15, 0.85, 0.25, 1.08);
}
@keyframes drop-in {
  from {
    top: calc(-130px - env(safe-area-inset-top));
  }
  to {
    top: 0;
  }
}
.notice-body {
  flex: 1;
  min-width: 0;
}
.notice-app {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #45454c;
  font-size: 12px;
  margin-bottom: 4px;
}
.notice-app small {
  font-size: 11px;
  color: #6f6f75;
}
.notice-body b {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#phone.high-contrast {
  --red: #a41513;
  --ios-line: #53535a;
  --ios-sub: #262629;
  color: #000;
}
#phone.high-contrast.wallpaper {
  color: #fff;
}
#phone.high-contrast.wallpaper::before {
  background: linear-gradient(#071124be, #11172570 60%, #090d18aa);
}
.high-contrast .time-event {
  background: #ffdfd9;
  color: #370b05;
  border-color: #8c1515;
}
.high-contrast .detail-date,
.high-contrast .detail-time,
.high-contrast .agenda-date,
.high-contrast .day-heading span {
  color: #111;
}
.fx-noise
  #phone
  :is(h1, h2, h3, b, li, .detail-date, .detail-time, .empty-day, .lock-time) {
  animation: text-fault var(--fault-period, 3.7s) steps(1, end) infinite;
}
@keyframes text-fault {
  0%,
  79%,
  83%,
  96%,
  100% {
    text-shadow: none;
    transform: none;
  }
  80%,
  97% {
    text-shadow:
      var(--fault-distance, 1.3px) 0 var(--fault-color-a, #f34d73),
      calc(0px - var(--fault-distance, 1.3px)) 0 var(--fault-color-b, #40c4c3);
  }
  82% {
    text-shadow:
      -1px 1px #d95f89,
      1px -1px #3da9a8;
    transform: translateX(0.5px);
  }
}
#fx-canvas,
#sync-label {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}
#sync-label {
  z-index: 21;
  display: grid;
  place-content: center;
  color: #fff;
  font-size: clamp(23px, 6.5vw, 48px);
  font-weight: 700;
  text-shadow:
    0 1px 8px #000,
    0 0 25px #000;
  background: linear-gradient(transparent 35%, #050709bc 50%, transparent 65%);
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  padding: 0 6vw;
}
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.month-nav > div:last-child {
  display: flex;
  gap: 8px;
}
@media (min-width: 650px) {
  #phone {
    max-width: 540px;
    box-shadow: 0 0 0 1px #ddd;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notice-shell.notification {
    animation: none;
  }
  .fx-noise
    #phone
    :is(h1, h2, h3, b, li, .detail-date, .detail-time, .empty-day, .lock-time) {
    animation: none;
    text-shadow:
      1px 0 #b65c79,
      -1px 0 #509e9f;
  }
}
