.toolbar {
  background: linear-gradient(#fbfaf3, #e9e7d8);
}
.address {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-bottom: 1px solid #aaa797;
}
.address > span {
  color: #666;
}
.address strong {
  font-weight: 400;
  background: white;
  flex: 1;
  padding: 3px;
  border: 1px solid #91a2b5;
}
.lan-offline {
  flex: 1;
  padding: 12px;
  background: #fff;
}
.device-export { display: grid; gap: 8px; overflow-wrap: anywhere; }
.device-export p { margin: 0; }
.device-export p:empty { display: none; }
.device-export-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.device-export textarea { width: 100%; min-height: 5em; user-select: text; }
.explorer-toolbar { flex-wrap: wrap; }
.photoshop-host { overflow: hidden; }
.photoshop-frame { display: block; flex: 1; width: 100%; min-height: 0; border: 0; }
.photoshop-frame.loading { visibility: hidden; }
.photoshop-projects { display: grid; gap: 6px; }
.photoshop-projects select { min-width: 0; width: 100%; }
.explorer {
  flex: 1;
  display: flex;
  min-height: 0;
  background: white;
}
.exploreside {
  flex: 0 0 158px;
  padding: 12px 9px;
  background: linear-gradient(#819bdc, #617ed0);
}
.sidepanel {
  display: grid;
  gap: 3px;
  padding: 0 7px 9px;
  background: #d9e5fc;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.sidepanel > b {
  margin: 0 -7px 5px;
  padding: 7px;
  color: #194392;
  background: linear-gradient(90deg, #fff, #cadbfb);
}
.sidepanel .tool {
  padding: 1px 0;
  justify-content: flex-start;
  color: #174491;
}
.filegrid,
.picklist {
  background: #fff;
  overflow: hidden auto;
}
.file-items,
.picklist {
  align-content: start;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.filegrid {
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
}
.file-items {
  position: relative;
  min-height: 100%;
  padding: 10px;
  gap: 7px;
}
.file-items > :not(.file-select-surface) { position: relative; }
.file-items > .desktop-marquee,
.file-select-surface { position: absolute; }
.file-select-surface { inset: 0; touch-action: none; }
.filetile {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  width: 139px;
  min-height: 49px;
  padding: 3px;
  background: none;
  border: 1px solid transparent;
  overflow-wrap: anywhere;
}
.sel,
.picklist .fileline:focus {
  background: #3269be !important;
  color: white;
  outline: 1px dotted #ddd;
}
.filegrid [data-file-id]:focus-visible { outline: 1px dotted currentColor; }
.empty {
  color: #737879;
  margin: 12px;
  font-size: 12px;
}
.pickerrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pickerrow + .pickerrow {
  margin-top: 5px;
}
.pickerrow span {
  flex: 0 0 4em;
}
.pickerrow select {
  min-width: 0;
  flex: 1;
}
.picklist {
  height: clamp(44px, calc(65dvh - 165px), 158px);
  margin: 8px 0;
  border: 1px solid #8698aa;
  display: block;
  scrollbar-width: none;
}
.dialogbody:has(.picker) {
  scrollbar-width: none;
}
.fileline {
  border: 0;
  background: white;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 4px;
  text-align: left;
}
.notetext {
  flex: 1;
  padding: 4px !important;
  min-height: 60px;
  resize: none;
  font:
    15px/1.45 '宋体',
    SimSun,
    monospace;
  user-select: text;
  outline: 0;
}
.viewpad {
  flex: 1;
  min-height: 0;
  overflow: hidden auto;
  background: #eaeaea;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
}
.viewpad img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.viewpad .actual {
  max-height: none;
}
.paintwork {
  display: flex;
  min-height: 0;
  flex: 1;
}
.painttools {
  width: 64px;
  flex: none;
  align-content: start;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  background: #e6e4da;
  gap: 2px;
  border-right: 1px solid #aaa;
}
.painttool {
  height: 25px;
  font:
    19px/1 Georgia,
    serif;
  border: 1px solid #9b9a92;
  border-top-color: #fff;
  border-left-color: #fff;
  background: #e4e3da;
}
.painttool.pressed {
  background: #c4cfdd;
  box-shadow: inset 1px 1px 2px #676b73;
}
.painttools select {
  width: 100%;
  grid-column: span 2;
  margin-top: 8px;
}
.canvaspad {
  flex: 1;
  min-width: 0;
  overflow: hidden auto;
  background: #858585;
  padding: 4px;
}
.paintcanvas {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 2px 2px #353535;
  vertical-align: top;
  touch-action: none;
  cursor: crosshair;
}
.palette {
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  overflow: hidden auto;
}
.palette input {
  width: 29px;
  height: 29px;
  padding: 1px;
}
.colorgrid {
  display: grid;
  grid-template-columns: repeat(14, 13px);
  gap: 1px;
}
.colorchip {
  height: 13px;
  padding: 0;
  border: 1px inset #999;
}
.ttwindow {
  border-color: #665b88 !important;
  background: #b9b7cf;
}
.ttwindow > .titlebar {
  background: linear-gradient(#f9f8fe, #d8d6e8 14%, #a39cbe 47%, #89819f 55%, #c6c1d5) !important;
  color: #3a3450;
  text-shadow: 0 1px #fff;
  font-family: Tahoma, sans-serif;
  font-style: italic;
}
.ttwindow .capbutton {
  background: linear-gradient(#f9f8fd, #c6bfd5 55%, #9c93af);
  color: #423858;
  border-color: #edeaf5;
  box-shadow: inset 0 -1px #736b80;
}
.ttwindow .winbody {
  background: linear-gradient(110deg, #dddbe8, #9791af);
  flex-direction: row;
  padding: 4px;
  gap: 4px;
}
.ttplayer {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tteq {
  flex: 0 0 clamp(74px, 32%, 164px);
  align-self: flex-start;
  min-width: 0;
}
.tteq .ttband i {
  display: none;
}
.ttmain,
.ttpanel {
  border: 1px solid #81788f;
  box-shadow:
    inset 1px 1px #faf8ff,
    1px 1px #e5dff4;
  border-radius: 4px;
  background: linear-gradient(120deg, #f0eef7, #b8b4c8 45%, #dcd9e5 70%, #a29aaa);
}
.ttmain {
  padding: 8px 9px 5px;
  position: relative;
}
.ttscreen {
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(160deg, #171823, #31333d 68%, #191822);
  border: 2px inset #b5aebe;
  color: #d5e9ae;
  padding: 7px 6px;
  min-height: 51px;
  box-shadow: inset 0 2px 4px #161319;
}
.lcd {
  font:
    26px/1 Consolas,
    monospace;
  color: #d1f6ac;
  letter-spacing: -2px;
}
.musicmeta {
  min-width: 0;
  display: grid;
  gap: 4px;
  flex: 1;
  font:
    11px Tahoma,
    sans-serif;
  white-space: nowrap;
}
.musicmeta b {
  font-size: 13px;
  letter-spacing: 0.3px;
}
.musicmeta span {
  color: #b4bac0;
}
.musicmeta > * {
  overflow: hidden;
  text-overflow: ellipsis;
}
.meter {
  width: 28%;
  height: 26px;
  image-rendering: pixelated;
}
.ttmain input[type='range'] {
  appearance: none;
  width: 100%;
  height: 5px;
  background: linear-gradient(#73727d, #c2bbc6);
  border: 1px inset #c7bfca;
  border-radius: 3px;
  margin: 10px 0;
}
.ttmain input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 12px;
  background: linear-gradient(#fff, #a9a3b4);
  border: 1px solid #726a82;
  border-radius: 2px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ttbutton {
  color: #382f48;
  background: linear-gradient(#fff, #dcd9e3 45%, #bab3c7 52%, #e0dce7);
  border: 1px solid #8a8095;
  border-radius: 4px;
  box-shadow: inset 1px 1px 1px white;
  min-width: 29px;
  padding: 2px 4px;
  font:
    bold 12px Tahoma,
    sans-serif;
}
.ttbutton:active,
.ttbutton.on {
  background: #aaa1bb;
  box-shadow: inset 1px 1px 2px #756a83;
}
.ttmain .gain {
  min-width: 16px;
  max-width: 76px;
  margin-left: auto !important;
}
.ttswitch {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}
.ttswitch button {
  font-size: 9px;
  padding: 0 2px;
  min-width: 21px;
}
.ttband {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#e8e3ef, #b4adbf 45%, #aaa0bb 56%, #c9c2d3);
  padding: 3px 7px;
  border-bottom: 1px solid #8d829c;
  color: #484052;
  font-weight: bold;
  font-size: 11px;
  text-shadow: 0 1px #eee;
}
.ttband i {
  font: 9px Tahoma;
  letter-spacing: 1px;
  color: #655c74;
}
.ttpanelbody {
  padding: 4px;
}
.ttpanelbody select {
  font-size: 11px;
  margin: 3px 2px 6px;
  max-width: calc(100% - 4px);
}
.eqrow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 6px;
  text-align: center;
}
.eqrow label {
  display: grid;
  justify-items: center;
  gap: 1px;
  font: 9px Tahoma;
}
.eqrow input {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 13px;
  height: 42px;
  accent-color: #79708c;
}
.ttwindow .ttplaylist {
  flex: 1;
  display: flex;
  min-height: 77px;
  flex-direction: column;
}
.ttwindow .ttplaylist .ttpanelbody {
  background: #24252f;
  color: #c3cfbc;
  flex: 1;
  margin: 4px;
  display: flex;
  flex-direction: column;
  padding: 1px;
  min-height: 0;
}
.ttsongs {
  min-height: 0;
  overflow: hidden auto;
  scrollbar-width: none;
}
.songrow {
  border: 0;
  width: 100%;
  min-height: 23px;
  display: flex;
  gap: 6px;
  align-items: center;
  text-align: left;
  background: transparent;
  color: #c3cfbc;
  padding: 5px;
  font:
    12px Tahoma,
    sans-serif;
}
.songrow:nth-child(even) {
  background: #2e303d;
}
.songrow:hover,
.songrow[aria-current='true'] {
  background: #596579;
  color: white;
}
.songrow strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.songrow span,
.songrow time {
  flex: none;
}
.songrow time {
  margin-left: auto;
}
.plfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding: 4px 6px;
  color: #aeb3b5;
  font-size: 10px;
}
.qqwindow {
  border-color: #4589ba !important;
}
.qqwindow > .titlebar {
  background: linear-gradient(#a9e8fc, #6dc8ef 30%, #35a4d8 75%, #248abe) !important;
  color: #164b69;
  text-shadow: 0 1px #c9edf4;
}
.qqwindow .winbody {
  background: #e1f2fb;
}
.qqprofile,
.chathead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: linear-gradient(125deg, #f4fcff, #b8dcf1 65%, #8bc6e7);
  color: #214967;
}
.qqprofile small {
  display: block;
  margin-top: 5px;
  color: #40745c;
}
.avatar {
  object-fit: contain;
  border: 1px solid #98b4c5;
  background: white;
  border-radius: 3px;
}
.qqstrip,
.qqfoot,
.chatfoot {
  display: flex;
  align-items: center;
  padding: 3px 7px;
  border-block: 1px solid #a7cbdc;
  background: linear-gradient(#f3fcff, #bedceb);
}
.qqstrip img {
  height: 19px;
}
.contacts,
.chatlog {
  flex: 1;
  min-height: 40px;
  overflow: hidden auto;
  background: white;
  margin: 3px;
  border: 1px solid #9abfd2;
}
.contacts summary {
  padding: 6px 8px;
  background: linear-gradient(#fff, #dfedf4);
  font-weight: bold;
  color: #284963;
}
.friend {
  width: 100%;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 4px 12px;
  background: #fff;
  border: 0;
  text-align: left;
}
.friend:hover {
  background: #e1f2fb;
}
.qq-request {
  color: #24517d;
  background: #fff6d9;
  font-weight: bold;
}
.qq-request-content {
  display: flex;
  align-items: start;
  gap: 12px;
}
.qq-request-content p {
  margin: 5px 0 0;
}
.qqfoot {
  justify-content: space-between;
}
.qqlogin {
  padding: 18px;
  display: grid;
  gap: 14px;
  background: linear-gradient(#bce4fa, #ecf8ff 62%, #c1deed);
  height: 100%;
  align-content: center;
}
.qqbrand {
  display: flex;
  align-items: center;
  gap: 7px;
  font: italic 20px Tahoma;
  color: #176b95;
}
.qqbrand small {
  font: 12px Tahoma;
  color: #e48d2e;
}
.qqhint {
  text-align: center;
  color: #688196;
}
.chatlog {
  padding: 5px 8px;
  user-select: text;
}
.msg small {
  color: #1455a2;
}
.msg small.me {
  color: #197d42;
}
.msg p {
  margin: 2px 6px 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg img {
  display: block;
  max-width: 150px;
  max-height: 82px;
  margin: 3px 6px 9px;
}
.chat-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px;
}
.chat-replies button {
  min-height: 31px;
}
.qq-dnf-notice {
  position: fixed;
  z-index: 146000;
  top: calc(var(--safe-top) + 42px);
  right: max(var(--safe-right), 8px);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(275px, calc(100vw - var(--safe-right) - var(--safe-left) - 16px));
  padding: 6px 10px;
  border: 1px solid #4192c9;
  border-radius: 4px;
  background: linear-gradient(#f6fdff, #c1e3f6);
  box-shadow: 1px 2px 6px #081f3859;
  text-align: left;
  color: #183f5b;
}
.qq-dnf-notice small {
  display: block;
  margin-top: 2px;
}
.chatfoot {
  justify-content: flex-end;
  gap: 8px;
}
.minepane {
  flex: 1;
  min-height: 0;
  overflow: hidden auto;
  background: #c0c0c0;
  padding: 6px;
  text-align: center;
}
.mineframe {
  --cell: 20px;
  display: inline-block;
  width: min(100%, calc(var(--cols) * var(--cell) + 22px));
  padding: 6px;
  border: 3px outset #d5d5d5;
  background: silver;
}
.minetop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  margin-bottom: 7px;
  border: 2px inset #ddd;
}
.digits {
  display: flex;
  background: #111;
}
.digits img {
  width: 13px;
  height: 23px;
  image-rendering: pixelated;
}
.mineface {
  width: 28px;
  height: 28px;
  background: silver center/22px 22px no-repeat;
  border: 2px outset #ddd;
}
.minegrid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  border: 2px inset #ddd;
}
.cell {
  display: block;
  padding: 0;
  width: 100%;
  aspect-ratio: 1;
  border: 2px outset #eee;
  background: #c0c0c0 center/100% 100% no-repeat;
  image-rendering: pixelated;
}
.cell.opened {
  border: 0;
  border-left: 1px solid #888;
  border-top: 1px solid #888;
}
.cell:active {
  border: 1px inset #aaa;
}
.win-mine .status {
  padding: 1px 4px;
}
.win-mine .status button {
  font-size: 11px;
}
.cardtable {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden auto;
  background: #087c40;
  padding: 10px;
  --cardh: clamp(53px, 11vw, 89px);
}
.cardrow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2%;
  align-items: start;
}
.columns {
  margin-top: 14px;
}
.pile {
  position: relative;
  min-height: var(--cardh);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px #075827;
  background: #067339;
}
.playingcard {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--cardh);
  border: 1px solid #202c24;
  background: #fffdf8;
  border-radius: 4px;
  box-shadow: 1px 1px #154a2a;
  text-align: left;
  padding: 2px 5px;
  color: #171717;
  display: flex;
  flex-direction: column;
}
.playingcard.red {
  color: #c32024;
}
.playingcard .pip {
  font: bold 17px Georgia;
}
.playingcard > small {
  font: 14px Georgia;
}
.playingcard > .suit {
  margin: auto;
  align-self: center;
  font: 26px Georgia;
}
.playingcard.picked {
  outline: 3px solid #ffdd56;
  outline-offset: -3px;
}
.cardback {
  border: 3px solid #fff;
  background:
    repeating-linear-gradient(45deg, transparent 0 3px, #d9e8fb 3px 4px, transparent 4px 7px),
    repeating-linear-gradient(-45deg, #245090 0 3px, #cadcf4 3px 4px, #245090 4px 7px);
}
.slotmark {
  display: grid;
  place-items: center;
  height: var(--cardh);
  color: #459864;
  font: 30px Georgia;
}
.flyingcard {
  position: absolute;
  top: 8%;
  background: white;
  color: #b12632;
  padding: 12px;
  animation: fly 1.8s ease-in both;
  pointer-events: none;
}
@keyframes fly {
  to {
    transform: translate(var(--dx), 300px) rotate(135deg);
    opacity: 0;
  }
}
.calcdisplay {
  margin: 12px 12px 4px;
  background: white;
  border: 2px inset #ddd;
  padding: 4px 7px;
  text-align: right;
  font:
    23px Consolas,
    monospace;
}
.calckeys {
  padding: 6px 12px 12px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
}
.calckeys button {
  font: 15px Tahoma;
  color: #193a83;
}
.calckeys button:nth-child(4n) {
  color: #9f2525;
}
@media (max-width: 600px) and (orientation: portrait) {
  .exploreside {
    display: none;
  }
  .filetile {
    width: 46%;
  }
  .painttools {
    width: 59px;
  }
  .ttwindow .ttplaylist {
    max-height: 255px;
  }
  .songrow {
    min-height: 32px;
  }
  .win-mine .minepane {
    display: flex;
    align-items: flex-start;
    justify-content: safe center;
  }
  .mineframe {
    --cell: clamp(15px, 4.6vw, 22px);
  }
  .notetext {
    font-size: 16px;
  }
  .qqlogin {
    align-content: start;
    padding-top: 14vh;
  }
  .calckeys {
    max-height: 345px;
  }
  .filetile {
    min-height: 56px;
  }
}

.playingcard.cardface,
.playingcard.cardback {
  background-image: url(../assets/cards.png);
  background-size: 1300% 600%;
  background-repeat: no-repeat;
  border: 0;
  image-rendering: pixelated;
}
.playingcard.cardback {
  background-position: 0% 80%;
}
.playingcard.cardface > * {
  display: none;
}
.emoticon,
.msg img.emoticon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin: 0 1px;
  vertical-align: middle;
}
.qqstrip {
  background-image: url(../assets/qq/ToolBarBackgroundC.png);
  background-size: auto 100%;
}
.qqwindow > .titlebar {
  background-image: url(../assets/qq/BackgroundTitleCenter.png) !important;
  background-size: auto 100% !important;
}
.ttband {
  touch-action: none;
  cursor: move;
}
.ttwindow .ttpanel.detached {
  position: fixed;
  z-index: 5;
  margin: 0;
  box-shadow: 1px 2px 5px #29203577;
}
.ttwindow .ttplaylist.detached {
  display: flex;
}
.picker-nav, .file-quick-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
}
.picker-nav select { flex: 1 1 150px; min-width: 0; }
.picker select { max-width: 100%; }
.file-quick-actions {
  flex: none; padding: 4px 7px; border-top: 1px solid #c2c3b9;
}
.file-operation-status { color: #862526; margin: 4px 0; }
.file-operation-status:empty, .file-saved-status:empty { display: none; }
.file-saved-status { flex: none; padding: 4px 8px; overflow-wrap: anywhere; }
.file-original { color: #425671; }
.file-selection-toggle[aria-pressed="true"] { background: #d7e7ff; }
