/*
 * phpDisk modern dark interface
 * Modern minimalism + glassmorphism + subtle neumorphism
 */
@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Ultralight.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Thin.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Light.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Regular.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Medium.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Semibold.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Semibold.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Semibold.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Site PingFang";
  src: url("fonts/PingFangSC-Semibold.woff2?v=20260725-pf3") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #070a12;
  --surface: rgba(14, 20, 35, 0.76);
  --surface-strong: rgba(17, 24, 41, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(157, 177, 255, 0.13);
  --line-strong: rgba(157, 177, 255, 0.24);
  --text: #f4f7ff;
  --muted: #8d98ad;
  --muted-strong: #b5bfd1;
  --blue: #5b8cff;
  --blue-bright: #7da5ff;
  --violet: #9c6cff;
  --cyan: #4de4d0;
  --danger: #ff6f91;
  --warning: #ffc86b;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 13px;
  --shadow-xl: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  color: var(--text) !important;
  font-family: "Site PingFang", "PingFang SC", "苹方-简", "PingFangSC-Regular", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Microsoft YaHei", sans-serif !important;
  font-size: 14px !important;
  font-synthesis: none;
  line-height: 1.5 !important;
  background:
    radial-gradient(circle at 11% -4%, rgba(74, 111, 255, 0.2), transparent 31%),
    radial-gradient(circle at 88% 12%, rgba(145, 79, 255, 0.16), transparent 28%),
    radial-gradient(circle at 48% 104%, rgba(25, 207, 190, 0.08), transparent 34%),
    #070a12 !important;
  background-attachment: scroll !important;
  overflow: hidden;
}

body *,
body button,
body input,
body textarea,
body select {
  font-family: "Site PingFang", "PingFang SC", "苹方-简", "PingFangSC-Regular", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Microsoft YaHei", sans-serif !important;
}

* {
  box-sizing: border-box;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue-bright) !important;
  text-decoration: none !important;
  transition: color 160ms ease, opacity 160ms ease, background 160ms ease;
}

a:hover {
  color: #b8ccff !important;
  text-decoration: none !important;
}

p {
  font-size: inherit !important;
  line-height: inherit !important;
}

br {
  display: initial !important;
  height: auto !important;
  line-height: inherit !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
  min-height: 0;
  flex-direction: column;
}

.app-shell::before,
.app-shell::after {
  display: none;
}

.app-shell::before {
  top: 16%;
  left: -240px;
  background: rgba(77, 119, 255, 0.15);
}

.app-shell::after {
  right: -260px;
  bottom: -120px;
  background: rgba(142, 82, 255, 0.13);
}

.topbar {
  display: flex;
  min-height: 86px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 3vw, 46px);
  border-bottom: 1px solid rgba(160, 180, 255, 0.1);
  background: rgba(7, 10, 18, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, rgba(100, 148, 255, 0.94), rgba(119, 77, 255, 0.9));
  box-shadow:
    0 12px 30px rgba(72, 104, 255, 0.31),
    inset 1px 1px 0 rgba(255, 255, 255, 0.27);
}

.brand-mark::after {
  position: absolute;
  inset: 1px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 50%);
  content: "";
}

.brand-cloud {
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
  font-size: 25px;
  line-height: 1;
}

.brand-arrow {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 5px;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.brand-copy {
  min-width: 0;
}

.header-support {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  margin-left: 18px;
  padding-left: 20px;
  border-left: 1px solid rgba(157, 177, 255, 0.12);
}

.support-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.support-item > div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.support-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(77, 228, 208, 0.14);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(77, 228, 208, 0.055);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.support-item small {
  color: #8f9bb0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.support-item strong {
  color: #e2e9f6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.support-item em {
  color: #a58a94;
  font-size: 9px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.25;
  white-space: nowrap;
}

.wechat-icon {
  position: relative;
  display: block;
  color: var(--cyan);
}

.wechat-icon i,
.wechat-icon b {
  position: absolute;
  display: block;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  background: #0b1720;
}

.wechat-icon i {
  top: 6px;
  left: 5px;
  width: 14px;
  height: 11px;
}

.wechat-icon b {
  right: 5px;
  bottom: 6px;
  width: 12px;
  height: 10px;
}

.wechat-icon i::before,
.wechat-icon b::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 5px 0 0 currentColor;
  content: "";
}

.wechat-icon i::after,
.wechat-icon b::after {
  position: absolute;
  bottom: -3px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-bottom: 1.6px solid currentColor;
  border-left: 1.6px solid currentColor;
  background: #0b1720;
  content: "";
  transform: rotate(-24deg);
}

.support-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 1px;
  background: rgba(157, 177, 255, 0.09);
}

