:root {
  --bg-root: #141414;
  --bg-sidebar: #1f1f1f;
  --bg-card: #1f1f1f;
  --bg-card-hover: #272727;
  --bg-input: #171717;
  --border-subtle: #2b2b2b;
  --border-strong: #383838;
  --text-primary: #f2f2f2;
  --text-secondary: #9a9a9a;
  --text-muted: #6e6e6e;
  --wx-green: #1ec981;
  --wx-green-hover: #19b473;
  --wx-green-soft: rgba(30, 201, 129, 0.14);
  --wx-blue: #3b82f6;
  --wx-warn: #f59e0b;
  --wx-danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  background: var(--bg-root);
  color: var(--text-primary);
  font-family: "Microsoft YaHei UI", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  padding: 12px;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Sidebar (WeType Floating Dark Card) ---------- */
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 20px;
}

.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wx-green);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-badge svg {
  width: 17px;
  height: 17px;
}

.brand-badge.small {
  width: 24px;
  height: 24px;
}

.brand-badge.small svg {
  width: 13px;
  height: 13px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #dcdcdc;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
  background: var(--wx-green);
  color: #ffffff;
  font-weight: 500;
}

.nav-item.active .nav-ico rect[fill] {
  fill: var(--wx-green);
}

.nav-ico {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  color: #eee;
}

.nav-item.active .nav-badge {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

.sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--text-secondary);
  width: 100%;
}

.conn-pill.compact {
  width: auto;
  padding: 4px 10px;
}

.conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wx-warn);
  flex-shrink: 0;
}

