:root {
  --fx-blue: #0a84ff;
  --fx-border: rgba(255, 255, 255, 0.14);
  --fx-material: rgba(35, 37, 44, 0.72);
  --fx-text-2: rgba(255, 255, 255, 0.64);
}

.finder-pro[data-fx-ready="1"] .finder-pro-sidebar {
  position: relative;
}

.fx-sidebar-label {
  margin-top: 12px;
}

.fx-sidebar-item {
  gap: 8px;
}

.fx-sidebar-glyph {
  width: 16px;
  color: #68aefb;
  font-size: 13px;
  text-align: center;
}

.finder-actionbar .fx-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.finder-list-head,
.finder-list-header,
.finder-row {
  grid-template-columns: minmax(230px, 1fr) 185px 100px !important;
}

.finder-list-head,
.finder-list-header {
  display: grid;
  padding-left: 14px;
}

.fx-action-symbol {
  font-size: 13px;
  opacity: .78;
}

.finder-content-pro [data-fx-selected="1"] {
  background: linear-gradient(180deg, rgba(10, 132, 255, .94), rgba(0, 107, 230, .88)) !important;
  color: #fff !important;
}

.finder-content-pro .file-item,
.finder-content-pro .finder-row {
  position: relative;
}

.fx-tag-mark {
  --tag-color: transparent;
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tag-color);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .34), 0 2px 5px rgba(0, 0, 0, .28);
}

.file-item > .fx-tag-mark {
  top: 8px;
  right: 9px;
}

.finder-row > .fx-tag-mark {
  display: block !important;
  left: 34px;
  top: 50%;
  width: 9px !important;
  min-width: 9px !important;
  height: 9px !important;
  transform: translateY(-50%);
}

.finder-content-pro.fx-rubber-active {
  will-change: transform;
}

.finder-content-pro.fx-rubber-release {
  transition: transform 520ms cubic-bezier(.18, .9, .24, 1.18);
}

.file-item.fx-spring-target,
.finder-row.fx-spring-target {
  outline: 2px solid rgba(10, 132, 255, .9);
  outline-offset: -2px;
  animation: fx-folder-pulse .72s ease-in-out infinite alternate;
}

@keyframes fx-folder-pulse {
  to { filter: brightness(1.17); transform: scale(1.02); }
}

.fx-popover {
  position: fixed;
  z-index: 12000;
  min-width: 245px;
  padding: 12px;
  color: white;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 42%),
    rgba(31, 32, 38, .83);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.15);
  backdrop-filter: blur(28px) saturate(1.55);
}

.fx-popover-title {
  padding: 1px 3px 10px;
  font-size: 13px;
  font-weight: 650;
}

.fx-tag-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.fx-tag-choice {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.055);
  font-size: 10px;
}

.fx-tag-choice:hover {
  background: rgba(255,255,255,.13);
}

.fx-tag-choice i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--tag-color);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}

.fx-tag-choice.fx-tag-none i {
  background: transparent;
  border: 1px solid rgba(255,255,255,.42);
}

.fx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(3px);
}

.fx-dialog {
  width: min(560px, calc(100vw - 48px));
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% -15%, rgba(116,164,255,.24), transparent 43%),
    rgba(37, 39, 46, .9);
  border: 1px solid var(--fx-border);
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(0,0,0,.52), inset 0 1px rgba(255,255,255,.14);
  backdrop-filter: blur(32px) saturate(1.4);
  animation: fx-dialog-in .2s cubic-bezier(.2,.82,.3,1);
}

@keyframes fx-dialog-in {
  from { opacity: 0; transform: scale(.965) translateY(8px); }
}

.fx-dialog-head {
  padding: 20px 22px 13px;
}

.fx-dialog-head h2 {
  margin: 0;
  font-size: 17px;
}

.fx-dialog-head p {
  margin: 5px 0 0;
  color: var(--fx-text-2);
  font-size: 12px;
}

.fx-dialog-body {
  padding: 0 22px 17px;
}