.brand-kicker,
.eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #7f91b1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

.brand-copy h1 {
  max-width: 560px;
  margin: 0 !important;
  overflow: hidden;
  color: var(--text) !important;
  font-size: clamp(17px, 1.8vw, 23px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  line-height: 1.25 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(68, 223, 196, 0.16);
  border-radius: 999px;
  color: #d7f5ef;
  background: rgba(50, 193, 168, 0.07);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.secure-badge span,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(77, 228, 208, 0.8);
}

.friendly-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.friendly-links a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted-strong) !important;
  font-size: 12px;
}

.friendly-links a:hover {
  border-color: var(--line);
  color: var(--text) !important;
  background: var(--surface-soft);
}

.workspace {
  display: grid;
  width: 100%;
  max-width: 1780px;
  height: calc(100vh - 86px);
  min-height: 0;
  flex: 0 0 calc(100vh - 86px);
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
  gap: 20px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px clamp(16px, 2.5vw, 38px) 24px;
}

.sidebar,
.content-area {
  min-width: 0;
  min-height: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-color: rgba(125, 165, 255, 0.32) transparent;
  scrollbar-gutter: stable;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.glass-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(20, 28, 47, 0.97), rgba(10, 15, 27, 0.97));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.25),
    inset 1px 1px 0 rgba(255, 255, 255, 0.055);
}

.action-panel {
  display: flex;
  max-height: 154px;
  flex: 0 0 154px;
  flex-direction: column;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  padding: 5px 13px 3px;
}

.sidebar-heading .eyebrow {
  display: none;
}

.sidebar-heading h2,
.explorer-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sidebar-heading h2 {
  font-size: 13px;
  line-height: 1.2;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-right: 3px;
}

#ysmenu.tool-tabs {
  display: grid !important;
  width: auto !important;
  height: auto !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 0 8px;
  padding: 3px !important;
  border: 1px solid rgba(255, 255, 255, 0.045) !important;
  border-radius: 16px;
  background: rgba(4, 8, 16, 0.46) !important;
  box-shadow:
    inset 4px 4px 10px rgba(0, 0, 0, 0.25),
    inset -2px -2px 7px rgba(255, 255, 255, 0.025);
}

#ysmenu .ysm0,
#ysmenu .ysm0x,
#ysmenu .ysm1 {
  display: flex !important;
  width: auto !important;
  min-width: 0;
  height: 27px !important;
  float: none !important;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 1px solid transparent !important;
  border-radius: 11px;
  outline: none;
  color: #8390a7 !important;
  background: transparent !important;
  font-size: 10px !important;
  font-weight: 600;
  line-height: 1 !important;
  text-align: center;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

#ysmenu .ysm0x,
#ysmenu .ysm0:hover {
  color: #c9d4e8 !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

#ysmenu .ysm1 {
  border-color: rgba(123, 159, 255, 0.24) !important;
  color: #f7f9ff !important;
  background: linear-gradient(135deg, rgba(83, 129, 255, 0.28), rgba(133, 82, 255, 0.2)) !important;
  box-shadow:
    0 7px 18px rgba(44, 69, 163, 0.2),
    inset 1px 1px 0 rgba(255, 255, 255, 0.08);
}

#ysmenu button span {
  color: var(--blue-bright);
  font-size: 12px;
}

#ysmenu1.tool-panels {
  width: auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 5px 8px 7px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  background: transparent !important;
}

#ml_1.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  grid-template-rows: 29px 40px;
  gap: 5px 7px;
}

#ml_1 .field-row {
  display: block;
  min-width: 0;
  margin: 0;
}

#ml_1 .field-row label {
  display: none;
}

#ml_1 .field-row input {
  height: 29px !important;
}

#ml_1 .compact-row {
  min-width: 0;
  height: 29px;
  gap: 5px;
  margin: 0;
}

#ml_1 .check-label {
  flex: 0 0 auto;
}

#ml_1 .check-label span {
  display: none;
}

#ml_1 .mood-picker {
  gap: 3px;
  padding: 3px 5px;
}

#ml_1 #nr {
  grid-column: 1;
  grid-row: 2;
  height: 40px !important;
  min-height: 40px !important;
  resize: none !important;
}

#ml_1 #buly {
  width: 104px !important;
  min-height: 40px !important;
  grid-column: 2;
  grid-row: 2;
  padding: 0 8px !important;
}

.tool-panel {
  padding: 0 !important;
  color: var(--muted-strong);
}

.tool-panel p {
  margin: 8px 0 !important;
}

.field-row {
  display: grid;
  gap: 5px;
  margin-bottom: 7px;
}

