.xp-window {
  background: var(--system-panel);
  border: 2px outset #fff;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.45);
  border-radius: 0;
}

.xp-title {
  background: linear-gradient(90deg, var(--xp-blue), var(--xp-blue-light));
  color: #fff;
  padding: 5px 8px;
  font-weight: 700;
  font-size: 12px;
  font-family: SimSun, STSong, serif;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.05em;
}

.chat-popup {
  position: absolute;
  right: 9%;
  bottom: 13%;
  width: clamp(270px, 31%, 390px);
  padding: 0;
  border: 2px outset #fff;
  border-radius: 0;
  background: var(--system-panel);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  font-family: SimSun, STSong, serif;
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.chat-popup b,
.chat-popup span {
  display: block;
}

.chat-popup:focus-visible,
.search-controls input:focus-visible,
.search-controls button:focus-visible {
  outline: 2px dotted var(--focus);
  outline-offset: 2px;
}

.chat-heading {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 5px 7px;
  background: linear-gradient(90deg, var(--xp-blue), var(--xp-blue-light));
  color: #fff;
}

.chat-heading time {
  font-variant-numeric: tabular-nums;
}

.chat-message {
  display: grid !important;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: start;
  min-height: 70px;
  padding: 12px 11px 9px;
  line-height: 1.65;
  background:
    linear-gradient(90deg, rgba(32, 78, 120, 0.09) 1px, transparent 1px) 0 0 / 9px 9px,
    var(--system-panel);
}

.chat-avatar {
  display: grid !important;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px inset #fff;
  background: var(--print-green);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.chat-action {
  margin: 0 9px 9px;
  padding: 7px 5px 2px;
  border-top: 1px dashed var(--print-red);
  color: var(--print-red);
  font-weight: 700;
  text-align: right;
}

.chat-popup:hover .chat-action {
  text-decoration: underline;
}

.search-window {
  position: absolute;
  left: 50%;
  top: 49%;
  width: clamp(430px, 54%, 680px);
  transform: translate(-50%, -50%);
  color: var(--ink);
  font: 14px/1.5 SimSun, STSong, serif;
}

.search-body {
  padding: 18px 22px 20px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 22px,
      rgba(32, 78, 120, 0.12) 22px 23px
    ),
    var(--system-panel);
}

.search-motive {
  margin: 0 0 17px;
  padding: 7px 9px;
  border-left: 8px solid var(--print-red);
  background: var(--paper);
  color: var(--print-green);
  font-weight: 700;
}

.search-body label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.search-controls {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 7px;
}

.search-controls input {
  min-width: 0;
  height: 31px;
  padding: 4px 7px;
  border: 2px inset #fff;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 14px SimSun, STSong, serif;
  appearance: none;
}

.search-controls input::-webkit-search-cancel-button {
  appearance: none;
}

.search-controls button {
  border: 2px outset #fff;
  border-radius: 0;
  background: var(--system-panel);
  color: #000;
  font: 700 13px SimSun, STSong, serif;
  cursor: pointer;
}

.search-controls button:active {
  border-style: inset;
}

.search-controls button:disabled {
  color: var(--system-shadow);
  cursor: wait;
}

.search-note {
  margin: 9px 0 0;
  color: #39372f;
  font-size: 12px;
}

.media-transition-control {
  position: absolute;
  z-index: 90;
  right: 3%;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  color: var(--ink);
  font: 12px SimSun, STSong, serif;
}

.media-transition-control button {
  padding: 5px 9px;
  border: 2px outset #fff;
  border-radius: 0;
  background: var(--system-panel);
  color: #111;
  font: 700 12px SimSun, STSong, serif;
}

.restaurant-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 78%);
  transform: translate(-50%, -50%) rotate(-0.3deg);
  color: var(--ink);
  font: 13px/1.45 SimSun, STSong, serif;
}

.menu-paper {
  position: relative;
  min-height: 390px;
  padding: 24px 250px 25px 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(179, 41, 36, 0.12) 1px, transparent 1px) 0 0 / 13px 13px,
    var(--paper);
  border-top: 7px solid var(--print-red);
}