.fx-form-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  font-size: 12px;
}

.fx-form-row label {
  color: var(--fx-text-2);
}

.fx-field,
.fx-select {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  padding: 0 9px;
  color: #fff;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  outline: 0;
}

.fx-field:focus,
.fx-select:focus {
  border-color: var(--fx-blue);
  box-shadow: 0 0 0 3px rgba(10,132,255,.18);
}

.fx-rename-preview {
  max-height: 174px;
  margin-top: 14px;
  overflow: auto;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
}

.fx-rename-row {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.72);
  font-size: 11px;
}

.fx-rename-row:last-child {
  border-bottom: 0;
}

.fx-rename-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-rename-row b {
  color: white;
  font-weight: 540;
}

.fx-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 22px 17px;
  border-top: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.1);
}

.fx-button {
  min-width: 76px;
  height: 30px;
  padding: 0 14px;
  color: white;
  border: 0;
  border-radius: 7px;
  background: rgba(255,255,255,.12);
}

.fx-button.primary {
  background: linear-gradient(#1591ff, #006bdc);
  box-shadow: inset 0 1px rgba(255,255,255,.24);
}

.fx-button:disabled {
  opacity: .45;
}

.fx-info {
  height: 100%;
  overflow: auto;
  color: white;
  background: linear-gradient(180deg, rgba(255,255,255,.055), transparent 140px);
}

.fx-info-hero {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px 24px 18px;
}

.fx-info-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  font-size: 51px;
}

.fx-info-hero h2 {
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.fx-info-kind {
  color: var(--fx-text-2);
  font-size: 12px;
}

.fx-info-section {
  margin: 0 18px 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  background: rgba(0,0,0,.13);
}

.fx-info-section h3 {
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
}

.fx-info-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 12px;
  color: var(--fx-text-2);
  font-size: 11px;
}

.fx-info-row span:last-child {
  color: rgba(255,255,255,.88);
  overflow-wrap: anywhere;
}

.fx-info-tags {
  display: flex;
  gap: 6px;
}

.fx-info-tags i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tag-color);
}

.fx-quicklook {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: grid;
  place-items: center;
  padding: 46px;
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(7px);
}

.fx-ql-panel {
  position: relative;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr) 29px;
  width: min(980px, calc(100vw - 80px));
  height: min(720px, calc(100vh - 100px));
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 10% 0, rgba(255,255,255,.13), transparent 35%),
    rgba(28, 30, 36, .92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 17px;
  box-shadow: 0 36px 110px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.14);
  backdrop-filter: blur(30px) saturate(1.5);
  animation: fx-dialog-in .22s cubic-bezier(.2,.82,.3,1);
}

.fx-ql-toolbar {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 100px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.fx-ql-toolbar-title {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 620;
}

.fx-ql-tools {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.fx-ql-tool {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  color: rgba(255,255,255,.84);
  background: transparent;
  border: 0;
  border-radius: 7px;
}

.fx-ql-tool:hover {
  background: rgba(255,255,255,.11);
}

.fx-ql-close {
  justify-self: start;
}

.fx-ql-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.018) 75%),
    #17181c;
  background-size: 22px 22px;
}

.fx-ql-stage img,
.fx-ql-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .22s ease;
}

.fx-ql-stage video {
  width: 100%;
  height: 100%;
  background: #090909;
}