.field-row label {
  color: #9ba8be;
  font-size: 11px;
  font-weight: 600;
}

#ml_1 .field-row {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.tx1,
.tx2,
.TX1,
.TX2,
.tx3,
.TX3,
.tool-panel input[type="text"],
.tool-panel input[type="password"],
.tool-panel textarea {
  width: 100% !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid rgba(148, 168, 215, 0.14) !important;
  border-radius: 11px !important;
  outline: none !important;
  color: var(--text) !important;
  background: rgba(4, 8, 16, 0.48) !important;
  box-shadow:
    inset 3px 3px 8px rgba(0, 0, 0, 0.24),
    inset -2px -2px 6px rgba(255, 255, 255, 0.018);
  font-size: 12px !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tool-panel textarea,
#nr {
  height: 48px !important;
  min-height: 48px !important;
  padding: 7px 10px !important;
  resize: vertical !important;
  background-image: none !important;
}

.tool-panel input::placeholder,
.tool-panel textarea::placeholder,
.search-box input::placeholder {
  color: #5f6b80;
  opacity: 1;
}

.tool-panel input:focus,
.tool-panel textarea:focus,
.search-box:focus-within {
  border-color: rgba(104, 146, 255, 0.58) !important;
  background: rgba(8, 13, 26, 0.78) !important;
  box-shadow:
    0 0 0 3px rgba(77, 119, 255, 0.11),
    inset 2px 2px 7px rgba(0, 0, 0, 0.2) !important;
}

.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 1px 6px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #98a5bb;
  font-size: 11px;
  cursor: pointer;
}

.check-label input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.mood-picker {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}

.mood-picker img {
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
}