.menu-paper::after {
  content: "今日推荐 / 仅此一份";
  position: absolute;
  right: -42px;
  bottom: 37px;
  width: 220px;
  padding: 5px 0;
  transform: rotate(-8deg);
  border: 2px solid var(--print-blue);
  background: #f4f0df;
  color: var(--print-blue);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
}

.menu-motive {
  margin: 0 0 16px;
  padding: 7px 8px;
  border: 1px dashed var(--ink);
  border-left: 9px solid var(--print-red);
  background: #f7f3e5;
  font-weight: 700;
}

.saved-clipping {
  position: absolute;
  right: 24px;
  top: 29px;
  width: 195px;
  min-height: 190px;
  padding: 15px 13px;
  transform: rotate(2.2deg);
  border: 1px solid var(--ink);
  background:
    radial-gradient(rgba(23, 21, 18, 0.3) 0.6px, transparent 0.8px) 0 0 / 4px 4px,
    #e9dfbf;
  box-shadow: 6px 7px 0 rgba(0, 0, 0, 0.38);
}

.saved-clipping span,
.saved-clipping strong,
.saved-clipping small {
  display: block;
}

.saved-clipping span {
  margin: -15px -13px 17px;
  padding: 5px 7px;
  background: var(--print-green);
  color: #fff;
  font-size: 11px;
}

.saved-clipping strong {
  margin-bottom: 14px;
  color: var(--print-red);
  font: 700 22px/1.2 SimSun, STSong, serif;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.saved-clipping small {
  padding-top: 9px;
  border-top: 1px dashed var(--ink);
  font-size: 11px;
}

.dish-list {
  display: grid;
  gap: 9px;
}

.dish-list button {
  min-height: 48px;
  padding: 7px 10px;
  border: 2px outset #fff;
  border-radius: 0;
  background: var(--system-panel);
  color: #111;
  font: 700 14px SimSun, STSong, serif;
  text-align: left;
  cursor: pointer;
}

.dish-list button span {
  display: inline-block;
  width: 34px;
  margin-right: 8px;
  padding: 3px 4px;
  background: var(--print-blue);
  color: #fff;
  text-align: center;
}

.dish-list button:active {
  border-style: inset;
}

.dish-list button:focus-visible {
  outline: 2px dotted var(--focus);
  outline-offset: 2px;
}

.dish-list button:disabled {
  color: var(--system-shadow);
  cursor: default;
}

.dish-list button.keyword-hint strong {
  animation: keyword-hint 0.3s steps(1, end) 4;
}

.menu-feedback {
  margin: 13px 0 0;
  padding: 8px 9px;
  border: 1px solid var(--print-red);
  background: #fff;
  color: var(--print-red);
  font-weight: 700;
}

@keyframes keyword-hint {
  0%,
  100% {
    background: var(--print-red);
    color: #fff;
    outline: 2px solid var(--ink);
  }

  50% {
    background: #fff;
    color: var(--print-red);
    outline: 2px dashed var(--print-red);
  }
}

.review-scene {
  position: absolute;
  inset: 0;
  color: var(--ink);
  font-family: SimSun, STSong, serif;
}

.inner-thought-scene {
  position: absolute;
  inset: 0;
  color: var(--ink);
  font-family: SimSun, STSong, serif;
  background: rgba(23, 21, 18, 0.28);
}

.inner-thought {
  position: absolute;
  left: 8%;
  bottom: 14%;
  width: min(640px, 46%);
  font-size: 14px;
  transform: rotate(-1.2deg);
  animation: inner-thought-pop 0.28s steps(3, end) both;
}

.inner-thought-body {
  position: relative;
  padding: 26px 28px 18px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(32, 78, 120, 0.22) 39px 40px),
    var(--paper);
}

.inner-thought-stamp {
  position: absolute;
  right: 18px;
  top: 10px;
  padding: 3px 10px;
  border: 2px solid var(--print-red);
  color: var(--print-red);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  background: var(--paper);
  transform: rotate(6deg);
}

.inner-thought ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.inner-thought li {
  font-size: 27px;
  line-height: 40px;
  opacity: 0;
  animation: inner-thought-line 0.4s steps(4, end) forwards;
}

.inner-thought li:last-child {
  color: var(--print-red);
  font-weight: 700;
}

