  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f0f2f5; color: #1f2329; }
  .hidden { display: none !important; }
  .login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(155deg,#12283f 0%,#0e4a3c 48%,#0f9d6f 130%); }
  .login-card { width: 360px; background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
  .brand { text-align: center; margin-bottom: 18px; }
  .brand p { font-size: 12px; color: #999; margin-top: 4px; }
  label { display: block; font-size: 13px; color: #555; margin: 10px 0 4px; }
  input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; outline: none; font-family: inherit; }
  input:focus, select:focus, textarea:focus { border-color: #0f9d6f; }
  button { cursor: pointer; border: none; border-radius: 6px; font-size: 14px; padding: 8px 14px; }
  .btn-primary { background: #0f9d6f; color: #fff; }
  .btn-primary:hover { background: #0c8559; }
  .btn-primary:disabled { background: #a8d8c6; cursor: not-allowed; }
  .btn-ghost { background: #fff; border: 1px solid #d9d9d9; color: #555; }
  .btn-danger { background: #fff; border: 1px solid #ff4d4f; color: #ff4d4f; }
  .btn-ghost:disabled, .btn-danger:disabled { color: #bbb; border-color: #e8e8e8; cursor: not-allowed; }
  .pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }
  .btn-sm { padding: 4px 10px; font-size: 12px; }
  .btn-block { width: 100%; padding: 10px; font-size: 15px; }
  .err { color: #ff4d4f; font-size: 13px; margin-top: 10px; min-height: 18px; }
  .topbar { background: #12283f; color: #fff; padding: 0 20px; height: 52px; display: flex; align-items: center; gap: 12px; }
  .topbar b { font-size: 16px; }
  .topbar .who { margin-left: auto; font-size: 13px; opacity: .9; }
  .tabs { background: #fff; padding: 0 20px; border-bottom: 1px solid #e8e8e8; display: flex; gap: 4px; }
  .tab { padding: 12px 16px; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; }
  .tab.active { color: #0f9d6f; border-bottom-color: #0f9d6f; font-weight: 600; }
  .main { max-width: 1180px; margin: 20px auto; padding: 0 20px; }
  .stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
  .stat { background: #fff; border-radius: 8px; padding: 14px 20px; min-width: 140px; }
  .stat .num { font-size: 24px; font-weight: 700; color: #0f9d6f; }
  .stat .lbl { font-size: 12px; color: #999; margin-top: 2px; }
  .card { background: #fff; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
  .card h3 { font-size: 15px; margin-bottom: 12px; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #f0f0f0; }
  th { color: #999; font-weight: 500; white-space: nowrap; }
  td { white-space: normal; max-width: 200px; }
  .tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; margin: 1px 2px; background: #e6f7f0; color: #0f9d6f; }
  .tag-dot { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; margin: 1px 2px; }
  .muted { color: #999; font-size: 12px; }
  .actions { display: flex; gap: 6px; }
  .toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
  .search { display: flex; gap: 8px; align-items: center; }
  .search input { width: 220px; }
  .mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; z-index: 10; }
  .modal { background: #fff; border-radius: 10px; width: 420px; padding: 22px 24px; max-height: 86vh; overflow: auto; }
  .modal h3 { font-size: 16px; margin-bottom: 6px; }
  .modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .hint { margin: 10px 0 0; font-size: 12px; color: #999; line-height: 1.5; }
  .toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: #0f9d6f; color: #fff; padding: 8px 18px; border-radius: 6px; font-size: 13px; z-index: 20; opacity: 0; transition: opacity .25s; pointer-events: none; }
  .toast.show { opacity: 1; }
  .back-link { color: #0f9d6f; cursor: pointer; font-size: 13px; }
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .hist-box { border: 1px solid #f0f0f0; border-radius: 8px; padding: 10px 14px; margin-top: 10px; max-height: 220px; overflow: auto; }
  .hist-line { font-size: 12px; line-height: 24px; color: #555; }
  .note-pre { white-space: pre-wrap; }
  .lib-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
  .lib-btn { border: 1px solid #e0e0e0; background: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 13px; color: #444; }
  .lib-btn.on { background: #e7f0ff; color: #0b5ed7; border-color: #9cc3ff; font-weight: 600; }
  .asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
  .asset-card { border: 1px solid #eee; border-radius: 10px; padding: 8px; background: #fff; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .asset-thumb { height: 90px; border-radius: 6px; background: #f2f6fa; display: grid; place-items: center; font-size: 26px; color: #8aa0b8; overflow: hidden; cursor: pointer; }
  .asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .asset-card b { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .asset-card .muted { font-size: 11px; }
  .up-box { border: 1px dashed #c8d6e8; border-radius: 10px; padding: 12px; margin-bottom: 12px; background: #f8fbff; }
  .prod-thumb { width: 44px; height: 44px; border-radius: 6px; background: #f2f6fa; display: grid; place-items: center; overflow: hidden; }
  .prod-thumb img { width: 100%; height: 100%; object-fit: cover; }