.BT1,
.BT2,
.bt1,
.bt2,
.primary-button,
.refresh-button,
.bottom-toolbar button {
  min-height: 36px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(145, 165, 208, 0.15) !important;
  border-radius: 11px !important;
  outline: none;
  color: #c7d1e3 !important;
  background: linear-gradient(145deg, rgba(30, 39, 60, 0.95), rgba(15, 21, 36, 0.96)) !important;
  box-shadow:
    5px 7px 15px rgba(0, 0, 0, 0.24),
    -2px -2px 7px rgba(255, 255, 255, 0.025),
    inset 1px 1px 0 rgba(255, 255, 255, 0.045) !important;
  font-size: 12px !important;
  font-weight: 600;
  cursor: pointer !important;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.BT1:hover,
.BT2:hover,
.bt1:hover,
.bt2:hover,
.refresh-button:hover,
.bottom-toolbar button:hover {
  border-color: rgba(116, 153, 255, 0.38) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.BT1:active,
.BT2:active,
.bt1:active,
.bt2:active,
.refresh-button:active,
.bottom-toolbar button:active {
  box-shadow:
    inset 4px 4px 9px rgba(0, 0, 0, 0.3),
    inset -2px -2px 6px rgba(255, 255, 255, 0.02) !important;
  transform: translateY(0);
}

.primary-button {
  width: 100% !important;
  min-height: 35px !important;
  border-color: rgba(127, 160, 255, 0.34) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #4f7cf0, #7658df) !important;
  box-shadow:
    0 10px 24px rgba(66, 91, 207, 0.27),
    inset 1px 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.primary-button:hover {
  border-color: rgba(176, 198, 255, 0.52) !important;
  box-shadow:
    0 13px 30px rgba(66, 91, 207, 0.36),
    inset 1px 1px 0 rgba(255, 255, 255, 0.24) !important;
}

.panel-link {
  margin: -1px 1px 12px;
  text-align: right;
}

.panel-link a {
  font-size: 11px;
}

.helper-text {
  margin: 11px 2px 0 !important;
  color: #758197;
  font-size: 11px !important;
  line-height: 1.65 !important;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 13px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(4, 8, 16, 0.5);
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control label {
  padding: 7px 4px;
  border-radius: 9px;
  color: #748197;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.segmented-control input:checked + label {
  color: #eff4ff;
  background: rgba(86, 124, 235, 0.25);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.05);
}

.upload-button {
  margin-top: 2px;
}

.account-stats {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.account-stats p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 !important;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.account-stats span {
  color: #778399;
  font-size: 10px;
}

.account-stats strong {
  color: #cad4e5;
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.button-stack button {
  flex: 1 1 90px;
}

.message-panel {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title h3 {
  margin: 0;
  color: #dbe4f4;
  font-size: 12px;
  font-weight: 700;
}

.section-title span {
  color: #536077;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.lynrc {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  padding: 10px 14px 14px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  color: #8692a8 !important;
  background: transparent !important;
  font-size: 11px !important;
  word-break: break-word;
}

.lynrc > label {
  display: block;
  padding: 22px 0;
  color: #59667d;
  text-align: center;
}

.lynrc p {
  margin: 0 !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background: none !important;
  line-height: 1.6 !important;
}

.lynrc p span,
.lynrc p b,
.lynrc p label {
  max-width: 100%;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.service-note {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  color: #647086;
  font-size: 10px;
  line-height: 1.55;
}

.service-note strong {
  color: #909cb1;
  font-weight: 600;
}

.service-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(77, 228, 208, 0.12);
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(77, 228, 208, 0.055);
  font-size: 15px;
}

.explorer-card {
  display: flex;
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.explorer-header.ta_wjq {
  display: flex !important;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text) !important;
  background: linear-gradient(90deg, rgba(32, 44, 72, 0.6), rgba(20, 27, 46, 0.3)) !important;
}

.explorer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.folder-orb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(125, 165, 255, 0.25);
  border-radius: 14px;
  color: #85aaff;
  background: linear-gradient(145deg, rgba(76, 124, 255, 0.2), rgba(130, 83, 255, 0.13));
  box-shadow:
    0 8px 22px rgba(43, 74, 164, 0.18),
    inset 1px 1px 0 rgba(255, 255, 255, 0.07);
  font-size: 17px;
}

.storage-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(5, 9, 18, 0.35);
  box-shadow: inset 2px 2px 7px rgba(0, 0, 0, 0.18);
}

.storage-stats > div {
  display: grid;
  gap: 2px;
}

.storage-stats span {
  color: #68758b;
  font-size: 9px;
}

.storage-stats strong {
  color: #cbd6e9;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.storage-stats i {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.07);
}

.current-time {
  display: flex;
  min-width: 270px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(125, 165, 255, 0.12);
  border-radius: 13px;
  background: rgba(5, 9, 18, 0.46);
  box-shadow: inset 2px 2px 7px rgba(0, 0, 0, 0.18);
}

.time-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border: 1px solid rgba(125, 165, 255, 0.14);
  border-radius: 9px;
  color: var(--blue-bright);
  background: rgba(91, 140, 255, 0.07);
  font-size: 13px;
}

.current-time > div {
  display: grid;
  gap: 1px;
}

.current-time small {
  color: #65738a;
  font-size: 9px;
}

.current-time strong {
  color: #e0e7f5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.system-live-data,
.system-hooks {
  display: none !important;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(6, 10, 19, 0.24);
}

.search-box {
  display: flex;
  max-width: 520px;
  min-width: 180px;
  height: 40px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 13px;
  border: 1px solid rgba(145, 166, 213, 0.13);
  border-radius: 12px;
  background: rgba(4, 8, 16, 0.48);
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.22);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box > span {
  color: #68758b;
  font-size: 20px;
  line-height: 1;
  transform: rotate(-15deg);
}

.search-box input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0;
  border: 0;
  outline: none;
  color: #dfe7f5;
  background: transparent;
  font-size: 12px;
  -webkit-appearance: none;
  appearance: none;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

#clearSearch {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #8290a6;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

#clearSearch:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.refresh-button {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.refresh-button span {
  color: var(--blue-bright);
  font-size: 16px;
  line-height: 1;
}

.list-columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 22px 8px;
  color: #505c70;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.list-columns span:last-child {
  visibility: hidden;
}

body.admin-sort-enabled .list-columns span:last-child {
  visibility: visible;
}

.file-list-wrap,
#dzx {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0 14px 14px !important;
  overflow-x: hidden;
  overflow-y: auto;
  contain: layout paint;
  overscroll-behavior: contain;
  scrollbar-color: rgba(125, 165, 255, 0.38) rgba(3, 7, 14, 0.24);
  scrollbar-gutter: stable;
  color: var(--text) !important;
  background: transparent !important;
  word-break: break-word;
}

#mainMenu {
  width: 100% !important;
  padding: 0 !important;
  font-size: 13px !important;
}

#menuList {
  display: grid;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

#menuList li {
  position: relative;
  min-height: 38px;
  margin: 0;
  padding: 9px 56px 8px 43px !important;
  border: 1px solid transparent !important;
  border-bottom-color: rgba(139, 159, 204, 0.09) !important;
  border-radius: 11px;
  color: #c9d3e3 !important;
  background: rgba(255, 255, 255, 0.012);
  list-style: none !important;
  line-height: 1.55;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

#menuList > li:hover {
  border-color: rgba(112, 149, 255, 0.19) !important;
  background: linear-gradient(90deg, rgba(79, 119, 232, 0.1), rgba(133, 80, 231, 0.045));
}