.inner-thought button {
  display: block;
  margin-left: auto;
  padding: 4px 14px;
  font: 16px SimSun, STSong, serif;
}

@keyframes inner-thought-pop {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(-1.2deg);
  }
}

@keyframes inner-thought-line {
  to {
    opacity: 1;
  }
}

.friend-review-message {
  position: absolute;
  right: 7%;
  top: 11%;
  width: min(365px, 36%);
  transform: rotate(0.7deg);
  font-size: 12px;
}

.friend-review-message p {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 84px;
  margin: 0;
  padding: 12px;
  background:
    linear-gradient(0deg, rgba(32, 78, 120, 0.1) 1px, transparent 1px) 0 0 / 8px 8px,
    var(--system-panel);
}

.friend-review-message strong {
  line-height: 1.65;
}

.review-window {
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: min(680px, 68%);
  transform: translateX(-50%) rotate(-0.25deg);
  font-size: 13px;
}

.review-body {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 8px 10px;
  padding: 17px 19px;
  background:
    radial-gradient(rgba(23, 21, 18, 0.2) 0.6px, transparent 0.8px) 0 0 / 5px 5px,
    var(--system-panel);
}

.review-body label {
  grid-column: 1 / -1;
  font-weight: 700;
}

.review-input-frame {
  display: flex;
  min-width: 0;
  height: 42px;
  align-items: center;
  border: 2px inset #fff;
  background: #fff;
  overflow: hidden;
}

.review-input-frame input {
  width: 100%;
  height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
  font: 16px SimSun, STSong, serif;
  transition: width 1.2s steps(4, end);
}

.review-input-frame input[data-width-step="1"] {
  width: 58%;
  border-right: 6px solid var(--print-red);
}

.review-input-frame input[data-width-step="2"] {
  width: 29%;
  border-right: 11px solid var(--print-red);
  background: var(--paper);
  color: var(--print-red);
  font-weight: 700;
}

.review-input-frame input:focus {
  outline: 2px dotted var(--focus);
  outline-offset: -4px;
}

.review-body button {
  grid-column: 2;
  grid-row: 2;
  border: 2px outset #fff;
  border-radius: 0;
  background: var(--system-panel);
  color: var(--system-shadow);
  font: 700 13px SimSun, STSong, serif;
}

.mic-window .xp-title span:first-child {
  color: #ffd2cf;
}

.mic-window .review-input-frame input {
  cursor: not-allowed;
}