.conn-pill.lan .conn-dot {
  background: var(--wx-green);
  box-shadow: 0 0 8px rgba(30, 201, 129, 0.6);
}
.conn-pill.lan { color: #a7f3d0; }

.conn-pill.wan .conn-dot {
  background: var(--wx-blue);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.conn-pill.wan { color: #bfdbfe; }

.conn-pill.offline .conn-dot {
  background: var(--wx-danger);
}

/* ---------- Main Area ---------- */
.main-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px 28px 36px;
  scrollbar-width: thin;
  scrollbar-color: #363636 transparent;
}

.main-area::-webkit-scrollbar {
  width: 6px;
}
.main-area::-webkit-scrollbar-thumb {
  background: #353535;
  border-radius: 99px;
}

.mobile-header, .mobile-tabs {
  display: none;
}

.tab-panel {
  display: none;
  max-width: 780px;
  margin: 0 auto;
  animation: fadeIn 0.16s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero Illustration (WeType Line-Art Style) ---------- */
.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 0 28px;
  user-select: none;
}

.hero-device.phone-left,
.hero-device.phone-right {
  width: 48px;
  height: 82px;
  border: 1.5px solid #6c6c6c;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.015);
}

.phone-notch {
  position: absolute;
  top: 6px;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: #6c6c6c;
}

.phone-bar {
  position: absolute;
  bottom: 6px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #6c6c6c;
}

.phone-screen-text {
  font-size: 12px;
  color: #cfcfcf;
  letter-spacing: 0.3px;
}

.hero-device.monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-body {
  width: 112px;
  height: 76px;
  border: 1.5px solid #8a8a8a;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.02);
}

.monitor-text {
  font-size: 16px;
  font-weight: 500;
  color: #efefef;
}

.monitor-copy-tag {
  font-size: 10px;
  padding: 1px 7px;
  border: 1px solid #777;
  border-radius: 3px;
  color: #d4d4d4;
}

.monitor-stand {
  width: 12px;
  height: 10px;
  border-left: 1.5px solid #8a8a8a;
  border-right: 1.5px solid #8a8a8a;
}

.monitor-base {
  width: 44px;
  height: 2px;
  background: #8a8a8a;
  border-radius: 2px;
}

.hero-arrows {
  font-size: 16px;
  color: #727272;
  letter-spacing: 2px;
  animation: pulseArrow 2.4s infinite ease-in-out;
}

.hero-arrows.right {
  animation-delay: 1.2s;
}

@keyframes pulseArrow {
  0%, 100% { opacity: 0.35; color: #727272; }
  50% { opacity: 1; color: var(--wx-green); }
}

/* ---------- Quick Latest Clipboard Banner ---------- */
.quick-banner {
  background: linear-gradient(135deg, rgba(30, 201, 129, 0.11), rgba(31, 31, 31, 0.95));
  border: 1px solid rgba(30, 201, 129, 0.28);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quick-banner-left {
  min-width: 0;
  flex: 1;
}

.quick-tag {
  font-size: 11px;
  color: var(--wx-green);
  margin-bottom: 3px;
}

.quick-preview {
  font-size: 13.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- WeType Grouped Dark Card & Rows ---------- */
.section-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 22px 0 10px 4px;
}

.wx-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.wx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.wx-row:last-child {
  border-bottom: none;
}

.wx-row.col {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.wx-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.wx-icon {
  width: 24px;
  height: 24px;
  color: #b5b5b5;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.wx-icon.accent {
  color: var(--wx-green);
}

.wx-icon svg {
  width: 21px;
  height: 21px;
}

.wx-row-info {
  min-width: 0;
  flex: 1;
}

.wx-row-title {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wx-row-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  word-break: break-word;
}

.mini-status {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.mini-status.on {
  background: var(--wx-green-soft);
  color: var(--wx-green);
}

/* ---------- WeChat Signature Toggle Switch ---------- */
.wx-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.wx-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wx-slider {
  position: absolute;
  inset: 0;
  background: #3d3d3d;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wx-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.wx-switch input:checked + .wx-slider {
  background: var(--wx-green);
}

.wx-switch input:checked + .wx-slider::before {
  transform: translateX(20px);
}

/* ---------- Buttons & Inputs ---------- */
button, .file-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-green {
  background: var(--wx-green);
  color: #fff;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.08s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-green:hover { background: var(--wx-green-hover); }
.btn-green:active { transform: scale(0.97); }
.btn-green.full { width: 100%; padding: 11px; font-size: 14.5px; }

.btn-dark {
  background: #2c2c2c;
  color: #e6e6e6;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  border: 1px solid #3a3a3a;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
}

.btn-dark:hover { background: #363636; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.btn-ghost:hover { color: #fff; border-color: #444; }

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.wx-input, .wx-search {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.wx-input:focus, .wx-search:focus {
  border-color: var(--wx-green);
}

.wx-search {
  width: 210px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-form.wrap {
  flex-wrap: wrap;
}

.wx-input.short {
  max-width: 160px;
}

/* ---------- Clipboard Composer & Timeline ---------- */
.composer-card {
  padding: 14px;
  margin-bottom: 16px;
}

.composer-card textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.composer-card textarea:focus {
  border-color: var(--wx-green);
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.composer-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s ease;
}

.clip-card.pinned {
  border-color: rgba(30, 201, 129, 0.45);
}

.clip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  gap: 8px;
}

.clip-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-tag {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 99px;
  background: #2b2b2b;
  color: #ccc;
}

.pill-tag.green {
  background: var(--wx-green-soft);
  color: var(--wx-green);
}

.pill-tag.blue {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

.clip-text {
  font-size: 13.5px;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.18);
  padding: 10px 12px;
  border-radius: 8px;
}

.clip-image-wrap {
  margin-top: 4px;
}

.clip-image-wrap img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  cursor: zoom-in;
  display: block;
}

.clip-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ---------- File Transfer Drop Zone & List ---------- */
.drop-zone {
  border: 1.5px dashed #3d3d3d;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--wx-green);
  background: var(--wx-green-soft);
  color: #fff;
}

.drop-title {
  font-size: 14.5px;
  color: var(--text-primary);
  margin-top: 8px;
}

.drop-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.upload-queue {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
}

.upload-item-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.progress-track {
  height: 6px;
  background: #2e2e2e;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--wx-green);
  width: 0%;
  transition: width 0.12s linear;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-thumb {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: #2a2a2a;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--wx-green);
  font-weight: 600;
  font-size: 12px;
}

.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.file-info {
  min-width: 0;
  flex: 1;
}

.file-name {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.file-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

/* ---------- WAN & Connect ---------- */
.wan-url-row {
  padding: 0 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wan-url-row code {
  background: #141414;
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--wx-green);
  font-size: 12.5px;
  word-break: break-all;
}

.connect-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 14px;
}

.qr-card {
  padding: 22px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-title {
  font-size: 15.5px;
  font-weight: 500;
}

.qr-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 6px 0 16px;
}

.qr-frame {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
}

.qr-frame.small {
  width: 190px;
  height: 190px;
  margin: 12px auto;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.big-pin {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--wx-green);
  margin-top: 8px;
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.ip-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.ip-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #161616;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
}

.ip-chip code {
  color: #e5e7eb;
}

/* ---------- Empty State & Modals & Toast ---------- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  background: #222222;
  border: 1px solid #353535;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 500;
}

.modal-close {
  background: transparent;
  color: var(--text-secondary);
  font-size: 18px;
  padding: 2px 6px;
}

.modal-body {
  padding: 20px;
}

.modal-body.center {
  text-align: center;
}

.modal-pin {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--wx-green);
  font-family: monospace;
  margin-bottom: 6px;
}

.modal-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.modal-url {
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
}

.pin-input {
  text-align: center;
  font-size: 22px;
  letter-spacing: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.error-text {
  color: #fca5a5;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.lightbox-wrap {
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-wrap img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-actions {
  display: flex;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #2b2b2b;
  color: #fff;
  border: 1px solid #404040;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ---------- Responsive Mobile Layout ---------- */
@media (max-width: 820px) {
  .app-shell {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 600;
  }

  .main-area {
    padding: 12px 14px 86px;
  }

  .page-header {
    margin-bottom: 12px;
  }

  .page-header h1 {
    font-size: 18px;
  }

  .hero-stage {
    transform: scale(0.86);
    padding: 6px 0 14px;
  }

  .quick-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .file-card {
    flex-wrap: wrap;
  }

  .file-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .wx-search {
    width: 150px;
  }

  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1b1b1b;
    border-top: 1px solid var(--border-subtle);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
  }

  .m-tab {
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 0;
    font-size: 11px;
  }

  .m-tab svg {
    width: 20px;
    height: 20px;
  }

  .m-tab.active {
    color: var(--wx-green);
  }

  .toast {
    bottom: 78px;
  }
}