#menuList li > img {
  position: absolute;
  top: 11px;
  left: 17px;
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  object-fit: contain;
  filter: saturate(0.45) brightness(1.18);
  opacity: 0.72;
}

#menuList li.folder-row > img {
  opacity: 0;
}

#menuList li.folder-row::before {
  position: absolute;
  top: 12px;
  left: 17px;
  width: 15px;
  height: 11px;
  border: 1px solid rgba(94, 218, 195, 0.36);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(104, 180, 255, 0.92), rgba(78, 228, 202, 0.82));
  box-shadow: 0 0 12px rgba(77, 228, 208, 0.13);
  content: "";
  pointer-events: none;
}

#menuList li.folder-row::after {
  position: absolute;
  top: 9px;
  left: 19px;
  width: 8px;
  height: 4px;
  border-radius: 3px 3px 0 0;
  background: rgba(104, 180, 255, 0.88);
  content: "";
  pointer-events: none;
}

#menuList li > table {
  display: none !important;
}

#menuList li > .sort-handle {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 12px;
  display: none !important;
  width: 28px !important;
  height: 26px !important;
  place-items: center;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(77, 228, 208, 0.14) !important;
  border-radius: 8px;
  background:
    linear-gradient(#4de4d0, #4de4d0) center 8px / 12px 2px no-repeat,
    linear-gradient(#4de4d0, #4de4d0) center 12px / 12px 2px no-repeat,
    linear-gradient(#4de4d0, #4de4d0) center 16px / 12px 2px no-repeat,
    rgba(77, 228, 208, 0.055) !important;
  border-spacing: 0 !important;
  box-shadow: none !important;
  cursor: grab !important;
}

.sortable-enabled > li > .sort-handle {
  display: grid !important;
}

body.admin-sort-enabled #menuList li > .sort-handle {
  display: grid !important;
}

#menuList li > .sort-handle:hover {
  border-color: rgba(77, 228, 208, 0.34) !important;
  background:
    linear-gradient(#d6fff8, #d6fff8) center 8px / 12px 2px no-repeat,
    linear-gradient(#d6fff8, #d6fff8) center 12px / 12px 2px no-repeat,
    linear-gradient(#d6fff8, #d6fff8) center 16px / 12px 2px no-repeat,
    rgba(77, 228, 208, 0.1) !important;
}

#menuList li > .sort-handle:active {
  cursor: grabbing !important;
}

#menuList li > .sort-handle i,
#menuList li > .sort-handle::before,
#menuList li > .sort-handle::after {
  display: none;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #4de4d0;
  content: "";
  opacity: 0.9;
}

#menuList li > .sort-handle tbody,
#menuList li > .sort-handle tr,
#menuList li > .sort-handle td {
  display: none !important;
}

#menuList li > table:not(.sort-handle) {
  position: relative;
  z-index: 2;
  width: 22px !important;
  height: 14px !important;
  float: right !important;
  margin: 3px 2px 0 12px !important;
  border: 0 !important;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05) !important;
  border-spacing: 2px !important;
  box-shadow: none !important;
  cursor: default !important;
}

#menuList li > table:not(.sort-handle) td {
  width: 3px !important;
  height: 5px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px;
}

#menuList li > table:not(.sort-handle) td.g {
  background: #42d7b5 !important;
}

#menuList li > table:not(.sort-handle) td.r {
  background: #695c71 !important;
}

#menuList li a,
#menuList li a.ml,
#menuList li a.mln,
#menuList li a.wj,
#menuList li a.lj,
#menuList li span {
  color: #d9e2f1 !important;
  font-size: 13px !important;
  font-weight: 500;
}

#menuList li a.ml::after,
#menuList li a.mln::after {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid rgba(101, 143, 255, 0.16);
  border-radius: 999px;
  color: #7085aa;
  background: rgba(73, 105, 194, 0.08);
  content: "目录";
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

#menuList li a:hover {
  color: #91b1ff !important;
}

#menuList li label,
#menuList li font {
  margin-left: 12px !important;
  color: #6f7d93 !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 400;
}

#menuList li .yyck {
  display: inline-flex;
  margin-left: 10px;
  padding: 2px 7px;
  border: 1px solid rgba(77, 228, 208, 0.14);
  border-radius: 7px;
  color: #6ed8c8 !important;
  background: rgba(77, 228, 208, 0.05);
  font-size: 9px !important;
  text-decoration: none !important;
}

#menuList li .yybj {
  color: #8fa5d1 !important;
  font-size: 10px !important;
}

#menuList .menu {
  display: none;
  width: 100%;
  min-height: 0 !important;
  margin: 9px 0 0 !important;
  padding: 6px 0 2px 10px !important;
  border: 0 !important;
  border-left: 1px solid rgba(105, 143, 237, 0.25) !important;
  background: transparent;
}

