/* Yuanyu AI UX Upgrade 2026-11-27 */
@media (max-width: 767px) {
  [data-slot="sheet-content"],
  aside[role="dialog"],
  div[role="dialog"][data-state="open"][class*="inset-y-0"] {
    background-color: var(--background, #ffffff) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
  }
  [data-slot="sheet-content"] a[href*="/sign-in"],
  div[role="dialog"][data-state="open"][class*="inset-y-0"] a[href*="/sign-in"] {
    background-color: #142f3a !important;
    color: #ffffff !important;
    border-color: #142f3a !important;
    font-weight: 600 !important;
    opacity: 1 !important;
  }
  header button[aria-label*="公告"],
  header button[aria-label*="Notice"],
  header button[aria-label*="通知"],
  header button[aria-label*="Announcement"] {
    display: inline-flex !important;
    visibility: visible !important;
  }
  .yy-mobile-auth-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #142f3a;
    font-weight: 700;
    font-size: 18px;
  }
  .yy-mobile-auth-brand img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #142f3a;
    padding: 4px;
  }
}
@media (min-width: 768px) {
  .yy-mobile-auth-brand { display: none !important; }
}
.yy-header-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  opacity: 0.86;
  transition: background .15s, opacity .15s;
  white-space: nowrap;
}
.yy-header-quick-link:hover { opacity: 1; background: rgba(20, 47, 58, 0.08); }
.yy-status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981;
  display: inline-block; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
}
#yy-wizard-fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 48;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18); background: #142f3a; color: #ffffff;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 28px rgba(20, 47, 58, 0.28); cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
#yy-wizard-fab:hover { background: #1d4454; transform: translateY(-1px); }
@media (max-width: 640px) {
  #yy-wizard-fab { right: 12px; bottom: 14px; padding: 9px 13px; font-size: 12px; }
}
#yy-wizard-backdrop {
  position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, 0.56);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
#yy-wizard-backdrop.open { display: flex; }
#yy-wizard-modal {
  width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
  background: #ffffff; color: #0f172a; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3); padding: 22px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.yy-wiz-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.yy-wiz-head h3 { margin:0; font-size:18px; font-weight:700; color:#142f3a; }
.yy-wiz-close { border:none; background:transparent; font-size:22px; cursor:pointer; color:#64748b; line-height:1; padding:4px 8px; }
.yy-wiz-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
@media (max-width: 600px) { .yy-wiz-grid { grid-template-columns:1fr; } }
.yy-wiz-field label { display:block; font-size:12px; font-weight:600; color:#475569; margin-bottom:5px; }
.yy-wiz-field select, .yy-wiz-field input {
  width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid #cbd5e1; border-radius:8px;
  font-size:13px; background:#f8fafc; color:#0f172a;
}
.yy-wiz-code-wrap { position:relative; margin:12px 0; }
.yy-wiz-pre {
  background:#0f172a; color:#e2e8f0; padding:38px 14px 14px; border-radius:10px;
  font-size:12.5px; line-height:1.55; overflow-x:auto; margin:0; white-space:pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.yy-wiz-copy {
  position:absolute; top:8px; right:10px; padding:4px 10px; border-radius:6px;
  border:1px solid rgba(255,255,255,0.22); background:#1e293b; color:#fff; font-size:12px; cursor:pointer;
}
.yy-wiz-copy:hover { background:#334155; }
.yy-wiz-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
.yy-wiz-test-btn {
  padding:8px 14px; border-radius:8px; border:none; background:#0f766e; color:#fff;
  font-size:13px; font-weight:600; cursor:pointer;
}
.yy-wiz-test-btn:hover { background:#115e59; }
.yy-wiz-test-btn:disabled { opacity:0.6; cursor:wait; }
#yy-wiz-test-res { font-size:12.5px; margin-top:8px; padding:8px 10px; border-radius:8px; display:none; }
#yy-wiz-test-res.ok { display:block; background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
#yy-wiz-test-res.err { display:block; background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