.fx-ql-stage iframe,
.fx-ql-stage embed {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.fx-ql-audio {
  width: min(520px, 80%);
  padding: 38px;
  text-align: center;
}

.fx-ql-audio-symbol {
  margin-bottom: 28px;
  font-size: 76px;
}

.fx-ql-audio audio {
  width: 100%;
}

.fx-ql-document {
  box-sizing: border-box;
  width: min(760px, 100%);
  height: 100%;
  padding: 42px 48px 90px;
  overflow: auto;
  color: #222;
  background: #faf9f6;
  font: 15px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 0 38px rgba(0,0,0,.34);
}

.fx-ql-document h1,
.fx-ql-document h2,
.fx-ql-document h3 {
  line-height: 1.25;
}

.fx-ql-document pre {
  overflow: auto;
  padding: 14px;
  color: #e8e8ed;
  background: #25262b;
  border-radius: 9px;
}

.fx-ql-document code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.fx-ql-document blockquote {
  margin-left: 0;
  padding-left: 14px;
  color: #5d6470;
  border-left: 3px solid #8ebeff;
}

.fx-ql-generic {
  text-align: center;
}

.fx-ql-generic-symbol {
  font-size: 92px;
  filter: drop-shadow(0 16px 20px rgba(0,0,0,.32));
}

.fx-ql-generic h2 {
  margin: 18px 0 5px;
  font-size: 17px;
}

.fx-ql-generic p {
  margin: 0;
  color: var(--fx-text-2);
  font-size: 12px;
}

.fx-ql-status {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 10px;
}

.fx-hot-corner {
  position: fixed;
  z-index: 16000;
  width: 7px;
  height: 7px;
}

.fx-hot-corner[data-corner="top-left"] { top: 0; left: 0; }
.fx-hot-corner[data-corner="top-right"] { top: 0; right: 0; }
.fx-hot-corner[data-corner="bottom-left"] { bottom: 0; left: 0; }
.fx-hot-corner[data-corner="bottom-right"] { right: 0; bottom: 0; }

.fx-corner-hud {
  position: fixed;
  z-index: 17000;
  left: 50%;
  bottom: 92px;
  padding: 8px 13px;
  color: white;
  background: rgba(24,25,30,.76);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,.38);
  backdrop-filter: blur(20px) saturate(1.4);
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
  font-size: 12px;
}

.fx-corner-hud.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.fx-desktop-revealed #windows {
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
  transition: opacity .28s ease, transform .32s cubic-bezier(.2,.8,.2,1);
}

.fx-desktop-stack {
  position: absolute;
  z-index: 3;
  width: 82px;
  color: white;
  text-align: center;
  cursor: default;
}

.fx-stack-layers {
  position: relative;
  width: 60px;
  height: 58px;
  margin: 0 auto 7px;
}

.fx-stack-layer,
.fx-stack-top {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(245,247,252,.92);
  box-shadow: 0 8px 19px rgba(0,0,0,.3);
}

.fx-stack-layer:nth-child(1) { left: 1px; top: 6px; transform: rotate(-8deg); opacity: .75; }
.fx-stack-layer:nth-child(2) { left: 8px; top: 2px; transform: rotate(6deg); opacity: .88; }
.fx-stack-top { left: 5px; top: 1px; font-size: 29px; }

.fx-stack-count {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: white;
  background: #247cf5;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 12px;
  font-size: 9px;
  line-height: 17px;
}

.fx-stack-name {
  display: inline-block;
  max-width: 82px;
  padding: 2px 5px;
  overflow: hidden;
  color: white;
  background: rgba(0,0,0,.35);
  border-radius: 5px;
  text-shadow: 0 1px 2px black;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.fx-stack-fan {
  position: absolute;
  right: 88px;
  top: -8px;
  display: grid;
  grid-template-columns: repeat(3, 96px);
  gap: 8px;
  width: max-content;
  max-height: 330px;
  padding: 14px;
  overflow: auto;
  background: rgba(30,32,38,.78);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.48);
  backdrop-filter: blur(28px) saturate(1.45);
  animation: fx-dialog-in .18s ease-out;
}

.fx-stack-file {
  min-height: 84px;
  padding: 7px;
  overflow: hidden;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
}

.fx-stack-file:hover {
  background: rgba(255,255,255,.12);
}

.fx-stack-file i {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  .fx-dialog,
  .fx-ql-panel,
  .fx-stack-fan,
  .finder-content-pro.fx-rubber-release {
    animation: none !important;
    transition: none !important;
  }
}