#menuList .menu li {
  min-height: 34px;
  padding-top: 7px !important;
  padding-bottom: 6px !important;
  border-bottom-color: rgba(255, 255, 255, 0.045) !important;
  background: transparent;
}

.loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6e7b91 !important;
}

.loading-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(91, 140, 255, 0.55);
}

.empty-search {
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #657188;
  text-align: center;
}

.empty-search > span {
  margin-bottom: 5px;
  color: #4e5c72;
  font-size: 34px;
  transform: rotate(-15deg);
}

.empty-search strong {
  color: #96a3b9;
  font-size: 12px;
  font-weight: 600;
}

.empty-search small {
  margin-top: 3px;
  color: #5d687d;
  font-size: 10px;
}

.global-search-results {
  display: grid;
  gap: 6px;
  padding: 1px 0 8px;
}

.search-summary {
  padding: 4px 9px 7px;
  color: #758299;
  font-size: 11px;
}

.search-summary strong {
  color: var(--cyan);
  font-size: 12px;
}

.global-search-item {
  display: grid;
  min-height: 48px;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(139, 159, 204, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 150ms ease, background 150ms ease;
}

.global-search-item:hover {
  border-color: rgba(112, 149, 255, 0.2);
  background: linear-gradient(90deg, rgba(79, 119, 232, 0.1), rgba(133, 80, 231, 0.045));
}

.global-search-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: rgba(100, 132, 219, 0.08);
  font-size: 14px;
}

.global-search-copy {
  min-width: 0;
}

.global-search-copy > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.global-search-copy a,
.global-search-copy > div {
  overflow: hidden;
  color: #dce5f5 !important;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #69778f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-type,
.search-lock {
  flex: 0 0 auto;
  padding: 1px 6px;
  border: 1px solid rgba(105, 143, 237, 0.2);
  border-radius: 999px;
  color: #83a5f5;
  background: rgba(73, 105, 194, 0.08);
  font-size: 8px;
  font-weight: 700;
}

.search-lock {
  border-color: rgba(255, 200, 107, 0.16);
  color: #c6a86f;
  background: rgba(255, 200, 107, 0.05);
}

.search-loading,
.search-error {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #758299;
  font-size: 11px;
}

.search-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(77, 228, 208, 0.7);
  animation: pulse 1.2s ease-in-out infinite;
}

.custom-content {
  float: right;
  margin: 0 0 12px 12px;
}

div.yszdyq {
  width: 190px !important;
  margin: 0 0 8px !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 13px;
  background: rgba(11, 16, 28, 0.92) !important;
}

.z_bt {
  padding: 8px 10px !important;
  color: #dce5f5 !important;
  background: rgba(75, 111, 210, 0.2) !important;
}

.z_bo {
  color: #8e9bb1 !important;
  background: rgba(7, 11, 20, 0.85) !important;
}

.announcement-bar {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #748198;
  background: rgba(6, 10, 19, 0.36);
  font-size: 10px;
}

.announcement-icon {
  display: none;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 200, 107, 0.19);
  border-radius: 8px;
  color: var(--warning);
  background: rgba(255, 200, 107, 0.07);
  font-size: 10px;
  font-weight: 800;
}

.expiry-warning {
  margin-left: 8px;
  color: var(--warning);
}

.bottom-toolbar {
  display: flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 3px 0;
}

.toolbar-status {
  color: #667389;
  font-size: 10px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.bottom-toolbar button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
}

.bottom-toolbar .danger-button {
  border-color: rgba(255, 111, 145, 0.12) !important;
  color: #c99aa7 !important;
}

.bottom-toolbar .danger-button:hover {
  border-color: rgba(255, 111, 145, 0.3) !important;
  color: #ffb0c2 !important;
}

.report-link {
  margin-right: 3px;
  padding: 6px 8px;
  color: #738097 !important;
  font-size: 10px;
}

.floating-ad {
  position: fixed;
  z-index: 99999;
  top: 104px;
  right: 22px;
  width: 230px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(13, 19, 33, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.floating-ad-title {
  display: flex;
  height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  color: #dfe7f5;
  background: linear-gradient(90deg, rgba(69, 112, 229, 0.36), rgba(111, 74, 207, 0.26));
  font-size: 11px;
  font-weight: 600;
}

.floating-ad-title a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  color: #aeb8ca !important;
  font-size: 18px;
}

.floating-ad-title a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.floating-ad-body {
  padding: 10px;
  color: #8995aa;
  font-size: 11px;
  word-break: break-word;
}

/* Legacy floating dialogs */
.ck {
  overflow: hidden !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 16px !important;
  color: #b9c4d7 !important;
  background: rgba(12, 18, 31, 0.97) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55) !important;
}

