.pw-view {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: #000;
  background: #d4d0c8;
  font: 10.6667px/1.2 Tahoma, "Microsoft Sans Serif", Arial, SimSun, serif;
}
.pw-view button, .pw-view select { color: inherit; font: inherit; }
.pw-pixel-icon {
  width: 16px;
  height: 16px;
  flex: none;
  image-rendering: pixelated;
  pointer-events: none;
}
.pw-menu-bar {
  position: relative;
  z-index: 3;
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  padding: 1px 2px;
  border-bottom: 1px solid #808080;
  box-shadow: inset 0 -1px #fff;
}
.pw-menu-label {
  display: block;
  padding: 3px 6px;
  white-space: nowrap;
}
.pw-menu { position: relative; }
.pw-menu summary { list-style: none; cursor: pointer; outline-offset: -3px; }
.pw-menu summary::-webkit-details-marker { display: none; }
.pw-menu[open] summary, .pw-menu summary:hover {
  color: #fff;
  background: #0a246a;
}
.pw-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 74px;
  padding: 2px;
  background: #d4d0c8;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  box-shadow: 1px 1px #404040;
}
.pw-menu-command {
  display: block;
  width: 100%;
  padding: 3px 8px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.pw-menu-command:hover, .pw-menu-command:focus-visible {
  color: #fff;
  background: #0a246a;
}
.pw-toolbar {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-height: 22px;
  padding: 2px 3px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #808080;
}
.pw-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 20px;
  height: 20px;
  padding: 0 2px;
  color: #000;
  background: #d4d0c8;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pw-tool-button:not(:disabled) { cursor: pointer; }
.pw-tool-button:not(:disabled):hover, .pw-tool-button:not(:disabled):focus-visible {
  border-color: #fff #808080 #808080 #fff;
}
.pw-tool-button[aria-pressed="true"], .pw-tool-button:active:not(:disabled) {
  border-color: #808080 #fff #fff #808080;
  background: #c7c3b9;
}
.pw-view button:focus-visible { outline: 1px dotted currentColor; outline-offset: -2px; }
.pw-view button:disabled { opacity: .55; }
.pw-view button:disabled .pw-pixel-icon { filter: grayscale(1); }
.pw-tool-divider {
  width: 2px;
  height: 16px;
  margin: 0 2px;
  flex: none;
  box-shadow: inset 1px 0 #808080, inset -1px 0 #fff;
}
.pw-address {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 2px 4px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #808080;
}
.pw-address-value {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  gap: 4px;
  padding: 0 3px;
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
}
.pw-address-value > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pw-explorer-split { display: flex; flex: 1; min-width: 0; min-height: 0; }
.pw-inspector {
  flex: 0 0 31%;
  min-width: 0;
  padding: 8px 7px;
  border-right: 1px solid #808080;
  background: #e7e4d9;
  overflow-wrap: anywhere;
  overflow: auto;
}
.pw-inspector > img { width: 24px; height: 24px; }
.pw-inspector h3 {
  padding: 0 0 3px;
  margin: 2px 0 6px;
  border-bottom: 2px solid #796694;
  font-size: 12px;
}
.pw-inspector-file { margin-bottom: 4px; font-weight: bold; }
.pw-location-link {
  display: block;
  width: 100%;
  margin: 1px 0;
  padding: 3px 2px;
  text-align: left;
  cursor: pointer;
}
.pw-location-link:hover, .pw-location-link[aria-current] { color: #fff; background: #0a246a; }
.pw-files {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #fff;
  overflow: auto;
}
.pw-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(69px, 1fr));
  gap: 6px 3px;
  align-content: start;
  padding: 8px;
}
.pw-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-height: 55px;
  padding: 3px 1px;
  cursor: default;
}
.pw-file > img { width: 23px; height: 23px; }
.pw-file-name {
  max-width: 100%;
  padding: 1px 2px;
  overflow-wrap: anywhere;
  text-align: center;
}
.pw-file[aria-selected="true"] .pw-file-name {
  color: #fff;
  background: #0a246a;
  outline: 1px dotted #fff;
  outline-offset: -1px;
}
.pw-statusbar {
  display: flex;
  flex: none;
  align-items: stretch;
  min-height: 18px;
  gap: 2px;
  padding: 2px 2px 1px;
  border-top: 1px solid #fff;
  background: #d4d0c8;
}
.pw-status-slot {
  min-width: 0;
  padding: 2px 3px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pw-status-message { flex: 1; }
.pw-status-detail { flex: 0 1 24%; }
.pw-status-location { flex: 0 1 22%; }
.pw-statusbar-wordpad .pw-status-detail, .pw-statusbar-wordpad .pw-status-location {
  flex: 0 0 8%;
}
.pw-resize-grip {
  flex: 0 0 12px;
  align-self: flex-end;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  background: repeating-linear-gradient(135deg, transparent 0 1px, #808080 1px 2px, #fff 2px 3px, transparent 3px 4px);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.pw-window.pw-maximized .pw-resize-grip { visibility: hidden; }
.pw-format-field {
  height: 18px;
  min-width: 0;
  padding: 0;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  background: #fff;
}
.pw-format-field:disabled { opacity: .75; }
.pw-family { flex: 0 1 82px; }
.pw-font-size { flex: none; width: 38px; }
.pw-character-set { flex: 0 1 66px; }
.pw-format-glyph { font-family: "Times New Roman", serif !important; font-size: 13px !important; }
.pw-bold { font-weight: bold !important; }
.pw-italic { font-style: italic !important; }
.pw-underline { text-decoration: underline; }
.pw-color { text-shadow: 0 2px #685397; }
.pw-ruler {
  display: flex;
  height: 16px;
  flex: none;
  padding: 1px 6px;
  border-bottom: 1px solid #808080;
}
.pw-ruler-marks {
  display: flex;
  flex: 1;
  justify-content: space-around;
  min-width: 0;
  gap: 0;
  background: repeating-linear-gradient(90deg, #808080 0 1px, transparent 1px 12.5%) bottom / 100% 4px no-repeat, #fff;
  border: 1px solid #808080;
  overflow: hidden;
}
.pw-ruler-marks span { padding-top: 1px; font-size: 9px; }
.pw-indents {
  position: relative;
  flex: 0 0 10px;
  height: 13px;
  margin-right: 2px;
  background: #808080;
  clip-path: polygon(0 0, 100% 0, 53% 46%, 100% 94%, 100% 100%, 0 100%, 0 93%, 47% 46%);
}
.pw-reader-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 12px 16px 16px;
  overflow: auto;
  color: #000;
  background: #fff;
  font: 13.3333px/1.4 Arial, SimSun, "Songti SC", "Noto Serif CJK SC", serif;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.pw-reader-content:lang(zh), .pw-reader-content :lang(zh) {
  font-family: SimSun, "Songti SC", "Noto Serif CJK SC", serif;
}
.pw-reader-content p { margin: 0 0 .85em; }
.pw-reader-content :last-child { margin-bottom: 0; }
.pw-reader-content:focus { outline: 1px dotted #808080; outline-offset: -2px; }
.pw-view ::-webkit-scrollbar { width: 13px; height: 13px; }
.pw-view ::-webkit-scrollbar-track {
  background: repeating-conic-gradient(#fff 0 25%, #d4d0c8 0 50%) 0 0 / 2px 2px;
}
.pw-view ::-webkit-scrollbar-thumb, .pw-view ::-webkit-scrollbar-button:single-button {
  background: #d4d0c8;
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: inset -1px -1px #808080;
}
.pw-view ::-webkit-scrollbar-button:vertical:single-button { height: 13px; }
.pw-view ::-webkit-scrollbar-button:vertical:single-button:decrement {
  background: #d4d0c8 url("assets/paper-work/icons/scroll-up.png") center no-repeat;
}
.pw-view ::-webkit-scrollbar-button:vertical:single-button:increment {
  background: #d4d0c8 url("assets/paper-work/icons/scroll-down.png") center no-repeat;
}