.silence-flood {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.silence-mark {
  position: absolute;
  color: var(--print-red);
  font: 900 64px/1 "Hiragino Sans GB", "Heiti SC", SimHei, sans-serif;
  text-shadow: 3px 3px 0 #111;
  animation: silence-stamp 0.18s steps(2, end) both;
}

.silence-mark.is-black {
  color: #111;
  text-shadow: 3px 3px 0 var(--paper);
}

@keyframes silence-stamp {
  from {
    opacity: 0;
    scale: 1.6;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

.silence-verdict {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 21;
  margin: 0;
  padding: 18px 34px;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  border: 4px solid #111;
  background: var(--paper);
  color: var(--print-red);
  font: 900 clamp(32px, 4.6vw, 72px)/1.2 SimSun, STSong, serif;
  white-space: nowrap;
  box-shadow: 8px 8px 0 #111;
}

#review-status {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 3px;
  border-top: 1px dashed var(--print-blue);
  color: #39372f;
  font-size: 11px;
}

.deletion-scene {
  position: absolute;
  inset: 0;
  color: var(--ink);
  font-family: SimSun, STSong, serif;
}

.delete-browser-title {
  display: flex;
  min-height: 27px;
  align-items: center;
  justify-content: space-between;
  padding-left: 8px;
  background: linear-gradient(90deg, #123d9d, #3b7ed0);
  color: #fff;
  font-weight: 700;
}

.delete-window-close {
  width: 25px;
  height: 23px;
  margin: 2px;
  padding: 0;
  border: 2px outset #fff;
  border-radius: 0;
  background: #c8322d;
  color: #fff;
  font: 700 13px/17px Tahoma, SimSun, sans-serif;
  cursor: pointer;
}

.delete-window-close:active {
  border-style: inset;
}

.delete-window-close:disabled {
  border-style: outset;
  background: #8b817b;
  color: #d5d1cb;
  cursor: not-allowed;
}

.delete-window-close:focus-visible,
.delete-app-icon:focus-visible,
.xp-context-menu button:focus-visible,
.xp-confirm-actions button:focus-visible {
  outline: 2px dotted var(--focus);
  outline-offset: 2px;
}

.deletion-hotspot-hint {
  animation: deletion-hotspot-scan 0.6s steps(2, end) 2;
  outline: 2px dashed #fff !important;
  outline-offset: 3px !important;
}

@keyframes deletion-hotspot-scan {
  0%,
  100% {
    box-shadow: 0 0 0 2px var(--print-red);
  }

  50% {
    box-shadow: 0 0 0 4px var(--print-blue);
  }
}

.deletion-scene {
  background: #2d7d7b;
  font-size: 12px;
}

.deletion-scene.is-video-mode {
  background: transparent;
}

.deletion-scene.is-media-loading {
  background: transparent;
}

.deletion-scene.is-video-mode .delete-desktop-area,
.deletion-scene.is-media-loading .delete-desktop-area {
  background: transparent;
}

.deletion-scene.is-video-mode .delete-browser,
.deletion-scene.is-media-loading .delete-browser {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.deletion-scene.is-video-mode .delete-browser-title,
.deletion-scene.is-media-loading .delete-browser-title {
  background: transparent;
}

.deletion-scene.is-video-mode .delete-browser-title > span,
.deletion-scene.is-media-loading .delete-browser-title > span,
.deletion-scene.is-video-mode .delete-browser-page,
.deletion-scene.is-media-loading .delete-browser-page,
.deletion-scene.is-video-mode .delete-desktop-area > h2,
.deletion-scene.is-media-loading .delete-desktop-area > h2 {
  display: none;
}

.deletion-scene[data-delete-step="2"].is-video-mode .delete-app-icon {
  visibility: hidden;
}

/* 百分比坐标对应 delete-app.mp4 在 2s / 5s / 8.75s 停帧里的图标、“删除”项和“确定”按钮。 */
.deletion-scene.is-video-mode .delete-desktop-area {
  inset: 0;
}

.deletion-scene.is-video-mode .delete-app-icon {
  left: 61.5%;
  top: 48.5%;
  width: 9.8%;
  height: 16%;
  padding: 0;
}

.deletion-scene.is-video-mode .delete-app-icon > span,
.deletion-scene.is-video-mode .delete-app-icon b {
  visibility: hidden;
}

.deletion-scene.is-video-mode .xp-context-menu {
  left: 63.3%;
  top: 76.2%;
  width: 14.4%;
  height: 5.2%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.deletion-scene.is-video-mode .xp-context-menu > :not([data-delete-command]) {
  display: none;
}

.deletion-scene.is-video-mode .xp-context-menu [data-delete-command],
.deletion-scene.is-video-mode [data-delete-confirm] {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.deletion-scene.is-video-mode .xp-context-menu [data-delete-command]:hover,
.deletion-scene.is-video-mode .xp-context-menu [data-delete-command]:focus,
.deletion-scene.is-video-mode [data-delete-confirm]:hover,
.deletion-scene.is-video-mode [data-delete-confirm]:focus {
  background: rgba(23, 72, 155, 0.28);
  color: transparent;
}

.deletion-scene.is-video-mode .xp-confirm-dialog {
  inset: 0;
  width: auto;
  transform: none;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.deletion-scene.is-video-mode .xp-confirm-dialog .xp-title,
.deletion-scene.is-video-mode .xp-warning-icon,
.deletion-scene.is-video-mode #delete-confirm-copy,
.deletion-scene.is-video-mode .xp-confirm-actions > :not([data-delete-confirm]) {
  display: none;
}

.deletion-scene.is-video-mode .xp-confirm-body,
.deletion-scene.is-video-mode .xp-confirm-actions {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.deletion-scene.is-video-mode [data-delete-confirm] {
  position: absolute;
  left: 51.5%;
  top: 58.7%;
  width: 6.9%;
  height: 5.9%;
  min-width: 0;
}

.deletion-scene.is-segment-playing [data-delete-close],
.deletion-scene.is-segment-playing [data-delete-icon],
.deletion-scene.is-segment-playing .xp-context-menu,
.deletion-scene.is-segment-playing .xp-confirm-dialog,
.deletion-scene.is-segment-playing .delete-status {
  visibility: hidden;
  pointer-events: none;
}

.delete-browser {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(800px, 80%);
  min-height: 420px;
  transform: translate(-50%, -50%);
}

.delete-browser-page {
  min-height: 380px;
  padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(20, 45, 83, 0.1) 25px 26px),
    #f4efd9;
  border-top: 5px solid var(--print-green);
  color: var(--print-red);
  font-size: 18px;
  font-weight: 700;
}

.delete-status {
  position: absolute;
  left: 50%;
  bottom: 3%;
  min-width: 390px;
  margin: 0;
  padding: 7px 11px;
  transform: translateX(-50%);
  border: 2px outset #fff;
  background: var(--system-panel);
  color: #111;
  text-align: center;
}

.delete-desktop-area {
  position: absolute;
  inset: 0 0 31px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 17px 17px,
    #2d7d7b;
}

.delete-desktop-area h2 {
  position: absolute;
  left: 12px;
  bottom: -28px;
  margin: 0;
  color: #fff;
  font: 700 11px SimSun, STSong, serif;
}

.delete-app-icon {
  position: absolute;
  left: 8%;
  top: 19%;
  width: 76px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 12px SimSun, STSong, serif;
  cursor: default;
}

.delete-app-icon > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 5px;
  place-items: center;
  border: 2px outset #dff2d9;
  background: #2b852e;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
}

.delete-app-icon b {
  display: block;
  padding: 2px;
  font-weight: 400;
  text-shadow: 1px 1px #000;
}

.delete-app-icon.is-selected b {
  background: #17489b;
  outline: 1px dotted #fff;
}

.delete-app-icon:disabled,
.xp-context-menu button:disabled,
.xp-confirm-actions button:disabled {
  color: #777;
  cursor: wait;
}

.xp-context-menu {
  position: absolute;
  left: calc(8% + 61px);
  top: calc(19% + 31px);
  z-index: 2;
  width: 176px;
  padding: 3px;
  border: 2px outset #fff;
  background: var(--system-panel);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
}

.xp-context-menu button {
  display: block;
  width: 100%;
  padding: 5px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font: 12px SimSun, STSong, serif;
  text-align: left;
}

.xp-context-menu button:hover,
.xp-context-menu button:focus {
  background: #17489b;
  color: #fff;
}

.xp-menu-divider {
  display: block;
  height: 2px;
  margin: 2px;
  border-top: 1px solid #888;
  border-bottom: 1px solid #fff;
}

.xp-confirm-dialog {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 390px;
  transform: translate(-50%, -50%);
}

.xp-confirm-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  min-height: 130px;
  padding: 17px;
  background: var(--system-panel);
}

.xp-warning-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #8b7100;
  background: #f3d639;
  color: #000;
  font: 700 26px Tahoma, sans-serif;
}

.xp-confirm-body p {
  margin: 8px 0 0;
}

.xp-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.xp-confirm-actions button {
  min-width: 76px;
  padding: 5px 10px;
  border: 2px outset #fff;
  border-radius: 0;
  background: var(--system-panel);
  color: #111;
  font: 12px SimSun, STSong, serif;
}

.xp-confirm-actions button:active {
  border-style: inset;
}

.reality-transition {
  display: grid;
  place-items: center;
  background: transparent;
  pointer-events: none;
}

.reality-transition p {
  padding: 7px 12px;
  border: 1px dashed #fff;
  background: #111;
  color: #fff;
}

@media (max-width: 700px) {
  .chat-popup {
    right: 5%;
    width: 45%;
  }

  .search-window {
    width: 72%;
  }

  .restaurant-menu {
    width: 86%;
  }

  .menu-paper {
    padding-right: 200px;
  }

  .saved-clipping {
    right: 15px;
    width: 165px;
  }

  .review-window {
    width: 78%;
  }

  .delete-browser {
    width: 88%;
  }
}