.ckbt {
  display: flex;
  min-height: 40px !important;
  align-items: center;
  padding: 0 12px !important;
  color: #e9effa !important;
  background: linear-gradient(90deg, rgba(68, 107, 215, 0.42), rgba(100, 67, 191, 0.32)) !important;
  line-height: 1 !important;
}

.ckbt .abu {
  order: 2;
  margin-left: auto;
  color: #b9c4d7 !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(137, 155, 196, 0.18);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(137, 155, 196, 0.3);
  background-clip: padding-box;
}

.file-list-wrap::-webkit-scrollbar,
#dzx::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 10px;
}

.file-list-wrap::-webkit-scrollbar-track,
#dzx::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(3, 7, 14, 0.22);
}

.file-list-wrap::-webkit-scrollbar-thumb,
#dzx::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(125, 165, 255, 0.4);
  background-clip: padding-box;
}

.file-list-wrap::-webkit-scrollbar-thumb:hover,
#dzx::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 165, 255, 0.62);
  background-clip: padding-box;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 980px) {
  body {
    height: auto !important;
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .workspace {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .sidebar {
    overflow: visible;
  }

  .content-area {
    overflow: visible;
  }

  .message-panel {
    display: flex;
    min-height: 420px;
  }

  .service-note {
    display: none;
  }

  #ysmenu.tool-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-area,
  .explorer-card {
    min-height: 620px;
  }

  .topbar {
    min-height: 76px;
  }

  .brand {
    flex-wrap: wrap;
  }

  .header-support {
    width: 100%;
    order: 3;
    margin-left: 58px;
    padding-left: 0;
    border-left: 0;
  }

  .topbar-actions {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 70px;
    padding: 11px 15px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .brand-kicker,
  .secure-badge,
  .friendly-links {
    display: none;
  }

  .brand-copy h1 {
    max-width: calc(100vw - 100px);
    font-size: 16px !important;
  }

  .header-support {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin: 7px 0 0;
  }

  .support-divider {
    display: none;
  }

  .support-item {
    width: 100%;
  }

  .support-item em {
    white-space: normal;
  }

  .workspace {
    gap: 13px;
    padding: 13px 10px 18px;
  }

  .glass-panel {
    border-radius: 19px;
  }

  .sidebar-heading {
    padding: 17px 16px 12px;
  }

  #ysmenu.tool-tabs {
    display: flex !important;
    gap: 5px;
    margin: 0 10px;
    padding: 5px !important;
    overflow-x: auto;
  }

  #ysmenu .ysm0,
  #ysmenu .ysm0x,
  #ysmenu .ysm1 {
    min-width: 92px;
    flex: 1 0 auto;
  }

  #ysmenu1.tool-panels {
    padding: 12px 11px 14px !important;
  }

  .explorer-header.ta_wjq {
    min-height: 72px;
    padding: 13px 14px !important;
  }

  .folder-orb {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .current-time {
    min-width: 0;
    padding: 7px 9px;
  }

  .current-time small,
  .time-icon {
    display: none;
  }

  .current-time strong {
    font-size: 9px;
  }

  .explorer-toolbar {
    padding: 11px 12px;
  }

  .refresh-button {
    width: 40px;
    justify-content: center;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .refresh-button span {
    font-size: 17px;
  }

  .list-columns {
    padding-right: 16px;
    padding-left: 16px;
  }

  .file-list-wrap,
  #dzx {
    padding: 0 7px 10px !important;
  }

  #menuList li {
    padding-right: 46px !important;
    padding-left: 38px !important;
  }

  #menuList li > img {
    left: 13px;
  }

  #menuList li label,
  #menuList li font {
    display: block;
    margin: 2px 0 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .announcement-bar {
    padding: 8px 12px;
  }

  .bottom-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 2px;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }

  .toolbar-actions button {
    min-width: 0;
    flex: 1;
    padding: 0 8px !important;
    font-size: 11px !important;
  }

  .report-link {
    display: none;
  }

  .floating-ad {
    top: 82px;
    right: 12px;
    width: min(230px, calc(100vw - 24px));
  }
}

body.image-preview-open {
  overflow: hidden !important;
}

.image-preview-link {
  cursor: zoom-in !important;
}

.text-preview-link {
  cursor: text !important;
}

.image-preview-modal {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: flex;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  padding: 30px;
  pointer-events: none;
  opacity: 0;
  background: rgba(2, 6, 14, 0.82);
  transition: visibility 0.18s ease, opacity 0.18s ease;
}

.image-preview-modal.is-open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.image-preview-dialog {
  display: grid;
  width: min(1080px, 92vw);
  max-height: 88vh;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(111, 143, 206, 0.3);
  border-radius: 22px;
  background: #0d1525;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.18s ease;
}

.image-preview-modal.is-open .image-preview-dialog {
  transform: translateY(0) scale(1);
}

.image-preview-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid rgba(111, 143, 206, 0.18);
  background: #121d31;
}

.image-preview-header > div {
  min-width: 0;
}

.image-preview-header strong {
  display: block;
  overflow: hidden;
  color: #f3f7ff;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview-header .eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #6e8ed0;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.image-preview-close {
  display: grid !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(111, 143, 206, 0.24) !important;
  border-radius: 12px !important;
  color: #d9e4fa !important;
  background: #17243a !important;
  font-size: 25px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
}

.image-preview-close:hover {
  border-color: rgba(72, 232, 209, 0.45) !important;
  color: #48e8d1 !important;
  background: #1a2c42 !important;
}

.image-preview-stage {
  position: relative;
  display: flex;
  min-height: 260px;
  max-height: calc(88vh - 68px);
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(-45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%) 0 0 / 24px 24px,
    #080e19;
  scrollbar-color: rgba(91, 131, 255, 0.65) transparent;
  scrollbar-width: thin;
}

.image-preview-stage img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: calc(88vh - 116px) !important;
  object-fit: contain;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

.text-preview-dialog {
  width: min(1160px, 94vw);
  max-height: 92vh;
}

.text-preview-stage {
  display: block;
  min-height: min(680px, calc(92vh - 70px));
  padding: 0;
  background: #080e19;
}

.text-preview-title-input {
  display: block;
  width: min(420px, 58vw);
  height: 28px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  outline: none;
  color: #f3f7ff;
  background: transparent;
  font: 600 15px/28px inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-preview-title-input.is-editable {
  padding: 0 8px;
  border: 1px solid rgba(77, 228, 208, 0.16);
  border-radius: 8px;
  background: rgba(77, 228, 208, 0.045);
}

.text-preview-title-input.is-editable:focus {
  border-color: rgba(77, 228, 208, 0.38);
  background: rgba(77, 228, 208, 0.075);
}

.text-preview-content {
  box-sizing: border-box;
  width: 100%;
  height: min(680px, calc(92vh - 70px));
  min-height: min(680px, calc(92vh - 70px));
  max-height: calc(92vh - 70px);
  margin: 0;
  padding: 22px 24px;
  border: 0;
  outline: none;
  resize: none;
  overflow: auto;
  color: #dbe7ff;
  background: #080e19;
  font: 13px/1.75 Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
  tab-size: 4;
  white-space: pre-wrap;
  scrollbar-color: rgba(91, 131, 255, 0.65) transparent;
  scrollbar-width: thin;
}

.text-preview-content.is-editable {
  background: #071121;
  box-shadow: inset 0 0 0 1px rgba(77, 228, 208, 0.12);
}

.text-preview-save {
  display: inline-flex;
  min-width: 64px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid rgba(77, 228, 208, 0.22);
  border-radius: 8px;
  color: #bdf9ef;
  background: rgba(77, 228, 208, 0.08);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.text-preview-save:hover {
  border-color: rgba(77, 228, 208, 0.42);
  color: #fff;
}

.text-preview-save:disabled {
  cursor: wait;
  opacity: 0.58;
}

.sortable-enabled > li {
  cursor: default;
}

.sortable-enabled > li:active {
  cursor: default;
}

.sortable-enabled > li.dragging {
  opacity: 0.48;
}

.sortable-enabled.sort-saving > li {
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.image-preview-status {
  position: absolute;
  z-index: 1;
  display: none;
  padding: 10px 14px;
  border: 1px solid rgba(111, 143, 206, 0.24);
  border-radius: 10px;
  color: #9dafcc;
  background: #101a2b;
  font-size: 12px;
}

.image-preview-status.is-visible {
  display: block;
}

.image-preview-status.is-error {
  border-color: rgba(255, 113, 134, 0.35);
  color: #ff9aaa;
}

@media (max-width: 640px) {
  .image-preview-modal {
    padding: 12px;
  }

  .image-preview-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 18px;
  }

  .image-preview-stage {
    max-height: calc(92vh - 64px);
    padding: 12px;
  }

  .image-preview-stage img {
    max-height: calc(92vh - 88px) !important;
  }

  .text-preview-content {
    height: calc(92vh - 64px);
    min-height: calc(92vh - 64px);
    max-height: calc(92vh - 64px);
    padding: 16px;
    font-size: 12px;
  }

  .text-preview-title-input {
    width: min(280px, 48vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
